section.gifs {
    padding: 0;
}

.gifs__wrapper {
    padding: 50px;
    display: flex;
    gap: 83px;
    flex-wrap: wrap;
    max-width: 1656px;
    margin-left: auto;
    margin-right: auto;
}

.gifs__heading {
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    padding: 20px 0;
    background: linear-gradient(90deg, #c29226 0%, #b27d0f 20%, #d9b14a 40%, #fade7b 60%, #dab74f 80%, #c7972b 100%);
}

.gifs__item {
    position: relative;
    flex-basis: calc((100% - 166px) / 3);
}

.gifs__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gifs__item svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);;
}

.gifs__item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, rgba(194, 146, 38, 0.5) 0%, rgba(178, 125, 15, 0.5) 20%, rgba(217, 177, 74, 0.5) 40%, rgba(250, 222, 123, 0.5) 60%, rgba(218, 183, 79, 0.5) 80%, rgba(199, 151, 43, 0.5) 100%);
}

.gifs__item-gif {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.gifs__item:hover .gifs__item-gif {
    opacity: 1;
}

.gifs__bottom-bar {
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, #c29226 0%, #b27d0f 20%, #d9b14a 40%, #fade7b 60%, #dab74f 80%, #c7972b 100%);
}

@media screen and (max-width: 1599.98px) {
    .gifs__wrapper {
        gap: 50px;
        padding: 40px;
    }

    .gifs__item {
        flex-basis: calc((100% - 100px) / 3);
    }
}

@media screen and (max-width: 1024.98px) {
    .gifs__wrapper {
        gap: 30px;
        padding: 30px;
    }

    .gifs__item {
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media screen and (max-width: 599.98px) {
    .gifs__wrapper {
        gap: 10px;
        padding: 20px 10px;
    }

    .gifs__item {
        flex-basis: calc((100% - 10px) / 2);
    }

}