.gallery {
    margin: 20px;
    
}

.gallery h1 {
    color: #666;
    text-transform: uppercase;
}





.gallery-grid {
    column-count: 4;
    column-gap: 10px;
}



.gallery-item {
    position: relative;
    overflow: hidden; /* Ensures the image doesn't exceed the container */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px; /* Optional: for a softer look */
    break-inside: avoid;
    margin-bottom: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Slight zoom effect */
}



.gallery-item:hover .image-overlay {
    transform: translateY(0); /* Slide up into view */
}


.image-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}


.image-caption {
    font-size: 14px;
    opacity: 0.8;
}





.image-overlay {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: left;
    padding: 15px;
    transform: translateY(100%); /* Initially hidden */
    transition: transform 0.3s ease-in-out;
}