/* ==========================================================================
   Mark Anthony Photography — Fine Art / Art Gallery
   Production stylesheet, ported from the approved Claude Design prototype
   ("Collector Experience.dc.html"). Colors, type scale, spacing and motion
   values are carried over as closely as practical; selectors/structure are
   native production CSS rather than the prototype's inline-style-per-node
   authoring.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html:has(#ag-root) { scroll-behavior: auto; } /* the gallery drives its own scroll-linked motion */
}

/* This stylesheet is loaded only by the Art Gallery. Keep the shared dark
   canvas token at the document root so independently cached component CSS
   and every gallery descendant can always resolve it. */
:root { --gallery-black: #1A1A19; }

/* full-bleed gallery page: remove the browser's default html/body margin —
   scoped with :has() so this can only ever affect a page that actually
   contains the gallery root, never any other page on the site (gallery.css
   is only linked from /art-gallery/index.html to begin with). */
html:has(#ag-root), body:has(#ag-root) {
  margin: 0;
  padding: 0;
}

.ag-root, .ag-root * , .ag-root *::before, .ag-root *::after { box-sizing: border-box; }

.ag-root {
  --bg: #F5F2EC;
  --ink: #221E19;
  --ink-rgb: 34,30,25;
  --ink-muted: #736A5C;
  --ink-faint: #A79C8C;
  --shadow-1: rgba(60,45,20,.28);
  --shadow-2: rgba(60,45,20,.16);
  --scrim-rgb: 245,242,236;
  --link: #221E19;
  --link-hover: #6B5A3E;

  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
}
.ag-root a { color: var(--link); text-decoration: none; }
.ag-root a:hover { color: var(--link-hover); }
.ag-root button { font-family: inherit; }
.ag-root img { display: block; }

@keyframes agCueDrift { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(6px); opacity: 1; } }
@keyframes agSlowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Nav ---------- */
.ag-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px;
  background: linear-gradient(to bottom, rgba(var(--scrim-rgb),.5), rgba(var(--scrim-rgb),0));
}
.ag-nav__crumb { display: flex; align-items: baseline; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.ag-nav__crumb a { opacity: .68; display: flex; align-items: baseline; gap: 8px; }
.ag-nav__crumb a:hover { opacity: 1; }
.ag-nav__crumb .sep { opacity: .4; }
.ag-nav__brand { display: flex; align-items: baseline; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.ag-nav__brand .name { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.ag-nav__brand .kind { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.ag-nav__index-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.ag-nav__index-btn:hover { opacity: .6; }
.ag-nav__index-bar { display: block; width: 18px; height: 1px; background: currentColor; }
@media (max-width: 480px) { .ag-nav { padding-top: 64px; } }
.ag-root[data-view="artwork"] .ag-nav__logo-block,
.ag-root:not([data-view="artwork"]) .ag-nav__crumb { display: none; }
.ag-root[data-indexopen="true"] .ag-nav__index-btn { display: none; }

@media (max-width: 760px) {
  .ag-root {
    --ag-mobile-nav-space: calc(env(safe-area-inset-top, 0px) + 44px);
  }
  .ag-root[data-view="collection"] .ag-nav,
  .ag-root[data-view="artwork"] .ag-nav {
    min-height: var(--ag-mobile-nav-space);
    align-items: center;
    gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
    background: var(--bg);
    pointer-events: none;
    white-space: nowrap;
  }
  .ag-root[data-view="collection"] .ag-nav__logo-block,
  .ag-root[data-view="collection"] .ag-nav__index-btn,
  .ag-root[data-view="artwork"] .ag-nav__crumb a,
  .ag-root[data-view="artwork"] .ag-nav__index-btn {
    pointer-events: auto;
  }
  .ag-root[data-view="collection"] .ag-collection__head {
    padding-top: calc(var(--ag-mobile-nav-space) + 72px);
  }
  .ag-root[data-view="collection"] .ag-collection__list {
    padding-top: 9vh;
  }
  .ag-root[data-view="artwork"] .ag-nav__crumb {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .16em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .ag-root[data-view="artwork"] .ag-nav__crumb a {
    flex: 0 0 auto;
    min-width: 0;
    gap: 5px;
    white-space: nowrap;
  }
  .ag-root[data-view="artwork"] .ag-nav__crumb .sep {
    flex: 0 0 auto;
  }
  .ag-root[data-view="artwork"] #ag-crumb-collection {
    white-space: nowrap;
  }
  .ag-root[data-view="artwork"] #ag-crumb-work {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ag-root[data-view="artwork"] .ag-nav__index-btn {
    flex: 0 0 auto;
    gap: 8px;
    padding: 0;
    font-size: 9px;
    letter-spacing: .16em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .ag-root[data-view="artwork"] .ag-nav__index-bar {
    width: 16px;
  }
}

/* ---------- View visibility ---------- */
.ag-view { display: none; }
.ag-root[data-view="home"] #ag-home,
.ag-root[data-view="collection"] #ag-collection,
.ag-root[data-view="artwork"] #ag-artwork { display: block; }

/* ---------- Home ---------- */
.ag-hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; background: var(--gallery-black); }
.ag-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: agSlowZoom 30s ease-in-out infinite alternate; }
.ag-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,9,11,.28) 0%, rgba(8,9,11,.3) 40%, rgba(8,9,11,.8) 100%); }
.ag-hero__body { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; padding-bottom: 3.5vh; }
.ag-hero__copy { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 0 5vw; color: #F5F2EC; }
.ag-hero__title { font-size: clamp(34px,7.2vw,100px); font-weight: 400; letter-spacing: -.02em; line-height: .96; }
.ag-hero__kicker { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: rgba(245,242,236,.72); }
.ag-hero__lede { margin: 6px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.6; color: rgba(245,242,236,.85); text-wrap: pretty; }
.ag-hero__cue { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; flex-shrink: 0; pointer-events: none; }
.ag-hero__cue-label { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: rgba(245,242,236,.65); }
.ag-hero__cue-line { display: block; width: 1px; height: 26px; background: linear-gradient(to bottom, rgba(245,242,236,.7), rgba(245,242,236,0)); animation: agCueDrift 3.2s ease-in-out infinite; }

.ag-section-label { display: block; padding: 90px 5vw 24px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); }
.ag-section-label--craft { padding: 100px 5vw 0; border-top: 1px solid rgba(var(--ink-rgb),.15); margin-top: 40px; }

