.gallery {
    column-width: 300px;
    column-gap: 16px;
    padding: 5% 10%;
}

.gallery img {
    width: 100%;
    border-radius: 4%;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.gallery img:hover {
    transform: scale(1.05);
    position: relative;
}

.gallery img:hover::after {
    content: attr(data-tags);
    display: block;
    border-radius: 4%;
    white-space: nowrap;
}
