/* Reset some defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f2ef;
    color: #333;
}

main {
    display: flex;
    justify-content: center; 
    align-items: center;     
    min-height: calc(100vh - 110px); 
    padding: 2rem 1rem;
}

.gallery-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1500px;
}

.gallery-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.gallery-card h2 {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 600px) {
    .gallery-card h2 {
        font-size: 1rem;
    }
}