/* ==================================================*/
/* Fancybox CSS - SCORM/HTML display */
/* Last updated: 2025-03-23 16:17:56 by Ian-MP */
/* ==================================================*/

/* General Styles */
body.compensate-for-scrollbar,
body.fancybox-active {
    overflow: hidden !important;
}

.fancybox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically and horizontally */
}

/* Overlay styles */
.fancybox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.8); /* Semi-transparent dark overlay */
    z-index: 99990;
}

/* Content styles */
.fancybox-content {
    position: relative;
    background: #fff;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    z-index: 99993;
    margin: auto;
    display: flex;
    overflow: hidden;
}

/* Iframe styles */
.fancybox-iframe {
    background: transparent;
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1; /* Ensure iframe takes full space within content */
}

/* Close button */
.fancybox-button--close {
    position: absolute;
	float:right;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(183,71 42);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    z-index: 99999;
    transition: background-color 0.2s;
}

.fancybox-button--close svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin: 3px;
}

.fancybox-button--close:hover {
    background: rgba(255,180,22);
}

.fancybox-button--close:hover svg {
    fill: rgb(44,89,128);
}

/* Mobile adjustments */
@media all and (max-height: 576px) {
    .fancybox-content {
        width: 95%;
        height: 95%;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .fancybox-button--close {
        top: 10px;
        right: 10px;
    }
}