.fc_gallery_block {
    display: flex;
    gap: 20px;
    text-align: right;
    justify-content: flex-end;
}

.fc_gallery_block.right {
    flex-direction: row-reverse;
    text-align: left;
    justify-content: flex-start;
}

.fc_gallery_block.logos_1 .gallery_block_content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.fc_gallery_block.right.logos_1 .gallery_block_content {
    align-items: flex-start;
}

.fc_gallery_block.logos_1 .gallery_block_content > span {
    display: block;
    height: 124px;
    aspect-ratio: 1;
    background: center / contain no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='125' height='125' fill='none'%3e%3cg fill='%23917653' opacity='.2'%3e%3cpath d='M.9 124.4H44L1 81.3v43.1ZM.9 23.4l36 36 25.3-25.3L28.5.4H1v23ZM124.9.4h-40l40 40V.5ZM124.9 97 87 59 61.7 84.5l40 40H125V97Z'/%3e%3c/g%3e%3c/svg%3e");
}

.fc_gallery_block.logos_2 .gallery_block_content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.fc_gallery_block.logos_2 .gallery_block_content > span {
    display: block;
    height: 78px;
    aspect-ratio: 1;
    background: center / contain no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='125' height='125' fill='none'%3e%3cg fill='%23917653' opacity='.2'%3e%3cpath d='M.9 124.4H44L1 81.3v43.1ZM.9 23.4l36 36 25.3-25.3L28.5.4H1v23ZM124.9.4h-40l40 40V.5ZM124.9 97 87 59 61.7 84.5l40 40H125V97Z'/%3e%3c/g%3e%3c/svg%3e");
}

.fc_gallery_block.logos_2.right .gallery_block_content > span {

    align-self: flex-start;
}

.fc_gallery_block.top {
    align-items: flex-start;
}

.fc_gallery_block.middle {
    align-items: center;
}

.fc_gallery_block.bottom {
    align-items: flex-end;
}

.gallery_items {
    flex-grow: 1;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(30, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 2.571;
    max-width: 1300px;
}

.gallery_items .gallery_image {
    background: center / cover no-repeat;
}

.gallery_items.count_1 {
    min-height: 420px;
    aspect-ratio: initial;
    position: relative;
}

.gallery_items.count_1 .gallery_image {
    grid-column: span 30;
    grid-row: span 2;
}

.gallery_items.count_1:after {
    content: '';
    background: center / contain no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='125' height='125' fill='none'%3e%3cg fill='%23917653' opacity='.2'%3e%3cpath d='M.9 124.4H44L1 81.3v43.1ZM.9 23.4l36 36 25.3-25.3L28.5.4H1v23ZM124.9.4h-40l40 40V.5ZM124.9 97 87 59 61.7 84.5l40 40H125V97Z'/%3e%3c/g%3e%3c/svg%3e");
    height: 125px;
    width: 125px;
    top: 0;
    right: -145px;
    position: absolute;
}


.gallery_items.count_2 .gallery_image {
    grid-column: span 15;
    grid-row: span 2;
}

.gallery_items.count_3 .gallery_image {
    grid-column: span 10;
    grid-row: span 2;
}

.gallery_items .gallery_image {
    grid-column: span 6;
}

.gallery_items.count_4 .gallery_image:nth-child(1),
.gallery_items.count_4 .gallery_image:nth-child(2) {
    grid-column: span 12;
    grid-row: span 2;
}

.gallery_items.count_5 .gallery_image:nth-child(1) {
    grid-column: span 15;
    grid-row: span 2;
}

.gallery_items.count_5 .gallery_image:not(:first-child) {
    grid-column: span 7;
    grid-row: span 1;
}

.gallery_items.count_6 .gallery_image:nth-child(1) {
    grid-column: span 12;
    grid-row: span 2;
}

.gallery_items.count_6 .gallery_image:nth-child(5) {
    grid-column: span 12;
    grid-row: span 1;
}

.gallery_items.count_7 .gallery_image:nth-child(1) {
    grid-column: span 12;
    grid-row: span 2;
}

@media (max-width: 1080px) {
    .fc_gallery_block,
    .fc_gallery_block.right {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .fc_gallery_block.top,
    .fc_gallery_block.middle,
    .fc_gallery_block.bottom {
        align-items: initial;
    }
}

@media (max-width: 800px) {
    .fc_gallery_block,
    .fc_gallery_block.right {
        display: block;
    }

    .gallery_block_content {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .gallery_items {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        aspect-ratio: 1;
    }

    .gallery_items .gallery_image {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        max-width: 100%;
        min-height: 300px;
    }
}