/* Gallery container */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 20px;
    max-width: 1200px;
    width: 100%;

}
/* Gallery item */
.gallery-item {
    position: relative; /* Make the gallery item a positioning context */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden; /* Ensure that the content does not overflow the boundary */
}

/* Image inside the gallery item */
.gallery-item img {
    object-fit: cover; /* This ensures the image fills the area without distortion */
    object-position: center; /* Keeps the image centered if it's larger than the div */
    width: 100%;
    height: 100%;
    position: absolute; /* Position it absolutely within the gallery item */
    top: 0;
    left: 0;
}
/* Responsive design for smaller screens */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

@media (max-width: 800px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}
