.wp-block-pq-gallery {
  --gallery-aspect-ratio: 3 / 2;
  --gallery-gap: 0.5rem;
}
.wp-block-pq-gallery.is-preview {
  pointer-events: none;
}

.wp-block-pq-gallery + .wp-block-pq-gallery {
  -webkit-margin-before: var(--gallery-gap) !important;
          margin-block-start: var(--gallery-gap) !important;
}

.wp-block-pq-gallery__container {
  display: grid;
  gap: var(--gallery-gap);
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-01 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-01 .wp-block-pq-gallery__image-container:nth-of-type(1) {
  grid-row: 1/3;
  grid-column: 1;
  aspect-ratio: var(--gallery-aspect-ratio);
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-01 .wp-block-pq-gallery__image-container:nth-of-type(2),
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-01 .wp-block-pq-gallery__image-container:nth-of-type(3) {
  grid-column: 2;
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-02 {
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 1fr;
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-02 .wp-block-pq-gallery__image-container:nth-of-type(1),
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-02 .wp-block-pq-gallery__image-container:nth-of-type(2) {
  grid-column: 1;
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-02 .wp-block-pq-gallery__image-container:nth-of-type(3) {
  grid-row: 1/3;
  grid-column: 2;
  aspect-ratio: var(--gallery-aspect-ratio);
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-03 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.wp-block-pq-gallery__container.wp-block-pq-gallery--style-04 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.wp-block-pq-gallery__image-container {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.wp-block-pq-gallery__image {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--gallery-aspect-ratio);
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
}
