/* Woodbriks Videos — reaproveita muito do galeria.css.
   Item de vídeo: overlay play button + suporte a thumb fallback + lightbox iframe. */

.wb-videos-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 vídeos = 2 colunas por padrão */
}

/* Só 2 vídeos, o mobile mantém 2 (fica lado-a-lado ok em telas pequenas) */
@media (max-width: 600px) {
    .wb-videos-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.wb-video-item {
    aspect-ratio: 16 / 9; /* vídeos usam proporção widescreen */
}

.wb-video-thumb-fallback {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #2c3038 0%, #1a1d24 100%);
}

.wb-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}

.wb-video-item:hover .wb-video-play {
    transform: scale(1.08);
}

.wb-video-play svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

/* Lightbox de vídeo — fullscreen escuro */
.wb-video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.wb-video-lightbox[hidden] {
    display: none;
}

.wb-video-lightbox-inner {
    position: relative;
    width: min(90vw, 1280px);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.wb-video-lightbox-inner iframe,
.wb-video-lightbox-inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Instagram embed é mais alto que largo — força ratio 9:16 quando .wb-video-lightbox-instagram */
.wb-video-lightbox-instagram .wb-video-lightbox-inner {
    aspect-ratio: 9 / 16;
    width: min(420px, 90vw);
    max-height: 90vh;
}

.wb-video-lightbox .wb-lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    padding: 6px 10px;
    line-height: 1;
    transition: opacity .2s;
    z-index: 2;
}

.wb-video-lightbox .wb-lb-close:hover {
    opacity: .65;
}
