
.gallery-block {
    width: 100%;
}

.gallery-tabs {
    display: flex;
}

.gallery-tab {
    padding: 10px 41.5px;
    text-align: center;
    border-bottom: 1px solid #282828;
    opacity: 0.5;
    font-family: var(--fira-sans-condensed);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    position: relative;
    transition: .2s linear;
}

.gallery-tab::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0%;
    height: 1px;
    background: #000;
    transition: .2s linear;
}

.gallery-tab.active {
    opacity: 1;
    transition: .2s linear;
}
.gallery-tab.active::after {
    width: 100%;
    transition: .2s linear;
}

.gallery-content {
    width: 100%;
    padding: 48px 0 0 0;
}

.gallery-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    gap: 32px;
    height: 436px;
}

.gallery-panel.active {
    opacity: 1;
    visibility: visible;
}

.gallery-swiper {
    width: 436px;
    /*height: 436px;*/
}

.gallery-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    
    
    p {
        color: #666;
        font-size: 14px;
        line-height: 14px;
    }
    
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.swiper-nav {
    display: flex;
    flex-flow: column wrap;
    gap: 24px;
    place-content: center;
}

.swiper-nav_next,
.swiper-nav_prev {
    width: 58px;
    height: 58px;
    display: flex;
    flex-flow: row wrap;
    place-content: center;
    background: #282828;
    border-radius: 50%;
    padding-left: 4px;
    transition: .2s linear;
    
    svg {
        width: 16px;
        height: auto;
    }
}

.swiper-nav_prev {
    transform: rotate(-180deg);
}

.swiper-button-disabled {
    opacity: 0.5;
    transition: .2s linear;
}

.gallery-swiper-thumbs .swiper-slide {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media screen and (min-width: 1280px) {
    .gallery-swiper-thumbs .swiper-slide {
        width: 132px !important;
        height: 132px !important;
    }
}

@media screen and (max-width: 1023px) {
    .swiper {
        width: 100%;
    }
    
    .gallery-tabs {
        overflow-y: scroll;
        width: calc(100% - 24px);
        margin: 0 0 0 auto;
    }
    
    .gallery-tab {
        padding: 10px 32px;
        font-size: 18px;
        line-height: 32px;
        height: fit-content;
        width: fit-content;
        white-space: nowrap;
    }
    
    .gallery > .container {
        width: 100%;
        /*padding: 0 0 0 24px;*/
        padding: 0;
    }
    
    .gallery-panel {
        flex-direction: column;
        height: auto;
        position: relative;
    }
    
    
    .gallery-panel .gallery-grid.gallery-swiper {
        width: calc(100% - 24px);
        margin: 0 auto;
        height: 357px;
    }
    
    .gallery-panel .swiper-nav {
        position: absolute;
        z-index: 2;
        flex-flow: row;
        justify-content: space-between;
        width: calc(100% - 24px);
        left: 50%;
        transform: translateX(-50%);
        /*top: 162.5px;*/
        top: unset;
        bottom: 50px;
    }
    
    .swiper-nav_next, .swiper-nav_prev {
        width: 32px;
        height: 32px;
        
        svg {
            width: 10px;
            height: auto;
        }
    }
    
    .gallery-swiper-thumbs {
        width: calc(100% - 24px);
        margin: 0 0 0 auto !important;
    }
    
    .gallery-swiper-thumbs .swiper-slide {
        aspect-ratio: 1 / 1;
    }
    
    .gallery-swiper .swiper-slide {
        
        p {
            text-align: center;
        }
        
       
    }
}

@media screen and (min-width: 1024px) and (max-width: 1535px) {
     
    .gallery-tab {
        white-space: nowrap;
        font-size: 20px;
    }
    
    .gallery-tabs {
        overflow-y: scroll;
        width: calc(100% - 24px);
        margin: 0 0 0 auto;
    }
    
    .gallery-content {
        width: calc(100% - 48px);
        margin: 0 auto;
    }
}