#gallery-block {
    padding: 40px 0px;
}

#gallery-block .swiper {
    overflow: unset;
}

#gallery-block .gallery-holder {
    overflow: hidden;
}

#gallery-block .gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

#gallery-block .gallery-item:before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-color: var(--primary);
    opacity: 0;
    transition: 0.3s;
    /* background-image: url(images/loop.png); */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#gallery-block .gallery-item-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    border-radius: 2px;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

#gallery-block .gallery-item-hover svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

#gallery-block .gallery-item:hover:before {
    opacity: 0.7;
}

#gallery-block .gallery-item:hover .gallery-item-hover {
    opacity: 1;
}

#gallery-block .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: 0.5s;
    aspect-ratio: 1 / 0.55;
}

#gallery-block .gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 996px) {
    #gallery-block {
        padding: 30px 0;
    }
}