body{
    background-color: beige;
    font-family: "Merriweather", serif;
    margin: 0;
    padding: 0;
  
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 1em 0;
}

.title{
    margin: 1.5em 0;
    text-align: center;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
}

.photo-gallery{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 15px;
    justify-content: center;
    align-items: start;
    padding: 2em;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center; 
    border: 2px solid rgb(208, 208, 197); 
    padding: 8px;
    margin: 10px auto;
    border-radius: 5px; 
    background-color: white; 
    transition: transform 0.3s ease-in-out;
}


figcaption {
    background-color: black;
    color: white;
    font-style: italic;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
    font-size: 0.9rem;
}


.gallery-img {
    width: 100%;
    max-width: 300px; 
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%; 
    }

    .title {
        font-size: 2rem; 
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    }

    .gallery-img {
        max-width: 250px; 
    }

    figcaption {
        font-size: 0.8rem;
    }
}