/* ==========================================
   Lightbox (Image Modal Popup) Styles
   ========================================== */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2001;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

/* The close "x" is now a real <button>, so the first lines remove the default button look */
.lightbox-close {
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-family: inherit;

    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ff7060;
}

/* Show where the keyboard focus is */
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}