.ag-tiles { display: block; }
.ag-tile { all: unset; cursor: pointer; display: block; width: 100%; }
.ag-tile__frame { position: relative; height: 76vh; min-height: 440px; overflow: hidden; }
.ag-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.ag-tile:hover .ag-tile__img { transform: scale(1.045); }
.ag-tile__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,12,.6), rgba(15,14,12,0) 48%); pointer-events: none; }
.ag-tile__caption { position: absolute; bottom: 0; padding: 36px 5vw; display: flex; align-items: baseline; gap: 18px; }
.ag-tile--left { left: 0; }
.ag-tile--right { right: 0; flex-direction: row-reverse; text-align: right; }
.ag-tile__num { font-size: 13px; color: rgba(245,242,236,.65); letter-spacing: .18em; }
.ag-tile__title { font-size: clamp(32px,5.6vw,74px); font-weight: 400; color: #F5F2EC; letter-spacing: -.01em; line-height: 1; }

.ag-craft { display: flex; flex-wrap: wrap; gap: 60px; padding: 28px 5vw 100px; align-items: center; }
.ag-craft__video-box { position: relative; flex: 1 1 560px; width: 100%; max-width: 900px; aspect-ratio: 16/9; background: #E4DFD5; overflow: hidden; }
.ag-craft__video-link { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; padding: 0; overflow: hidden; background: transparent; }
.ag-craft__video-link:hover { opacity: .88; }
.ag-craft__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ag-craft__play { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; background: rgba(20,18,15,.35); backdrop-filter: blur(2px); }
.ag-craft__play::after { content: ''; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; margin-left: 2px; }
.ag-craft__watch { position: relative; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ag-craft__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--gallery-black); }
.ag-craft__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; max-width: 46ch; }
.ag-craft__heading { font-size: clamp(28px,3.6vw,44px); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
.ag-craft__body { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-muted); text-wrap: pretty; }

