/* ————————————————————————————————
   potato — lost kinship
   refined-minimal horizontal gallery
   ———————————————————————————————— */

:root {
  --paper: #f3f0ea;
  --ink: #1c1a17;
  --ink-soft: #8a847a;
  --hairline: #d8d2c8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* insets for the white rounded border frame */
  --frame-top: 2vh;
  --frame-bottom: 2vh;
  --frame-left: 1.5vw;
  --frame-right: 1.5vw;

  --img-height: calc(100vh - var(--frame-top) - var(--frame-bottom));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden; /* clips the frame box-shadow at viewport edge */
}

body {
  display: flex;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  overflow: hidden;
}

/* ——— rounded lila border frame ——— */

.frame {
  position: fixed;
  inset: var(--frame-top) var(--frame-right) var(--frame-bottom) var(--frame-left);
  border: 2px solid #776F84;
  border-radius: 16px;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  /* covers the gap between viewport edge and frame with lila */
  box-shadow: 0 0 0 200px #776F84;
}

@media (max-width: 768px) {
  .frame { display: none; }

  :root {
    --frame-top: 0vh;
    --frame-bottom: 0vh;
    --frame-left: 0vw;
    --frame-right: 0vw;
  }
}

/* ——— credit ——— */

.credits {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 14vw 0 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* standalone end tag, sits horizontally before the credits */
.credit--solo {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 10vw;
}

.credit--rights {
  font-size: 0.7rem;
  margin-top: 0.4rem;
}

.credit .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.credit:hover .arrow {
  transform: translate(0.15em, -0.15em);
}

.credit {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
}


.credit:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ——— the track ——— */

.track {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: var(--frame-top) var(--frame-right) var(--frame-bottom) var(--frame-left);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;       /* firefox */
  outline: none;
}

.track::-webkit-scrollbar { display: none; }

.figure {
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: calc(var(--i) * 90ms);
}

.figure-overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.figure img,
.figure .placeholder {
  height: var(--img-height);
  display: block;
}

.figure img {
  width: auto;
}

/* numbered placeholder tile, until real images arrive */
.placeholder {
  width: min(60vh, 70vw);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px),
      var(--hairline) 50%,
      transparent calc(50% + 0.5px));
}

.placeholder span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 9vh, 6rem);
  color: var(--hairline);
  user-select: none;
}

