.gallery-b {
    padding: 0;
    width: unset;
    cursor: pointer;
    margin: 29px 0;
}

.gallery-b .main {
    /* height: 530px; */
}
.gallery-b .main::after,
.gallery-b .slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(68deg, rgba(4, 178, 173, 0.10) 0%, rgba(160, 177, 247, 0.10) 100%); */
    background-blend-mode: screen;
    /* border-radius: 24px; */
}
.gallery-b .slides {
    overflow: hidden;
    cursor: pointer;
}
.gallery-b .slide {
    margin: 0;
    margin-right: 24px;
    margin-top: 16px;
    height: 115px;
    width: 100%;
    min-width: 186px;
}

/* Project popup */
.project-popup__gallery-col .gallery-b .main,
.gallery-b .slide {
    overflow: hidden;
}
.project-popup__gallery-col .gallery-b .main img {
    max-height: calc(100vh - 411px);
    height: 100%;
}
.project-popup__gallery-col .gallery-b .main img,
.gallery-b .slide img {
    transition: all 0.3s ease;
}
.project-popup__gallery-col .gallery-b .main:hover img,
.gallery-b .slide:hover img {
    transform: scale(1.05);
}
@media (min-width: 1100px) {
    .gallery-b .main img {
        min-height: 427px;
    }
}
@media (max-width: 1099px) {
    .gallery-b {
        margin-top: 22px;
        margin-bottom: 22px;
    }
    .gallery-b .main img {
        max-height: 186px;
    }
    .gallery-b .slide {
        margin-top: 8px;
        margin-right: 12px;
        min-width: 31%;
        height: 63px;
    }
    .gallery-b .slide img,
    .gallery-b .slide {
        border-radius: 8px;
    }
}

.gallery.fancybox-content {
    margin-top: 0;
}
.fancybox-slide {
    overflow: hidden;
}
.gallery__nav .flex-direction-nav .flex-prev svg {
    transform: translateY(-50%) rotate(180deg);
}
.gallery__nav {
    margin: auto;
}


.gallery-b .main img,
.gallery-b .slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
