.acf-video-grid {
    width: 100%;
    max-width: 100%;
}

.acf-video-grid__item + .acf-video-grid__item {
    margin-top: 1em;
}

.acf-video-grid__item {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.acf-video-grid__video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Overlay covers the whole video area */
.acf-video-grid__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.acf-video-grid__overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Hide overlay when video is playing */
.acf-video-grid__item.is-playing .acf-video-grid__overlay {
    display: none;
}

/* Play button SVG */
.acf-video-grid__play-btn {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.15s ease;
}

.acf-video-grid__overlay:hover .acf-video-grid__play-btn {
    transform: scale(1.1);
}
