:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #9a9a9a;
}

* { box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Corner dot menu */
.links {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 50;
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
}

.dot {
  display: block;
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--fg);
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.dot:hover { opacity: 1; }
.links.open .dot { transform: scale(0.72); }

.links-list a {
  display: block;
  margin: 12px 0 0 auto;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  color: var(--fg);
  text-align: right;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.links.open .links-list a {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.links-list a:hover { text-decoration: underline; }

/* One image per viewport; scrolling snaps to each */
section.item {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

section.item img,
section.item video {
  display: block;
  max-width: 92vw;
  max-height: 84vh;
  max-height: 84svh;
  width: auto;
  height: auto;
  background: #f4f4f4;
}

section.item img { cursor: zoom-in; }

.meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.meta .album {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.meta .sep { margin: 0 8px; }

.empty, .error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Lightbox: full-resolution view on click */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img,
.lb-stage video {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
}

.lb-caption {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 16px;
  pointer-events: none;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  color: var(--fg);
  border: none;
  cursor: pointer;
  opacity: 0.4;
  z-index: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }

.lb-close { top: 12px; right: 16px; font-size: 32px; line-height: 1; }
.lb-prev, .lb-next { top: 0; bottom: 0; font-size: 40px; width: 12vw; min-width: 56px; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
