#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.gallery-media {
    max-width: 80%;
    max-height: 80%;
}

#close, #prevBtn, #nextBtn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

#close1 {
    top: 20px;
    right: 20px;
}

#close1, #prevBtn1, #nextBtn1 {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

#close {
    top: 20px;
    right: 20px;
}

#prevBtn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#nextBtn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#prevBtn1 {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#nextBtn1 {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

button#openGallery {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}



/* Active state when image is visible */
.lightbox-img.active,
.lightbox-video.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Sliding animations */
.lightbox-img.left, .lightbox-video.left {
    transform: translateX(-100%);
}

.lightbox-img.right, .lightbox-video.right {
    transform: translateX(100%);
}

/* Close Button */
#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none ;
}

#close:hover {
    color: red;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 1000;
}
#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    font-size: 18px;
}

.prev-btn {
    left: 20px;
    
}

.next-btn {
    right: 20px;
    
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#lightbox {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.gallery-media {
    max-width: 80%;
    max-height: 80%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

.right {
    transform: translateX(100%);
    opacity: 0;
}

.left {
    transform: translateX(-100%);
    opacity: 0;
}

.active {
    transform: translateX(0);
    opacity: 1;
} 
#lightbox1 {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}
