body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

figure {
    margin: 0;
    padding: 0;
    text-align: center;
    max-width: 300px;
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

figure img:hover {
    transform: scale(1.05);
}

figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: gray;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: lightgray;
    border-top: 1px solid darkgray;
}