/* Index Page Styles */

html,
body {
    height: 100%;
    overflow: hidden;
}

/* Swiper Container */
.featured-swiper {
    width: 100%;
    height: 100vh;
}

/* Swiper Slides */
.swiper-slide {
    position: relative;
    opacity: 0;
    visibility: hidden;
}

.swiper-slide-active {
    opacity: 1;
    visibility: visible;
}

/* Slide Background */
.slide-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.slide-bg[data-layout="fullscreen"] img {
    object-fit: cover;
}

.slide-bg[data-layout="story"] video,
.slide-bg[data-layout="story"] img {
    height: 100vh;
    width: auto;
    object-fit: contain;
}

.slide-bg[data-layout="base"] {
    padding: 0;
}

.slide-bg[data-layout="base"] img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.slide-bg[data-layout="contained"] {
    padding: 5rem 25rem;
}

.slide-bg[data-layout="contained"] img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.slide-bg[data-layout="contained"] video {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Slide Legend */
.slide-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    width: 30%;
    height: calc(100% - 60px);
    top: 0;
    margin: 0;
}

.swiper-button-prev {
    left: 0;
    right: auto;
}

.swiper-button-next {
    right: 0;
    left: auto;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.15s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev::after {
    background-image: url('../assets/ui/left-arrow.svg');
    left: 24px;
}

.swiper-button-next::after {
    background-image: url('../assets/ui/right-arrow.svg');
    right: 24px;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    opacity: 1;
}

.swiper-slide[data-color="light"] .swiper-button-prev::after,
.swiper-slide[data-color="light"] .swiper-button-next::after {
    filter: invert(1);
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .slide-bg[data-layout="contained"] {
        padding: 4rem 1.5rem;
    }

    .slide-bg[data-layout="base"] {
        padding: 1.5rem;
    }

    .slide-bg[data-layout="story"] video,
    .slide-bg[data-layout="story"] img {
        width: auto;
        height: 100vh;
        object-fit: contain;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .slide-legend {
        display: none !important;
    }
}