body {
    background: #f4f4f4;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 1000px;
    justify-content: center;
}

.gallery-item {
    flex-basis: calc(33.333% - 10px);
    box-sizing: border-box;
}

.gallery-link {
    display: block;
}

.gallery-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}