.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.thumbnail {
    margin: 10px;
    width: calc(25% - 20px);
    overflow: hidden;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail:hover video {
    transform: scale(1.1);
}
