﻿/* ======================================
   VIDEO LIGHTBOX MODAL
====================================== */

.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s cubic-bezier(.2,.8,.2,1),
                visibility 0s linear 0.3s;
}

.video-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: opacity 0.3s cubic-bezier(.2,.8,.2,1);
}

.video-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(960px, 92vw);
    aspect-ratio: 16 / 9;
    max-height: 80vh;

    transform: translate(-50%, -50%) scale(0.6);

    background: #000;
    overflow: hidden;

    border: none;

    box-shadow: 0 30px 60px rgba(0,0,0,1);

    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.video-modal-overlay.is-open .video-modal {
    transform: translate(-50%, -50%) scale(1);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.video-modal-close:hover {
    background: rgba(0,0,0,0.9);
}


/* ======================================
   VIDEO LINK WITH PLAY ICON
====================================== */

.video-lightbox {
    cursor: pointer;
}

.video-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #1c5a97;
}

.video-icon:hover {
    color: #154473;
}

.video-icon-play {
    width: 28px;
    height: 28px;
    background: #1c5a97;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.video-icon-play::before {
    content: "";
    position: absolute;
    left: 56%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid white;
}

.video-icon:hover .video-icon-play {
    transform: scale(1.1);
}