:root {
    --arrow-button-size: 2.5em;
    --circle-size: 0.7em;
}

.jumbotron {
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    aspect-ratio: 20/9;
    width: 100%;
    background-color: var(--gray-100);
}

.circles {
    position: absolute;
    bottom: 1.25em;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.circle {
    position: relative;
    margin: 0.2em;
    width: var(--circle-size);
    height: var(--circle-size);
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--white);
}

.circle:hover {
    background-color: var(--off-white);
}

.circle.active {
    background-color: var(--light-gray);
}

.arrows {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: calc(50% - calc(var(--arrow-button-size) / 2));
    width: 100%;
    padding: 0 0.8em;
    z-index: 2;
}

.arrows button {
    background-color: rgb(255 255 255);
    width: var(--arrow-button-size);
    height: var(--arrow-button-size);
    padding: 1em;
    border: none;
    text-align: center;
    transition: background-color 0.2s;
    cursor: pointer;
    line-height: 0;
    margin: 0;
    min-width: auto;
}

.arrows button:hover {
    background-color: var(--light-beige);
}

.arrows button img {
    height: 100%;
    filter: brightness(0.3);
    transition: filter 0.2s;
}

.arrows button:hover img {
    filter: brightness(1);
}

.jumbotron .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    filter: blur(0.6em);
    transition: opacity 0.35s, filter 0.2s;
}

.jumbotron .slide.active {
    opacity: 1;
    filter: blur(0);
    z-index: 1;
}

.jumbotron .slide img {
    position: relative;
    top: 0;
    height: 100%;
    line-height: 0;
    left: calc(calc(calc(calc(100vw * 0.45) * 2.2588) - 100vw) / -2);
    aspect-ratio: 1920/850;
}

.jumbotron .slide .overlay {
    position: absolute;
    width: 0;
    height: 0;
    top: 70%;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: 1s opacity 1s, 1s top 1s;
}

.jumbotron .slide.active .overlay {
    top: 50%;
    opacity: 1;
}

.jumbotron .slide .credit {
    position: absolute;
    bottom: 0.5em;
    left: 0.5em;
    color: rgb(255, 255, 255);
    font-size: 12pt;
}

.jumbotron .slide p {
    width: 50vw;
    font: normal 4vw cursive;
    text-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
    text-align: center;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0.25em;
}

.jumbotron .slide button {
    padding: 1.1em 1.35em;
    white-space: nowrap;
    border: none;
    transition: background-color 0.2s;
    font-size: 0.7em;
    box-shadow: 0 0 0.35em rgba(0, 0, 0, 0.25);
}

.carousel {
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    aspect-ratio: 25/15;
}

.carousel .slide {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    right: -80vw;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    left: 0;
}

.carousel .slide.active {
    opacity: 1;
    z-index: 1;
    right: 0;
    transition: opacity 0.2s, left 0.35s, right 0.35s;
}

.carousel .slide.left {
    right: auto;
    left: -80vw;
    transition: opacity 0.2s, left 0.35s, right 0.35s;
}

.carousel .arrows {
    width: calc(100% + 5.5em);
    margin: 0 -2.75em;
    padding: 0;
}

.carousel .circles {
    bottom: -1.5em;
}

/*@media (max-width: 1380px) {
    .carousel {
        max-width: 950px;
    }
}

@media (max-width: 1040px) {
    .carousel {
        max-width: 600px;
        aspect-ratio: 15/7;
    }
}*/

@media (max-width: 820px) {
    .jumbotron {
        aspect-ratio: 16/21;
    }

    .jumbotron .slide img {
        /* (((parentWidth * (parentAspectRatioDenominator / parentAspectRatioNumerator)) * (childWidth / childHeight)) - parentWidth) / -2 */
        left: calc(calc(calc(calc(100vw * 1.3125) * 0.7628) - 100vw) / -2);
        aspect-ratio: 820/1075;
    }

    .jumbotron .slide p {
        width: 70vw;
        font-size: 13vw;
        margin-bottom: 0.5em;
    }

    .jumbotron .slide button {
        font-size: 2vw;
    }

    .jumbotron .arrows {
        display: none;
    }
}

@media (max-width: 740px) {
    :root {
        --circle-size: 0.95em;
    }

    .carousel {
        max-width: unset;
        /*aspect-ratio: 9/7;
        margin: 0 2em;
        width: calc(100% - 4em);*/
    }

    .jumbotron .circles {
        bottom: 2em;
    }

    .carousel .circles {
        bottom: -1.8em;
    }
}

@media (max-width: 536px) {
    .jumbotron {
        aspect-ratio: 6/11;
    }

    .jumbotron .slide img {
        left: calc(calc(calc(calc(100vw * 1.8333) * 0.5458) - 100vw) / -2);
        aspect-ratio: 536/982;
    }

    .jumbotron .slide p {
        width: 92vw;
        font-size: 15vw;
    }

    .jumbotron .slide button {
        font-size: 2.7vw;
    }

    .carousel {
        width: 100%;
        margin: 0;
    }

    .carousel .arrows {
        width: calc(100% + 2.8em);
        margin: 0 -1.4em;
    }
}
