.home-banner-gallery{min-width:0;max-width:100%;min-height:0;isolation:isolate}
.home-banner-gallery .home-banner-items{min-width:0;box-sizing:border-box}
.home-banner-gallery.mode-slider .home-banner-items{position:absolute;inset:0;display:flex;direction:ltr;transition:transform .5s ease}
.home-banner-gallery .home-banner-item{position:relative;min-width:0;overflow:hidden;box-sizing:border-box;direction:rtl}
.home-banner-gallery.mode-slider .home-banner-item{flex:0 0 100%;height:100%}
.home-banner-gallery.mode-fade .home-banner-items{position:absolute;inset:0;display:grid}
.home-banner-gallery.mode-fade .home-banner-item{grid-area:1/1;opacity:0;pointer-events:none;transition:opacity .6s ease}
.home-banner-gallery.mode-fade .home-banner-item.is-active{opacity:1;pointer-events:auto;z-index:1}
.shop-slider.home-banner-gallery.mode-grid,.shop-slider.home-banner-gallery.mode-stack{height:auto;aspect-ratio:auto;overflow:visible;background:transparent}
.home-banner-gallery.mode-grid .home-banner-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-banner-gallery.mode-stack .home-banner-items{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.home-banner-gallery:is(.mode-grid,.mode-stack) .home-banner-item{height:var(--banner-height,auto);aspect-ratio:var(--banner-ratio,100 / 40);min-height:120px;background:var(--banner-bg);border-radius:12px}
.home-banner-gallery .hero-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.home-banner-gallery .hero-code-content{width:100%;height:100%;min-width:0;overflow:hidden}
.hero-image-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;direction:rtl;padding:clamp(12px,3vw,40px);pointer-events:none}
.hero-image-overlay[data-horizontal="center"]{justify-content:center}
.hero-image-overlay[data-horizontal="left"]{justify-content:flex-end}
.hero-image-overlay[data-vertical="top"]{align-items:flex-start}
.hero-image-overlay[data-vertical="bottom"]{align-items:flex-end}
.hero-image-copy{width:max-content;max-width:min(520px,100%);min-width:0;color:var(--banner-text);pointer-events:auto;text-align:right;overflow-wrap:anywhere;text-shadow:0 1px 5px #0006}
.hero-image-copy[data-align="center"]{text-align:center}
.hero-image-copy[data-align="left"]{text-align:left}
.hero-image-copy h1,.hero-image-copy h2{margin:0 0 10px;font-size:clamp(18px,3vw,36px);line-height:1.6;color:inherit}
.hero-image-copy p{margin:0 0 14px;line-height:1.8;font-size:clamp(12px,1.4vw,17px);white-space:pre-line}
.hero-gallery-controls{position:absolute;z-index:4;bottom:12px;inset-inline-end:12px;display:flex;direction:ltr;gap:5px}
.hero-gallery-controls button{position:relative;display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;border:1px solid #ffffff65;border-radius:50%;background:#ffffffb8;color:#163c37;padding:5px;font:inherit;cursor:pointer;box-shadow:0 1px 5px #0002;backdrop-filter:blur(5px)}
.hero-gallery-controls button::after{content:"";position:absolute;inset:-8px}
.hero-gallery-controls svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hero-gallery-controls [hidden]{display:none}
.hero-gallery-dots{position:absolute;z-index:4;bottom:17px;left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:calc(100% - 32px);overflow:auto;scrollbar-width:none;padding:3px}
.home-banner-gallery:has(.hero-gallery-controls) .hero-gallery-dots{max-width:calc(100% - 220px)}
.hero-gallery-dots::-webkit-scrollbar{display:none}
.hero-gallery-dots button{flex:0 0 8px;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#0005;cursor:pointer;padding:0}
.hero-gallery-dots button[aria-current="true"]{background:var(--banner-accent,#fff)}
@media(max-width:359px){.home-banner-gallery.mode-grid .home-banner-items{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.home-banner-gallery .home-banner-items,.home-banner-gallery .home-banner-item{transition:none!important}}

.shop-slider.home-banner-gallery{max-width:100%}
.home-banner-gallery[data-image-fit="cover"] .hero-image{object-fit:cover}
@media(min-width:1024px){.hero-gallery-controls button{width:32px;height:32px;padding:7px}.hero-gallery-controls svg{width:16px;height:16px}.home-banner-gallery.mode-grid .home-banner-items{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}
