/* =========================================================
   ZAR CONCEPT FIGURE — CLEAN + CONSISTENT
   Goal:
   - No duplicated rules
   - Responsive images
   - Smooth lightbox UX
========================================================= */


/* =================================
   FIGURE WRAPPER
================================= */

.guard-concept-figure {
  display: flex;
  justify-content: center;
  gap: 20px;

  margin: 1rem 0 0;
  flex-wrap: wrap;
}


/* =================================
   IMAGE BUTTON
================================= */

.guard-concept-image-button {
  display: inline-block;

  padding: 0;
  margin: 0;

  border: none;
  background: transparent;

  cursor: zoom-in;
  text-align: left;
}


/* =================================
   IMAGE
================================= */

.guard-concept-image {
  display: block;

  width: 420px;
  max-width: 100%;
  height: auto;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.28),
    0 1px 0 rgba(255,255,255,0.04) inset;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* hover lift */

.guard-concept-image-button:hover .guard-concept-image {
  transform: translateY(-2px);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.34),
    0 1px 0 rgba(255,255,255,0.05) inset;

  border-color: rgba(122,166,255,0.22);
}


/* =================================
   FIGCAPTION
================================= */

.guard-concept-figcaption {
  margin-top: 0.75rem;
  max-width: 420px;
}

.guard-concept-caption {
  display: block;

  font-size: 0.85rem;
  line-height: 1.6;

  color: #dbe4ff;
}

.guard-concept-credit {
  display: block;

  margin-top: 0.35rem;

  font-size: 0.82rem;
  line-height: 1.45;

  color: rgba(215,225,255,0.68);
}

.guard-concept-method {
  display: block;

  margin-top: 0.3rem;

  font-size: 0.8rem;
  line-height: 1.45;

  font-style: italic;

  color: rgba(170,185,225,0.62);
}

/* subtle separator */

.guard-concept-figcaption::after {
  content: "";

  display: block;

  width: 72px;
  height: 1px;

  margin-top: 0.8rem;

  background: linear-gradient(
    to right,
    rgba(122,166,255,0.35),
    transparent
  );
}


/* =================================
   LIGHTBOX
================================= */

.guard-image-lightbox {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* backdrop */

.guard-image-lightbox__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(6px);
}


/* dialog */

.guard-image-lightbox__dialog {
  position: relative;
  z-index: 1;

  width: min(92vw, 1100px);
  max-height: 90vh;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* image */

.guard-image-lightbox__img {
  display: block;

  max-width: 100%;
  max-height: 90vh;

  border-radius: 14px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}


/* close button */

.guard-image-lightbox__close {
  position: absolute;

  top: -10px;
  right: -10px;

  width: 38px;
  height: 38px;

  border: none;
  border-radius: 999px;

  font-size: 1.4rem;
  line-height: 1;

  cursor: pointer;

  background: rgba(20,30,60,0.7);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 768px) {

  .guard-concept-image {
    width: 100%;
  }

  .guard-concept-figcaption {
    max-width: 100%;
  }

  /* full immersive lightbox */

  .guard-image-lightbox__backdrop {
    background: rgba(5,10,20,0.92);
    backdrop-filter: blur(8px);
  }

  .guard-image-lightbox__dialog {
    width: 100%;
    height: 100%;

    padding: 20px;
    margin: 0;

    max-height: none;
  }

  .guard-image-lightbox__img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
  }

  /* bigger touch target */

  .guard-image-lightbox__close {
    top: 70px;
    right: max(12px, env(safe-area-inset-right));

    width: 44px;
    height: 44px;

    font-size: 1.5rem;
  }

}


/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 480px) {

  .guard-concept-figure {
    gap: 14px;
  }

  .guard-concept-caption {
    font-size: 0.82rem;
  }

}