/* =============================================================
 * Widget "El Ganso · Home: vídeo" (Yeboyebo_HomeWidgets,
 * Magento_Theme::html/home/video.phtml)
 *
 * Los iframes de YouTube y Vimeo no admiten object-fit: en modo fondo se
 * agrandan (proporción 16:9) hasta cubrir la sección, como object-cover,
 * usando el tamaño de la sección (container-type: size, unidades cq*).
 * Botón de play (modo reproductor) y de sonido (modo fondo con sonido).
 * ============================================================= */

.elg-home-video {
    container-type: size;
}

.elg-home-video-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.elg-home-video-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.elg-home-video-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
}

.elg-home-video-play:hover,
.elg-home-video-play:focus-visible {
    background: rgba(0, 0, 0, 0.5);
}

.elg-home-video-play svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-left: 0.2rem;
}

.elg-home-video-sound {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
}

.elg-home-video-sound:hover,
.elg-home-video-sound:focus-visible {
    background: rgba(0, 0, 0, 0.5);
}

.elg-home-video-sound svg {
    width: 1.25rem;
    height: 1.25rem;
}
