#photos-home-list .photo-gallery__item > figure {
  position: relative;
}

#photos-home-list .photo-gallery__item figcaption {
  position: absolute;
  inset: auto clamp(.8rem, 2vw, 1.2rem) clamp(.75rem, 1.8vw, 1.1rem);
  color: #fff;
  font-size: clamp(.85rem, 1.05vw, 1rem);
  font-weight: 500;
  line-height: 1.35;
  padding: 0;
  pointer-events: none;
  text-shadow: 0 0 2px #000, 0 1px 3px #000c;
}

/* The rooms and reception photographs have light areas behind the captions. */
#photos-home-list :is([data-photo-id="IMG-029"], [data-photo-id="IMG-016"]) .photo-gallery__picture {
  position: relative;
}

#photos-home-list :is([data-photo-id="IMG-029"], [data-photo-id="IMG-016"]) .photo-gallery__picture::after {
  position: absolute;
  inset: auto 0 0;
  height: clamp(52px, 27%, 68px);
  background: linear-gradient(to top, #000a, #0009 60%, transparent);
  content: "";
  pointer-events: none;
}
