.gallery-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content;
    gap: 1px;
    margin-bottom: 1px;
}

.gallery .image {
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gallery .big-image-left {
    grid-column-start: 1;
    grid-column-end: 3;
}

.gallery .big-image-right {
    grid-column-start: 2;
    grid-column-end: 4;
}

.gallery .image:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.3);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery .image:hover:after {
    opacity: 1;
}

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

.gallery .buttons-center {
    padding: 4em 0;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
    transition: height 0.3s ease, padding 0.3s ease;
}

.gallery .buttons-center.buttons-hidden {
    height: 0;
    padding: 0;
}

.gallery-more {
    display: none;
}

.gallery-more.showed {
    display: grid;
}

@media screen and (max-width: 680px) {
    .gallery-inner {
        grid-template-columns: 1fr;
    }

    .gallery .big-image-left {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .gallery .big-image-right {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .gallery .image {
        aspect-ratio: 645 / 430;
    }
}