.ag-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 44px; padding: 90px 5vw 110px; border-top: 1px solid rgba(var(--ink-rgb),.15); }
.ag-info__col { display: flex; flex-direction: column; gap: 10px; }
.ag-info__label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); }
.ag-info__body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-muted); max-width: 34ch; }
.ag-info__link { font-size: 14px; }

/* ---------- Collection ---------- */
.ag-collection { padding-bottom: 14vh; }
.ag-collection__head { padding: 150px 5vw 0; }
.ag-collection__back { all: unset; cursor: pointer; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.ag-collection__back:hover { color: var(--ink); }
.ag-collection__title { margin: 24px 0 0; font-size: clamp(48px,9vw,140px); font-weight: 400; letter-spacing: -.02em; line-height: .95; }
.ag-collection__statement { margin: 24px 0 0; max-width: 54ch; font-size: 15px; line-height: 1.7; color: var(--ink-muted); text-wrap: pretty; }
.ag-collection__list { display: flex; flex-direction: column; gap: 12vh; padding-top: 10vh; }
.ag-collection__list[hidden] { display: none; }

.ag-work { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 0 5vw; }
.ag-work__frame { position: relative; overflow: hidden; }
.ag-work__img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.ag-work:hover .ag-work__img { transform: scale(1.03); }
.ag-work__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.ag-work__caption { position: absolute; bottom: 0; left: 0; padding: 28px 5vw; display: flex; align-items: baseline; gap: 18px; }
.ag-work__num { font-size: 13px; color: rgba(255,255,255,.65); letter-spacing: .18em; }
.ag-work__title { font-size: clamp(24px,3.4vw,40px); font-weight: 400; color: #F5F2EC; letter-spacing: -.01em; line-height: 1; }
.ag-work__meta { display: flex; justify-content: flex-end; margin-top: 14px; }
.ag-work__edition { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Artwork detail (room compositing stage) ---------- */
.ag-artwork__stage { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.ag-room-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.ag-room-layer img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-art { position: absolute; left: 50%; top: 50%; will-change: transform; backface-visibility: hidden; transform-style: preserve-3d; }
.ag-art__shadow { position: absolute; inset: 0; opacity: 0; box-shadow: 0 42px 90px -18px var(--shadow-1), 0 4px 14px var(--shadow-2); }
.ag-art__img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-root[data-three-state="full"] .ag-art__img { object-fit: contain; }
.ag-art__edge { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.14), inset 0 -18px 30px -22px rgba(0,0,0,.4); pointer-events: none; }
.ag-room-foreground { position: absolute; inset: 0; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.ag-room-foreground img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--scrim-rgb),.55) 0%, rgba(var(--scrim-rgb),0) 26%, rgba(var(--scrim-rgb),0) 62%, rgba(var(--scrim-rgb),.6) 100%); }

.ag-artwork__overlay { position: fixed; inset: 0; pointer-events: none; }
.ag-cue { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ag-cue__label { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-muted); }
.ag-cue__line { display: block; width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(var(--ink-rgb),.7), rgba(var(--ink-rgb),0)); animation: agCueDrift 3.2s ease-in-out infinite; }

.ag-objectlabel { position: absolute; bottom: 42px; left: 0; right: 0; text-align: center; opacity: 0; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-muted); }

