/* Spectra Logo Lightbox Styles */

.spectra-logo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.spectra-logo-lightbox.active {
    display: block !important;
}

.spectra-logo-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.spectra-logo-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.spectra-logo-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.spectra-logo-lightbox-close:hover {
    background: #fff;
}

.spectra-logo-lightbox-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.spectra-logo-lightbox-media img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.spectra-logo-lightbox-media iframe {
    width: 100%;
    height: 90vh;
    border: none;
}

/* Attempt to hide Google Docs Viewer toolbar using overlay */
.spectra-logo-lightbox-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    z-index: 100;
    pointer-events: none;
}

/* Also add overlay on the right side to hide the "Open in new window" button */
.spectra-logo-lightbox-media::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: white;
    z-index: 100;
    pointer-events: none;
}

/* You can also add custom CSS to hide specific Google Docs Viewer elements */
/* Note: Due to cross-domain restrictions, direct styling of iframe content may not work */

/* Overlay for Spectra image gallery images to intercept clicks */
.spectra-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    cursor: pointer;
}

.spectra-image-gallery__media {
    position: relative;
}

/* Prevent context menu on lightbox media */
.spectra-logo-lightbox-media img,
.spectra-logo-lightbox-media iframe {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
