/* ================== ZK LIGHTBOX CSS ================== */

.zk-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 280ms ease;
    overflow: hidden;
}

.zk-lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

.zk-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 95vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1); /* nice overshoot */
}

.zk-lightbox-overlay.show .zk-lightbox-content {
    transform: scale(1);
    height: 85%;
}

.zk-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.zk-lightbox-close:hover,
.zk-lightbox-close:focus {
    background: #000;
    transform: scale(1.1);
    outline: 3px solid #fff;
}

.zk-lightbox-iframe {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: none;
    display: block;
}

/* Title for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles - very important for accessibility */
.zk-lightbox-overlay:focus,
.zk-lightbox-close:focus,
.zk-lightbox-content:focus-within {
    outline: 4px solid #007cba; /* WordPress blue by default */
    outline-offset: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zk-lightbox-content {
        width: 96%;
        max-height: 98vh;
        border-radius: 6px;
    }
    
    .zk-lightbox-iframe {
        min-height: 50vh;
    }
}

/* Optional: Loading indicator */
.zk-lightbox-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 18px;
}

.zk-lightbox-iframe:not([src*="loaded"]) + .zk-lightbox-content::before { /* you can enhance this in JS if needed */
    display: flex;
}