/* Exhibition photo slider — full photo visible, strong overlay controls
 * Loaded last among GlowArt styles so Automatic.css / theme cover rules lose. */

html body.ga-body .ga-exslider {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(242, 235, 224, 0.05), transparent 60%),
    linear-gradient(180deg, var(--ga-soil) 0%, var(--ga-void) 100%);
  overflow: clip;
}

html body.ga-body .ga-exslider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

html body.ga-body .ga-exslider__lead {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: var(--ga-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

html body.ga-body .ga-exslider__count {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ga-muted-2);
  text-transform: uppercase;
  white-space: nowrap;
}

html body.ga-body .ga-exslider__count--head {
  align-self: flex-end;
  padding-bottom: 0.2rem;
}

html body.ga-body .ga-exslider__stage {
  position: relative;
}

html body.ga-body .ga-exslider__viewport {
  position: relative;
  width: 100%;
  /* Tall enough for portrait photos without chopping heads/feet */
  height: min(82vh, 820px);
  min-height: 520px;
  border-radius: 2px;
  overflow: hidden;
  background: #0c0b0a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  touch-action: pan-y;
}

html body.ga-body .ga-exslider__viewport:focus-visible {
  outline: 2px solid var(--ga-bone);
  outline-offset: 3px;
}

html body.ga-body .ga-exslider__track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

html body.ga-body .ga-exslider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

html body.ga-body .ga-exslider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

html body.ga-body .ga-exslider__figure {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: block !important;
  background:
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(242, 235, 224, 0.04), transparent 70%),
    #0c0b0a !important;
}

/*
 * Full frame: stretch the img box to the stage, then letterbox with contain.
 * Beats Automatic.css object-fit:cover via --object-fit + !important.
 */
html body.ga-body section.ga-exslider .ga-exslider__figure img,
html body.ga-body .ga-exslider__figure > img,
html body.ga-body .ga-exslider img {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  --object-fit: contain !important;
  aspect-ratio: auto !important;
  display: block !important;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Scrim sealed to the figure’s bottom edge (not a floating band on the caption). */
html body.ga-body .ga-exslider__figure::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(22%, 7.25rem);
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 9, 8, 0.96) 0%,
    rgba(10, 9, 8, 0.7) 38%,
    rgba(10, 9, 8, 0.28) 68%,
    rgba(10, 9, 8, 0) 100%
  );
}

html body.ga-body .ga-exslider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0 !important;
  padding: 0.85rem 5.5rem 1.1rem 1.5rem;
  background: none;
  color: var(--ga-bone);
  font-family: var(--ga-serif);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* CI: same language as header CTA / shop nav — white pill, dark ink */
html body.ga-body .ga-exslider__controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

html body.ga-body .ga-exslider__nav {
  pointer-events: auto;
  position: absolute !important;
  top: 50% !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* px: Automatic.css root ~10px */
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

html body.ga-body .ga-exslider__nav--prev {
  left: 18px !important;
  right: auto !important;
}

html body.ga-body .ga-exslider__nav--next {
  right: 18px !important;
  left: auto !important;
}

html body.ga-body .ga-exslider__nav:hover,
html body.ga-body .ga-exslider__nav:focus-visible {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #000000 !important;
  outline: none;
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

html body.ga-body .ga-exslider__nav:active {
  background: #f2ebe0 !important;
  color: #111111 !important;
  transform: translateY(-50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

html body.ga-body .ga-exslider__nav-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
  color: inherit;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

html body.ga-body .ga-exslider__nav:hover .ga-exslider__nav-face,
html body.ga-body .ga-exslider__nav:focus-visible .ga-exslider__nav-face,
html body.ga-body .ga-exslider__nav:active .ga-exslider__nav-face {
  background: transparent;
  transform: none;
}

html body.ga-body .ga-exslider__chevron {
  display: block;
  width: 20px;
  height: 20px;
}

html body.ga-body .ga-exslider__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

html body.ga-body .ga-exslider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: min(720px, 100%);
}

html body.ga-body .ga-exslider__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 235, 224, 0.28);
  cursor: pointer;
  transition: width 0.35s ease, background 0.25s ease;
}

html body.ga-body .ga-exslider__dot.is-active {
  width: 1.55rem;
  background: var(--ga-bone);
}

html body.ga-body .ga-exslider__dot:focus-visible {
  outline: 2px solid var(--ga-bone);
  outline-offset: 2px;
}

body.ga-reduce .ga-exslider__slide {
  transition: none;
}

@media (max-width: 700px) {
  html body.ga-body .ga-exslider__head {
    flex-direction: column;
    align-items: flex-start;
  }
  html body.ga-body .ga-exslider__stage {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  html body.ga-body .ga-exslider__viewport {
    width: 100%;
    border-radius: 0;
    height: min(78vh, 760px);
    min-height: 420px;
  }
  html body.ga-body .ga-exslider__nav {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
  html body.ga-body .ga-exslider__nav--prev {
    left: 10px !important;
  }
  html body.ga-body .ga-exslider__nav--next {
    right: 10px !important;
  }
  html body.ga-body .ga-exslider__chevron {
    width: 18px;
    height: 18px;
  }
  html body.ga-body .ga-exslider__figure::after {
    height: min(26%, 6.5rem);
  }
  html body.ga-body .ga-exslider__caption {
    padding: 0.7rem 3.75rem 0.95rem 1rem;
    font-size: 1.05rem;
  }
  html body.ga-body .ga-exslider__footer {
    width: min(var(--ga-max), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }
}
