.spotlight-wrapper {
    --banner-height: calc(100% / 7);
    --spotlight-aspect-ratio: 5 / 4;
    width: 100%;
    min-width: 0;
    aspect-ratio: var(--spotlight-aspect-ratio);
    display: flex;
    flex-direction: column;
    --primary: rgb(83 139 200);
    --secondary: rgb(22, 33, 74);
    overflow: hidden;
    color: white;
    position: relative;
    box-shadow: 0 0 1rem rgb(0 0 0 / 20%);
}

/* Fix crossfade jump*/
.spotlight-wrapper .swiper-slide {
    mix-blend-mode: plus-lighter;
}

.spotlight-bullets {
    position: absolute;
    top: 0.5em !important;
    left: 0.5rem !important;
    bottom: unset !important;
    width: unset !important;
    z-index: 10;
    --swiper-pagination-color: #FFF;
}

.spotlight-parallax-header {
    height: var(--banner-height);
    background-image: var(--parallax-static);
    background-size: 20% auto;
    display: grid;
    z-index: 0;
    width: 100%;
}

.parallax-swiper {
    margin: 0 !important;
}

.spotlight-parallax-header-top {
    width: calc(100% * (2 + var(--slides)) / 3);
    height: 100%;
    background-image: var(--parallax-tile);
    background-size: calc(100% / (var(--slides) + 2)) auto;
    filter: drop-shadow(0 0 0.5rem rgb(0 0 0 / 40%));
}

.spotlight-initiative-header {
    position: relative;
    --duration: 0;
    height: var(--banner-height);
    background: var(--primary);
    display: flex;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

/* pseudo element to cover up the edge of the chevron */
.spotlight-initiative-header::after {
    content: '';
    background: var(--primary);
    flex: 1;
    transform-origin: right top;
    transform: skewX(-30deg);
}

/* pseudo element to cover up the edge of the chevron */
.spotlight-initiative-header::before {
    content: '';
    background: var(--primary);
    width: 100%;
    position: absolute;
    inset: 0;
    transform-origin: right top;
    transform: translateX(calc(100% - 1px)) skewX(-30deg);
}

.spotlight-chevron {
    --progress: 0;
    --banner-width-equiv: calc(var(--banner-height) / (var(--spotlight-aspect-ratio)));
    --chevron-width: calc(var(--progress) * var(--banner-width-equiv) * 2 + var(--banner-width-equiv) / 3);
    position: relative;
    z-index: 0;
    width: var(--chevron-width);
    transition: width var(--duration);
}

.spotlight-chevron img {
    z-index: 1;
    opacity: var(--progress);
    position: absolute;
    right: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    height: calc(100% - 0.5rem);
    aspect-ratio: 1;
    margin-inline-end: calc(25% * var(--progress) + 10rem * (1 - var(--progress)));
    transition: opacity var(--duration), margin var(--duration);
}

.spotlight-chevron::after {
    z-index: 0;
    content: '';
    display: block;
    position: absolute;
    inset: -1px;
    transform-origin: right top;
    transform: skewX(-30deg);
    background: var(--bg);
}

.spotlight-body {
    position: relative;
    flex: 1;
    display: flex;
    background: radial-gradient(circle at center, #c1dcfc 0, var(--primary) 100%);
    box-shadow: 0 0 1rem rgb(0 0 0 / 20%);
    /* chrome likes to select the image when clicking for some reason */
    user-select: none;
}

.spotlight-circle {
    height: 90%;
    aspect-ratio: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    border-radius: 100%;
    overflow: hidden;
    display: flex;
    --left-color: rgb(0 0 0 / 0%);
    --right-color: rgb(0 0 0 / 0%);
    --progress: 1;
    filter: drop-shadow(0 0 1rem color-mix(in oklab, var(--left-color), var(--right-color) calc(var(--progress) * 100%)));
    transition: filter var(--duration);
    margin: auto;
}

/* safari jank */
.spotlight-circle .swiper,
.spotlight-circle .swiper-wrapper,
.spotlight-circle img {
    height: 100%;
    aspect-ratio: 1;
}

.spotlight-top {
    z-index: 1;
    position: absolute;
    inset: 0;
    display: flex;
    /* chrome likes to select the image when clicking for some reason */
    user-select: none;
}

.spotlight-top img {
    width: 100%;
}

.spotlight-top a {
    display: block;
    height: 100%;
}

.spotlight-top a:focus-visible {
    outline: 4px solid var(--secondary);
    outline-offset: -4px;
}

.spotlight-footer {
    height: var(--banner-height);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spotlight-footer .swiper {
    z-index: 0;
    flex: 1;
    height: 100%;
}

.spotlight-footer .swiper-slide {
    --lh: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.spotlight-title {
    --fs: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: var(--fs);
    text-transform: uppercase;
    font-weight: 900;
    line-height: var(--lh);
    max-height: calc(var(--fs) * var(--lh));
}

.spotlight-description {
    --fs: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: var(--fs);
    text-wrap: pretty;
    line-height: var(--lh);
    max-height: calc(2 * var(--fs) * var(--lh));
}

.spotlight-footer-button {
    z-index: 1;
    padding: 1rem;
    align-self: stretch;
    display: flex;
    align-items: center;
    cursor: pointer;
}
@media (min-width: 640px) {
    .spotlight-title {
        --fs: 1rem;
    }
    .spotlight-description {
        --fs: 1em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (min-width: 768px) {
    .spotlight-title {
        --fs: 0.9rem;
    }
    .spotlight-description {
        --fs: 0.9em;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

@media (min-width: 1024px) {
    .spotlight-title {
        --fs: 1.25rem;
    }
    .spotlight-description {
        --fs: 1rem;
    }
}

@media (min-width: 1536px) {
    .spotlight-title {
        --fs: 1.5rem;
    }

    .spotlight-description {
        --fs: 1.25rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}