/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

#lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: #fff;
    padding: 15px;
    font-size: 16px;
    text-align: center;
}

#lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

#lightbox-close:hover {
    color: #ffa800;
}

/* Gallery Item Styles - Uniform Sizing */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 220px;
    height: 165px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-item img {
        width: 100%;
        max-width: 220px;
        height: 165px;
    }

    #lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}
