/* Ghost Public Preview is the access boundary. The native CTA/button cards
   beneath the introduction keep the existing CasaDeals theme styles. */
.cd-deal-v2 .gh-content > .cd-deal-gallery{min-width:0;width:100%;max-width:none;box-sizing:border-box;margin-top:0;grid-column:wide-start / wide-end;justify-self:center}
.cd-deal-published{display:block;margin-top:12px;color:var(--color-secondary-text,rgba(0,0,0,.55));font:14px/1.5 var(--gh-font-body,var(--font-sans-serif,inherit))}
.cd-deal-v2 .cd-post-paywall-wrap:not(:has(.cd-post-paywall-blur)){min-height:0;padding:0}
.cd-deal-v2 .cd-post-paywall-wrap:not(:has(.cd-post-paywall-blur)) .cd-post-paywall-overlay{position:relative;margin-top:0;padding-top:36px}
.cd-deal-gallery{--cd-gallery-radius:12px;--cd-gallery-gap:12px}
.cd-gallery-viewport{position:relative;min-width:0}
.cd-gallery-track{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:var(--cd-gallery-gap);min-width:0}
.cd-gallery-track>figure{margin:0!important;min-width:0;aspect-ratio:1;position:relative}
.cd-gallery-track>figure:first-child{grid-row:span 2;aspect-ratio:auto}
.cd-gallery-track a{display:block;width:100%;height:100%;border-radius:var(--cd-gallery-radius);overflow:hidden}
.cd-gallery-track img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:var(--cd-gallery-radius);cursor:zoom-in}
.cd-gallery-track>figure:first-child img{position:absolute;inset:0}
.cd-gallery-track a:focus-visible{outline:3px solid var(--ghost-accent-color,#e86100);outline-offset:3px}
.cd-gallery-count,.cd-gallery-open{position:absolute;right:12px;bottom:12px;z-index:1;margin:0!important;padding:4px 10px;color:#fff!important;background:rgba(0,0,0,.72);border-radius:12px;font-family:var(--gh-font-body,var(--font-sans-serif,inherit));font-size:13px!important;font-weight:600;line-height:1.5!important}
.cd-gallery-count{pointer-events:none}
.cd-gallery-open{display:block;border:0;cursor:pointer}
.cd-gallery-open:hover{background:rgba(0,0,0,.85)}
.cd-gallery-open:focus-visible,.cd-gallery-controls button:focus-visible{outline:3px solid var(--ghost-accent-color,#e86100);outline-offset:3px}
.cd-gallery-modal-open{overflow:hidden}
.cd-gallery-dialog{position:fixed;inset:0;margin:0;border:0;border-radius:0;padding:16px;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));background:#111;color:#fff;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;overflow:hidden}
.cd-gallery-dialog[open]{display:grid;grid-template-rows:minmax(0,1fr) auto}
.cd-gallery-dialog::backdrop{background:rgba(0,0,0,.8)}
.cd-gallery-dialog>img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;touch-action:pan-y pinch-zoom;user-select:none}
.cd-gallery-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:12px;font:14px/1.5 var(--gh-font-body,var(--font-sans-serif,inherit))}
.cd-gallery-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;color:#fff;background:#333;border:1px solid #777;border-radius:12px;padding:10px 14px;cursor:pointer}
.cd-gallery-controls button:disabled{opacity:.4;cursor:default}
.cd-gallery-controls span[aria-live]{white-space:nowrap;min-width:54px;text-align:center}
@media(min-width:701px){
 .cd-gallery-track a,.cd-gallery-track img{border-radius:0}
 .cd-gallery-track>figure:first-child a,.cd-gallery-track>figure:first-child img{border-radius:var(--cd-gallery-radius) 0 0 var(--cd-gallery-radius)}
 .cd-gallery-track>figure:nth-child(2) a,.cd-gallery-track>figure:nth-child(2) img{border-top-right-radius:var(--cd-gallery-radius)}
 .cd-gallery-track>figure:nth-child(3) a,.cd-gallery-track>figure:nth-child(3) img{border-bottom-right-radius:var(--cd-gallery-radius)}
 .cd-gallery-enhanced .cd-gallery-track>figure:nth-child(n+4){display:none}
 .cd-gallery-enhanced .cd-gallery-count{display:none}
 .cd-gallery-single .cd-gallery-track{display:block}
 .cd-gallery-single .cd-gallery-track>figure:first-child{aspect-ratio:16/9}
 .cd-gallery-single .cd-gallery-track>figure:first-child a,.cd-gallery-single .cd-gallery-track>figure:first-child img{border-radius:var(--cd-gallery-radius)}
 .cd-gallery-pair .cd-gallery-track{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .cd-gallery-pair .cd-gallery-track>figure:first-child{grid-row:auto;aspect-ratio:auto}
 .cd-gallery-pair .cd-gallery-track>figure:nth-child(2) a,.cd-gallery-pair .cd-gallery-track>figure:nth-child(2) img{border-radius:0 var(--cd-gallery-radius) var(--cd-gallery-radius) 0}
}
@media(max-width:700px){
 .cd-gallery-track{display:flex;align-items:stretch;aspect-ratio:1;overflow-x:auto;overflow-y:hidden;gap:0;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:var(--cd-gallery-radius)}
 .cd-gallery-track::-webkit-scrollbar{display:none}
 .cd-gallery-track>figure{flex:0 0 100%;height:100%;scroll-snap-align:start;aspect-ratio:1}
 .cd-gallery-track>figure:first-child{grid-row:auto}
 .cd-gallery-track img,.cd-gallery-track>figure:first-child img{position:static;display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;background:none}
 .cd-gallery-open{display:none}
 .cd-gallery-track a:focus-visible{outline-offset:-3px}
 .cd-gallery-dialog{padding:12px;padding:calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))}
 .cd-gallery-controls{gap:8px;padding-top:10px}
 .cd-gallery-controls button{padding:8px 10px;min-height:40px}
 .cd-gallery-action-label{display:none}
}

/* Three adjacent slides keep the next image visible throughout a swipe. */
.cd-gallery-stage{position:relative;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;touch-action:pan-y pinch-zoom}
.cd-gallery-slides{display:flex;width:100%;height:100%;will-change:transform;transform:translate3d(-100%,0,0)}
.cd-gallery-slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;width:100%;height:100%;min-width:0;min-height:0}
.cd-gallery-slide>img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;object-fit:contain;object-position:center;user-select:none;touch-action:pan-y pinch-zoom}
@media(prefers-reduced-motion:reduce){.cd-gallery-slides{transition:none!important}}
