
    
    .block-image-gallery .gallery-container {
        position: relative;
    }

.block-image-gallery .button-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.25rem;
    }

.block-image-gallery .button-container .btn{ cursor: pointer;}

.x-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 1rem;
    margin: 0;

    list-style: none;
    align-items: stretch;
}

.x-gallery__item {
    overflow: hidden;
    border-radius: 0.5rem;
    grid-area: auto;
    grid-column: auto;
    min-height: 0;
}

.x-gallery__item picture,
.x-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
}

.x-gallery__item img {
    -o-object-fit: cover;
       object-fit: cover;
}

@media screen and (min-width: 48rem) {
    .x-gallery.is-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .x-gallery.is-2 {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .x-gallery.is-3plus {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-areas:
            "hero side"
            "wide wide";
    }

    .x-gallery.is-2 .x-gallery__item--hero {
        grid-column: 1;
    }
    .x-gallery.is-2 .x-gallery__item--side {
        grid-column: 2;
    }

    .x-gallery.is-3plus .x-gallery__item--hero {
        grid-area: hero;
    }
    .x-gallery.is-3plus .x-gallery__item--side {
        grid-area: side;
    }
    .x-gallery.is-3plus .x-gallery__item--wide {
        grid-area: wide;
    }
    .x-gallery.is-3plus .x-gallery__item--full {
        grid-column: 1 / -1;
    }

    .x-gallery.is-2 {
        grid-template-rows: 29.375rem;
    }

    .x-gallery.is-1 .x-gallery__item {
        height: 29.375rem;
    }

    .x-gallery.is-3plus .x-gallery__item--hero,
    .x-gallery.is-3plus .x-gallery__item--side,
    .x-gallery.is-2 .x-gallery__item--hero,
    .x-gallery.is-2 .x-gallery__item--side {
        height: 100%;
    }
}

@media screen and (min-width: 64rem) {
      
        .block-image-gallery .button-container {
            bottom: 1.5625rem;
        }

    .x-gallery.is-3plus {
        grid-template-rows: 29.375rem auto;
    }

    .x-gallery.is-2 {
        grid-template-rows: 29.375rem;
    }

    .x-gallery.is-1 .x-gallery__item {
        height: 29.375rem;
    }
}

@media screen and (min-width: 80rem) {
    .x-gallery.is-3plus {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

/* 1536+ override */

@media screen and (min-width: 96rem) {
        
        .block-image-gallery .button-container {
            bottom: 2.8125rem;
        }
    .x-gallery.is-3plus {
        grid-template-rows: 42.5rem auto;

        grid-template-areas:
            "hero side"
            "wide wide";
    }

    .x-gallery.is-2 {
        grid-template-rows: 42.5rem;
    }

    .x-gallery.is-1 .x-gallery__item {
        height: 42.5rem;
    }
}
