/* hero-slider.css — main visual image carousel */
/* 2026-06-10: Home hero swipe slider */
/* 2026-06-10: Widget height sync + configurable transition */
/* 2026-06-10: Drag-positioned overlay with align and colors */
/* 2026-06-10: Edge-to-edge overlay coords (no inset margin) */

.hero-slider { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #0f172a; }
.hero-slider-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.45s ease; }
.hero-slide { flex: 0 0 100%; position: relative; height: 100%; overflow: hidden; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px; font-size: 0.85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.65)); }
.hero-slider-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-slider-overlay-inner { position: absolute; max-width: 100%; margin: 0; padding: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.45); box-sizing: border-box; }
.hero-slider-overlay-inner--align-left { transform: translate(0, -50%); }
.hero-slider-overlay-inner--align-center { transform: translate(-50%, -50%); }
.hero-slider-overlay-inner--align-right { transform: translate(-100%, -50%); }
.hero-slider-title { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; }
.hero-slider-subtitle { margin: 0; font-size: clamp(0.9rem, 2vw, 1.1rem); white-space: pre-line; line-height: 1.55; }
.hero-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(15, 23, 42, 0.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.15s; }
.hero-slider-nav:hover { background: rgba(15, 23, 42, 0.8); }
.hero-slider-prev { left: 10px; }
.hero-slider-next { right: 10px; }
.hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.hero-slider-dot { width: 8px; height: 8px; border: none; border-radius: 50%; padding: 0; background: rgba(255,255,255,0.45); cursor: pointer; }
.hero-slider-dot.is-active { background: #fff; transform: scale(1.15); }
.grid-widget.is-hero.has-hero-slider { padding: 0; border: none; background: transparent; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
.grid-widget.is-hero.has-hero-slider .hero-slider { flex: 1 1 auto; min-height: 0; }
.grid-widget.is-slide-swipe.has-slide-swipe-slider { padding: 0; border: none; background: transparent; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
.grid-widget.is-slide-swipe.has-slide-swipe-slider .hero-slider { flex: 1 1 auto; min-height: 0; }
.grid-widget.is-slide-swipe.is-slide-swipe-no-radius,
.page-grid .grid-widget.is-slide-swipe.is-slide-swipe-no-radius { border-radius: 0; }
.grid-widget.is-slide-swipe.is-slide-swipe-no-radius .hero-slider,
.grid-widget.is-slide-swipe.is-slide-swipe-no-radius .hero-slider-viewport { border-radius: 0; }
.grid-widget-slide-swipe-empty { padding: 24px 16px; text-align: center; color: var(--site-muted, #64748b); background: var(--site-surface, #f8fafc); border-radius: 8px; }
/* 2026-06-11: Hero display options — break out of content column to true viewport width */
.site-body:has(.is-hero-full-width) { overflow-x: clip; }
.site-main:has(.is-hero-full-width),
.page-shell:has(.is-hero-full-width),
.responsive-grid.page-grid:has(.is-hero-full-width) { overflow-x: visible; }
.page-grid .grid-widget.is-hero.is-hero-full-width,
.responsive-grid .grid-widget.is-hero.is-hero-full-width,
.page-preview-grid .grid-widget.is-hero.is-hero-full-width { position: relative; left: 50%; width: 100vw; max-width: 100vw; transform: translateX(-50%); grid-column: 1 / -1 !important; box-sizing: border-box; }
/* 2026-06-11: Full-width hero as first block — flush under site header (no top gap) */
.site-main:has(.page-grid > .is-hero-full-width:first-child) { padding-top: 0; }
.page-shell:has(.page-grid > .is-hero-full-width:first-child) { padding-top: 0; margin-top: 0; }
.page-shell:has(.page-grid > .is-hero-full-width:first-child) .page-hero.page-hero--bar { margin-top: 0; margin-bottom: 0; }
.responsive-grid.page-grid:has(> .is-hero-full-width:first-child) { margin-top: 0; }
.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child,
.responsive-grid.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child { margin-top: 0; }
.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child .hero-slider,
.responsive-grid.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child .hero-slider { border-top-left-radius: 0; border-top-right-radius: 0; }
/* 2026-06-11: no_border_radius — outer grid-widget clip + inner hero surface */
.responsive-grid .grid-widget.is-hero.is-hero-no-radius,
.page-grid .grid-widget.is-hero.is-hero-no-radius { border-radius: 0; }
.grid-widget.is-hero.is-hero-no-radius .hero-slider,
.grid-widget.is-hero.is-hero-no-radius .hero-slider-viewport,
.grid-widget.is-hero.is-hero-no-radius .grid-widget-hero { border-radius: 0; }
@media (max-width: 768px) { .hero-slider-nav { width: 32px; height: 32px; } }
