.painting-spot {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
}
.boat-spot {left: 42.5%; top: 0; width: 13.9%; height: 11.5%}
.nets-spot {left: 43.8%; top: 14.1%; width: 11.1%; height: 15.6%}
.painting-spot span {
  position: absolute;
  left: 100%;
  top: 29%;
  width: clamp(7px, .82vw, 11px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #45392d;
  border-radius: 50%;
  background: #fff4ce;
  box-shadow: 0 0 0 2px #35281dcc, 0 0 0 3px #fff0c478;
  transition: scale .18s ease;
}
.nets-spot span {top: 49%}
.painting-spot:is(:hover, :focus-visible) span {scale: 1.18}
.experience.playing .painting-spot {visibility: hidden}
@media (pointer: coarse) and (max-width: 520px) {
  /* Disjoint extensions give each small frame more room for a fingertip. */
  .painting-spot::after {content: ""; position: absolute; width: 44px; height: 44px}
  .boat-spot::after {top: 0; left: 68%}
  .nets-spot::after {left: 0; top: 21%}
}
.painting-viewer {
  --gallery-wall: #242b2e;
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid #827968;
  border-radius: 8px;
  background: #f7f3eb;
  color: #252c2d;
}
.painting-viewer::backdrop {background: #0f191ee6; backdrop-filter: blur(5px)}
.painting-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
}
.painting-close {
  position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: 8px;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #b4b0a5; background: #f7f3eb; color: #263034;
  font: 1.9rem/1 Arial,sans-serif;
}
.painting-close:hover {background: #e9deca}
.painting-display {
  min-width: 0; display: grid; align-content: center; justify-items: center;
  gap: clamp(16px, 3vw, 34px); padding: clamp(20px, 3.3vw, 48px);
  background: radial-gradient(ellipse at 50% 40%, #414743, var(--gallery-wall) 78%);
}
.painting-mount {
  margin: 0; padding: clamp(7px, 1.15vw, 15px);
  border: 1px solid #c2ac87; background: #e4dccb;
  box-shadow: 0 9px 25px #080b0e65;
}
.painting-mount img {display: block; width: 100%; height: auto; max-height: 60dvh; object-fit: contain}
.painting-switch {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 4px 8px; text-align: start; border: 1px solid transparent;
  border-radius: 4px; background: transparent; color: #f7edd9;
}
.painting-switch:hover {border-color: #98917f}
.painting-switch img {display: block; width: 52px; height: 38px; object-fit: contain}
.painting-switch small,.painting-switch strong {display: block; line-height: 1.35}
.painting-switch small {font-size: .81rem; color: #d8cba9}
.painting-switch strong {font: normal 1rem/1.35 Georgia,serif}
.painting-story {padding: clamp(32px, 4vw, 56px) clamp(20px, 3.5vw, 46px)}
.painting-story .painting-byline {
  margin: 0; font: 600 .88rem/1.4 "Source Sans 3",Arial,sans-serif;
  letter-spacing: .05em; color: #735538;
}
.painting-story h2 {margin: 8px 0 16px; font: normal clamp(1.85rem,3.3vw,3rem)/1.08 Georgia,serif; letter-spacing: -.035em; text-wrap: balance}
.painting-story p {margin: 10px 0; font-size: 1rem; line-height: 1.55}
.painting-story .painting-signature {font-size: .87rem; color: #625d52}
.artist-story {margin-top: 22px; padding-top: 17px; border-top: 1px solid #c9bdab}
.artist-story h3 {margin: 0; font: normal 1.4rem/1.25 Georgia,serif}
.artist-story h3 span {display: block; margin-top: 2px; font: .85rem/1.4 Arial,sans-serif; color: #69665b}
.painting-sources {margin-top: 14px; color: #515c57}
.painting-sources summary {width: fit-content; cursor: pointer; padding-block: 7px; text-decoration: underline; text-underline-offset: 3px}
.painting-sources ul {margin: 4px 0 0; padding-inline-start: 1.15em}
.painting-sources a {color: inherit; overflow-wrap: anywhere}
@media (max-width: 760px) {
  .painting-viewer {width: min(560px, calc(100% - 12px)); max-height: calc(100dvh - 12px)}
  .painting-spread {display: block; max-height: calc(100dvh - 15px)}
  .painting-display {gap: 12px; padding: 54px 14px 14px}
  .painting-mount {width: fit-content; max-width: 100%}
  .painting-mount img {max-height: 44dvh}
  .painting-story {padding: 20px}
}
@media (prefers-reduced-motion: reduce) {.painting-spot span {transition: none}}

.momo-spot {left: 74.95%; top: 22.4%; width: 4.2%; height: 15.5%}
.momo-spot span {top: 62%}
@media (pointer: coarse) {
  .momo-spot::after {content: ""; position: absolute; top: 58%; left: 65%; width: 44px; height: 44px; transform: translate(-50%,-50%)}
}
@media (hover: hover) and (pointer: fine) and (min-width: 650px) {
  .momo-spot:is(:hover, :focus-visible)::before {
    content: ""; position: absolute; z-index: 1; pointer-events: none;
    left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    width: clamp(76px, 7vw, 105px); aspect-ratio: 350 / 555;
    background: #27332b url('assets/momo-label.webp') center / contain no-repeat;
    border: 1px solid #d1bb91; border-radius: 3px; box-shadow: 0 5px 14px #191a17a8;
  }
}
.momo-viewer {width: min(1010px, calc(100% - 28px))}
.momo-viewer .painting-spread {grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr)}
.momo-display {margin: 0; gap: 16px; background: radial-gradient(ellipse at 50% 38%, #485349, #1d2825 80%)}
.momo-inspect {
  display: grid; justify-items: center; gap: 12px; width: min(100%, 320px, 36dvh); padding: 0; border: 0;
  background: transparent; color: #f4e8ca; cursor: zoom-in;
}
.momo-inspect.zoomed {cursor: zoom-out}
.momo-photo-window {
  display: block; width: 100%; aspect-ratio: 350 / 555;
  overflow: hidden; box-shadow: 0 7px 20px #1019168c; border-radius: 3px;
}
.momo-photo-window img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  transform-origin: 95% 50%; transition: transform .3s ease;
}
.momo-inspect.zoomed img {transform: scale(2.15)}
.momo-zoom-caption {font-size: .93rem; text-decoration: underline; text-underline-offset: 4px}
.momo-display figcaption {text-align: center; font: 1rem/1.55 Georgia,serif; color: #f0e3c9}
.momo-room-reading {border-inline-start: 2px solid #a9844d; margin-block: 21px 10px; padding-inline-start: 16px}
.momo-room-reading h3 {margin: 0; font: 1.23rem/1.3 Georgia,serif}
.momo-room-reading p {margin: 5px 0}
@media (max-width: 760px) {
  .momo-viewer {width: min(560px,calc(100% - 12px))}
  .momo-display {gap: 8px; padding: 16px 50px 12px}
  .momo-inspect {width: min(100%, 24dvh, 188px)}
  .momo-display figcaption {font-size: .89rem}
}
@media (prefers-reduced-motion: reduce) {.momo-photo-window img {transition: none}}
