.gallery-grid {
    display: grid;
    grid-template-columns:  1fr 1fr 1fr;
    grid-gap: 1rem;
    margin: 1rem;
}

@media (max-width: 1250px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr ;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #f0f0f0; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    border-radius: 5px;
}

.gallery-item:hover {
    cursor: pointer;
}



 /* Lightbox styles */
 .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.lightbox-content {
    display: inline-block; /* Ensure the image is centered */
    max-width: 90%; /* Adjust as needed */
    max-height: 80%; /* Adjust as needed */
    margin: auto;
    vertical-align: middle;
    position: relative;
    top: 12%;
    left: auto;
    z-index: 0;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
    transition: 0.6s ease;
    z-index: 10;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px;
    max-width: 90%;
}