/* Homepage carousel and the matching simple editor. All selectors are scoped. */
.hero-carousel{position:relative;background:var(--cream,#f5f0e5);overflow:hidden;padding:0!important;}
.hero-carousel-viewport{width:100%;aspect-ratio:8/3;min-height:340px;max-height:760px;overflow:hidden;touch-action:pan-y pinch-zoom;position:relative;outline-offset:-4px;}
.hero-carousel-track{height:100%;width:100%;display:flex;transition:transform .32s ease;will-change:transform;}
.hero-carousel-slide{flex:0 0 100%;width:100%;height:100%;min-width:0;overflow:hidden;box-sizing:border-box;}
.hero-carousel-artwork{display:block;}
.hero-carousel .hero-carousel-image{width:100%;height:100%;min-width:0;min-height:0;display:block;background:var(--cream,#f5f0e5);}
.hero-carousel-image picture{display:block;width:100%;height:100%;}
.hero-carousel-image img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;}
.hero-carousel-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;}
.hero-carousel-copy{padding:clamp(22px,4vw,70px);padding-left:max(24px,calc((100vw - 1320px)/2));overflow:auto;align-self:center;max-height:100%;box-sizing:border-box;}
.hero-carousel-copy h1{font-family:var(--serif,serif);font-size:clamp(28px,3.6vw,62px);line-height:1.3;margin:14px 0 16px;white-space:pre-line;overflow-wrap:anywhere;}
.hero-carousel-copy p{font-size:clamp(14px,1.25vw,18px);line-height:1.85;color:var(--muted,#726858);margin:0 0 18px;white-space:pre-line;overflow-wrap:anywhere;}
.hero-carousel-copy .btn{margin-top:0;max-width:100%;min-width:0;white-space:normal;text-align:center;}
.hero-carousel-copy .btn svg{width:20px;height:20px;flex:0 0 20px;}
.hero-carousel-copy .eyebrow{font-size:11px;letter-spacing:.17em;overflow-wrap:anywhere;}
.carousel-art{position:relative;height:100%;display:grid;place-items:center;}
.carousel-art svg{max-width:100%;max-height:100%;}
.carousel-art small{position:absolute;bottom:14px;right:16px;font-size:10px;background:#fff9;padding:3px 8px;}
.hero-carousel-controls{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;padding:7px 16px;background:#fffcf7;border-top:1px solid #e7e1d7;box-sizing:border-box;}
.hero-carousel .hero-rotation{position:absolute;bottom:10px;left:max(16px,calc((100vw - 1320px)/2));z-index:3;display:flex;align-items:center;justify-content:center;gap:7px;font-family:inherit;font-size:12px;font-weight:600;min-height:44px;padding:8px 14px;background:#fffdf9;color:#41372c;border:1px solid #dad1c4;border-radius:24px;cursor:pointer;}
.hero-carousel-arrow{display:grid;place-items:center;min-width:44px;width:44px;height:44px;border-radius:50%;border:1px solid #ded6c9;background:#fffdf9;color:#493b2c;cursor:pointer;}
.hero-carousel-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;}
.hero-carousel-dots{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;}
.hero-carousel-dot{border:0;background:none;color:#817666;min-width:30px;width:30px;min-height:44px;padding:0;display:grid;place-items:center;cursor:pointer;}
.hero-carousel-dot span{width:7px;height:7px;border-radius:50%;background:#b4aa9c;transition:width .2s ease;}
.hero-carousel-dot[aria-current=true] span{width:20px;border-radius:10px;background:var(--red,#b62630);}
.hero-carousel-count{position:absolute;right:max(20px,calc((100vw - 1320px)/2));color:#796c5b;font-size:12px;letter-spacing:.1em;}
.hero-carousel button:focus-visible,.hero-carousel a:focus-visible,.hero-carousel-viewport:focus-visible{outline:3px solid var(--red,#b62630);outline-offset:3px;}
.hero-carousel-viewport:focus-visible{outline-offset:-4px;}
.hero-carousel .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;}
/* Admin: list, upload pairs and same fixed canvas in mini previews. */
.hero-editor-settings{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#faf7f1;padding:16px;border-radius:12px;margin-bottom:20px;}
.hero-editor-settings .field{margin:0;min-width:150px;}
.hero-editor-settings .check-label{margin:0;}
.hero-editor-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 16px;}
.hero-editor-row{border:1px solid #e4ddd3;border-radius:12px;padding:9px;display:flex;align-items:center;gap:8px;min-width:0;background:white;}
.hero-editor-row.is-selected{border-color:var(--red,#b62630);box-shadow:0 0 0 1px var(--red,#b62630);background:#fff9f7;}
.hero-editor-row.is-off{opacity:.72;}
.hero-editor-select{display:flex;align-items:center;text-align:left;min-width:0;flex:1;gap:12px;padding:0;background:transparent;border:0;cursor:pointer;color:inherit;font-family:inherit;}
.hero-editor-select img,.hero-editor-thumb{width:74px;height:46px;object-fit:contain;border-radius:6px;flex-shrink:0;background:#f4f0e6;}
.hero-editor-thumb{display:grid;place-items:center;font-size:18px;color:#c0aa8d;}
.hero-editor-select strong{font-size:14px;display:block;overflow-wrap:anywhere;}
.hero-editor-select small{display:block;font-size:11px;margin-top:4px;color:#817666;}
.hero-editor-tools{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.hero-editor-tools .icon-btn{min-height:36px;min-width:34px;width:34px;height:36px;}
.hero-editor-panel{border-top:1px solid #e6dfd4;margin-top:20px;padding-top:20px;}
.hero-editor-panel .hero-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px;}
.hero-editor-panel .hero-editor-heading h3{margin:0;font-size:17px;}
.hero-editor-panel .field input,.hero-editor-panel .field textarea,.hero-editor-panel .field select{max-width:100%;}
.hero-editor-panel details[open]{margin-top:15px;}
.hero-editor-empty-note{font-size:13px;line-height:1.8;color:#8a622a;background:#fff7e7;padding:12px 16px;border-radius:10px;margin-bottom:18px;}
.hero-editor-add{width:100%;border-style:dashed!important;}
.hero-preview-label{padding:12px 16px 0;color:#8b7660;font-size:11px;}
.mini-site .mini-carousel-stage{aspect-ratio:8/3;width:100%;overflow:hidden;background:#f5f0e5;}
.preview-browser.mobile .mini-carousel-stage{aspect-ratio:4/5;}
.mini-carousel-stage>img{width:100%;height:100%;display:block;object-fit:contain;}
.mini-carousel-stage .mini-hero{height:100%;padding:16px;box-sizing:border-box;overflow:hidden;}
.mini-carousel-stage .mini-hero h3{font-size:18px;margin:5px 0;}
.mini-carousel-stage .mini-hero p{font-size:9px;line-height:1.5;margin:5px 0;}
.preview-browser.mobile .mini-carousel-stage .mini-hero{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:10px;}
.mini-carousel-stage .mini-art{height:100%;min-height:0;}
.mini-carousel-stage .mini-art img,.mini-carousel-stage .mini-art svg{height:100%;max-width:100%;object-fit:contain;}
.hero-mini-dots{text-align:center;font-size:10px;color:#8e7a65;padding:8px;background:#fffdf9;letter-spacing:4px;}
@media(max-width:680px){
 .hero-carousel-viewport{aspect-ratio:4/5;min-height:440px;max-height:850px;}
 .hero-carousel-photo{grid-template-columns:1fr;grid-template-rows:minmax(0,48%) minmax(0,52%);}
 .hero-carousel-copy{padding:22px 26px;align-self:stretch;}
 .hero-carousel-copy h1{font-size:clamp(26px,7vw,36px);margin:7px 0 10px;line-height:1.25;}
 .hero-carousel-copy p{font-size:13px;line-height:1.6;margin:0 0 12px;}
 .hero-carousel-copy .btn{padding:10px 14px;font-size:13px;min-height:42px;}
 .hero-carousel-controls{min-height:108px;padding:5px 12px 51px;gap:4px;}
 .hero-carousel .hero-rotation{bottom:9px;left:16px;min-height:44px;font-size:11px;padding:6px 12px;}
 .hero-carousel-count{bottom:21px;right:20px;}
 .hero-carousel-dots{max-width:calc(100% - 96px);}
 .hero-carousel-dot{min-width:26px;width:26px;}
 .hero-editor-select{gap:8px;}
 .hero-editor-select img,.hero-editor-thumb{width:50px;height:42px;}
 .hero-editor-select strong{font-size:12px;}
 .hero-editor-tools{gap:2px;}
 .hero-editor-tools .icon-btn{min-width:30px;width:30px;}
}
@media(prefers-reduced-motion:reduce){.hero-carousel-track,.hero-carousel-dot span{transition:none!important;}}
