.video-gallery {
    max-width: 940px;
}

.video-gallery-intro {
    font-family: var(--font-body), sans-serif;
    font-size: 1.18rem;
    line-height: 1.65;
}

.video-gallery-main {
    width: 100%;
    background-color: #111;
}

.video-gallery-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #111;
    cursor: pointer;
}

.video-gallery-player:has(.video-gallery-iframe) {
    cursor: default;
}

.video-gallery-main-image,
.video-gallery-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-gallery-main-image {
    object-fit: cover;
}

.video-gallery-player::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

.video-gallery-player:has(.video-gallery-iframe)::after {
    display: none;
}

.video-gallery-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 13.5rem;
    min-height: 3.75rem;
    padding: 0.9rem 1.35rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.88);
    border: 0;
    border-radius: 0;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.32);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-gallery-player:hover .video-gallery-play-button,
.video-gallery-player:focus .video-gallery-play-button {
    background-color: rgba(0, 0, 0, 0.96);
    transform: translate(-50%, -50%) scale(1.04);
}

.video-gallery-play-icon {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
}

.video-gallery-play-text {
    display: inline-block;
    line-height: 1;
}

.video-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.video-gallery-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 227 / 128;
    overflow: hidden;
    padding: 0;
    background-color: var(--club-green-dark);
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.video-gallery-thumbnail.active {
    border-color: var(--club-gold);
}

.video-gallery-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.video-gallery-thumbnail:hover .video-gallery-thumbnail-image,
.video-gallery-thumbnail:focus .video-gallery-thumbnail-image {
    transform: scale(1.05);
}

.video-gallery-thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-gallery-thumbnail-label {
    color: #2f2a24;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-align: center;
}

.video-gallery-thumbnail-label-top {
    margin-bottom: 0.5rem;
}

.video-gallery-thumbnail-label-bottom {
    margin-top: 0.5rem;
}

@media (max-width: 575.98px) {
    .video-gallery-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-gallery-play-button {
        min-width: 11.5rem;
        min-height: 3.25rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
