/* Slideshow */
.banner{
    position: relative;
}

.carousel{
    width: 100%;
    height: 95vh;
    position: relative;
}

.carousel > ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 1.5s all ease;
    transition-delay: 1.5s;
    overflow: hidden;
}

.slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: black;
    transition: transform 5s ease;
    transform: scale(1);
}

.slide[data-active]{
    opacity: 1;
    transition-delay: 0ms;
    z-index: 1;
}

.slide[data-active] > img {
    transition: all 5s ease;
    transform: scale(1.3);
}

.carousel-button {
    z-index: 2;
    position: absolute;
    border: none;
    font-size: 2em;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    border-radius: .4rem;
    padding: 0 .5rem;
    transition: opacity ease .5s;
}

.carousel-button:hover{
    opacity: 1;
}

.carousel-button.prev{
    left: 1rem;
}

.carousel-button.next{
    right: 1rem;
}

.banner-info-container{
    color: var(--secondary-color);
    position: absolute;
    bottom: 10%;
    padding-inline: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide .banner-info-container p{
    opacity: 0;
}

.slide[data-active] .banner-info-container p {
    transition: all 1.5s ease;
    translate: 0 -100%;
    scale: 1.5;
    opacity: 1;
}

.banner-info-container p {
    font-family: semiBold, serif;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.2rem;
    font-size: 2em;
    margin: auto;
}

/* Mobile styles */
@media only screen and (max-width: 880px) {
    .banner-info-container{
        top: 10%;
        bottom: unset;
    }

    .slide .banner-info-container p{
        opacity: 0;
    }

    .slide[data-active] .banner-info-container p {
        transition: all 1.5s ease;
        translate: 0 -70%;
        scale: 1;
        opacity: 1;
    }
}