#gallery {}

#gallery .gallery__wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

#gallery .gallery__item {
    border-radius: 15px;
    overflow: hidden;
    border-radius: 15px;
    overflow: hidden;
    max-height: 400px;
    cursor: pointer;
    height: 100%;
}

#gallery .image__holder {
    height: 100%;
    width: 100%;
    position: relative;
}

#gallery .gallery__item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#gallery .item-large {
    grid-column: 2 span;
}

#gallery .gallery__item.hidden {
    display: none;
}

#gallery .gallery__item .overflow {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

#gallery .gallery__item:hover .overflow {
    opacity: 1;
}

#gallery .gallery__title {
    margin-bottom: 30px;
}

#gallery .gallery__subtitle {
    margin-bottom: 20px;
}

#gallery .gallery__btn {
    max-width: 272px;
    height: 74px;
}

#gallery .gallery__more {
    margin: auto;
    margin-top: 30px;
    max-width: 172px;
}

#gallery .video__holder {
    position: relative;
    height: 100%;
    width: 100%;
}

#gallery .video__holder iframe {
    display: none;
}

#gallery .play {
    background-color: var(--white);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media(hover: none) {
    #gallery .video__holder .overflow {
        opacity: 1;
    }
}

@media(max-width: 1340px) {
    #gallery .gallery__wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    #gallery .item-large {
        grid-column: 1 span;
    }

    #gallery .gallery__item:first-child {
        grid-column: 2 span;
    }

    #gallery .gallery__item:nth-child(2),
    #gallery .gallery__item:nth-child(5),
    #gallery .gallery__item:nth-child(6) {
        grid-column: 2 span;
    }
}

@media(max-width: 1000px) {
    #gallery .gallery__item {
        max-height: 300px;
    }
}

@media(max-width: 700px) {
    #gallery .gallery__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    #gallery .gallery__item {
        max-height: 250px;
        height: 100%;
    }

    #gallery .gallery__btn {
        height: unset;
    }

    #gallery .gallery__item:first-child {
        max-height: fit-content;
    }

    #gallery .gallery__item:nth-child(2),
    #gallery .gallery__item:nth-child(5),
    #gallery .gallery__item:nth-child(6) {
        grid-column: 1 span;
    }
}

@media(max-width: 500px) {
    #gallery .gallery__wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #gallery .gallery__item:first-child {
        grid-column: 1 span;
    }
}