/* Preserve the existing first cover's dimensions; the second occupies its frame. */
.hero-carousel{position:relative;max-width:1220px;margin:24px auto 0;isolation:isolate;padding-bottom:52px}
.hero .hero-carousel .hero-content.hero-layered{margin:0;width:100%;max-width:none}
.hero-carousel-slide{opacity:0;visibility:hidden;transition:opacity .65s ease,visibility .65s;pointer-events:none}
.hero-carousel-slide.is-current{opacity:1;visibility:visible;pointer-events:auto}
.hero-carousel-extra{position:absolute;inset:0 0 52px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#00272b;border:1px solid #00c6ce66;border-radius:18px;overflow:hidden}
.hero-carousel-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hero-carousel-photo[hidden]{display:none}
.hero-carousel-add{position:relative;display:flex;align-items:center;flex-direction:column;gap:14px;border:1px dashed #00c6ce;background:#003a40;color:#fff;border-radius:18px;padding:26px;cursor:pointer;font:inherit}
.hero-carousel-add span{font-size:54px;font-weight:300;line-height:1}
.has-image .hero-carousel-add{position:absolute;right:16px;top:16px;padding:10px;background:#003a40e6}
.has-image .hero-carousel-add span{font-size:28px}.has-image .hero-carousel-add strong{display:none}
.hero-carousel-status{position:relative;color:#fff;background:#00272be6;max-width:90%;text-align:center;border-radius:8px;font-size:14px}.hero-carousel-status:empty{display:none}
.hero-carousel-controls{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:center;gap:8px}
.hero-carousel-controls button{display:grid;place-items:center;width:32px;min-width:32px;height:38px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer}.hero-carousel-controls button::before{content:"";width:8px;height:8px;border-radius:50%;background:#00c6ce77;transition:transform .3s,background .3s}
.hero-carousel-controls button[aria-pressed=true]{background:transparent}.hero-carousel-controls button[aria-pressed=true]::before{background:#00c6ce;transform:scale(1.65)}
@media(prefers-reduced-motion:reduce){.hero-carousel-slide{transition:none}}

.hero-carousel{touch-action:pan-y pinch-zoom;cursor:grab}.hero-carousel.is-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}.hero-carousel img{-webkit-user-drag:none}.hero-carousel-controls button:focus-visible{outline:2px solid #fff;outline-offset:0;border-radius:50%}

.hero-carousel-controls .hero-pause{margin-left:8px;color:#00c6ce;font-size:18px;border:1px solid #00c6ce66;border-radius:9px}.hero-carousel-controls .hero-pause::before{display:none}
.hero-edit{display:none;position:absolute;left:16px;top:16px;border:1px solid #00c6ce;background:#003a40ed;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer;z-index:2}.has-image .hero-edit{display:block}
.hero-carousel-extra.is-editing{touch-action:none;cursor:move}.is-editing .hero-edit,.is-editing .hero-carousel-add,.is-editing .hero-carousel-status{display:none}
.hero-frame-editor{position:absolute;bottom:12px;left:12px;right:12px;max-width:440px;margin:auto;padding:14px;background:#00272bf2;border:1px solid #00c6ce88;border-radius:14px;color:#fff;display:grid;gap:8px;z-index:5;cursor:default;box-shadow:0 8px 24px #0006}
.hero-frame-editor>span{font-size:12px;color:#c3dfe2}.hero-frame-editor label{display:flex;align-items:center;gap:10px}.hero-frame-editor input{min-width:0;flex:1;accent-color:#00c6ce}.hero-frame-editor output{font-size:13px;min-width:42px}.hero-frame-editor>div{display:flex;gap:8px;flex-wrap:wrap}.hero-frame-editor button{flex:1;border:1px solid #00c6ce66;border-radius:8px;background:#00434a;color:#fff;padding:10px;cursor:pointer}.hero-frame-editor [data-save]{background:#00828b}.hero-frame-editor p{margin:0;font-size:13px}.hero-frame-editor p:empty{display:none}

.hero-carousel-controls .hero-pause{border:0;background:transparent;box-shadow:none;border-radius:0}
.hero-image-tools{display:none;position:absolute;top:16px;left:16px;align-items:center;gap:8px;z-index:3}.has-image .hero-image-tools{display:flex}.hero-image-tools .hero-edit{position:static}.hero-delete{display:grid;place-items:center;width:38px;height:38px;border:1px solid #00c6ce88;border-radius:10px;background:#003a40ed;color:#fff;cursor:pointer}.is-editing .hero-image-tools{display:none}.hero-frame-editor [data-replace]{width:100%;color:#fff}

.hero-drop-hint{display:none;position:absolute;inset:8px;z-index:20;border:2px dashed #00d9df;border-radius:14px;background:#003b42d9;color:white;align-items:center;justify-content:center;font-weight:700;pointer-events:none}.is-file-over .hero-drop-hint{display:flex}.is-editing .hero-carousel-status:not(:empty){display:block;position:absolute;top:12px;left:12px;right:12px;margin:auto;padding:8px;z-index:6;pointer-events:none}

/* The vignette belongs to the frame, so image panning and zoom never move it. */
.hero-carousel-extra.has-image{border-color:transparent;background:#001b1e;isolation:isolate}
.hero-carousel-extra.has-image::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;background:linear-gradient(to right,#001b1e 0%,#001b1e70 4%,transparent 14%,transparent 86%,#001b1e70 96%,#001b1e 100%),linear-gradient(to bottom,#001b1e 0%,#001b1e70 4%,transparent 14%,transparent 82%,#001b1e80 94%,#001b1e 100%)}
.hero-carousel-extra .hero-carousel-add,.hero-carousel-extra .hero-carousel-status{z-index:2}

/* Transparent, frame-aligned edges reveal the actual page artwork. */
.hero-carousel-extra.has-image{background:transparent;border-color:transparent}.hero-carousel-extra.has-image::after{display:none}
.hero-photo-frame{position:absolute;inset:0;overflow:hidden;pointer-events:none;mask-image:linear-gradient(to right,rgba(0,0,0,var(--hero-fade-edge,0)),#000 var(--hero-fade-width,16%),#000 calc(100% - var(--hero-fade-width,16%)),rgba(0,0,0,var(--hero-fade-edge,0))),linear-gradient(to bottom,rgba(0,0,0,var(--hero-fade-edge,0)),#000 var(--hero-fade-width,16%),#000 calc(100% - var(--hero-fade-width,16%)),rgba(0,0,0,var(--hero-fade-edge,0)));mask-composite:intersect;-webkit-mask-composite:source-in}
.hero-custom-action{position:absolute;z-index:2;display:block;max-width:90%;padding:12px 18px;background:#00838b;color:#fff!important;text-decoration:none;font-weight:700;border:1px solid #00c6ce;border-radius:10px;box-sizing:border-box}.hero-custom-action[hidden]{display:none}.is-editing .hero-custom-action{cursor:move;touch-action:none;outline:1px dashed #fff;user-select:none}
.hero-frame-editor{max-height:calc(100% - 24px);overflow:auto;box-sizing:border-box}.hero-frame-editor .hero-action-options label{font-size:13px}.hero-frame-editor .hero-action-options input{flex:none;width:18px;height:18px}.hero-frame-editor .hero-editor-reopen{display:none}.hero-frame-editor.is-collapsed{width:max-content;max-width:90%;padding:6px}.hero-frame-editor.is-collapsed>*{display:none}.hero-frame-editor.is-collapsed .hero-editor-reopen{display:block}

/* Compact editing strip, with every control on the same bottom row. */
.hero-frame-editor{left:6px;right:6px;bottom:6px;max-width:none;max-height:64px;margin:0;display:flex;flex-flow:row nowrap;align-items:center;gap:8px;padding:8px;border-radius:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap;font-size:11px}
.hero-frame-editor>label{flex:1 1 155px;min-width:120px;gap:5px}.hero-frame-editor input[type=range]{width:55px;min-width:35px}.hero-frame-editor output{font-size:10px;min-width:28px}.hero-frame-editor>div{flex:0 0 auto;flex-wrap:nowrap;gap:4px}.hero-frame-editor .hero-action-options{gap:6px}.hero-frame-editor .hero-action-options label{font-size:10px;gap:3px}.hero-frame-editor .hero-action-options input{width:14px;height:14px;margin:0}.hero-frame-editor button,.hero-frame-editor [data-replace]{flex:0 0 30px;width:30px;min-width:30px;height:32px;padding:0;font-size:19px;color:#fff}.hero-frame-editor p{flex:0 0 auto;font-size:11px}.hero-frame-editor.is-drag-hidden{visibility:hidden;pointer-events:none}.hero-frame-editor.is-collapsed .hero-editor-reopen{width:auto;padding:0 10px;font-size:12px}.hero-frame-editor.is-collapsed{margin:auto}
.hero-custom-action{background:#00c6ce;color:#fff!important;border:0;border-radius:5px;padding:20px 28px;font-family:Arial,sans-serif;font-size:18px;font-weight:700;line-height:1.2;text-align:center;box-shadow:5px 6px 0 #003a40;text-decoration:none}.hero-custom-action:hover{background:#00d3db;color:#fff!important}
@media(max-width:720px){.hero-custom-action{font-size:12px;padding:15px 18px}.hero-frame-editor{gap:6px;padding:6px}.hero-frame-editor>label{min-width:110px}}

html body .hero-carousel .hero-custom-action,html body .hero-carousel .hero-custom-action:is(:link,:visited,:hover,:focus,:active){color:#fff!important;-webkit-text-fill-color:#fff;opacity:1}

.hero-frame-editor button:disabled{opacity:.35;cursor:default}

html body .hero-carousel .hero-custom-action,html body .hero-carousel .hero-custom-action:is(:link,:visited,:hover,:focus,:active){color:#000!important;-webkit-text-fill-color:#000;box-shadow:none}
.hero-frame-editor [data-save]{display:grid;place-items:center;background:#00434a;color:#fff!important;-webkit-text-fill-color:#fff;border:1px solid #00c6ce66}.hero-frame-editor [data-save] svg{width:18px;height:18px;display:block}

.hero-frame-editor [data-rotate]{display:grid;place-items:center}.hero-frame-editor [data-rotate] svg{display:block;width:18px;height:18px}

html body .hero-carousel .hero-custom-action,html body .hero-carousel .hero-custom-action:is(:link,:visited,:hover,:focus,:active){font-family:'DM Sans',Arial,sans-serif;font-weight:700;font-size:1rem;line-height:1.5;padding:15px 23px;border-radius:4px;box-shadow:5px 5px 0 #123538}
@media(max-width:720px){html body .hero-carousel .hero-custom-action,html body .hero-carousel .hero-custom-action:is(:link,:visited,:hover,:focus,:active){font-size:11px;padding:12px 10px;min-width:98px;min-height:44px}}

.hero-frame-editor .hero-device-options button{width:auto;flex:0 0 auto;min-width:38px;padding:0 7px;font-size:11px}.hero-frame-editor .hero-device-options button[aria-pressed=true]{background:#00c6ce;color:#001b20;border-color:#00c6ce}

.hero-right-pane[hidden],.hero-right-add[hidden]{display:none}.hero-split>.hero-photo-frame{width:50%;right:auto;pointer-events:auto}.hero-split>.hero-right-pane{left:50%;right:0}.hero-right-add{position:absolute;left:55%;top:40%;width:40%;z-index:3;border:1px dashed #00c6ce;border-radius:12px;background:#003a40d9;color:white;padding:18px;cursor:pointer}.hero-frame-editor [data-split][aria-pressed=true]{background:#00c6ce;color:#001b20}.hero-carousel-extra.is-editing[data-preview-device=mobile]{width:min(100%,375px);left:50%;right:auto;transform:translateX(-50%)}.hero-carousel-extra.is-editing[data-preview-device=pc]{width:100%;left:0;right:0;transform:none}

/* Viewport toolbar and individually editable image spaces. */
.hero-frame-editor.hero-fixed-editor{position:fixed;left:6px;right:6px;bottom:calc(6px + env(safe-area-inset-bottom));width:auto;max-width:none;transform:none;z-index:2147483000;margin:0;box-sizing:border-box;box-shadow:0 4px 20px #0008}
.hero-frame-editor [data-split][aria-pressed]{background:#004950;color:#e9ffff;border:1px solid #008b91}
.hero-split-menu{position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));right:12px;display:flex;flex-wrap:wrap;gap:6px;width:min(380px,calc(100vw - 24px));padding:10px;box-sizing:border-box;background:#00292ef5;border:1px solid #008c94;border-radius:12px;z-index:2147483001;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .2s,transform .2s,visibility .2s;pointer-events:none}
.hero-split-menu.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.hero-split-menu button{flex:1 1 100px;background:#004950;color:#fff;border:1px solid #008b91;border-radius:7px;padding:9px;cursor:pointer}
.hero-carousel-extra.is-editing{overflow:visible}
.hero-carousel-extra>.hero-edit-pane{pointer-events:auto;border-radius:8px;box-sizing:border-box}
.hero-carousel-extra.is-editing>.hero-edit-pane.is-selected{outline:1px solid #43e5e9a6;outline-offset:-2px}
.hero-pane-add{position:absolute;top:45%;z-index:3;padding:14px 6px;background:#003d44;color:white;border:1px dashed #00c9d2;border-radius:10px;cursor:pointer;font:inherit;font-size:12px}
.hero-pane-swap{position:absolute;top:0;transform:translate(-50%,-40%);z-index:5;width:32px;height:30px;display:grid;place-items:center;background:#004950;color:#e8ffff;border:1px solid #00aeb7;border-radius:9px;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 3px 9px #0005}
.hero-pane-swap[hidden],.hero-pane-add[hidden],.hero-edit-pane[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.hero-split-menu{transition:none}}

.hero-pane-selection{position:absolute;top:0;bottom:0;pointer-events:none;z-index:2;border:1px solid #43e5e980;border-radius:8px;box-sizing:border-box}.hero-pane-selection[hidden]{display:none}

.hero-edit-pane{--pane-mask-x:linear-gradient(to right,rgba(0,0,0,var(--fade-left-edge,0)) 0%,#000 var(--fade-left-width,16%),#000 calc(100% - var(--fade-right-width,16%)),rgba(0,0,0,var(--fade-right-edge,0)) 100%);--pane-mask-y:linear-gradient(to bottom,rgba(0,0,0,var(--fade-top-edge,0)) 0%,#000 var(--fade-top-width,16%),#000 calc(100% - var(--fade-bottom-width,16%)),rgba(0,0,0,var(--fade-bottom-edge,0)) 100%);-webkit-mask-image:var(--pane-mask-x),var(--pane-mask-y);mask-image:var(--pane-mask-x),var(--pane-mask-y);-webkit-mask-composite:source-in;mask-composite:intersect}
.hero-frame-editor [data-edge]{background:#004950;color:#fff;border:1px solid #008b91;border-radius:5px;padding:4px;font:inherit;max-width:85px}
.hero-division-directions{display:flex;gap:6px;flex-basis:100%;padding-bottom:6px;border-bottom:1px solid #00767c}
.hero-division-directions button[aria-pressed=true]{border-color:#00e3e7;box-shadow:inset 0 0 0 1px #00e3e7}
/* Keep each control's contents inside its own non-shrinking group. */
.hero-frame-editor.hero-fixed-editor>label{flex:0 0 auto;min-width:max-content;width:auto;gap:6px}
.hero-frame-editor.hero-fixed-editor input[type=range]{flex:0 0 76px;width:76px;min-width:76px;margin:0}
.hero-frame-editor.hero-fixed-editor output{flex:0 0 34px;min-width:34px;text-align:right}
.hero-frame-editor.hero-fixed-editor [data-edge]{flex:0 0 86px;width:86px;max-width:86px;box-sizing:border-box}
.hero-frame-editor.hero-fixed-editor>div{flex-shrink:0}
.hero-frame-editor.hero-fixed-editor{gap:10px;scroll-padding:10px}

.hero-carousel-extra.is-editing .hero-edit-pane,.hero-carousel-extra.is-editing .hero-carousel-photo{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
