.nespak-media-page .c-layout-page {
    background: #f6f7f8;
}

.media-gallery-content {
    padding: 52px 0 68px;
}

.media-gallery-grid {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.media-video-tabs {
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 4px;
    margin: 0 auto 24px;
    padding: 5px;
    border: 1px solid #dfe4e8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(11, 32, 53, .07);
}

.media-video-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    gap: 9px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    color: #52616d;
    background: transparent;
    font-family: "ABC Diatype", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.media-video-tab::before {
    content: "\f04b";
    font-family: FontAwesome;
    font-size: 10px;
}

.media-video-tab:hover,
.media-video-tab:focus {
    color: #8f2938;
    background: #fff2f4;
    outline: none;
}

.media-video-tab.is-active,
.media-video-tab[aria-selected="true"] {
    color: #fff;
    background: #8f2938;
    box-shadow: 0 4px 12px rgba(143, 41, 56, .24);
}

.media-video-tab.is-active:hover,
.media-video-tab.is-active:focus,
.media-video-tab[aria-selected="true"]:hover,
.media-video-tab[aria-selected="true"]:focus {
    color: #fff;
    background: #a33345;
}

.media-video-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 8px;
    border: 1px solid #dfe4e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(11, 32, 53, .075);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.media-video-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #8f2938;
}

.media-video-card:hover {
    border-color: #cbd3d9;
    box-shadow: 0 12px 32px rgba(11, 32, 53, .11);
    transform: translateY(-3px);
}

.media-video-frame {
    position: relative;
    width: 100%;
    height: 760px;
    overflow: hidden;
    border-radius: 2px;
    background: #0b2035;
}

.media-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .media-gallery-content {
        padding: 42px 0 56px;
    }

    .media-gallery-grid {
        max-width: 100%;
    }

    .media-video-frame {
        height: 700px;
    }
}

@media (max-width: 640px) {
    .media-gallery-content {
        padding: 32px 0 44px;
    }

    .media-video-card {
        padding: 6px;
    }

    .media-video-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-video-tab {
        min-width: 0;
    }

    .media-video-frame {
        height: 640px;
    }
}
