/* Shared gallery behavior and layout; colors follow each theme's own tokens. */
.gallery-content-nav{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.gallery-content-nav a{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid var(--line);background:var(--surface);border-radius:99px;font-size:12px}
.gallery-content-nav a:last-child{color:var(--accent);background:var(--accent-wash)}
.gallery-content-nav a:hover{border-color:var(--accent)}
.gallery-gate--story{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;align-items:center;padding:40px;text-align:left;overflow:hidden;isolation:isolate}
.gallery-gate-visual{min-width:0;text-align:center;padding:12px 0}
.gallery-gate-teasers{display:flex;align-items:center;justify-content:center;min-height:230px;padding:15px 10px}
.gallery-gate-teaser{position:relative;flex:1;max-width:160px;aspect-ratio:3/4;overflow:hidden;background:var(--accent-wash);border:5px solid var(--surface);border-radius:14px;box-shadow:0 12px 30px #23151c20;transform:rotate(-9deg)}
.gallery-gate-teaser:nth-child(2){z-index:1;transform:translateY(-12px) rotate(0deg);margin-inline:-22px}
.gallery-gate-teaser:nth-child(3){transform:rotate(9deg)}
.gallery-gate-teaser img{width:100%;height:100%;object-fit:cover;filter:blur(clamp(1.5px,.25vw,3px));transform:scale(1.08);opacity:.94;pointer-events:none}
.gallery-gate-teaser>span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:transparent;font-size:22px;text-shadow:0 2px 14px #0006}
.gallery-gate-visual-label{display:block;font-size:12px;font-weight:600;color:var(--ink);margin-top:10px}
.gallery-gate-visual>small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.gallery-gate--story .gallery-gate-card{max-width:500px;margin:0}
.gate-kicker{color:var(--accent);font-size:12px;display:flex;align-items:center;gap:7px;margin:0 0 12px}
.gallery-gate--story h2{font-size:30px;margin:0 0 10px;letter-spacing:.01em}
.gallery-gate--story .gallery-gate-description{font-size:13px;line-height:1.9;margin:0 0 20px}
.gallery-gate-benefits{list-style:none;display:grid;gap:12px;margin:0 0 24px;padding:0}
.gallery-gate-benefits li{display:flex;align-items:center;gap:12px;font-size:12px}
.gallery-gate-benefits li>i{width:18px;flex:0 0 18px;height:18px;background:currentColor;color:var(--accent)}
.gallery-gate-benefits li>span{color:var(--muted);display:flex;gap:9px;flex-wrap:wrap}
.gallery-gate-benefits strong{font-weight:600;color:var(--ink)}
.gallery-gate-actions{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.gallery-gate-actions .button{min-height:46px;gap:24px;font-size:13px}
.gallery-gate-login{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:12px;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.gallery-gate-account{font-size:11px;color:var(--muted)}
.gallery-gate--story .gallery-gate-reassurance{font-size:10px;color:var(--muted);margin:16px 0 0}
/* Locked video copy sits on a dark poster in both page themes. */
.video-card-locked .video-lock-copy h3{color:#fff4f8}
.video-card-locked .video-lock-copy p{color:#e6d8e1}
.image-viewer{background:#18131a}
.image-viewer .viewer-toolbar{gap:12px;min-height:64px;height:auto;padding-block:calc(8px + env(safe-area-inset-top)) 8px;border-color:#ffffff14}
.image-viewer .viewer-toolbar>span{font-size:12px;color:#f5e7ef;font-variant-numeric:tabular-nums}
.viewer-toolbar>div{flex-shrink:0}
.image-viewer button:focus-visible,.image-viewer a:focus-visible{outline:2px solid #f8b6cf;outline-offset:3px}
.image-viewer .viewer-toolbar button{min-height:44px;padding:9px 15px;color:#f5e7ef}
.image-viewer .viewer-stage{padding:12px 20px;align-items:center}
.image-viewer .viewer-stage>img{max-width:100%;max-height:100%;border-radius:2px}
.image-viewer .viewer-stage[data-zoom=true]{padding:0}
.image-viewer .viewer-stage[data-zoom=true]>img{max-width:none;max-height:none}
.viewer-footer{flex-shrink:0;padding:8px max(20px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border-top:1px solid #ffffff12;background:#18131a}
.image-viewer .viewer-caption{height:auto;max-height:36px;padding:0 0 6px;font-size:11px;line-height:1.6;color:#c7b8c5}
.viewer-notice{display:flex;align-items:center;justify-content:center;gap:6px 14px;flex-wrap:wrap;min-height:28px;font-size:12px;line-height:1.7;color:#e1d5df;text-align:center}
.viewer-unlock{border:0;background:none;color:#ffc3da;padding:5px 8px;font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:36px}
.viewer-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:8px}
.image-viewer .viewer-nav button{position:static;width:auto;height:auto;min-height:44px;min-width:136px;border:1px solid #ffffff30;background:#ffffff08;color:#f6edf3;padding:9px 20px;border-radius:99px;font-size:12px}
.image-viewer .viewer-nav button:disabled{opacity:.4;cursor:default}
.image-viewer .viewer-nav .viewer-next:not(:disabled){background:#f7b4cf;color:#432336;border-color:#f7b4cf;font-weight:600}
.viewer-gate{--surface:#30232e;--line:#634556;--ink:#fff0f7;--muted:#c9b5c3;--accent:#ffc2d8;--accent-wash:#573344;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:35px;align-items:center;width:min(860px,100%);margin:auto;padding:28px;color:var(--ink);background:linear-gradient(145deg,#342330,#251c27);border:1px solid #ffffff1a;border-radius:24px}
.viewer-gate .gallery-gate-card{max-width:none;text-align:left}
.image-viewer .gallery-gate-teaser img{max-width:none;max-height:none;object-fit:cover;margin:0}
.viewer-gate .gallery-gate-card h2{font-size:28px;margin:0 0 12px}
.viewer-gate .gallery-gate-card p{color:var(--muted);font-size:12px;line-height:1.9}
.viewer-gate .gallery-gate-card .gate-kicker{color:var(--accent);margin-bottom:10px}
.viewer-gate .gallery-gate-benefits{gap:12px;margin-bottom:20px}
.viewer-gate .button-primary{background:#f7b4cf;border-color:#f7b4cf;color:#432336;box-shadow:none}
.viewer-gate .gallery-gate-reassurance{font-size:10px;margin:15px 0 0}
@media(max-width:900px){
 .gallery-gate--story{padding:28px;gap:26px}
 .gallery-gate--story h2{font-size:26px}
 .gallery-gate-teasers{min-height:180px}
 .viewer-gate{gap:24px;padding:24px}
}
@media(max-width:600px){
 .gallery-gate--story{grid-template-columns:1fr;gap:22px;padding:26px 22px}
 .gallery-gate-visual{padding:0}
 .gallery-gate-teasers{min-height:0;max-width:310px;margin:auto;padding:12px 16px}
 .gallery-gate-teaser{max-width:110px;border-width:4px;border-radius:10px}
 .gallery-gate--story .gallery-gate-card{max-width:none}
 .gallery-gate-actions{align-items:stretch;text-align:center}
 .gallery-gate-actions .button{justify-content:center}
 .gallery-gate--story .gallery-gate-reassurance{text-align:center}
 .image-viewer .viewer-toolbar{gap:6px;padding-inline:max(10px,env(safe-area-inset-left))}
 .image-viewer .viewer-toolbar>span{font-size:11px}
 .image-viewer .viewer-toolbar button{padding:8px 12px;font-size:11px}
 .image-viewer .viewer-stage{padding:8px;align-items:safe center}
 .viewer-footer{padding-inline:12px}
 .viewer-notice{font-size:11px;gap:2px 6px}
 .viewer-unlock{font-size:11px}
 .viewer-nav{gap:10px;margin-top:6px}
 .image-viewer .viewer-nav button{flex:1;min-width:0;max-width:200px;padding-inline:12px}
 .viewer-gate{grid-template-columns:1fr;gap:16px;padding:22px 20px;border-radius:18px}
 .viewer-gate .gallery-gate-teasers{max-width:240px}
 .viewer-gate .gallery-gate-teaser{max-width:85px}
 .viewer-gate .gallery-gate-visual>small{display:none}
 .viewer-gate .gallery-gate-card h2{font-size:25px}
 .viewer-gate .gallery-gate-benefits{margin-bottom:18px;gap:9px}
}
@media(max-height:580px){
 .viewer-gate{grid-template-columns:1fr;max-width:600px;padding:22px}
 .viewer-gate .gallery-gate-visual{display:none}
 .image-viewer .viewer-caption{display:none}
 .image-viewer .viewer-stage:has(.viewer-gate:not([hidden])){align-items:start}
}
@media(prefers-reduced-motion:reduce){.gallery-gate-teaser,.viewer-gate{animation:none;transition:none}}
