.video-section,
.video-library {
    color: #161616;
}

.video-section {
    display: block;
    width: 100%;
    padding: 28px 0 36px;
    border-top: 3px solid #242424;
}

.video-section__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
}

.video-section__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--essor-red-dark, #c8000b);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.video-section h2,
.video-library h1 {
    font-family: "The Antiqua B", Georgia, serif;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.1;
}

.video-section__all {
    flex: none;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    color: #161616;
    font-size: 14px;
    font-weight: 700;
}

.video-section__all:hover,
.video-section__all:focus-visible,
.video-feature a:hover,
.video-teaser:hover strong,
.video-card a:hover strong {
    color: var(--essor-red-dark, #c8000b);
}

.video-section__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, 1fr);
    gap: 28px;
}

.video-feature,
.video-teaser,
.video-card {
    min-width: 0;
}

.video-feature__player,
.video-teaser__image,
.video-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #18202a;
}

.video-feature__player {
    aspect-ratio: 16 / 9;
}

.video-feature__player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-feature__body {
    padding: 16px 0 0;
}

.video-feature time,
.video-teaser time,
.video-card time {
    display: block;
    margin-bottom: 7px;
    color: #717171;
    font-size: 13px;
    line-height: 1.3;
}

.video-feature h3 {
    font-family: "The Antiqua B", Georgia, serif;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.25;
}

.video-section__list {
    display: grid;
    align-content: start;
    gap: 0;
}

.video-teaser {
    display: grid;
    grid-template-columns: minmax(120px, 43%) minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid #e3e3e3;
    text-decoration: none;
}

.video-teaser:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.video-teaser__image {
    aspect-ratio: 16 / 9;
}

.video-teaser__image img,
.video-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-teaser__body strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-family: "The Antiqua B", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--essor-red-dark, #c8000b);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 12px #0005;
}

.video-section__empty {
    padding: 28px;
    background: #f3f3f3;
    color: #555;
    font-size: 16px;
}

.video-library {
    width: min(100%, 1200px);
    min-height: 60vh;
    margin: 0 auto;
    background: #fff;
}

.video-library__inner {
    padding: 40px 24px 72px;
}

.video-library__header {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 3px solid #242424;
}

.video-library__header p {
    max-width: 650px;
    margin-top: 10px;
    color: #595959;
    font-size: 16px;
    line-height: 1.5;
}

.video-library__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 22px;
}

.video-card {
    border-bottom: 1px solid #e4e4e4;
}

.video-card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.video-card__image {
    aspect-ratio: 16 / 9;
}

.video-card .video-play {
    width: 56px;
    height: 56px;
    font-size: 21px;
}

.video-card__body {
    display: block;
    padding: 15px 0 22px;
}

.video-card__body strong {
    display: block;
    font-family: "The Antiqua B", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.video-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-library__pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.video-library__pagination nav {
    width: 100%;
}

.video-library__pagination .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.video-library__pagination .page-link {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #dedede;
    color: #242424;
    font-size: 14px;
    text-decoration: none;
}

.video-library__pagination .active .page-link,
.video-library__pagination .page-link:hover {
    border-color: var(--essor-red-dark, #c8000b);
    background: var(--essor-red-dark, #c8000b);
    color: #fff;
}

@media (max-width: 900px) {
    .video-section__layout {
        grid-template-columns: 1fr;
    }

    .video-section__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .video-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .video-section {
        padding-top: 22px;
    }

    .video-section__header {
        align-items: end;
        gap: 12px;
    }

    .video-section__all {
        font-size: 12px;
    }

    .video-section__list,
    .video-library__grid {
        grid-template-columns: 1fr;
    }

    .video-teaser {
        grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
    }

    .video-library__inner {
        padding: 28px 16px 50px;
    }
}