.ag-meta { position: absolute; opacity: 0; display: flex; flex-direction: column; gap: 7px; padding: 18px 22px; margin: -18px -22px; background: linear-gradient(100deg, rgba(var(--scrim-rgb),.55), rgba(var(--scrim-rgb),.15) 70%, rgba(var(--scrim-rgb),0)); text-shadow: 0 1px 26px rgba(4,6,10,.55), 0 1px 3px rgba(4,6,10,.4); }
.ag-meta__title { font-size: 22px; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.ag-meta__line { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.ag-meta__brand { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

.ag-story { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; display: flex; flex-direction: column; gap: 26px; }
.ag-story.is-story-safe { visibility: visible; pointer-events: auto; }
.ag-story__head { display: flex; flex-direction: column; gap: 10px; }
.ag-story__kicker { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }
.ag-story__title { margin: 0; font-size: 34px; font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.ag-story__body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-muted); max-width: 40ch; text-wrap: pretty; }
.ag-story__specs { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid rgba(var(--ink-rgb),.12); list-style: none; margin: 0; }
.ag-story__specs li { font-size: 12px; line-height: 1.5; color: var(--ink-muted); }
.ag-story__availability { font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.ag-story__inquire { align-self: flex-start; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 14px 22px; border: 1px solid rgba(var(--ink-rgb),.28); transition: background .35s ease, border-color .35s ease; background: none; cursor: pointer; color: inherit; }
.ag-story__inquire:hover { background: rgba(var(--ink-rgb),.08); border-color: rgba(var(--ink-rgb),.55); }

.ag-story__nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(var(--ink-rgb),.12); }
.ag-story__nav-link { display: flex; align-items: baseline; gap: 8px; max-width: 48%; padding: 12px 4px; margin: -12px -4px; border: 0; background: none; color: var(--ink-muted); font-size: 12px; letter-spacing: .01em; line-height: 1.4; text-align: left; cursor: pointer; transition: color .3s ease; }
.ag-story__nav-link[hidden] { display: none; }
.ag-story__nav-link:hover, .ag-story__nav-link:focus-visible { color: var(--ink); }
.ag-story__nav-link--next { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.ag-story__nav-arrow { flex: none; font-size: 13px; color: var(--ink-faint); }

.ag-rail { position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: rgba(var(--ink-rgb),.07); }
.ag-rail__fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(var(--ink-rgb),.4); transform: scaleY(0); transform-origin: top; }

.ag-driver { height: 520vh; pointer-events: none; }

/* Sea Arches retains the approved controlled prototype on desktop. Mobile
   artwork views generalize the same state model below without affecting any
   collection, globe or ordinary page scrolling. */
.ag-root[data-artwork-prototype="sea-arches-three-state"] .ag-driver {
  height: 300vh;
}
.ag-root[data-artwork-prototype="sea-arches-three-state"][data-three-state="artwork"] #ag-artwork,
.ag-root[data-artwork-prototype="sea-arches-three-state"][data-three-state="full"] #ag-artwork,
.ag-root[data-artwork-prototype="sea-arches-three-state"][data-three-state="installed"] #ag-artwork {
  touch-action: pan-x;
}
.ag-root[data-artwork-prototype="sea-arches-three-state"][data-three-state="details"] #ag-artwork {
  touch-action: pan-y;
}

