.gallery-intro { text-align:center; padding:clamp(40px,5vw,76px) 0 clamp(28px,3.5vw,52px); }
.gallery-intro h1 { margin:15px 0; font:400 clamp(62px,7.3vw,112px)/.94 var(--display); letter-spacing:-.045em; }
.gallery-intro > p:nth-child(3) { margin:0; color:var(--muted); font:400 clamp(15px,1.3vw,18px)/1.5 var(--home-body); }
.gallery-section { padding-bottom:var(--section-space); border-top:1px solid var(--line); }
.gallery-toolbar { display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; padding:16px 0; }
.gallery-toolbar[hidden],.gallery-look[hidden] { display:none; }
.motion-toggle { border:0; background:transparent; color:var(--teal); font:550 13px/1.5 var(--sans); text-decoration:underline; text-underline-offset:4px; padding:8px 0; }
.gallery-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(8px,1.2vw,16px); }
.gallery-look a { display:block; color:inherit; text-decoration:none; }
.gallery-photo { position:relative; border-radius:15px; overflow:hidden; aspect-ratio:3/4; background:var(--mint); }
.gallery-photo img,.gallery-photo video { display:block; width:100%; height:100%; object-fit:cover; }
.gallery-photo video { position:absolute; inset:0; pointer-events:none; opacity:0; }
.gallery-photo video[data-playing] { opacity:1; }
.gallery-follow { display:flex; width:fit-content; margin:35px auto 0; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#gallery-viewer {
  --viewer-padding:13px;
  --frame-height:calc(94dvh - 150px);
  box-sizing:border-box;
  width:min(520px,calc(100% - 24px),calc(var(--frame-height) * var(--look-ratio,.75) + 2 * var(--viewer-padding) + 2px));
  max-height:94dvh; margin:auto; padding:var(--viewer-padding);
}
#gallery-viewer::backdrop { background:#10251fe0; }
#gallery-viewer .look-content header,.viewer-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#gallery-viewer .look-content h2 { font:400 clamp(21px,2.2vw,30px)/1.1 var(--display); margin:4px 0 10px; }
#gallery-viewer :where(.look-content) button { width:36px; height:36px; flex:none; font-size:20px; color:var(--teal); background:transparent; border:1px solid #b9cec3; border-radius:50%; }
.viewer-stage { position:relative; }
.viewer-media img,.viewer-media video {
  display:block; width:100%; height:auto; aspect-ratio:auto var(--look-ratio,.75);
  border-radius:10px;
}
.viewer-media video { pointer-events:none; }
#gallery-viewer button.viewer-book {
  position:absolute; bottom:clamp(14px,3vh,26px); left:50%; transform:translateX(-50%);
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; height:auto; width:max-content; border:0;
  padding:10px 24px; border-radius:999px; white-space:nowrap; text-decoration:none;
  color:#093e35; background:#fffaf2; box-shadow:0 2px 10px #10231e33;
  font:600 15px/1.3 var(--sans);
}
#gallery-viewer button.viewer-book:hover { background:#e0f0e8; }
#gallery-viewer button.viewer-book:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.viewer-nav { justify-content:center; padding-top:10px; font-size:12px; color:var(--muted); }
@media (max-width:959px) { .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:599px) { .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:440px) { .gallery-photo { border-radius:11px; } }
.viewer-nav[hidden] { display:none; }

.gallery-toolbar { min-height:52px; margin-bottom:5px; }

.gallery-look { min-width:0; }
.more-looks { display:block; margin:38px auto 0; min-height:44px; padding:0 22px; border-radius:999px; border:1px solid var(--teal); color:var(--teal); background:transparent; font:550 14px var(--home-body); }
.more-looks:hover { background:var(--teal); color:white; }
#gallery-viewer { color:var(--ink); border:1px solid #ddd6ce; border-radius:18px; background:var(--paper,#fffaf6); scrollbar-width:none; }
#gallery-viewer .look-content header { padding:3px 5px 10px; }
#gallery-viewer .look-content h2 { overflow-wrap:anywhere; margin:4px 0 0; }
.viewer-meta { margin:0; color:var(--muted); font:500 11px/1.5 var(--home-body); }
.viewer-stage { touch-action:pan-y; }
#gallery-viewer .viewer-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:auto; height:40px; border-radius:99px; padding:0 15px; font:550 14px var(--home-body); background:var(--paper,#fffaf6); }
.viewer-nav { justify-content:space-between; }
#gallery-viewer .viewer-nav button { width:auto; height:auto; min-height:34px; padding:3px 6px; border:0; font:500 13px var(--home-body); }
.viewer-nav button:disabled { opacity:.4; cursor:default; }
.gallery-section [hidden],#gallery-viewer [hidden],#gallery-viewer button.viewer-book[hidden] { display:none; }
@media(max-width:560px) {
  #gallery-viewer { --viewer-padding:9px; }
}




/* The three animation durations and curves come directly from Services. */
.gallery-intro > :first-child { --enter-delay: 0ms; }
.gallery-intro > :nth-child(2) { --enter-delay: 95ms; }
.gallery-intro > :nth-child(3) { --enter-delay: 190ms; }
.gallery-toolbar { --enter-delay: 285ms; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-look[data-waiting] { opacity: 0; }
  .gallery-photo video[data-playing] { transition: opacity 240ms var(--ease-out); }
}
.gallery-photo { isolation: isolate; }
.gallery-look a { border-radius: 15px; }
.gallery-look a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.viewer-meta { overflow-wrap:anywhere; text-wrap:pretty; }
@media (max-width:600px) {
  .gallery-toolbar { flex-wrap:nowrap; align-items:center; gap:6px; padding:10px 0; }
  .gallery-toolbar .shop-filters { min-width:0; gap:0; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .gallery-toolbar .shop-filters::-webkit-scrollbar { display:none; }
  .gallery-toolbar .shop-filters button { font-size:clamp(11px,2.95vw,13px); flex:none; min-height:38px; padding-inline:clamp(3px,1.15vw,7px); }
  .gallery-toolbar [data-filter="Updos"], .gallery-toolbar [data-filter="Kids"] { display:none; }
  .gallery-toolbar .motion-toggle { flex:none; min-height:40px; white-space:nowrap; font-size:clamp(11px,2.95vw,13px); }
}

