/* Shared lightbox, used on the portraits, events, and commercial photo grids */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    gap: 1rem;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    max-width: 80vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-information-and-actions {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
}

#lightbox-counter {
    color: var(--background-navigation);
    font-size: 1.5rem;
}

.lightbox-close {
    color: var(--background-navigation);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

#chevron-backward,
#chevron-forward {
    width: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

#chevron-backward:hover,
#chevron-forward:hover {
    opacity: 1;
}

.photo-grid img {
    cursor: zoom-in;
}

@media screen and (max-width: 768px) {
    #chevron-backward,
    #chevron-forward {
        width: 1.5rem;
    }
}
