.gallery-block {}

.gallery-block .gallery__wrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
    height: 670px;
    overflow: hidden;
}


.gallery-block .gallery__item {
    width: 100%;
    height: 320px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
	transition: .4s ease;
}

.gallery-block .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-block .gallery__item.video {
    grid-column: span 2;
}


.gallery-block .video_preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-block .video_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-block .btn-play {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 1;
    transition: opacity .4s ease;
}


.gallery-block .gallery__item::before {
    width: 100%;
    height: 100%;
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    background: #0000004D;
opacity: 0;
    z-index: 1;
    transition: opacity .4s ease;
}

.gallery-block .gallery__item svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: 2;
}
.gallery-block .gallery__item.video svg {
    opacity: 1;
}

.gallery-block .gallery__item:hover svg {
    opacity: 1;
}

.gallery-block .gallery__item:hover::before {

	opacity: 1;
}

.gallery-block .btn_gallery_more {
    margin: 0 auto;
    margin-top: 30px;
}

@media (max-width: 1100px) {
    .gallery-block .gallery__wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        height: 660px;
    }
}

@media (max-width: 750px) {
    .gallery-block .gallery__wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: 660px;
    }

    .gallery-block .btn-play {
        opacity: 1;
    }
}

@media (max-width: 450px) {
    .gallery-block .gallery__wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: 640px;
    }

    .gallery-block .gallery__item.video {
        grid-column: unset;
    }

    .gallery-block .gallery__item {
        height: 200px;
    }
}