.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 480px;
}

.image-wrapper > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrapper, .row-text-content {
  width: 50%;
}

.first-row-content {
  margin-top: 32px;
}

.row-text-content {
  display: flex;
  flex-direction: column;
}

.second-row-content > .row-text-content {
  justify-content: space-between;
}

.second-row-content {
  margin-bottom: 40px;
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
}

/* Descendant, not child: the map is wrapped in a link to Google Maps, so
   the image is a grandchild and "> img" never matched it. The old map was
   740px wide against a 650px column and overflowed quietly; the one coming
   from Google is 1280 and overflowed loudly. */
.map-wrapper a {
  display: block;
}

.map-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.row-text-content > h2 {
  margin: 0;
}

.second-row-content > .image-wrapper > img {
  object-position: 50% 55%;
}

.small-listings {
  margin-top: 32px;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    width: 100%;
  }

  .image-wrapper, .row-text-content {
    width: 100%;
  }

  .image-wrapper {
    height: 240px;
  }
}
/* The pictures from the Google Maps listing. They are phone photos taken in
   a yard, so they vary wildly in shape - a fixed tile and a crop is what
   keeps them from reading as a pile. */
.place-photos {
  margin-top: 40px;
}

.place-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.place-photo {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.place-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The credit Google asks for. Over the picture rather than under it, so a
   row of tiles stays a row whether or not a photo has an author. */
.place-photo > figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.place-photo > figcaption > a {
  color: inherit;
  text-decoration: none;
}

.place-photo > figcaption > a:hover {
  text-decoration: underline;
}

.place-photos-source {
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .place-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .place-photo {
    border-radius: 14px;
  }
}
