.slides__container {
    position: relative;
    margin-top: 6ch;
    padding: 0;
    display: grid;
    /* overflow: hidden; */
    background-color: var(--bg-color-dark);
    width: 100%;
    height: calc(70svh + 10ch);

    /* &>.slide {
        grid-column: 1;
        grid-row: 1;
    } */
}

.slide {
    position: relative;
    display: block;
    grid-column: 1;
    grid-row: 1;
    max-width: calc(100vw);
    max-height: calc(100svh);
    height: 100%;
    /* aspect-ratio: 9 / 16; */
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    opacity: 1;
    /* animation: fadeIn 20s linear infinite; */
}

.slide>img {
    display: block;
    /* width: 100%;
    height: auto; */
    width: auto;
    height: 90dvh;
    aspect-ratio: 1;
    object-fit: cover;
}

.slide>.slide_caption_container {
    position: absolute;
    inset-inline-start: 2ch;
    inset-block-start: calc(80svh - 20ch);
    inset-block-end: auto;
    /* align-self: center; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: rgba(192, 216, 193, 0.1); */
    /* Semi-transparent background */
    /* backdrop-filter: blur(8px); */
    background-color: transparent;
    /* border-left: 7px solid #f8f208; */
    border-radius: 16px;
    width: calc(100vw - 10%);
}

.slide>.slide_caption_container>.slide_caption_content {
    display: block;
    text-align: left;
    /* background-color: hsla(60, 2%, 10%, 0.45); */
    font-size: 1.05rem;
    color: #fff;
    text-shadow: 2px 2px 8px black;
    text-wrap: pretty;
    margin-inline: 0 auto;
    padding: 1.25rem;
    /* border-left: 3px solid black; */
    /* border-radius: 0.75rem; */

    transition-property: opacity, translate, scale;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;

    /* @starting-style {
        opacity: 0;
        translate: - 10rem;
        scale: 1.3;
    } */
}

@starting-style {
    .slide_caption_content {
        opacity: 0;
        translate: -10rem;
        scale: 0.5;
    }
}

.slide_caption_content h1 {
    line-height: 1;
    font-size: 1.25em;
    font-weight: 300;
    /* text-transform: uppercase; */
    padding-bottom: 0.5rem;
}

.slide_caption_content p {
    line-height: 1.25;
    font-weight: 600;
    /* margin-top: 0.5rem; */
}

.slide_caption_content a,
.hero__text a {
    display: block;
    width: fit-content;
}

.slide_caption_content a>div {
    width: fit-content;
    background-color: var(--bg-color-light);
    margin-block: 0.75em 0.25em;
    padding: 0.75em 1.25em;
    color: var(--color-light);
    font-size: 0.95em;
    font-weight: 600;
    text-shadow: none;
    border-radius: 80px;
}

.slide_caption_content a:hover>div {
    background-color: var(--bg-color-light);
}

/* Next & previous buttons */
.slide_prev,
.slide_next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--color-dark);
    background-color: rgba(248, 242, 8, 0.4);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1;
}

/* Position the "next button" to the right */
.slide_next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.slide_prev:hover,
.slide_next:hover {
    background-color: rgba(248, 242, 8, 0.8);
}

.slides_dots {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    margin-inline-start: auto;
    margin-inline-end: auto;
    /* background-color: #000;
    color: white; */
    width: 100%;
    z-index: 1;
}

