.weekday-section {
    width: 100%;

    padding-top: 5%;

    background: #31597d;

    overflow: hidden;
}


.weekday-slider {
    position: relative;

    width: 100%;

    display: grid;
}


.weekday-slide {
    grid-area: 1 / 1;

    width: 100%;

    display: flex;

    align-items: stretch;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 1;

    will-change: opacity;

    transition:
        opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 1.4s;
}


.weekday-slide.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    z-index: 2;

    transition:
        opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0s;
}


.weekday-image {
    width: 66%;

    flex-shrink: 0;
}


.weekday-image picture {
    display: block;

    width: 100%;
}


.weekday-image img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    transform: translateZ(0);
}


.weekday-content {
    width: 34%;

    display: flex;

    padding:
        0
        clamp(1.5rem, 3vw, 3rem)
        0
        clamp(0.8rem, 1.2vw, 1.2rem);
}


.weekday-content-inner {
    position: relative;

    width: 100%;

    min-height:
        clamp(
            24rem,
            52vh,
            34rem
        );

    height:
        clamp(
            32rem,
            52vh,
            34rem
        );

    padding-left:
        clamp(
            1.2rem,
            1.8vw,
            1.8rem
        );

    border-left:
        0.12rem solid
        #e4d7c5;

    display: flex;

    flex-direction: column;
}


.weekday-description {
    margin: 0;

    color: #ffffff;

    font-family: "Avenir";

    font-size:
        clamp(
            1.3rem,
            0.95vw,
            1.2rem
        );

    font-weight: 400;

    line-height: 1.38;
}


.weekday-bottom {
    width: 100%;

    margin-top: auto;
}


.weekday-title {
    margin: 0;

    color: #eadbc7;

    font-family: "Big Caslon";

    font-size:
        clamp(
            2rem,
            2.3vw,
            2.4rem
        );

    line-height: 1.05;

    font-weight: 400;

    text-transform: uppercase;
}



.weekday-controls {
    position: absolute;

    right: 0;

    bottom: -4rem;

    display: flex;

    align-items: center;

    gap: 0.9rem;
}


.weekday-controls button {
    position: relative;

    width:
        clamp(
            2rem,
            2.8vw,
            2.5rem
        );

    aspect-ratio: 1 / 1;

    padding: 0;

    border:
        0.1rem solid
        #eadbc7;

    border-radius: 50%;

    background: transparent;

    color: transparent;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.weekday-controls button::before {
    content: "";

    position: absolute;

    top: 50%;

    width: 0.5rem;

    height: 0.5rem;

    border-top:
        0.12rem solid
        #eadbc7;

    border-right:
        0.12rem solid
        #eadbc7;
}


.weekday-prev::before {
    left: 54%;

    transform:
        translate(-50%, -50%)
        rotate(-135deg);
}


.weekday-next::before {
    left: 46%;

    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.weekday-controls button:hover {
    background:
        rgba(
            234,
            219,
            199,
            0.12
        );

    transform:
        scale(1.06);
}


.weekday-controls button:active {
    transform:
        scale(0.94);
}



@media (max-width: 1024px) and (orientation: portrait) {

    .weekday-section {
        padding:
            0
            0
            clamp(
                4.5rem,
                10vh,
                7rem
            );
    }


    .weekday-slide {
        display: block;
    }


    .weekday-image {
        width: 100%;
    }


    .weekday-image picture {
        display: block;

        width: 100%;
    }


    .weekday-image img {
        display: block;

        width: 100%;

        height: auto;

        object-fit: contain;
    }


    .weekday-content {
        width: 100%;

        padding:
            clamp(
                2.5rem,
                6vh,
                4rem
            )
            10%
            0
            20%;
    }


    .weekday-content-inner {
        min-height:
            clamp(
                19rem,
                40vh,
                26rem
            );

        height: auto;

        padding-left:
            clamp(
                1.2rem,
                3vw,
                1.8rem
            );

        border-left:
            0.1rem solid
            #e4d7c5;
    }


    .weekday-description {
        font-size:
            clamp(
                0.75rem,
                2.2vw,
                0.9rem
            );

        line-height: 1.35;
    }


    .weekday-title {
        font-size:
            clamp(
                1.5rem,
                5vw,
                2rem
            );

        line-height: 1.05;
    }


    .weekday-controls {
        right: 0;

        bottom: -4rem;

        gap: 1rem;
    }


    .weekday-controls button {
        width:
            clamp(
                2.2rem,
                8vw,
                2.7rem
            );
    }

}

@media (max-width: 480px) and (orientation: portrait) {

    .weekday-content {
        padding:
            2.7rem
            9%
            0
            17%;
    }


    .weekday-content-inner {
        min-height:
            clamp(
                9rem,
                20vh,
                12rem
            );

        height:
            clamp(
                7rem,
                10vh,
                10rem
            );

        padding-left: 1.3rem;
    }


    .weekday-description {
        font-size:
            clamp(
                0.8rem,
                3vw,
                0.82rem
            );
    }


    .weekday-title {
        font-size:
            clamp(
                1.4rem,
                6vw,
                1.8rem
            );
    }


    .weekday-controls {
        bottom: -3.8rem;
    }

}

@media (max-width: 1024px) and (orientation: landscape) {

    .weekday-section {
        padding:
            clamp(
                2rem,
                6vh,
                3rem
            )
            0
            clamp(
                3.5rem,
                9vh,
                5rem
            );
    }


    .weekday-slide {
        display: flex;
    }


    .weekday-image {
        width: 66%;
    }


    .weekday-content {
        width: 34%;


        padding:
            0
            2.5%
            0
            1.5%;
    }


    .weekday-content-inner {
        min-height:
            clamp(
                13rem,
                55vh,
                19rem
            );

        height: auto;

        padding-left:
            clamp(
                0.8rem,
                2vw,
                1.2rem
            );

        border-left:
            0.1rem solid
            #e4d7c5;
    }


    .weekday-description {
        font-size:
            clamp(
                0.55rem,
                1.3vw,
                0.75rem
            );

        line-height: 1.3;
    }


    .weekday-title {
        font-size:
            clamp(
                1.1rem,
                2.5vw,
                1.6rem
            );
    }


    .weekday-controls {
        right: 0;

        bottom: -3rem;

        gap: 0.7rem;
    }


    .weekday-controls button {
        width:
            clamp(
                1.7rem,
                4vw,
                2rem
            );
    }


    .weekday-controls button::before {
        width: 0.4rem;

        height: 0.4rem;

        border-top-width: 0.1rem;

        border-right-width: 0.1rem;
    }

}