/* Photo gallery rows: images with Google review cards staggered between them.
   Cell counts are built to a multiple of 4, so the 4 and 2 column layouts both
   land on complete rows with nothing left dangling.

   Rows size to their tallest cell rather than a fixed height: a clamped review
   was still showing a cut-off final line at some widths. Images stretch to the
   row height and crop with object-fit, so rows stay flush either way.

   Served under a content-hashed filename (gallery.<hash>.css) because /css/ is
   cached immutable for a year; edit this file, then re-run the hash step. */

.pr-gallery {
  display: grid;
  /* minmax(0,...) so a long review word can't widen its column past its share */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  flex: 1 1 0%;
  min-width: 0;
}

.pr-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  cursor: zoom-in;
}

.pr-gallery-review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 24px;
  box-sizing: border-box;
  background: var(--_swatches---dark-900);
  color: inherit;
  text-decoration: none;
}

.pr-gallery-review blockquote {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.pr-gallery-review cite {
  flex: none;
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--_swatches---brand);
}

@media (max-width: 1199px) {
  .pr-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pr-gallery img,
  .pr-gallery-review {
    min-height: 220px;
  }

  .pr-gallery-review {
    padding: 16px;
  }

  .pr-gallery-review blockquote {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .pr-gallery-review blockquote {
    font-size: 12px;
  }
}
