/* ez-hero-slider v0.2 — the picture layer and its controls. Only .ezhs-* classes; the host gets .ezhs-host while a picture is shown. */
.ezhs-host{position:relative;isolation:isolate}
.ezhs-host>:not(.ezhs-layer){position:relative;z-index:1}
.ezhs-layer{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.ezhs-slide{position:absolute;inset:-2%;background-size:cover;background-repeat:no-repeat;opacity:0;transition:opacity 1.4s ease;will-change:opacity,transform}
.ezhs-slide.ezhs-on{opacity:var(--ezhs-op,1)}
.ezhs-slide.ezhs-kb{animation:ezhs-kb var(--ezhs-dur,8s) ease-in-out forwards}
.ezhs-slide.ezhs-rev.ezhs-kb{animation-name:ezhs-kb-rev}
@keyframes ezhs-kb{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(var(--ezhs-kb,1.06)) translate3d(-1.5%,-1%,0)}}
@keyframes ezhs-kb-rev{from{transform:scale(var(--ezhs-kb,1.06)) translate3d(-1.5%,0,0)}to{transform:scale(1) translate3d(0,-1%,0)}}
.ezhs-wash{position:absolute;inset:0}
@media (prefers-reduced-motion:reduce){.ezhs-slide.ezhs-kb{animation:none}.ezhs-slide{transition:opacity .8s linear}}

/* controls (drawn into the mount, or into its own drawer) */
.ezhs-row{margin:8px 0}
.ezhs-row label{display:block;font-size:13px}
.ezhs-row input[type=range]{display:block;width:100%;margin-top:4px}
.ezhs-v{float:right}
.ezhs-kbrow{font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ezhs-pill{border:1px solid #d8d5e2;border-radius:999px;padding:4px 10px;cursor:pointer}
.ezhs-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.ezhs-pick{position:relative;display:block;border:1.5px solid #e7e5ee;border-radius:10px;padding:6px;cursor:pointer;font-size:12px;line-height:1.3;background:#fff}
.ezhs-pick.ezhs-picked{border-color:#14141f;background:#f6f5fa}
.ezhs-pick input{position:absolute;top:10px;left:10px;width:18px;height:18px;margin:0}
.ezhs-pick img{display:block;width:100%;height:64px;object-fit:cover;border-radius:6px}
.ezhs-pick span{display:block;margin-top:5px}
.ezhs-pick small{display:block;color:#5c5c6e;font-size:11.5px;margin-top:2px}
.ezhs-n{position:absolute;top:8px;right:10px;min-width:22px;height:22px;border-radius:11px;background:#14141f;color:#fff;font:700 12px/22px system-ui,sans-serif;text-align:center;font-style:normal}
.ezhs-warnbox{background:#fff6db;border:1px solid #f0d27a;border-radius:10px;padding:8px 10px;margin:8px 0;font-size:13px}
.ezhs-warnbox span{color:#5c5c6e}
.ezhs-ok{color:#12a150;font-size:13px;margin:8px 0}
.ezhs-note{font-size:12.5px;color:#5c5c6e;margin:6px 0}
.ezhs-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ezhs-b{border:1px solid #d8d5e2;background:#fff;border-radius:999px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.ezhs-b.ezhs-dark{background:#14141f;color:#fff;border-color:#14141f}
.ezhs-out{width:100%;height:120px;font:12px ui-monospace,Menlo,Consolas,monospace;border:1px solid #d8d5e2;border-radius:9px;padding:8px;margin-top:6px}
.ezhs-open{position:fixed;left:14px;bottom:66px;z-index:50;min-height:44px;padding:0 16px;border-radius:999px;border:0;background:#14141f;color:#fff;font:600 14px/1 system-ui,sans-serif;cursor:pointer}
.ezhs-drawer{position:fixed;left:12px;right:12px;bottom:118px;z-index:60;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);padding:14px;max-height:65vh;overflow:auto;font:14px/1.4 system-ui,sans-serif}
@media (min-width:760px){.ezhs-drawer{right:auto;width:420px}}

/* defence: a host page's label/input rules (e.g. a switches panel) must not restyle these controls */
.ezhs-box label{display:block!important;grid-template-columns:none!important;margin:0!important;cursor:pointer}
.ezhs-box .ezhs-row label{border:0!important;padding:0!important;background:none!important}
.ezhs-box .ezhs-row label.ezhs-pill{display:inline-flex!important;align-items:center;gap:4px;border:1px solid #d8d5e2!important;border-radius:999px!important;padding:4px 10px!important;background:#fff!important}
.ezhs-box .ezhs-pick{border:1.5px solid #e7e5ee!important;border-radius:10px!important;padding:6px!important;background:#fff!important}
.ezhs-box .ezhs-pick.ezhs-picked{border-color:#14141f!important;background:#f6f5fa!important}
.ezhs-box input[type=range]{display:block!important;width:100%!important;height:auto!important;margin:4px 0 0!important}
.ezhs-box input[type=radio]{width:auto!important;height:auto!important;margin:0!important}
.ezhs-box .ezhs-pick input{position:absolute!important;top:10px;left:10px;width:18px!important;height:18px!important;margin:0!important}

/* v0.2: the soft text backing (sized and faded per picture by the script) */
.ezhs-scrim{position:absolute;border-radius:28px;filter:blur(14px);transition:opacity .9s ease;pointer-events:none}
@media (prefers-reduced-motion:reduce){.ezhs-scrim{transition:none}}
