.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    padding: 20px 0;
}
.gallery-container {
    max-width: 1100px;   /* controls overall width */
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    display: block;
}

.gallery-item .caption {
    padding: 10px;
    background-color: #f7f7f7;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}
