.photogallery
{
    position: relative;
    column-count: 5;
    column-gap: 1.2rem;
    width: 100%;
}

.photogallery a {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.2rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photogallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photogallery-container{
    margin: auto;
    width: 100%;
}
.pswp img {
    max-width: none;
    object-fit: contain;
}
h5{
    text-align: center;
    margin: auto;
    margin-top: 5rem;
    margin-bottom: 5rem;
    color: black;
}

h2{
    color: black;
    font-size: 4rem;
    font-family: 'Playfair Display';
    font-weight: 800;
    margin: auto;
    margin-bottom: 5rem;
    text-align: center;
}
.photogallery img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.photogallery a:hover img {
    transform: scale(1.05);
}
@media screen and (max-width:768px) {
    .photogallery-container{
        width: 100%;
    
    }
    .photogallery{
        column-count: 3;
        column-gap: 1rem;
    }
    .photogallery a {
        margin-bottom: 1rem;
    }
    .page-heading
    {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    h5{
        margin-bottom: 1rem;
        font-size: 1rem;
    }
}

/* Gallery loading state */
.gallery-loading {
    column-span: all;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 3rem 1rem;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
}

/* Fade-in animation for gallery images */
.gallery-img-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-img-fade.loaded {
    opacity: 1;
    transform: translateY(0);
}
@media screen and (max-width: 576px) {
    .photogallery {
        column-count: 2;
        column-gap: 0.8rem;
    }
    .photogallery a {
        margin-bottom: 0.8rem;
    }
}