/* ============================================
   Simple CSS-Only Lightbox
   ============================================ */

/* Hide all checkboxes */
.lightbox-toggle {
    display: none;
}

/* Lightbox overlay - hidden by default */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

/* Show overlay when checkbox is checked */
.lightbox-toggle:checked ~ .lightbox-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Lightbox content */
.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
}

/* Lightbox image */
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1002;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Gallery image cursor */
.gallery-image {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}
