/* Homepage only. Image files and the existing gallery are never altered. */
.home-photo-ribbon {
  --ribbon-gap: 14px;
  --ribbon-width: min(22vw, 400px);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  color: var(--white, #fbfcf8);
  background: var(--ink-soft, #18241d);
  overflow: hidden;
}
.home-photo-ribbon__heading,
.home-photo-ribbon__footer { width: min(84%, 1180px); margin-inline: auto; text-align: center; }
.home-photo-ribbon h2 {
  margin: .8rem auto 1.5rem;
  font-family: var(--serif, serif);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}
.home-photo-ribbon__description { max-width: 760px; margin: 0 auto 2.5rem; color: #d2dacf; font-size: 1rem; }
.home-photo-ribbon__viewport {
  width: 100%; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.home-photo-ribbon__viewport::-webkit-scrollbar { display: none; }
.home-photo-ribbon__viewport.is-dragging { cursor: grabbing; user-select: none; }
.home-photo-ribbon__track { display: flex; width: max-content; }
.home-photo-ribbon__group { display: flex; flex: 0 0 auto; gap: var(--ribbon-gap); padding-right: var(--ribbon-gap); }
.home-photo-ribbon__photo {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 var(--ribbon-width); width: var(--ribbon-width); aspect-ratio: 3 / 2;
  overflow: hidden; background: #101814;
}
.home-photo-ribbon__photo img {
  width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.home-photo-ribbon__photo:focus-visible { outline: 3px solid #e9d2a1; outline-offset: -4px; }
.home-photo-ribbon__viewport:focus-visible { outline: 2px solid #e9d2a1; outline-offset: -2px; }
.home-photo-ribbon__footer { padding-top: 1.6rem; }
.home-photo-ribbon__controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; }
.home-photo-ribbon__controls[hidden] { display: none; }
.home-photo-ribbon__controls button {
  min-width: 44px; min-height: 44px; padding: .45rem .85rem;
  border: 1px solid #7c8a7e; border-radius: 2px;
  background: transparent; color: inherit; font: inherit; font-size: .875rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer;
}
.home-photo-ribbon__controls button:hover { background: #2b4033; }
.home-photo-ribbon__controls button:focus-visible { outline: 2px solid #e9d2a1; outline-offset: 3px; }
.home-photo-ribbon__help { margin: 1rem auto 1.5rem; color: #c0cbbf; font-size: .875rem; }
.home-photo-ribbon__gallery { max-width: 100%; text-align: center; }
@media(min-width:1900px) { .home-photo-ribbon { --ribbon-width: 20.5vw; } }
@media(max-width:900px) {
  .home-photo-ribbon { --ribbon-width: 42vw; --ribbon-gap: 12px; }
}
@media(max-width:540px) {
  .home-photo-ribbon { --ribbon-width: 78vw; --ribbon-gap: 10px; }
  .home-photo-ribbon__heading, .home-photo-ribbon__footer { width: calc(100% - 40px); }
  .home-photo-ribbon h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .home-photo-ribbon__gallery { font-size: .875rem; padding-inline: .8rem; }
}
@media(prefers-reduced-motion:reduce) {
  .home-photo-ribbon__viewport { scroll-behavior: auto; }
}
.home-photo-ribbon__heading > .eyebrow { justify-content: center; }
.home-photo-ribbon { scroll-margin-top: 120px; }
.home-photo-ribbon__controls [data-ribbon-symbol] { display: inline-flex; }
@media (min-width:1181px) and (max-width:1600px) {
  html:not([lang="ja"]) .home-photo-ribbon { scroll-margin-top: 190px; }
}
