.slides-container {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    margin-inline: auto;
    background-color: black;
}

.slides {
    position: relative;
    /* Establishes a positioning context for absolute children */
    width: 100%;
    height: 90dvh;
    height: calc(80svh + 10ch);
    /* Set a fixed height or adjust as needed */
    overflow: hidden;
}

.slide {
    position: absolute;
    /* top: 0;
    left: 0; */
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Hide inactive slides from screen readers and interaction */
    transition: opacity 0.95s ease-in-out, visibility 0.95s ease-in-out;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: var(--pos);
    background-repeat: no-repeat;
    background-image:
        linear-gradient(0deg, rgba(0, 0, 0, 0.45) 20%, rgba(255, 255, 255, 0) 80%),
        var(--bg);

    isolation: isolate;
    /* background-color: #f0f0f0; */
    /* Example background */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    /* Bring the active slide to the front */
}

.slide.active>* {
    z-index: 2;
}

.slide4test::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #0F0F0F;
    /* background-image: linear-gradient(to top, hsla(150, 80%, 15%, 0.5), hsla(0, 0%, 0%, 0.5)); */
    opacity: 0.25;
    z-index: 0;
    /* mix-blend-mode: hue; */
}

.slide.overlay {
    border-image: linear-gradient(to top, hsla(150, 80%, 15%, 0.35), hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0)) fill 1;
}

.slide>.slide_caption_container {
    position: absolute;
    /* inset-inline-start: 4ch;
    inset-block-start: calc(80svh - 22ch);
    inset-block-end: auto; */
    inset: auto;
    inset-block-end: calc(100svh - 96%);
    /* 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;
    max-width: calc(100vw - 10%);
    width: fit-content;
}

.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);
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Add more styling as desired (background, color, padding, etc.) */
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0.5rem;
    display: grid;

    align-items: center;
    justify-items: center;
    place-items: center;
    border: none;
    outline-color: transparent;
    aspect-ratio: 1;

    backdrop-filter: blur(4px);
    background-color: hsla(0, 0%, 100%, .65);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 4px;

    color: #0F0F0F;
    appearance: none;

}

.prev {
    left: 48px;
}

.next {
    right: 48px;
}

svg {
    width: 24px;
    height: 24px;
}

.dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    gap: 0.25rem;
    width: fit-content;
    justify-self: center;
    /* margin-top: -1.5rem;
            margin-inline: auto; */
    isolation: isolate;
    padding: 0.25rem 0.5rem;
    border-radius: 40rem;
    z-index: 2;
}

.dot {
    /* flex: 1; */
    width: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    aspect-ratio: 1;
    border-radius: 100%;
    cursor: pointer;
    z-index: 11;
}

.dot.active {
    background-color: #fcfcfc;
}

@media (width > 37.5rem) and (width < 62.5rem) {
    .slides {
        position: relative;
        /* Establishes a positioning context for absolute children */
        width: 100%;
        height: 90dvh;
        height: calc(80svh + 5ch);
        /* Set a fixed height or adjust as needed */
        overflow: hidden;
    }
}

@media (width > 62.5rem) {
    .slides {
        /* scroll-snap-type: x proximity; */
        max-width: 2200px;
        width: 100%;
    }

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

    .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.25em;
        font-weight: 600;
        padding-bottom: 0.5rem;
    }

    .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;
    }

}

@media only screen and (hover: none) and (pointer: coarse) {
    /* .slides {
                scroll-snap-type: x mandatory;
            } */

    .scroll-button {
        visibility: hidden;

    }


}