/* Full-frame reviewed images: rows share a baseline without cover cropping. */
.page-ceiling .gallery .gallery-list.pq-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pq-photo-row {display: flex; align-items: flex-start; gap: 18px; min-width: 0;}
.pq-photo-frame {flex: var(--pq-ratio) 1 0%; min-width: 0;}
.page-ceiling .gallery .pq-gallery .pq-photo-frame > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 12px;
}
.page-ceiling #ceilingPhotosSlider.pq-hero > .swiper-wrapper {transition-property: transform, height;}
@media (max-width: 600px) {
  .page-ceiling .gallery .gallery-list.pq-gallery, .pq-photo-row {gap: 14px;}
  .pq-photo-row {flex-direction: column;}
  .pq-photo-frame {width: 100%; flex: none;}
}
@media (prefers-reduced-motion: reduce) {
  .page-ceiling #ceilingPhotosSlider.pq-hero > .swiper-wrapper {transition-duration: 0ms !important;}
}

/* Category thumbnails share a frame; detail galleries keep the full source.
   Override the inline source ratio added when reviewed photos are substituted. */
.catalog-list-2 .catalog-list-2-item > img,
.page-ceiling .catalog-list-3 .catalog-list-3-item > img,
.catalog-list-6 .catalog-list-6-item > img {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover;
  object-position: center 35%;
}
