.home-videos {
    padding: 2em 0 4.5em;
    overflow: hidden;
}

.home-videos > .container {
    max-width: none;
    padding-left: 36px;
    padding-right: 0;
}

.home-videos__heading {
    margin: 0 0 .55em;
    margin-left: max(0px, calc((100vw - 1390px) / 2));
    color: #161616;
    font-family: "Arsenal", serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
}

.home-videos__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(180px, 18vw, 280px);
    gap: 12px;
    padding: 0 36px 14px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-videos__track::-webkit-scrollbar {
    display: none;
}

.home-videos__card {
    min-width: 0;
    scroll-snap-align: start;
}

.home-videos__preview {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: .88;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #deded8;
    cursor: pointer;
}

.home-videos__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.home-videos__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    transform: translate(-50%, -50%);
    transition: background-color .25s ease, transform .25s ease;
    backdrop-filter: blur(4px);
}

.home-videos__play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    transform: translate(-35%, -50%);
}

.home-videos__preview:hover .home-videos__cover,
.home-videos__preview:focus-visible .home-videos__cover {
    transform: scale(1.035);
}

.home-videos__preview:hover .home-videos__play,
.home-videos__preview:focus-visible .home-videos__play {
    background: rgba(222, 222, 99, .88);
    transform: translate(-50%, -50%) scale(1.06);
}

.home-videos__preview:focus-visible {
    outline: 2px solid #DEDE63;
    outline-offset: -4px;
}

.home-videos__title {
    margin: 12px 0 0;
    color: #252525;
    font-family: "TT Interfaces", sans-serif;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.35;
}

.home-videos__featured {
    position: relative;
    width: 100%;
    min-height: 420px;
    margin-top: clamp(42px, 5vw, 80px);
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #111;
}

.home-videos__featured-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-videos__featured-play {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .08);
    cursor: pointer;
}

.home-videos__featured-play:hover .home-videos__play,
.home-videos__featured-play:focus-visible .home-videos__play {
    background: #DEDE63;
    transform: translate(-50%, -50%) scale(1.06);
}

.home-videos__featured-play:focus-visible {
    outline: 2px solid #DEDE63;
    outline-offset: -4px;
}

.home-videos__featured.is-playing .home-videos__featured-play {
    display: none;
}

.home-videos-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(1100px, calc(100vw - 64px));
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
}

.home-videos-modal::backdrop {
    background: rgba(20, 20, 18, .88);
}

.home-videos-modal__panel {
    position: relative;
    background: #000;
}

.home-videos-modal__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.home-videos-modal__media video,
.home-videos-modal__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-videos-modal__close {
    position: absolute;
    z-index: 2;
    top: -50px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    cursor: pointer;
}

.home-videos-modal__close:hover,
.home-videos-modal__close:focus-visible {
    color: #161616;
    background: #DEDE63;
    border-color: #DEDE63;
}

.home-videos-modal.is-open {
    z-index: 1000;
    display: block;
}

body.home-video-is-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .home-videos {
        padding: 3.5em 0;
    }

    .home-videos > .container {
        padding-left: 24px;
    }

    .home-videos__heading {
        font-size: 3.25rem;
    }

    .home-videos__track {
        padding-right: 24px;
    }

    .home-videos__featured {
        min-height: 320px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575px) {
    .home-videos {
        padding: 3em 0;
    }

    .home-videos > .container {
        padding-left: 15px;
    }

    .home-videos__heading {
        font-size: 2.75rem;
    }

    .home-videos__track {
        grid-auto-columns: min(76vw, 280px);
        gap: 8px;
        padding-right: 15px;
    }

    .home-videos__play {
        width: 56px;
        height: 56px;
    }

    .home-videos__featured {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .home-videos-modal {
        width: calc(100vw - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-videos__cover,
    .home-videos__play {
        transition: none;
    }
}

