.video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-thumb {
    position: relative;
    cursor: pointer;
}

.video-thumb figcaption {
    text-align: center;          /* centers the text */
    font-size: 0.95rem;          /* adjust size for readability */
    font-weight: 500;            /* give it a little emphasis */
    color: white;                 /* set a clean text color */
    background: rgba(0,0,0); /* optional: semi‑transparent overlay */
    margin-top: -32px;
    padding: 0.5em 1em;          /* breathing room around text */
    border-radius: 6px;          /* soften the edges */
}

.video-thumb img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

@media (max-width: 768px) {
    .video-thumb img {
        max-width: 100%;
    }
}

.video-thumb .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
}

.video-lightbox {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
