/* ==================================================
   CMS Landing — Video Component
   ================================================== */

.landing-video-wrapper {
    width: 100%;
    margin-inline: auto;
}

.landing-video-wrapper--portrait {
    max-width: 420px;
}

.landing-video-wrapper--wide {
    max-width: 960px;
}

.landing-video-player {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #000;
    border-radius: 12px;
}

.landing-video-player--portrait {
    aspect-ratio: 9 / 16;
}

.landing-video-player--landscape {
    aspect-ratio: 16 / 9;
}

.landing-video-player--square {
    aspect-ratio: 1 / 1;
}

.landing-video-player--standard {
    aspect-ratio: 4 / 3;
}

/* ==================================================
   CMS Landing — Carousel Component
   ================================================== */

.landing-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding: 12px 2px 20px;
    -webkit-overflow-scrolling: touch;
}

.landing-carousel-slide {
    flex: 0 0 clamp(240px, 78vw, 360px);
    min-width: 0;
    scroll-snap-align: start;
}

.landing-carousel-card {
    height: 100%;
    overflow: hidden;
}

.landing-carousel-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

/* Optional widescreen image: 16:9 */
.landing-carousel-image--wide {
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

/* Portrait 9:16 */
.landing-carousel-image.landing-carousel-image--portrait {
    aspect-ratio: 9 / 16;
    height: auto;
    object-fit: contain;
}


.landing-carousel-item-title {
    margin-top: 16px;
}

/* ==================================================
   CMS Landing — Carousel Navigation
   ================================================== */

.landing-carousel {
    min-width: 0;
}

.landing-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.landing-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.landing-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.landing-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #aaa;
    cursor: pointer;
}

.landing-carousel-dot.is-active {
    background: #2563eb;
}

.landing-carousel-arrow:focus-visible,
.landing-carousel-dot:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .landing-carousel-track {
        scroll-behavior: auto;
    }
}