* { box-sizing: border-box; }
html { background: #fff; color: #666; font-family: system-ui, sans-serif; }
body { margin: 0; }
#gallery {
  position: relative;
  gap: clamp(8px, 0.8vw, 16px);
  padding: clamp(16px, 2.5vh, 32px) clamp(20px, 4vw, 88px);
}
.photo { margin: 0; min-width: 0; overflow: hidden; position: absolute; transform-origin: top left; background: #f2f2f2; }
.photo img {
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.photo::after { content: ""; position: absolute; inset: 0; }
.photo.loaded img { opacity: 1; }
.photo.failed img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } }
#status { margin: 48px 24px; text-align: center; font-size: 14px; }
