/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Matches the tan/beige background from your image */
    background: linear-gradient(#E6BE8A,black);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

.container {
    text-align: center;
    max-width: 2000px;
    width: 100%;
}

h1 {
    font-size: 3rem;
    color: #4a321f; /* Dark brown text color */
    margin-bottom: 30px;
}

/* The Grid Layout */
.gallery-grid {
    display: grid;
    /* Creates 3 equal columns */
    grid-template-columns: repeat(4, 1fr); 
    /* Gap between the images */
    gap: 20px; 
}

.gallery-item {
    aspect-ratio: 1 / 1; /* Keeps the items perfectly square */
    overflow: hidden;
    border-radius: 15px; /* Smooth rounded corners */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills square without stretching */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle hover effect */
.gallery-item img:hover {
    transform: scale(1.05);
}

/* Responsive: Switch to 2 columns on tablets, 1 column on phones */
@media (max-width: 800px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}