/* Altemur Video Popup Premium Styling */

.altemur-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.altemur-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Reduced opacity for better background visibility */
    backdrop-filter: blur(5px);
}

.altemur-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    overflow: visible; /* Changed to show close button */
}

.altemur-video-modal.is-active .altemur-modal-content {
    transform: scale(1);
}

.altemur-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
}

.altemur-modal-close:hover {
    background: #d4af37;
    color: #fff;
    transform: scale(1.1);
}

.altemur-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.altemur-video-container iframe,
.altemur-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .altemur-modal-content {
        width: 85%;
    }
    .altemur-modal-close {
        top: -15px;
        right: -15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
