.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
    transition: 0.3s;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*.gallery__link {
    overflow: hidden;
    height: 400px;
    max-height: 400px;
}*/

@media (hover: hover) 
    {
    .gallery:hover .gallery__image {
        filter: grayscale(0);
        /*filter: grayscale(1);*/
    }

    .gallery__link:hover .gallery__image {
        filter: grayscale(0);
    }

    .gallery__link:hover .gallery__caption {
        opacity: 1;
    }
 /*
    .gallery__image:hover {
       transform: scale(1.1);
        transform: scale(1);
    }*/
}

.gallery__thumb {
    position: relative;
    height: 100%;
}

.gallery .gallery__item .gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px 15px 15px;
    width: 100%;
    font-family: "Helvetica", sans-serif;
    font-size: 14px;
    color: white;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    transition: 0.3s;
}

.gallery__item {
    display: flex;
    flex-direction: column;
}

/*.gallery .gallery__thumb {
    height: 400px;
}*/

.vote {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
    /*background: #f5f5f5;*/
}


/*.gallery:hover .gallery__image {*/
/*    filter: grayscale(1);*/
/*filter: none;*/
/*}*/