@media (max-width: 760px) {
  .ag-root[data-view="artwork"] .ag-artwork__stage,
  .ag-root[data-view="artwork"] .ag-artwork__overlay {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--ag-stable-viewport-height, 100svh);
  }
  .ag-root[data-view="artwork"] .ag-driver {
    height: 380vh;
  }
  .ag-root[data-view="artwork"][data-three-state="artwork"] #ag-artwork,
  .ag-root[data-view="artwork"][data-three-state="full"] #ag-artwork,
  .ag-root[data-view="artwork"][data-three-state="installed"] #ag-artwork {
    touch-action: pan-x;
  }
  .ag-root[data-view="artwork"][data-three-state="details"] #ag-artwork {
    touch-action: pan-y;
  }
  .ag-root[data-view="artwork"] .ag-cue {
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  }
  .ag-root[data-view="artwork"][data-mobile-cue="hidden"] .ag-cue,
  .ag-root[data-view="artwork"][data-three-state="details"] .ag-cue {
    opacity: 0 !important;
  }

  /* Firefox Android fallback. The class is enabled by a Gecko CSS-feature
     check in gallery.js (no user-agent parsing). Its fixed stage, overlay and
     ScrollTrigger range all use one stable measured viewport so browser-bar
     expansion cannot create a blank scroll range. Native vertical scrolling
     remains available, and long details use a contained scroller so the
     story/specifications are always reachable on short screens. */
  .ag-root.ag-gecko-mobile .ag-story {
    max-height: min(50svh, 460px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }
  .ag-root.ag-gecko-mobile .ag-story::-webkit-scrollbar {
    display: none;
  }

  /* Normal-height Firefox Android screens compose the complete final artwork
     and story as one fixed state. JS chooses the least compact density that
     fits the measured stable viewport; these rules never apply to desktop
     Firefox or to Safari/Chrome/WebKit. */
  .ag-root.ag-gecko-mobile[data-gecko-details-fit="composed"] .ag-story {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    padding-bottom: 0;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="spacing"] .ag-story {
    gap: 14px !important;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="spacing"] .ag-story__head {
    gap: 8px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="spacing"] .ag-story__specs {
    gap: 6px;
    padding-top: 3px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="spacing"] .ag-story__nav {
    padding-top: 12px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story {
    gap: 11px !important;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__head {
    gap: 6px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__title {
    font-size: 25px !important;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__body {
    font-size: 12.5px !important;
    line-height: 1.48;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__specs {
    gap: 4px;
    padding-top: 3px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__specs li {
    font-size: 11px;
    line-height: 1.38;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__availability {
    font-size: 11px;
    line-height: 1.4;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__inquire {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 10.5px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__nav {
    min-height: 44px;
    padding-top: 9px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-density="type"] .ag-story__nav-link {
    min-height: 44px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ag-root.ag-gecko-mobile[data-gecko-details-fit="scroll"] .ag-story {
    max-height: var(--ag-gecko-story-max, min(50svh, 460px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Index overlay ---------- */
.ag-index { position: fixed; inset: 0; z-index: 50; background: var(--gallery-black); display: none; flex-direction: column; pointer-events: auto; color: #EDEEEF; }
.ag-root[data-indexopen="true"] .ag-index { display: flex; }
.ag-index__head { display: flex; align-items: center; justify-content: space-between; padding: 26px 32px; }
.ag-index__eyebrow { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #8A8F94; }
.ag-index__close { background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.ag-index__close:hover { opacity: .6; }
.ag-index__body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 860px; margin: 0 auto; width: 100%; padding: 0 32px; overflow-y: auto; }
.ag-index__row { display: flex; align-items: center; gap: 28px; padding: 22px 0; border: 0; border-top: 1px solid rgba(237,238,239,.14); background: none; cursor: pointer; text-align: left; color: #EDEEEF; width: 100%; }
.ag-index__row:hover { opacity: .68; }
.ag-index__num { font-size: 11px; color: #6F7479; width: 22px; flex-shrink: 0; }
.ag-index__thumb { width: 108px; height: 68px; object-fit: cover; flex-shrink: 0; opacity: .92; }
.ag-index__text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ag-index__title { font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.ag-index__subtitle { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9BA0A5; }
.ag-index__foot { padding: 20px 32px; text-align: center; }
.ag-index__foot span { font-size: 10px; letter-spacing: .12em; color: #55595D; }

@media (max-width: 640px) {
  .ag-index__row { gap: 18px; }
  .ag-index__thumb { width: 84px; height: 54px; }
  .ag-index__title { font-size: 18px; }
}
