.gallery-block {}

.gallery-block .media__holder.hidden {
    display: none;
}

.gallery-block #more {
    margin: auto;
    margin-top: clamp(1.875rem, 1.706rem + 0.85vw, 2.5rem);
    max-width: 179px;
    width: 100%;
}

.gallery-block #more.hidden {
    display: none;
}

.gallery-block .gallery__wrap {
    /* display: grid;
    grid-template-columns: repeat(3, auto); */
    gap: clamp(1.25rem, 1.081rem + 0.85vw, 1.875rem);
    display: flex;
    flex-wrap: wrap;
}

.gallery-block .media__holder {
    max-width: 380px;
    width: 100%;
}

.gallery-block .media__holder:nth-child(4),
.gallery-block .media__holder:nth-child(6n+3) {
    /* grid-column: 2 span; */
    max-width: 650px;

}

.gallery-block .media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-height: 350px;
    height: 100%;
    cursor: pointer;
}

.gallery-block .image__holder {
    height: 100%;
    width: 100%;
}

.gallery-block .overflow {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    background: var(--primary);
}

.gallery-block .play {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-block .icon__holder {
    height: clamp(3.125rem, 2.82rem + 1.53vw, 4.25rem);
    width: clamp(3.125rem, 2.82rem + 1.53vw, 4.25rem);
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-block .icon__holder svg {
    height: 15px;
    width: 18px;
    object-fit: contain;
}

.fancybox__iframe {
    width: 80vw;
}

@media(any-hover: hover) {
    .gallery-block .media-card:hover .overflow {
        opacity: 0.7;
    }
}

@media(max-width: 1500px) {
    .gallery-block .gallery__wrap {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-block .media__holder {
        max-width: 100%;
    }

    .gallery-block .media__holder:nth-child(4),
    .gallery-block .media__holder:nth-child(6n+3) {
        grid-column: 2 span;
    }

    .gallery-block .media__holder:nth-child(4),
    .gallery-block .media__holder:nth-child(6n+3) {
        max-width: 100%;
    }
}

@media(max-width: 1100px) {
    .gallery-block .gallery__wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-block .media__holder:nth-child(4),
    .gallery-block .media__holder:nth-child(6n+3) {
        grid-column: 1 span;
    }


    .gallery-block .media__holder:nth-child(3),
    .gallery-block .media__holder:nth-child(4n+2) {
        grid-column: 2 span;
    }
}

@media(max-width: 750px) {
    .gallery-block .gallery__wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-block .media__holder:nth-child(3),
    .gallery-block .media__holder:nth-child(4n+2) {
        grid-column: 1 span;
    }

    .gallery-block .media__holder:nth-child(4),
    .gallery-block .media__holder:nth-child(6n+3) {
        grid-column: 2 span;
    }
}