@media (min-width: 922px) {
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery {
display: grid !important; row-gap: var(--wp--style--unstable-gallery-gap, var(--wp--style--block-gap, 16px));
column-gap: var(--wp--style--unstable-gallery-gap, var(--wp--style--block-gap, 16px));
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-1 { grid-template-columns: repeat(1, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-default,
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-7 { grid-template-columns: repeat(7, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery.columns-8 { grid-template-columns: repeat(8, 1fr); } .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery .wp-block-image {
margin: 0!important;
width: 100%!important;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-justified-gallery .wp-block-image img {
display: block;
width: 100%!important;
height: auto!important; }
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery {
display: grid !important; row-gap: var(--wp--style--unstable-gallery-gap, var(--wp--style--block-gap, 16px));
column-gap: var(--wp--style--unstable-gallery-gap, var(--wp--style--block-gap, 16px));
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-1 { grid-template-columns: repeat(1, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-default,
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-7 { grid-template-columns: repeat(7, 1fr); }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.columns-8 { grid-template-columns: repeat(8, 1fr); } .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery .wp-block-image {
margin: 0 !important;
width: 100% !important;
aspect-ratio: 1 / 1 !important;
overflow: hidden;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery .wp-block-image img {
display: block;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center;
} @media(max-width: 480px){
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.is-style-sgnr-square-gallery{
grid-template-columns: 1fr 1fr;
}
}
@media(min-width: 481px) and (max-width: 767px) {
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.is-style-sgnr-square-gallery{
grid-template-columns: 1fr 1fr 1fr;
}
}
@media(min-width: 768px) and (max-width: 921px) {
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-square-gallery.is-style-sgnr-square-gallery{
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}   @supports not (display: grid-lanes) {
@media(min-width:768px){ .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-default {
-webkit-columns: 3; -moz-columns: 3; columns: 3; } .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery{
display:block !important;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery .wp-block-image{
width:100% !important;
margin-bottom:var(--wp--style--unstable-gallery-gap,16px)!important;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery .wp-block-image{
margin-top:0!important;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-1 {
-webkit-columns: 1; -moz-columns: 1; columns: 1; }
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-2 {
-webkit-columns: 2; 
-moz-columns: 2; 
columns: 2; 
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-3 {
-webkit-columns: 3; 
-moz-columns: 3; 
columns: 3; 
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-4 {
-webkit-columns: 4; 
-moz-columns: 4;
columns: 4; 
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-5 {
-webkit-columns: 5; 
-moz-columns: 5;
columns: 5; 
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-6 {
-webkit-columns: 6; 
-moz-columns: 6; 
columns: 6;
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-7 {
-webkit-columns: 7;
-moz-columns: 7; 
columns: 7;
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery.columns-8 {
-webkit-columns: 8;
-moz-columns: 8; 
columns: 8;
}
}
} @supports (display: grid-lanes) { @media(min-width:768px){ .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery {
display: grid-lanes!important;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); fit-tolerance: 1em; reading-flow: grid-rows;
}
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-masonry-gallery .wp-block-image{
width:100% !important;
}
}
}  .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-gallery-album  .wp-block-image:not(:first-child) {
display: none!important;
} .editor-styles-wrapper .wp-block-gallery.is-style-sgnr-gallery-album figcaption.blocks-gallery-caption {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; background-color: rgba(0, 0, 0, 0.1); display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
text-align: center;
font-size: 24px;
z-index: 1;
color: #FFFFFF; text-shadow: 1px 1px 2px rgba(0,0,0,1);
} @media(max-width:480px) {
.editor-styles-wrapper .wp-block-gallery.is-style-sgnr-gallery-album figcaption.blocks-gallery-caption {
font-size: 20px;
}
}