body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

.gallery-section {

    padding: 20px 70px;
    background-color: #f9f9f9;
}

.gallery-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.gallery-card {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.image-title {
    font-size: 1.7rem;
    text-align: center;
    font-weight: 600;
    color: #555;
    padding: 10px 0;
    background-color: #f4f4f4;
    margin: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Responsive tweaks (optional override) */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-card img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 180px;
    }

    .image-title {
        font-size: 1rem;
    }

}