/* YouTube Popup Styling */
.mfp-iframe-holder .mfp-content {
    max-width: 900px;
    line-height: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: visible !important;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000;
    visibility: visible !important;
    z-index: 9999;
}

.mfp-iframe-holder .mfp-close {
    top: -40px;
    right: -6px;
    color: #fff;
    z-index: 10000;
}

/* Ensure popup overlay is visible */
.mfp-bg {
    opacity: 0.8;
}

/* Animation for popup */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}
