.wp-block-gallery{
    &.is-style-masonry{
        display: grid !important;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 436px;

        @media screen and (min-width: 550px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media screen and (min-width: 768px) {
            grid-template-columns: repeat(3, 1fr);
        }

        figure{
            width: 100% !important;
        }

        figure:first-child{
            @media screen and (min-width: 550px) {
                grid-column-end: span 2;
            }
        }
    }
}