/* 
 * Lightbox Overlay Styles 
 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

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

/* 
 * The Image itself 
 */
.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

/* 
 * The Close Button 
 */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    z-index: 10001;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: #ff3b30;
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 
 * Make target images show cursor pointer 
 */
img.lightbox-trigger {
    cursor: pointer;
    transition: filter 0.2s ease;
}

img.lightbox-trigger:hover {
    filter: brightness(1.1);
}
