/* Galeria de resultados — editorial chocolate/branco/dourado, tokens do tema (claro/escuro). */
.sc-page h1{letter-spacing:-.03em}
.sc-head{align-items:flex-end;flex-wrap:wrap}
.sc-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.sc-head-actions button,.sc-empty button,.sc-savebar button{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.sc-intro{max-width:60ch;color:var(--ad-ink-soft);font-size:16px;line-height:1.55;margin-top:8px}
.sc-cover{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:0;width:100%;margin:26px 0 20px;border-radius:22px;overflow:hidden;background:var(--ad-surface-strong);border:1px solid var(--ad-border);text-align:left;box-shadow:0 18px 50px var(--ad-shadow)}
.sc-cover .sc-pair{border-radius:0}
.sc-cover-caption{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:28px}
.sc-cover-caption small{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--ad-gold-text)}
.sc-cover-caption b{font-size:28px;letter-spacing:-.03em;color:var(--ad-ink)}
.sc-cover-caption>span{color:var(--ad-muted)}
.sc-pair{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:2px;aspect-ratio:4/3;background:var(--ad-border-soft);border-radius:14px;overflow:hidden}
.sc-pair .photo-source{position:relative;overflow:hidden;min-height:0}
.sc-pair img,.sc-row-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sc-pair .diptych img,.sc-p-side .diptych img,.sc-p-slider .diptych img,.sc-row-thumb .diptych img{width:200%;max-width:none;transform:none}
.sc-tag{position:absolute;bottom:8px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;padding:4px 8px;border-radius:99px;background:var(--ad-overlay);color:#fff}
.sc-b{left:8px}.sc-a{left:calc(50% + 8px)}
.sc-illustrative{display:inline-block;align-self:flex-start;font-size:11px;padding:3px 8px;border-radius:99px;background:var(--ad-gold-soft);color:var(--ad-gold-text);font-weight:600}
.sc-filter{margin:6px 0 18px;flex-wrap:wrap;overflow-x:auto}
.sc-filter button{min-height:44px}
.sc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.sc-card{display:flex;flex-direction:column;gap:10px;text-align:left;padding:10px;border-radius:18px;background:var(--ad-surface);border:1px solid var(--ad-border-soft);min-height:44px}
.sc-card-text{display:flex;flex-direction:column;gap:4px;padding:0 4px 4px}
.sc-card-text b{font-size:16px;color:var(--ad-ink)}.sc-card-text small{color:var(--ad-muted)}
.sc-empty{margin:30px auto;max-width:460px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px 22px;border:1px dashed var(--ad-border);border-radius:22px;color:var(--ad-ink-soft)}
.sc-empty svg{width:34px;height:34px;color:var(--ad-gold)}
.sc-h2{font-size:18px;margin:26px 0 10px}
.sc-muted{color:var(--ad-muted)}
.sc-notice{margin:14px 0;padding:12px 14px;border-radius:12px;background:var(--ad-gold-soft);color:var(--ad-ink)}
.sc-form{display:grid;gap:12px;margin-top:18px;max-width:640px}
.sc-form label,.sc-row-main label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ad-ink-soft)}
.sc-form input,.sc-form textarea,.sc-row-main input[data-sc-title]{font:inherit;font-size:16px;padding:10px 12px;min-height:44px;border-radius:10px;border:1px solid var(--ad-border);background:var(--ad-surface);color:var(--ad-ink)}
.sc-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.sc-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border-radius:14px;background:var(--ad-surface);border:1px solid var(--ad-border-soft)}
.sc-row-thumb{width:72px;height:72px;border-radius:10px;overflow:hidden;background:var(--ad-border-soft)}
.sc-row-thumb .photo-source{width:100%;height:100%;overflow:hidden}
.sc-row-main{display:flex;flex-direction:column;gap:4px;min-width:0}.sc-row-main small{color:var(--ad-muted);overflow-wrap:anywhere}
.sc-cover-pick{flex-direction:row!important;align-items:center;min-height:44px}
.sc-cover-pick input{width:20px;height:20px;accent-color:var(--ad-gold)}
.sc-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.sc-row-actions button{min-width:44px;min-height:44px}
.sc-savebar{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 0;margin-top:20px;background:var(--ad-bg)}
@media(max-width:700px){.sc-cover{grid-template-columns:1fr}.sc-cover-caption{padding:18px}.sc-cover-caption b{font-size:22px}.sc-grid{grid-template-columns:1fr}.sc-row{grid-template-columns:56px minmax(0,1fr)}.sc-row-thumb{width:56px;height:56px}.sc-row-actions{grid-column:1/-1}.sc-head-actions{width:100%}.sc-head-actions button{flex:1;justify-content:center}.bottom-nav .nav-button{padding-left:1px;padding-right:1px;min-width:0}.bottom-nav .nav-button span{white-space:nowrap}}
/* Modo Apresentar: overlay limpo (funciona sem Fullscreen API, ex.: Safari iPhone). */
body.sc-presenting{overflow:hidden}
.sc-present{position:fixed;inset:0;z-index:1000;background:var(--ad-bg);color:var(--ad-ink);overflow:auto;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));animation:scIn .25s ease}
.sc-present:focus{outline:none}
.sc-reduced,.sc-reduced *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.sc-present,.sc-present *{animation:none!important;transition:none!important}}
@keyframes scIn{from{opacity:0}to{opacity:1}}
.sc-p-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:1200px;margin:0 auto 10px;font-size:13px;color:var(--ad-muted)}
.sc-p-brand{font-weight:600;color:var(--ad-gold-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-p-btn{min-height:44px;min-width:44px;padding:0 14px;border-radius:99px;border:1px solid var(--ad-border);background:var(--ad-surface);color:var(--ad-ink);font-size:15px}
.sc-p-cover,.sc-p-detail{max-width:1200px;margin:0 auto}
.sc-p-cover h2{font-size:clamp(30px,5vw,52px);letter-spacing:-.04em;margin:10px 0 8px}
.sc-p-cover>p{max-width:62ch;color:var(--ad-ink-soft);font-size:17px;line-height:1.55;margin-bottom:18px}
.sc-p-hero{display:block;width:100%;margin-bottom:18px}
.sc-p-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.sc-p-thumb{display:flex;flex-direction:column;gap:6px;text-align:left;min-height:44px}
.sc-p-thumb>span:first-child{aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:var(--ad-border-soft)}
.sc-p-thumb .photo-source,.sc-p-thumb img{width:100%;height:100%;object-fit:cover}
.sc-p-start{margin:22px 0;min-height:48px;padding:0 28px}
.sc-p-detail header{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sc-p-detail h2{font-size:clamp(24px,4vw,40px);letter-spacing:-.03em}
.sc-p-detail header p{color:var(--ad-muted)}
.sc-p-side{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sc-p-side figure{margin:0;position:relative;aspect-ratio:3/4;max-height:72dvh;border-radius:16px;overflow:hidden;background:var(--ad-border-soft)}
.sc-p-side .photo-source,.sc-p-side img{width:100%;height:100%}.sc-p-side img{object-fit:contain}
.sc-p-side .diptych{overflow:hidden}
.sc-p-side figcaption{position:absolute;left:10px;bottom:10px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;padding:4px 9px;border-radius:99px;background:var(--ad-overlay);color:#fff}
.sc-p-slider{position:relative;aspect-ratio:3/4;max-height:72dvh;margin:0 auto;border-radius:16px;overflow:hidden;background:var(--ad-border-soft)}
.sc-p-slider .photo-source{position:absolute;inset:0;overflow:hidden}.sc-p-slider img{width:100%;height:100%;object-fit:contain}
.sc-p-slider .sl-after{clip-path:inset(0 0 0 var(--split))}
.sc-p-line{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:var(--ad-gold);transform:translateX(-1px)}
.sc-p-range{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ad-muted);max-width:520px;margin:12px auto 0}
.sc-p-range input{width:100%;min-height:44px;accent-color:var(--ad-gold)}
.sc-p-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.sc-p-nav .segments button{min-height:44px}
.sc-p-arrows{display:flex;gap:8px}
.sc-p-arrows .sc-p-btn{font-size:22px}
@media(max-width:700px){.sc-p-side{grid-template-columns:1fr 1fr;gap:6px}.sc-p-side figure{max-height:58dvh}.sc-p-nav{justify-content:center}}
.sc-empty h2{font-size:20px;color:var(--ad-ink)}.sc-empty p{font-size:15px;line-height:1.5}
.sc-p-side{max-width:calc(72dvh * 1.5 + 10px);margin:0 auto}
.sc-p-hero{max-width:calc(62dvh * 1.333);margin:0 auto 18px}

/* Detalhe: ocupa exatamente a tela; barra, título e navegação sempre visíveis, foto usa o que sobra. */
.sc-present.sc-p-is-detail{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;height:100dvh}
.sc-p-is-detail .sc-p-detail{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;min-height:0;width:100%}
.sc-p-is-detail .sc-p-detail header{margin-bottom:8px}
.sc-p-is-detail .sc-p-detail h2{font-size:clamp(20px,3.2vw,34px)}
.sc-p-is-detail .sc-p-side{align-self:center;min-height:0;height:auto;width:min(100%,calc((100dvh - 190px)*1.5 + 10px))}
.sc-p-is-detail .sc-p-side figure{aspect-ratio:3/4;max-height:none;height:auto;min-height:0}
.sc-p-is-detail .sc-p-slider{align-self:center;aspect-ratio:3/4;height:auto;width:min(100%,calc((100dvh - 235px)*.75));max-width:100%;min-height:0}
.sc-p-is-detail .sc-p-range{margin-top:8px}
.sc-p-is-detail .sc-p-nav{margin-top:8px}
@media(max-width:700px){.sc-p-is-detail .sc-p-nav{gap:6px}.sc-p-is-detail .sc-p-nav .segments button{padding:0 10px}}
.sc-p-is-detail .sc-p-bar{width:100%;max-width:1200px}

.sc-p-thumb .sc-illustrative{align-self:flex-start}
.sc-p-slider .sc-tag{z-index:2}
.sc-p-arrows .sc-p-end{font-size:15px;background:var(--ad-ink);color:var(--ad-bg);border-color:var(--ad-ink)}
.sc-p-slider .sc-a{left:auto;right:8px}
