/* Gallery correction for design v2. Scoped to the homepage atmosphere section. */
#atmosphere {
  background: radial-gradient(ellipse at 85% 45%, #edd6ad26, transparent 60%), var(--cream);
}
#atmosphere .section-heading {
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}
#atmosphere .moments-intro {
  max-width: 560px;
  margin: 20px 0 0;
  color: #677769;
  font-size: 14px;
  line-height: 1.8;
}
#atmosphere .section-heading > .text-link {
  flex-shrink: 0;
  margin-bottom: 4px;
}
#atmosphere .moments-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .75fr);
  align-items: start;
  gap: 20px;
}
#atmosphere .moments-card {
  display: block;
  min-width: 0;
  margin: 0;
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid #dde3d6;
  border-radius: 22px;
  box-shadow: 0 8px 25px #25453208;
  text-decoration: none;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  -webkit-tap-highlight-color: transparent;
}
#atmosphere .moments-card figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}
#atmosphere .moments-photo {
  display: block;
  position: relative;
  aspect-ratio: var(--moment-ratio, 3 / 4);
  border-radius: 21px 21px 0 0;
  overflow: hidden;
  background: #e6ebdf;
}
/* The whole source photograph remains visible: no crop, zoom or distortion. */
#atmosphere .moments-photo img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
  opacity: 1;
}
#atmosphere .moments-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 108px;
  padding: 19px 18px;
}
#atmosphere .moments-caption-copy { min-width: 0; }
#atmosphere .moments-caption small {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  line-height: 1.6;
  font-weight: 750;
  letter-spacing: .1em;
  color: #717d69;
}
#atmosphere .moments-caption small > span { color: #bd794c; }
#atmosphere .moments-caption strong {
  display: block;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.03em;
}
#atmosphere .moments-expand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #eedec5;
  border-radius: 50%;
  background: #f9efdE;
  color: #855c3c;
  transition: background .2s, color .2s;
}
#atmosphere .moments-expand .icon { width: 17px; height: 17px; }
#atmosphere .moments-card:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 5px;
}
@media (hover: hover) {
  #atmosphere .moments-card:hover {
    border-color: #c8d3bb;
    box-shadow: 0 13px 35px #25453216;
    transform: translateY(-3px);
  }
  #atmosphere .moments-card:hover .moments-expand { background: #eed095; color: #203b32; }
}
#atmosphere .moments-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 23px;
  color: #77816f;
  font-size: 11px;
  line-height: 1.75;
}
#atmosphere .moments-footnote p { display: flex; align-items: center; gap: 9px; margin: 0; }
#atmosphere .moments-footnote .icon { width: 18px; height: 18px; flex-shrink: 0; color: #927148; }
#atmosphere .moments-footnote > span { text-align: right; }
@media (max-width: 1100px) {
  #atmosphere .moments-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #atmosphere .moments-photo { aspect-ratio: 3 / 4; }
  #atmosphere .moments-caption { min-height: 98px; padding: 20px; }
  #atmosphere .moments-caption strong { font-size: 20px; }
  #atmosphere .moments-caption small { font-size: 9px; }
  #atmosphere .moments-footnote > span { display: none; }
}
@media (max-width: 760px) {
  #atmosphere .section-heading { display: block; margin-bottom: 28px; }
  #atmosphere .moments-intro { font-size: 13px; margin-top: 18px; }
  #atmosphere .section-heading > .text-link { display: inline-flex; margin-top: 18px; }
  #atmosphere .moments-gallery { gap: 17px; }
  #atmosphere .moments-caption { padding: 16px; gap: 8px; }
  #atmosphere .moments-caption strong { font-size: 17px; }
  #atmosphere .moments-caption small { font-size: 8px; }
  #atmosphere .moments-expand { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  #atmosphere { padding-top: 55px; padding-bottom: 55px; }
  #atmosphere .moments-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 420px; margin: 0 auto; }
  #atmosphere .moments-photo { aspect-ratio: var(--moment-ratio, 3 / 4); }
  #atmosphere .moments-caption { min-height: 92px; padding: 18px 20px; }
  #atmosphere .moments-caption strong { font-size: 20px; }
  #atmosphere .moments-caption small { font-size: 9px; }
  #atmosphere .moments-expand { width: 38px; height: 38px; }
  #atmosphere .moments-footnote { max-width: 420px; margin: 22px auto 0; font-size: 11px; }
  #atmosphere .moments-footnote p { align-items: flex-start; }
  #atmosphere .moments-footnote .icon { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #atmosphere .moments-card, #atmosphere .moments-expand { transition: none; }
  #atmosphere .moments-card:hover { transform: none; }
}
