/* ============================================================
   Video Modal — Thumbnail + Play Button + Fullscreen Overlay
   ============================================================ */

/* --- Thumbnail container --- */
.video-modal-trigger {
    position: relative;
    cursor: pointer;
    display: block;
    margin: 0px 15px 0px 0px !important;
    overflow: hidden;
    line-height: 0;
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
}

.video-thumbnail img {
    display: block;
    max-width: 577px;
    height: auto;
    object-fit: cover;
}

.video-modal-trigger:hover .video-thumbnail img {
    filter: none;
    transform: none;
}

/* --- Play button overlay --- */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.2s ease;
    margin: 0px;;
}

.video-play-button svg {
    display: block;
    width: 83px;
    height: 48px;
}

.video-modal-trigger:hover .video-play-button {
    opacity: 0.9;
    border: none;
    background: none;
}

/* --- Modal overlay --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.video-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

/* --- Modal content --- */
.video-modal__content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    z-index: 1;
}

.video-modal__iframe-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-modal__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Close button --- */
.video-modal__close {
    position: absolute;
    top: -80px;
    right: -30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
    background: none;
    color: #fff;
}


.video-modal__close:hover,.video-modal__close:focus {
    opacity: 1;
    transform: scale(1.15);
    background: none;
    outline: none;
}

.video-modal__close svg {
    display: block;
    width: 28px;
    height: 28px;
    color: #fff;
}

.video-modal__close svg:focus {
    outline: none;
}
/* --- Cookie consent overlay on thumbnail --- */
.video-cookie-consent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 50, 91, 0.90);
    color: #fff;
    z-index: 3;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-cookie-consent__icon {
    margin-bottom: 12px;
    line-height: 0;
}

.video-cookie-consent__icon svg {
    color: #fff;
}

.video-cookie-consent__message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px 0;
    max-width: 400px;
}

.video-cookie-consent__link {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #00325b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.video-cookie-consent__link:hover {
    background: #e4e9ef;
    color: #00325b;
}

.video-modal-trigger--no-consent {
    cursor: default;
}

.video-modal-trigger--no-consent .video-thumbnail img {
    filter: blur(3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .video-play-button svg {
        width: 70px;
        height: 38px;
    }
    .video-thumbnail img {
        width: 100%;
    }
    .video-cookie-consent__message {
        font-size: 12px;
    }
    .video-cookie-consent__link {
        font-size: 12px;
        padding: 6px 16px;
    }
}
