/* ── Brand tokens ───────────────────────────────────────────── */
.acf-gallery-wrap {
  width: 100%;
  font-family: var(--font-henry);
}

/* ── Stage ──────────────────────────────────────────────────── */
.acfgal-container { width: 100%; }

.acfgal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-blue);
  border-radius: 12px;
}

.acfgal-stage .acfgal-stage-nav {
  opacity: 1;
  pointer-events: auto;
}

/* ── Slides ─────────────────────────────────────────────────── */
.acfgal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  cursor: pointer;
}
.acfgal-slide.is-active  { opacity: 1; transform: translateX(0);     pointer-events: auto; }
.acfgal-slide.exit-left  { opacity: 0; transform: translateX(-40px); }
.acfgal-slide.exit-right { opacity: 0; transform: translateX(40px);  }

.acfgal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.9);
  transition: transform .65s cubic-bezier(.4, 0, .2, 1), filter .4s ease;
}
.acfgal-slide:hover .acfgal-img {
  transform: scale(1.04);
  filter: brightness(.95);
}

/* ── Hover overlay ──────────────────────────────────────────── */
.acfgal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 20, 39, .80) 0%,
    rgba(11, 20, 39, .10) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(14px, 3%, 32px);
}
.acfgal-slide:hover .acfgal-overlay { opacity: 1; }

.acfgal-num {
  font-family: var(--font-medium);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--color-secondary-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.acfgal-title {
  font-family: var(--font-base);
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}
.acfgal-caption {
  font-family: var(--font-light);
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .02em;
  line-height: 1.55;
}

/* ── Expand icon ────────────────────────────────────────────── */
.acfgal-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(70, 154, 204, .55);
  background: rgba(11, 20, 39, .45);
  color: var(--color-secondary-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease, background .2s ease;
  backdrop-filter: blur(4px);
}

.acfgal-expand svg>path{
  color: var(--color-secondary-white);
  fill: var(--color-secondary-white);
}

.acfgal-slide:hover .acfgal-expand { opacity: 1; }
.acfgal-expand:hover { background: rgba(70, 154, 204, .2); }

/* ── In-stage nav arrows ────────────────────────────────────── */
.acfgal-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 72px;
  border: 1px solid rgba(70, 154, 204, .3);
  background: rgba(11, 20, 39, .55);
  color: var(--color-secondary-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, opacity .25s ease;
  backdrop-filter: blur(6px);
}
.acfgal-stage-nav:hover {
  background: rgba(70, 154, 204, .2);
  border-color: var(--color-secondary-blue);
}
.acfgal-stage-prev { left: 0; }
.acfgal-stage-next { right: 0; }

/* ── Stage counter (bottom-right of image) ──────────────────── */
.acfgal-stage-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-medium);
  font-size: 11px;
  letter-spacing: .18em;
    
  display: flex;
  gap: 4px;
  align-items: center;
  pointer-events: none;
}
.acfgal-counter-cur   { color: var(--color-secondary-blue); font-size: 13px; }
.acfgal-counter-sep   { color: rgba(255, 255, 255, .3); }
.acfgal-counter-total { color: rgba(255, 255, 255, .45); }

/* ── Lightbox ───────────────────────────────────────────────── */
.acfgal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 39, 0);
  backdrop-filter: blur(0px);
  transition: background .35s ease, backdrop-filter .35s ease;
}
.acfgal-lightbox.is-open    { display: flex; }
.acfgal-lightbox.is-visible {
  background: rgba(11, 20, 39, .93);
  backdrop-filter: blur(16px);
}

.acfgal-lb-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.2, .64, 1);
}
.acfgal-lightbox.is-visible .acfgal-lb-panel {
  opacity: 1;
  transform: scale(1);
}

.acfgal-lb-img {
  display: block;
  max-width: 82vw;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(70, 154, 204, .2);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s ease;
}
.acfgal-lb-img.is-loaded { opacity: 1; }
.acfgal-lb-img.is-fading { opacity: 0; }

.acfgal-lb-info {
  margin-top: 18px;
  text-align: center;
  max-width: 540px;
  padding: 0 16px;
}
.acfgal-lb-title {
  font-family: var(--font-base);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: .03em;
  margin-bottom: 5px;
}
.acfgal-lb-caption {
  font-family: var(--font-light);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
  line-height: 1.6;
}

/* ── Lightbox thumbnails ────────────────────────────────────── */
.acfgal-lb-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.acfgal-lb-thumb {
  width: 54px;
  height: 36px;
  object-fit: cover;
  cursor: pointer;
  opacity: .35;
  border: 1px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}
.acfgal-lb-thumb.is-active { opacity: 1; border-color: var(--color-secondary-blue); }
.acfgal-lb-thumb:hover      { opacity: .7; }

/* ── Lightbox close button ──────────────────────────────────── */
.acfgal-lb-close {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 100000;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(70, 154, 204, .35);
  background: rgba(11, 20, 39, .55);
  color: var(--color-secondary-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.acfgal-lb-close:hover {
  background: rgba(70, 154, 204, .2);
  border-color: var(--color-secondary-white);
}

/* ── Lightbox prev / next ───────────────────────────────────── */
.acfgal-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000;
  width: 48px;
  height: 82px;
  border: 1px solid rgba(70, 154, 204, .25);
  background: rgba(11, 20, 39, .55);
  color: var(--color-secondary-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.acfgal-lb-nav:hover {
  background: rgba(70, 154, 204, .18);
  border-color: var(--color-secondary-whitea);
}
.acfgal-lb-prev { left: 16px; }
.acfgal-lb-next { right: 16px; }

/* ── Lightbox counter ───────────────────────────────────────── */
.acfgal-lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-medium);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(70, 154, 204, .55);
  z-index: 100000;
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .acfgal-stage-nav { width: 34px; height: 54px; }
  .acfgal-lb-thumbs { display: none; }
  .acfgal-lb-nav    { width: 36px; height: 60px; }
}