/* Authentic photographs: keep original proportions and show the whole scene. */
.hero, .review-hero, .faq-hero, .booking-hero, .info-hero {
  min-height: 0;
  align-items: center;
}
@media (min-width: 781px) {
  .hero, .review-hero, .faq-hero, .booking-hero, .info-hero {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }
}
.hero .hero-photo, .review-hero .hero-photo, .faq-hero .hero-photo,
.info-hero .hero-photo, .booking-hero .booking-photo {
  display: block;
  position: relative;
  align-self: center;
  justify-self: center;
  min-height: 0;
  height: auto;
  width: calc(100% - 32px);
  max-width: none;
  aspect-ratio: auto;
  margin: 16px;
  background: var(--paper);
  border: 5px solid var(--paper);
  box-shadow: 0 6px 24px #3e322b14;
}
.hero .hero-photo > img, .review-hero .hero-photo > img,
.faq-hero .hero-photo > img, .info-hero .hero-photo > img,
.booking-hero .booking-photo > img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}
.card-photo, .detail-photo, .spirit-photo, .day .cover,
.booking-card .cover, .studio-res-photo, .bed-photo {
  aspect-ratio: 3 / 2;
  background: var(--paper);
}
.card-photo img, .detail-photo img, .spirit-photo img, .cover img,
.studio-res-photo img, .bed-photo img, .gallery-item img,
.photo-strip img, .house-neighborhood-photo img,
.studio-location-grid img, .story-photo img, .house-portrait img {
  object-fit: contain;
  object-position: center;
  transform: none !important;
}
.gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
}
.gallery .gallery-item {
  grid-column: span 2;
  grid-row: auto;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--paper);
}
.gallery .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
.gallery .gallery-item:nth-child(4),
.gallery .gallery-item:nth-child(5) { grid-column: span 3; }
.gallery:has(.gallery-item:nth-child(4):last-child) .gallery-item {
  grid-column: span 3;
}
.living-photo, .room-img {
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 2;
  align-self: center;
  background: var(--paper);
}
.living-photo img, .room-img img {
  object-fit: contain;
  object-position: center;
}
.neighborhood img {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.contact-photo {
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 425px;
  aspect-ratio: auto;
}
.contact-photo img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.house-neighborhood-photo {
  height: auto;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}
.house-neighborhood-photo img { height: 100%; }
.house-neighborhood-photo.mosaic-photo { height: auto; aspect-ratio: 1536 / 1105; }
.house-neighborhood-photo.mosaic-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.photo-strip button { aspect-ratio: 1; background: var(--paper); }
.photo-strip img { object-fit: contain; }
@media (max-width: 780px) {
  .hero .hero-photo, .review-hero .hero-photo, .faq-hero .hero-photo,
  .info-hero .hero-photo, .booking-hero .booking-photo {
    width: calc(100% - 32px);
    margin: 0 16px 22px;
  }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .gallery-item, .gallery .gallery-item:first-child,
  .gallery .gallery-item:nth-child(4), .gallery .gallery-item:nth-child(5),
  .gallery:has(.gallery-item:nth-child(4):last-child) .gallery-item { grid-column: auto; }
  .gallery .gallery-item:first-child { grid-column: 1 / -1; }
}
