/* Video trailers — Figma node 370:780, content below the hero. */
.video-trailers-section {
    box-sizing: border-box;
    /* height: 1108px; */
    /* overflow: hidden; */
    padding-top: 111px;
    background: linear-gradient(180deg, #161325 0%, #0f0d1a 100%);
    color: #fff;
    padding-bottom: 100px;
}

.video-trailers-section h2 {
    height: 81px;
    margin: 0;
    color: #e6b95c;
    font: 400 60px/80.2px var(--font-display, 'Times New Roman', serif);
    letter-spacing: 3.4439px;
    text-align: center;
    text-transform: uppercase;
}

.video-trailers-layout {
    display: grid;
    grid-template-columns: 360px 1123px;
    column-gap: 99px;
    width: 1582px;
    margin: 92px auto 0;
}

.trailer-tabs {
    position: relative;
    display: flex;
    height: 824px;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
}

.trailer-tabs::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(100% + 25px);
    width: 9px;
    height: 824px;
    background: url('../images/trailers/tab-rail.svg') center/100% 100% no-repeat;
}

.trailer-tab {
    width: 100%;
    height: 94px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(213, 181, 131, .58);
    background: transparent;
    color: #fff;
    font: 400 24px/34px var(--font-editorial, 'Times New Roman', serif);
    letter-spacing: .25px;
    text-align: left;
    text-transform: uppercase;
    transition: color .2s ease, padding-left .2s ease;
}

.trailer-tab:last-of-type {
    border-bottom: 0;
}

.trailer-tab:hover,
.trailer-tab:focus-visible,
.trailer-tab.is-active {
    color: #e6b95c;
}

.trailer-tab:focus-visible {
    outline: 1px solid #e6b95c;
    outline-offset: 5px;
}

.trailer-gallery {
    min-width: 0;
}

.trailer-stage {
    position: relative;
    width: 100%;
    height: 631.688px;
    overflow: hidden;
    border-radius: 7px;
    background: #000;
}

.trailer-stage-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.trailer-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20.64px;
    margin-top: 20.31px;
}

.trailer-preview {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 1px;
    background: #000;
    transition: border-color .2s ease, transform .2s ease;
}

.trailer-preview:hover,
.trailer-preview:focus-within,
.trailer-preview.is-active {
    border-color: #d5b583;
    transform: translateY(-2px);
}

.trailer-preview video {
    display: block;
    width: 100%;
    aspect-ratio: 360.366 / 166.52;
    object-fit: cover;
    background: #000;
}

@media (max-width: 1700px) and (min-width: 992px) {
    .video-trailers-section {
        height: 57.708vw;
        min-height: 690px;
        padding-top: 5.781vw;
    }

    .video-trailers-section h2 {
        height: 4.219vw;
        font-size: 3.125vw;
        line-height: 4.177vw;
        letter-spacing: .179vw;
    }

    .video-trailers-layout {
        grid-template-columns: 18.75vw 58.49vw;
        column-gap: 5.156vw;
        width: 82.396vw;
        margin-top: 4.792vw;
    }

    .trailer-tabs,
    .trailer-tabs::after {
        height: 42.917vw;
    }

    .trailer-tabs::after {
        left: calc(100% + 1.302vw);
        width: .469vw;
    }

    .trailer-tab {
        height: 4.896vw;
        font-size: 1.25vw;
        line-height: 1.771vw;
    }

    .trailer-stage {
        height: 32.901vw;
    }

    .trailer-thumbnails {
        gap: 1.075vw;
        margin-top: 1.058vw;
    }
}

@media (max-width: 991.98px) {
    .video-trailers-section {
        height: auto;
        padding: 64px 24px 76px;
    }

    .video-trailers-section h2 {
        height: auto;
        font-size: clamp(30px, 7vw, 48px);
        line-height: 1.2;
        letter-spacing: 2px;
    }

    .video-trailers-layout {
        display: block;
        width: min(100%, 760px);
        margin: 42px auto 0;
    }

    .trailer-tabs {
        display: grid;
        height: auto;
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-color: #d5b583 transparent;
    }

    .trailer-tabs::after {
        display: none;
    }

    .trailer-tab {
        height: 54px;
        padding: 0 14px;
        border-right: 1px solid rgba(213, 181, 131, .58);
        border-bottom: 1px solid rgba(213, 181, 131, .58);
        font-size: 15px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .trailer-tab:last-of-type {
        border-right: 0;
        border-bottom: 1px solid rgba(213, 181, 131, .58);
    }

    .trailer-gallery {
        margin-top: 26px;
    }

    .trailer-stage {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .trailer-thumbnails {
        gap: 14px;
        margin-top: 14px;
    }
}

@media (max-width: 575.98px) {
    .video-trailers-section {
        padding: 50px 16px 60px;
    }

    .video-trailers-section h2 {
        font-size: 24px;
        letter-spacing: .7px;
    }

    .video-trailers-layout {
        margin-top: 30px;
    }

    .trailer-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .trailer-thumbnails {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .video-trailers-section {
        padding: 46px 16px 56px;
    }

    .video-trailers-section h2 {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.25;
    }

    .video-trailers-layout {
        margin-top: 26px;
    }

    .trailer-tabs {
        gap: 0;
        padding-bottom: 0;
    }

    .trailer-tab {
        min-width: 0;
        height: 50px;
        padding-inline: 6px;
        font-size: 12px;
        white-space: normal;
    }

    .trailer-gallery {
        margin-top: 20px;
    }

    .trailer-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
}
