/* Lightbox modal styles for classic zegary.waw.pl remaster */
#rek-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#rek-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

#rek-lightbox-container {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#rek-lightbox-overlay.active #rek-lightbox-container {
    transform: scale(1);
}

#rek-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #111;
}

#rek-lightbox-caption {
    margin-top: 10px;
    color: #f5eed6;
    font-family: verdana, arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 90vw;
}

#rek-lightbox-close {
    position: absolute;
    top: -38px;
    right: 0;
    color: #f5eed6;
    font-size: 28px;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s, color 0.2s;
}

#rek-lightbox-close:hover {
    background: rgba(212, 175, 55, 0.8);
    color: #111;
}

#rek-lightbox-prev,
#rek-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: #f5eed6;
    font-size: 40px;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    user-select: none;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

#rek-lightbox-prev { left: -58px; }
#rek-lightbox-next { right: -58px; }

#rek-lightbox-prev:hover,
#rek-lightbox-next:hover {
    background: rgba(212, 175, 55, 0.85);
    color: #111;
}

/* On narrow screens there is no room beside the photo, so sit them over it. */
@media (max-width: 768px) {
    #rek-lightbox-prev { left: 4px; }
    #rek-lightbox-next { right: 4px; }

    #rek-lightbox-prev,
    #rek-lightbox-next {
        font-size: 30px;
        padding: 4px 10px;
    }
}

#rek-lightbox-iframe {
    width: 85vw;
    max-width: 650px;
    height: 75vh;
    max-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
