@media (min-width: 1001px) {
    .vacancies-gallery-wrapper .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 313px;
        gap: 10px;
        width: 100% !important;
        transform: none !important;
        grid-auto-flow: dense; /* Плотное размещение */
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+2),
    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+4) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+5),
    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+6) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+7) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .vacancies-gallery-wrapper .swiper-slide:nth-child(8n+8) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .vacancies-gallery-wrapper .swiper-slide {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        overflow: hidden;
        border-radius: 20px;
    }

    .vacancies-gallery-wrapper .swiper-slide img,
    .vacancies-gallery-wrapper .swiper-slide iframe,
    .vacancies-gallery-wrapper .swiper-slide .slider-main-image,
    .vacancies-gallery-wrapper .swiper-slide > a {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vacancies-gallery-wrapper .swiper-slide .slider-main-image,
    .vacancies-gallery-wrapper .swiper-slide > a {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .vacancies-gallery-wrapper .swiper-slide:nth-child(4) ~ .swiper-slide {
        display: none;
    }
    .vacancies-gallery-wrapper.show-all .swiper-slide:nth-child(4) ~ .swiper-slide {
        display: flex;
    }
}

.vacancies-gallery-wrapper .slider-main-image {
    overflow: hidden;
    border-radius: 20px;
}

.vacancies-gallery-wrapper .swiper-slide > a {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.vacancies-gallery-wrapper .swiper-slide img {
    display: block;
}

.vacancies-gallery-wrapper .swiper-slide > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vacancies-gallery-wrapper .video-iframe-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.vacancies-gallery-wrapper .video-iframe-slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.vacancies-gallery-btn {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}
.vacancies-gallery-wrapper .video-thumb-wrap {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
}
.vacancies-gallery-wrapper .video-thumb {
    width: 80px;
    height: 80px;
    background-color :#036739;
    border: 1px solid #FFFFFF33;
    opacity: 0.6;
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -ms-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.vacancies-gallery-wrapper .video-thumb-wrap:hover .video-thumb {
    opacity: 1;
}
.vacancies-gallery-wrapper .video-thumb-wrap svg {
    position: relative;
    z-index: 3;
}
.vacancies-gallery-wrapper .swiper-slide > a > .video-thumb {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.vacancies-gallery-wrapper .swiper-slide > a > .video-thumb svg {
    position: relative;
    z-index: 3;
}

@media (max-width: 1000px) {
    .vacancies-gallery-btn {
        display: none;
    }
    .vacancies-gallery-wrapper {
        overflow: hidden;
    }
    .vacancies-gallery-wrapper .swiper {
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        border-radius: 15px;
        height: 700px;
        overflow: hidden;
    }
    .vacancies-gallery-wrapper .swiper-slide {
        height: auto;
    }
    .vacancies-gallery-wrapper .slider-main-image {
        display: flex;
        height: 100%;
    }
    .vacancies-gallery-wrapper .swiper-slide img {
        width: 100%;
        object-fit: cover;
        height: 100%;
        max-width: 100%;
    }
    .vacancies-gallery-wrapper .custom-slider-navigation {
        display: flex;
    }
}
@media (max-width: 768px) {
    .vacancies-gallery-wrapper .swiper {
        height: 370px;
    }
}
