html,
body {
    background-image: url(../images/background.png);
    overflow-x: hidden;
    width: 100%;

}

.gallery-title{
    font-family: Averia Serif Libre;
    font-weight: 500;
}

/* Gallery Grid Layout */
.gallery-container {
    padding: 2rem;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 260px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Tablet View */
@media (max-width: 991px) {
    .gallery-container {
        padding: 1.5rem;
    }

        .gallery-img {
            width: 100%;
            max-width: 300px;
        }

    .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    .gallery-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Mobile View */
@media (max-width: 767px) {
    .gallery-container {
        padding: 1rem;
    }

    .gallery-img {
        width: 100%;
        max-width: 250px;
    }

    .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Adjust container padding */
    .container-fluid {
        padding: 1rem !important;
    }

    /* Improve spacing */
    .mt-5 {
        margin-top: 2rem !important;
    }

    .pb-5 {
        padding-bottom: 2rem !important;
    }
}

/* Image Loading Animation */
.gallery-img {
    border-radius: 5px;
    border: 2px solid #4A010A;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Loading */
.gallery-item:nth-child(1) img { animation-delay: 0.1s; }
.gallery-item:nth-child(2) img { animation-delay: 0.2s; }
.gallery-item:nth-child(3) img { animation-delay: 0.3s; }
.gallery-item:nth-child(4) img { animation-delay: 0.4s; }
.gallery-item:nth-child(5) img { animation-delay: 0.5s; }
.gallery-item:nth-child(6) img { animation-delay: 0.6s; }










.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

/* Lightbox content wrapper */
.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The displayed image */
.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Prev/Next controls */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    color: #f4cfa5; }