.slide_dot {
    cursor: pointer;
    height: 7px;
    width: 7px;
    margin: 0 2px;
    /* background-color: #f8f208; */
    background-color: var(--bg-color-light);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.slides_dots>.active,
.slide_dot:hover {
    background-color: white;
}

.fadeIn {

    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition: opacity 700ms ease-in
        /* animation-name: fadein;
    animation-duration: 0;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); */
}

.fadeOut {

    transform: translate3d(0, 0, 0);
    opacity: 0;
    transition: opacity 700ms ease-in
        /* animation-name: fadeout;
    animation-duration: 0;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); */
}

@keyframes fadein {
    from {

        opacity: 1;
    }

    to {

        opacity: 0.5;
    }
}

@keyframes fadeout {
    from {

        opacity: 0.5;
    }

    to {

        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInLeft {
    animation-name: fadeInLeft
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInUp {
    animation-name: fadeInUp
}

@media (width > 37.5rem) and (width < 62.5rem) {

    /* .slides__container {
        height: calc(35vw + 7ch);
    } */
    .slide {
        position: relative;
        display: block;
        grid-column: 1;
        grid-row: 1;
        max-width: calc(100vw);
        max-height: calc(100svh);
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-inline-start: auto;
        margin-inline-end: auto;
        overflow: hidden;
        opacity: 1;

    }

    .slide>img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .slide>.slide_caption_container {
        position: absolute;
        z-index: 1;
        inset-inline-start: calc(100vw - 92%);
        inset-block-start: auto;
        inset-block-end: calc(100svh - 99%);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        /* border-left: 7px solid #f8f208; */
        width: calc(100vw - 40%);
    }


}

@media (width > 62.5rem) {

    .slides__container {
        position: relative;
        margin: 0;
        padding: 0;
        display: grid;
        /* overflow: hidden; */
        background-color: #000;
        width: 100%;
        height: calc(100svh);
        /* &>.slide {
            grid-column: 1;
            grid-row: 1;
        } */
    }

    .slide {
        position: relative;
        display: block;
        grid-column: 1;
        grid-row: 1;
        max-width: calc(100vw);
        max-height: calc(100svh);
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-inline-start: auto;
        margin-inline-end: auto;
        overflow: hidden;
        opacity: 1;

    }

    .slide>img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .slide>.slide_caption_container {
        position: absolute;
        z-index: 1;
        inset-inline-start: calc(100vw - 80%);
        inset-block-start: auto;
        inset-block-end: calc(100vh - 96%);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        /* border-left: 7px solid #f8f208; */
        width: calc(100vw - 45%);
    }

    .slide>.slide_caption_container>.slide_caption_content {
        display: block;
        text-align: left;
        /* background-color: hsla(60, 2%, 10%, 0.25); */
        font-size: 1.75rem;
        font-weight: 600;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        text-wrap: pretty;
        margin-inline: 0 auto;
        padding: 1.5rem 1.75rem;
        /* border-left: 3px solid black; */

        /* border-radius: 0.75rem; */
    }

    .slide_caption_content h1 {
        font-family: "Frank Ruhl Libre", serif;
        font-size: 1.5em;
        font-weight: 600;
        padding-bottom: 0.75rem;
    }

    .slide_caption_content p {
        line-height: 1.1;
        font-weight: lighter;
        letter-spacing: -0.5px;
        /* font-weight: 600; */
    }

    .slide_caption_content a {
        display: none;
        font-weight: 400;
        color: var(--color-light);
    }

    .slide_caption_content a>div {
        font-size: 0.75em;
        margin-block: 0.75em 0.25em;
        padding: 0.75em 1.25em;

        font-weight: 600;

        border-radius: 80px;
    }

    .slide_dot {
        height: 15px;
        width: 15px;
    }

    .fadeIn {

        transform: translate3d(0, 0, 0);
        opacity: 1;
        transition: opacity 700ms ease-in
            /* animation-name: fadein;
        animation-duration: 0;
        animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    }

    .fadeOut {

        transform: translate3d(0, 0, 0);
        opacity: 0;
        transition: opacity 700ms ease-in
            /* animation-name: fadeout;
        animation-duration: 0;
        animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    }

    /* Next & previous buttons */
    .slide_prev,
    .slide_next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        margin-top: -22px;
        padding: 16px;
        color: white;
        background-color: rgba(0, 0, 0, 0.5);
        font-weight: bold;
        font-size: 18px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        z-index: 1;
    }

    /* Position the "next button" to the right */
    .slide_next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }

    /* On hover, add a black background color with a little bit see-through */
    .slide_prev:hover,
    .slide_next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

}