/* ============================================
   Hero Modes — Multi-Layout Hero System
   Modes: cinematic, slideshow, video, split, minimal, kenburns
   ============================================ */

/* Wrapper — handles fade transitions between modes */
.hero-wrapper {
    position: relative;
    transition: opacity 0.4s ease;
    margin: 0 0 var(--spacing-xl, 24px);
}
.hero-wrapper.transitioning {
    opacity: 0;
}

/* ============================================
   MODE 1: CINEMATIC IMAGE
   Full-bleed dramatic photo with gradient overlay
   ============================================ */
/* Cinematic inherits from .hero base class in style.css — only override what's needed */
.hero-cinematic {
    margin: 0; /* wrapper handles margin */
}

/* ============================================
   MODE 2: IMAGE SLIDESHOW
   Multi-slide carousel with crossfade
   ============================================ */
.hero-slideshow {
    position: relative;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: #1a1a2e;
}

.slideshow-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
}

/* Dark overlay on all slides for text readability */
.hero-slideshow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slideshow .hero-content-wrapper {
    z-index: 2;
}

/* Navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background: white;
    border-color: white;
}

/* ============================================
   MODE 3: VIDEO BACKGROUND
   Autoplay loop with overlay + static fallback
   ============================================ */
.hero-video {
    position: relative;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* When video loads, hide fallback */
.hero-video .hero-video-bg ~ .hero-video-fallback {
    z-index: -1;
}

/* Overlay for text readability */
.hero-video.overlay-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-video.overlay-gradient[data-overlay-dir="tl"]::before {
    background: linear-gradient(135deg, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}
.hero-video.overlay-gradient[data-overlay-dir="tr"]::before {
    background: linear-gradient(225deg, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}
.hero-video.overlay-gradient[data-overlay-dir="bl"]::before {
    background: linear-gradient(45deg, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}
.hero-video.overlay-gradient[data-overlay-dir="br"]::before {
    background: linear-gradient(315deg, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}
.hero-video.overlay-gradient[data-overlay-dir="top"]::before {
    background: linear-gradient(to bottom, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}
.hero-video.overlay-gradient[data-overlay-dir="bottom"]::before {
    background: linear-gradient(to top, var(--hero-overlay-color, rgba(0,0,0,0.6)), transparent var(--hero-overlay-extent, 70%));
}

.hero-video .hero-content-wrapper {
    z-index: 2;
}

/* ============================================
   MODE 4: SPLIT CONTENT
   Two-column: text + value props / image
   ============================================ */
.hero-split {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    background: #fafafa;
    overflow: hidden;
}

.hero-split-left {
    flex: 1;
    padding: 48px 48px 48px 64px;
    max-width: 55%;
}

.hero-split-left .hero-title {
    font-size: var(--hero-title-size, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.hero-split-left .hero-subtitle {
    font-size: var(--hero-subtitle-size, 18px);
    color: #555;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-split-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.hero-split-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 16px;
    color: #333;
}

.hero-split-features li svg {
    flex-shrink: 0;
    color: #27ae60;
}

.hero-split-right {
    flex: 1;
    max-width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero-split-right img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================================
   MODE 5: MINIMAL TYPOGRAPHY
   Bold oversized text, clean background
   ============================================ */
.hero-minimal {
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.hero-minimal-content {
    text-align: center;
    max-width: 800px;
    padding: 48px 32px;
    z-index: 1;
    animation: heroMinimalFadeIn 1s ease-out;
}

.hero-minimal-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    color: #1a1a2e;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-minimal-divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary, #3498db);
    margin: 0 auto 20px;
}

.hero-minimal-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: #666;
    line-height: 1.5;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-minimal .btn-dark {
    background: #1a1a2e;
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-minimal .btn-dark:hover {
    background: #2d2d4a;
}

@keyframes heroMinimalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimal — Video background layer */
.hero-minimal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-minimal-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hide fallback when video is present and loaded */
.hero-minimal-video ~ .hero-minimal-fallback {
    z-index: -1;
}

/* Dark overlay for text readability over video */
.hero-minimal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* Color overrides when video is present */
.hero-minimal.has-video {
    background: #1a1a2e;
}

.hero-minimal.has-video .hero-minimal-content {
    z-index: 2;
}

.hero-minimal.has-video .hero-minimal-title {
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-minimal.has-video .hero-minimal-divider {
    background: white;
}

.hero-minimal.has-video .hero-minimal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-minimal.has-video .btn-dark {
    background: white;
    color: #1a1a2e;
}

.hero-minimal.has-video .btn-dark:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* ============================================
   MODE 6: KEN BURNS — Animated zoom/pan
   Cinematic slow movement on curated images
   ============================================ */
.hero-kenburns {
    position: relative;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: #1a1a2e;
}

.kenburns-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.kenburns-slide {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.kenburns-slide.active {
    opacity: 1;
}

/* 4 different Ken Burns animation variations */
.kenburns-slide.active.kenburns-fx-1 {
    animation: kenburns1 8s ease-in-out forwards;
}
.kenburns-slide.active.kenburns-fx-2 {
    animation: kenburns2 8s ease-in-out forwards;
}
.kenburns-slide.active.kenburns-fx-3 {
    animation: kenburns3 8s ease-in-out forwards;
}
.kenburns-slide.active.kenburns-fx-4 {
    animation: kenburns4 8s ease-in-out forwards;
}

@keyframes kenburns1 {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.15) translate(-2%, -1%); }
}
@keyframes kenburns2 {
    from { transform: scale(1.1) translate(-2%, 0); }
    to   { transform: scale(1) translate(1%, 1%); }
}
@keyframes kenburns3 {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(2%, -2%); }
}
@keyframes kenburns4 {
    from { transform: scale(1.08) translate(1%, 1%); }
    to   { transform: scale(1) translate(-1%, 0); }
}

/* Dark overlay for text readability */
.hero-kenburns::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-kenburns .hero-content-wrapper {
    z-index: 2;
}

/* ============================================
   SHARED — Content wrapper (used by most modes)
   ============================================ */
.hero-cinematic .hero-content-wrapper,
.hero-slideshow .hero-content-wrapper,
.hero-video .hero-content-wrapper,
.hero-kenburns .hero-content-wrapper {
    position: relative;
    display: inline-block;
    text-align: var(--hero-text-align, left);
    max-width: 600px;
    padding: 20px;
    z-index: 2;
    transform: translate(var(--hero-content-x, 0px), var(--hero-content-y, 0px));
}

.hero-cinematic .hero-title,
.hero-slideshow .hero-title,
.hero-video .hero-title,
.hero-kenburns .hero-title {
    font-size: var(--hero-title-size, 36px);
    font-weight: 700;
    margin-bottom: var(--spacing-md, 16px);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cinematic .hero-subtitle,
.hero-slideshow .hero-subtitle,
.hero-video .hero-subtitle,
.hero-kenburns .hero-subtitle {
    font-size: var(--hero-subtitle-size, 18px);
    opacity: 0.95;
    margin-bottom: var(--spacing-xl, 24px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Cinematic overlay — reuse from existing hero system */
.hero-cinematic.overlay-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-cinematic.overlay-gradient[data-overlay-dir="tl"]::before {
    background: linear-gradient(135deg, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-gradient[data-overlay-dir="tr"]::before {
    background: linear-gradient(225deg, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-gradient[data-overlay-dir="bl"]::before {
    background: linear-gradient(45deg, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-gradient[data-overlay-dir="br"]::before {
    background: linear-gradient(315deg, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-gradient[data-overlay-dir="top"]::before {
    background: linear-gradient(to bottom, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-gradient[data-overlay-dir="bottom"]::before {
    background: linear-gradient(to top, var(--hero-overlay-color, rgba(0,0,0,0.7)), transparent var(--hero-overlay-extent, 70%));
}
.hero-cinematic.overlay-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--hero-overlay-color, rgba(0,0,0,0.5));
}

/* ============================================
   CONTAINED MODE — Non-fullscreen banner
   Overrides any mode to a contained, shorter hero
   ============================================ */
.hero-wrapper.hero-contained > section,
.hero-wrapper.hero-contained > .hero-split {
    min-height: 450px !important;
    max-width: var(--container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
}

/* ============================================
   RESPONSIVE — Mobile adaptations
   ============================================ */
@media (max-width: 768px) {
    /* Ken Burns — still full screen on mobile */
    .hero-kenburns {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Split — stack vertically, still full screen */
    .hero-split {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-split-left {
        max-width: 100%;
        padding: 32px 24px;
    }
    .hero-split-right {
        max-width: 100%;
        padding: 0 24px 32px;
    }
    .hero-split-right img {
        max-height: 40vh;
    }

    /* Minimal — full screen on mobile */
    .hero-minimal {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-minimal-content {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero-split-features li {
        font-size: 14px;
    }
    .hero-split-left .hero-title {
        font-size: 28px;
    }
}

/* ============================================
   MODE 7: OVERLAP
   Full-screen video/image — header overlays on top
   ============================================ */
.hero-overlap {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-overlap-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlap-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hide fallback when video loads */
.hero-overlap-video ~ .hero-overlap-bg {
    z-index: -1;
}

/* Dark overlay for text readability */
.hero-overlap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlap .hero-content-wrapper {
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 48px 32px;
}

.hero-overlap .hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-overlap .hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MODE 8: DIAGONAL
   Clip-path split — color block + image
   ============================================ */
.hero-diagonal {
    position: relative;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-diagonal-content {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 48px 64px;
    color: white;
}

.hero-diagonal-content .hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-diagonal-content .hero-subtitle {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 32px;
}

.hero-diagonal-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ============================================
   MODE 9: MOSAIC
   Grid of workspace images with text overlay
   ============================================ */
.hero-mosaic {
    position: relative;
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a2e;
}

.mosaic-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}

.mosaic-tile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for text readability */
.hero-mosaic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.mosaic-content {
    z-index: 2;
    text-align: center;
    color: white;
}

.mosaic-content .hero-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.mosaic-content .hero-subtitle {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ============================================
   MODE 10: GRADIENT
   Bold gradient background, large typography
   ============================================ */
.hero-gradient {
    min-height: calc(100vh - var(--header-h, 0px));
    min-height: calc(100dvh - var(--header-h, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a6b7a 75%, #1a9b8a 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient-content {
    text-align: center;
    max-width: 900px;
    padding: 48px 32px;
    color: white;
    animation: heroMinimalFadeIn 1s ease-out;
}

.hero-gradient-title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-gradient-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-gradient .btn-white {
    background: white;
    color: #1a1a2e;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-gradient .btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE — New layouts mobile adaptations
   ============================================ */
@media (max-width: 768px) {
    /* Overlap — still full screen */
    .hero-overlap {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Diagonal — stack vertically */
    .hero-diagonal {
        flex-direction: column;
    }
    .hero-diagonal-content {
        flex: none;
        padding: 48px 24px;
        min-height: 50vh;
    }
    .hero-diagonal-image {
        position: relative;
        width: 100%;
        height: 50vh;
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }

    /* Mosaic — still full screen */
    .hero-mosaic {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Gradient — still full screen */
    .hero-gradient {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-gradient-content {
        padding: 32px 20px;
    }
}

/* ============================================
   CONFIG SWITCHER — Desk config buttons on hero video
   ============================================ */
.hero-config-switcher {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 320px;
    justify-content: flex-end;
}
.hero-cfg-btn {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}
.hero-cfg-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.hero-cfg-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Dynamically created crossfade videos */
.hero-cfg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-config-switcher {
        bottom: 0.6rem;
        right: 0.6rem;
        max-width: 240px;
    }
    .hero-cfg-btn {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* New layouts — contained mode support */
.hero-wrapper.hero-contained > .hero-overlap,
.hero-wrapper.hero-contained > .hero-diagonal,
.hero-wrapper.hero-contained > .hero-mosaic,
.hero-wrapper.hero-contained > .hero-gradient {
    min-height: 450px !important;
    max-width: var(--container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
}
