/* Video Popup Modal Styles */
.videoPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: rgba(8, 0, 60, 0.7); /* Deep dark blue overlay matched to theme color #08003c */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.videoPopup.show {
    opacity: 1;
    visibility: visible;
}

.videoPopup .inner {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.videoPopup.show .inner {
    transform: scale(1);
}

.videoPopup .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    font-weight: 300;
}

.videoPopup .close:hover {
    color: #ed312f; /* Red from theme */
    transform: scale(1.1);
}

.videoPopup .videoWrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.videoPopup .videoWrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 0 16px 16px;
}
