/* =========================================================
   WCCO Video Lightbox
   ========================================================= */

/* Modal overlay */
.wcco-video-modal.wcco-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;

    &[hidden] { 
        display: none; 
    }
    .wcco-modal__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .82);
        cursor: pointer;
    }
    .wcco-modal__inner--video {
        position: relative;
        z-index: 1;
        background: #000;
        border-radius: 6px;
        width: 90vw;
        max-width: 960px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, .7);
        overflow: none;

        .wcco-modal__header {
            display: flex;
            justify-content: flex-end;
            padding: 5px;
            background: #111;
            border: 0;

            .wcco-modal__close {
                background: none;
                border: none;
                color: #fff;
                font-size: 25px;
                line-height: 1;
                cursor: pointer;
                padding: 4px 8px;
                opacity: .7;
                transition: opacity .15s;

                &:hover { 
                    opacity: 1; 
                }
            }
        }
        .wcco-video-wrap {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            background: #000;

            .wcco-video-player {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                display: block;
                background: #000;
            }
        }
    }
}

/* Trigger element */
.wcco-video-trigger {
    cursor: pointer;
    display: inline-block;
}

/* Body scroll lock */
body.wcco-modal-open {
    overflow: hidden;
}