/* photo album css */
#loading-message {
    text-align: center;
    padding: 10px;
    font-size: 1.5em;
}
.gallery-img-container {
    position: relative;
    display: inline-block;
    break-inside: avoid; /* Prevent images from breaking into separate columns */
}

.gallery-container {
    column-count: 5; /* Start with 6 columns by default */
    column-gap: 0; /* Remove any gap between columns */
    transition: all 0.5s ease;
}

.gallery-img {
    /* Add any additional styles you need for the images in the gallery */
    width: 100%;
    height: auto;
    transition: filter 0.3s, transform 0.3s;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    filter: brightness(30%);
}

.img-overlay {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    display: none;
    pointer-events: none;
}

.gallery-img-container:hover .img-overlay {
    cursor: pointer;
    display: block;
}

/* Media queries to adjust the number of columns based on screen size */
@media (max-width: 1200px) {
    .gallery-container {
        column-count: 5;
    }
}

@media (max-width: 992px) {
    .gallery-container {
        column-count: 4;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        column-count: 3;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        column-count: 2;
    }
}

/* Add 1 column layout for even smaller screens */
@media (max-width: 400px) {
    .gallery-container {
        column-count: 1;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 999;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 999;
}

#prev-btn {
    left: 30px;
}

#next-btn {
    right: 30px;
}
.slide-in-from-right {
    animation: slideInFromRight 0.3s ease;
}

.slide-in-from-left {
    animation: slideInFromLeft 0.3s ease;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}