/* --- Image Lightbox Styles --- */

/* Add a pointer cursor to any image that is designated as lightbox-able.
   Targeting the content container makes the rule specific to page content. */
#content-container img.lightboxable {
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* A slightly transparent white background */
    z-index: 2000; /* Ensure it's on top of everything */
    
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95); /* Start slightly smaller for the zoom effect */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.lightbox-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.lightbox-content {
    max-width: 90vw;  /* 90% of viewport width */
    max-height: 90vh; /* 90% of viewport height */
    object-fit: contain; /* Ensures the image scales down to fit, maintaining aspect ratio */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 4px;
}