/* click-to-play youtube facade (same footprint as the iframe rules in sections.css) */

.video-facade {
    position: relative;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    border-radius: 2px;
}

.video-facade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s transform ease-out;
}

.video-facade:hover img {
    transform: scale(1.03);
}

.video-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(218, 38, 74, 0.92);
    color: #fff;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.15s all ease-out;
}

.video-facade:hover .video-facade-play,
.video-facade:focus .video-facade-play {
    background-color: #da264a;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-facade:focus {
    outline: 2px solid #da264a;
    outline-offset: 2px;
}

.flex-section .video-facade iframe,
.reverse-flex-section .video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media(min-width: 1366px) {
    .flex-section .video-facade,
    .reverse-flex-section .video-facade {
        width: 560px;
        height: 315px;
    }
}

@media(max-width: 1366px) and (min-width: 1024px) {
    .flex-section .video-facade,
    .reverse-flex-section .video-facade {
        width: 560px;
        height: 315px;
    }
}

@media(max-width: 1024px) and (min-width: 769px) {
    .flex-section .video-facade,
    .reverse-flex-section .video-facade {
        width: 560px;
        height: 315px;
    }
}

@media(max-width: 769px) {
    .flex-section .video-facade,
    .reverse-flex-section .video-facade {
        width: 100%;
        height: 275px;
    }
}
