:root {
    --arrow-button-size: 1.7em;
    --circle-size: 0.7em;
}

.jumbotron,
.slideshow,
.slideshow-flexible {
    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: rgb(50 50 50);
}

.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);
    opacity: 0.2;
}

.circle:hover {
    opacity: 0.5;
}

.circle.active {
    opacity: 1;
}

.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: var(--black);
    width: var(--arrow-button-size);
    height: var(--arrow-button-size);
    padding: 0.6em;
    border: none;
    text-align: center;
    transition: background-color 0.2s;
    cursor: pointer;
    line-height: 0;
}

.arrows button:hover {
    background-color: var(--orange);
}

.arrows button img {
    height: 100%;
}

:is(.jumbotron, .slideshow, .slideshow-flexible) .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(0.6em);
    transition: opacity 0.35s, filter 0.2s;
}

:is(.jumbotron, .slideshow) {
    overflow: hidden;
}

:is(.jumbotron, .slideshow, .slideshow-flexible) .slide.active {
    opacity: 1;
    filter: blur(0);
    z-index: 1;
}

.slideshow-flexible .slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-flexible .slide div {
    width: 100%;
    height: 100%;
}

.slideshow-flexible .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    line-height: 0;
}

:is(.jumbotron, .slideshow) .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;
}

:is(.jumbotron, .slideshow) .slide .overlay {
    position: absolute;
    bottom: 30%;
    left: 4.75%;
    display: flex;
    flex-direction: column;
    align-items: start;
    opacity: 0;
    transition: 1s opacity 1s, 1s bottom 1s;
    z-index: 2;
}

:is(.jumbotron, .slideshow) .slide.active .overlay {
    bottom: 15.5%;
    opacity: 1;
}

.jumbotron .slide .overlay::before {
    content: '';
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: -7%;
    left: -12.5%;
    width: 130%;
    height: 118%;
    z-index: -1;
}

.jumbotron .slide .credit {
    position: absolute;
    bottom: 0.5em;
    left: 0.5em;
    color: rgb(255, 255, 255);
    font-size: 12pt;
}

.jumbotron .slide p {
    color: white;
    font: 300 max(1em, 1.16vw) 'Poppins';
    text-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0.25em;
}

.jumbotron .slide p.header {
    font: normal max(2.5em, 3vw) 'Squada One';
    width: 14ch;
}

:is(.jumbotron, .slideshow) .slide button {
    padding: 1.1em 1em;
    margin-top: 2em;
    white-space: nowrap;
    border: none;
    transition: background-color 0.2s;
    background-color: var(--orange);
    font-size: 0.7em;
    font-weight: 300;
    box-shadow: 0 0 0.35em rgba(0, 0, 0, 0.25);
}

:is(.jumbotron, .slideshow) .slide button:hover {
    background-color: white;
    color: var(--orange);
}

.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: min(80vw, 1280px);
    margin: 0 auto;
    aspect-ratio: 27/14;
}

.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 .item {
    background-color: white;
    padding: 1.5em 2em;
    margin: 0 1.2em;
    font-size: 0.8em;
    flex-basis: 50%;
}

.carousel p {
    color: var(--gray);
    font-weight: 400;
}

.carousel .item p {
    line-height: 2;
    font-size: min(1.35vw, 1.35rem);
}

.carousel p.author {
    font-weight: 600;
    font-size: 1vw;
    line-height: 1.5;
}

.carousel p.author i {
    font-weight: normal;
}

.carousel .arrows {
    width: calc(100% + 3.5em);
    margin: 0 -1.75em;
    padding: 0;
}

.carousel .arrows button {
    background-color: var(--orange);
}

.carousel .arrows button:hover {
    background-color: var(--black);
}

.carousel .circles {
    bottom: -2.5em;
}

@media (max-width: 1380px) {
    /*.carousel {
        max-width: 950px;
    }*/
}

@media (max-width: 1040px) {
    .carousel {
        max-width: min(80vw, 600px);
        aspect-ratio: 18/19;
    }

    .carousel .item {
        flex-basis: 100%;
    }

    .carousel .item p {
        font-size: min(2.65vw, 1.4em);
    }
}

@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 .overlay {
        left: 7%;
    }

    :is(.jumbotron, .slideshow) .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 .overlay {
        left: 10%;
    }

    .carousel .arrows {
        width: calc(100% + 2.8em);
        margin: 0 -1.4em;
    }
}

@media (max-width: 444px) {
    .carousel {
        aspect-ratio: 16/18;
    }
}

@media (max-width: 350px) {
    .carousel {
        aspect-ratio: 10/12;
    }
}