* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: #ffffff;
}

.canvas-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.canvas {
  position: relative;
  flex-shrink: 0;
  width: 1280px;
  height: 832px;
  background: #ffffff;
  transform-origin: top center;
}

@media (min-width: 701px) and (max-width: 1280px) {
  .canvas {
    transform: scale(calc(100vw / 1280px));
  }
  .canvas-wrap {
    height: calc(832px * (100vw / 1280px));
  }
}

.photo {
  position: absolute;
  border: 15px solid #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  margin: 0;
  font-family: "Nothing You Could Do", cursive;
  font-size: 18px;
  line-height: 18px;
  color: #2e2c2a;
  filter: url(#graphite);
}

.caption.lg {
  font-size: 20px;
  line-height: 20px;
}

.credit {
  position: absolute;
  left: 20px;
  top: 20px;
  margin: 0;
  font-family: "Arbutus Slab", serif;
  font-weight: 400;
  font-size: 18px;
  color: #1a1a1a;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* photo positions, matching the Figma layout */
.photo-1 { left: 314px; top: 81px;  width: 158px; height: 211px; }
.photo-2 { left: 716px; top: 69px;  width: 156px; height: 208px; }
.photo-3 { left: 922px; top: 189px; width: 191px; height: 255px; }
.photo-8 { left: 54px;  top: 197px; width: 242px; height: 182px; }
.photo-6 { left: 81px;  top: 444px; width: 172px; height: 229px; }
.photo-5 { left: 324px; top: 553px; width: 278px; height: 209px; }
.photo-9 { left: 763px; top: 493px; width: 195px; height: 260px; }

/* caption positions, each anchored a fixed 10px from its photo */
.caption-1 { left: 482px; top: 150px;    width: 178px; }
.caption-2 { left: 703px; top: 287px;    width: 180px; }
.caption-3 { left: 922px; bottom: 653px; width: 275px; }
.caption-5 { left: 314px; bottom: 289px; width: 332px; }
.caption-6 { left: 68px;  top: 683px;    width: 220px; }
.caption-8 { left: 45px;  bottom: 645px; width: 238px; }
.caption-9 { left: 968px; top: 617px;    width: 248px; }

/* mobile layout: matches the Figma mobile design exactly at its native
   402px width, and scales down further (never up) for narrower phones */
@media (max-width: 700px) {
  .canvas {
    width: 402px;
    height: 992px;
    transform: scale(min(1, calc(100vw / 402px)));
  }
  .canvas-wrap {
    height: min(992px, calc(992px * (100vw / 402px)));
  }

  .credit {
    left: 28px;
    top: 26px;
  }

  .caption,
  .caption.lg {
    font-size: 12px;
    line-height: 12px;
  }

  .photo-1 { left: 232px;    top: 170px;    width: 137px;     height: 182px;     border-width: 8px;      box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); }
  .photo-2 { left: 36px;     top: 536px;    width: 128.822px; height: 171.763px; border-width: 8px;      box-shadow: 0 0 12.387px rgba(0, 0, 0, 0.15); }
  .photo-3 { left: 201px;    top: 635px;    width: 134.83px;  height: 179.773px; border-width: 10.582px; box-shadow: 0 0 10.582px rgba(0, 0, 0, 0.15); }
  .photo-8 { left: 35px;     top: 117px;    width: 173px;     height: 130px;     border-width: 8px;      box-shadow: 0 0 11.504px rgba(0, 0, 0, 0.15); }
  .photo-6 { left: 41.97px;  top: 278px;    width: 131.818px; height: 175.758px; border-width: 8px;      box-shadow: 0 0 11.504px rgba(0, 0, 0, 0.15); }
  .photo-5 { left: 183px;    top: 389px;    width: 193px;     height: 145px;     border-width: 8px;      box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); }
  .photo-9 { left: 39px;     top: 792px;    width: 107px;     height: 143px;     border-width: 9.919px;  box-shadow: 0 0 9.919px rgba(0, 0, 0, 0.15); }

  .caption-1 { left: 225px; top: 110px;    width: 161px; }
  .caption-2 { left: 30px;  top: 728px;    width: 167px; }
  .caption-3 { left: 201px; top: 832.77px; width: 165px; bottom: auto; }
  .caption-5 { left: 191px; top: 551px;    width: 195px; bottom: auto; }
  .caption-6 { left: 32px;  top: 472px;    width: 135px; }
  .caption-8 { left: 28px;  top: 71px;     width: 182.532px; bottom: auto; }
  .caption-9 { left: 165px; top: 901px;    width: 111px; }
}
