/* 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; will-change: transform; }
.hero-slide { flex: 0 0 100%; position: relative; width: 100%; height: 100%; overflow: hidden; box-sizing: border-box; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
/* hero-slider.css — 2026-06-17: Ken Burns zoom on active image slides */
.hero-slider--image-zoom .hero-slide--image { overflow: hidden; }
.hero-slider--image-zoom .hero-slide--image > img { transform-origin: center center; will-change: transform; }
.hero-slider--image-zoom .hero-slide--image.hero-slide-zoom-in > img { animation: hero-slide-kenburns-in var(--hero-zoom-duration, 5s) ease-out forwards; }
.hero-slider--image-zoom .hero-slide--image.hero-slide-zoom-out > img { animation: hero-slide-kenburns-out var(--hero-zoom-duration, 5s) ease-out forwards; }
.hero-slider--image-zoom .hero-slide--image.hero-slide-zoom-in-out > img { animation: hero-slide-kenburns-in-out var(--hero-zoom-duration, 5s) ease-in-out forwards; }
@keyframes hero-slide-kenburns-in { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes hero-slide-kenburns-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hero-slide-kenburns-in-out { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slider--image-zoom .hero-slide--image > img { animation: none !important; transform: none !important; }
}
/* hero-slider.css — 2026-06-17: video slides in carousel */
.hero-slide-media--video { width: 100%; height: 100%; }
.hero-slide-media--video .hero-slide-player { width: 100%; height: 100%; }
.hero-slide-media--video .scp-player { width: 100%; height: 100%; border-radius: 0; }
.hero-slide-media--video .scp-player-stage { height: 100%; }
.hero-slide--video .scp-player-video { object-fit: cover; object-position: center center; }
/* hero-slider.css — 2026-06-17: main visual video — fill block width/height, cover + center crop */
.grid-widget.is-hero.has-hero-slider .hero-slide--video { overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .hero-slide-player { flex: 1 1 auto; display: flex; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; border-radius: 0; aspect-ratio: unset; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--landscape,
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--portrait { aspect-ratio: unset; max-width: none; margin: 0; height: 100%; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-media { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-media video,
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-media .scp-player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transform: none; display: block; background: #000; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-media > div { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--landscape .scp-player-media iframe,
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--landscape .scp-player-media .video-embed-iframe { position: absolute; top: 50%; left: 50%; width: auto !important; height: auto !important; min-width: 100%; min-height: 100%; max-width: none !important; max-height: none !important; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--portrait .scp-player-media iframe,
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player--portrait .scp-player-media .video-embed-iframe { position: absolute; top: 50%; left: 50%; width: auto !important; height: auto !important; min-width: 100%; min-height: 100%; max-width: none !important; max-height: none !important; aspect-ratio: 9 / 16; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player.is-embed-fallback .scp-player-media iframe,
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player.is-embed-fallback .scp-player-media .video-embed-iframe { pointer-events: auto; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-poster { position: absolute; inset: 0; overflow: hidden; }
.grid-widget.is-hero.has-hero-slider .hero-slide-media--video .scp-player-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.grid-widget.is-hero.has-hero-slider .hero-slide--video img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-slide-video-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-size: 2.5rem; background: #0f172a; }
.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); }
/* hero-slider.css — 2026-06-17: autoplay pause/resume control + position */
.hero-slider-autoplay-ctrl { position: absolute; z-index: 3; display: flex; pointer-events: auto; }
.hero-slider-autoplay-ctrl--top-left { top: 10px; left: 10px; }
.hero-slider-autoplay-ctrl--top-right { top: 10px; right: 10px; }
.hero-slider-autoplay-ctrl--bottom-left { bottom: 10px; left: 10px; }
.hero-slider-autoplay-ctrl--bottom-center { bottom: 42px; left: 50%; transform: translateX(-50%); }
.hero-slider-autoplay-ctrl--bottom-right { bottom: 10px; right: 10px; }
.hero-slider-autoplay-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: rgba(15, 23, 42, 0.55); color: #fff; cursor: pointer; line-height: 1; transition: background 0.15s; }
.hero-slider-autoplay-btn:hover { background: rgba(15, 23, 42, 0.8); }
.hero-slider-autoplay-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-slider-autoplay-btn i { font-size: 0.85rem; }
.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; }
/* 2026-06-17: slide swipe — match hero flex fill; avoid min-height:0 collapse on track/viewport */
.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 0; align-self: stretch; width: 100%; min-height: 0; overflow: hidden; }
/* hero-slider.css — 2026-06-17: full-width slide swipe fills block / viewport width */
.grid-widget.is-slide-swipe.is-widget-full-width.has-slide-swipe-slider { width: 100%; max-width: 100%; }
.grid-widget.is-slide-swipe.is-widget-full-width.has-slide-swipe-slider .hero-slider { border-radius: 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 */
/* 2026-06-26: is-widget-full-width — all block types (text, image, video, map, etc.) */
.site-body:has(.is-hero-full-width),
.site-body:has(.is-widget-full-width) { overflow-x: clip; }
.site-main:has(.is-hero-full-width),
.site-main:has(.is-widget-full-width),
.page-shell:has(.is-hero-full-width),
.page-shell:has(.is-widget-full-width),
.responsive-grid.page-grid:has(.is-hero-full-width),
.responsive-grid.page-grid:has(.is-widget-full-width) { overflow-x: visible; }
.page-grid .grid-widget.is-hero.is-hero-full-width,
.page-grid .grid-widget.is-widget-full-width,
.responsive-grid.page-grid .grid-widget.is-hero.is-hero-full-width,
.responsive-grid.page-grid .grid-widget.is-widget-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),
.site-main:has(.page-grid > .is-widget-full-width:first-child) { padding-top: 0; }
.page-shell:has(.page-grid > .is-hero-full-width:first-child),
.page-shell:has(.page-grid > .is-widget-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,
.page-shell:has(.page-grid > .is-widget-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),
.responsive-grid.page-grid:has(> .is-widget-full-width:first-child) { margin-top: 0; }
.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child,
.page-grid > .grid-widget.is-widget-full-width:first-child,
.responsive-grid.page-grid > .grid-widget.is-hero.is-hero-full-width:first-child,
.responsive-grid.page-grid > .grid-widget.is-widget-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; }
.page-grid > .grid-widget.is-slide-swipe.is-widget-full-width:first-child .hero-slider,
.responsive-grid.page-grid > .grid-widget.is-slide-swipe.is-widget-full-width:first-child .hero-slider { border-top-left-radius: 0; border-top-right-radius: 0; }
.page-grid > .grid-widget.is-widget-full-width:first-child.is-no-radius,
.responsive-grid.page-grid > .grid-widget.is-widget-full-width:first-child.is-no-radius { 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; } }
