.layer.tile-phone {
  aspect-ratio: 1125 / 2054;
}

.layer.tile-demo {
  aspect-ratio: 886 / 1616;
}

.layer.seq-olecus {
  aspect-ratio: 886 / 1621;
}

.layer.tile-phone-long {
  aspect-ratio: 886 / 1816;
}

.layer.tile-phone-figma {
  aspect-ratio: 390 / 844;
}

.layer.tile-banner {
  aspect-ratio: 2966 / 1850;
}

.layer.tile-poster {
  aspect-ratio: 3 / 2;
}

.layer.tile-text {
  aspect-ratio: 4 / 5;
  background: var(--text);
  font-size: 1.25rem;
  padding: 1.5rem;
}

/* A number as the image, where the work itself can't be shown. */
.layer.tile-figure {
  container-type: inline-size;
  padding: 1.25rem;
}

.tile-figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  text-align: left;
}

.figure-number {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 46cqw;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.figure-of {
  font-size: 0.4em;
  letter-spacing: -0.02em;
  color: rgb(255 255 255 / 0.55);
}

.figure-label {
  font-size: 8cqw;
  line-height: 1.25;
}

/* Military work stays off the page: a sheet whose every line is blacked
   out, with a stamp in the logo red. --bar is each line's length. */
.layer.tile-redacted {
  container-type: inline-size;
  aspect-ratio: 3 / 4;
  display: block;
  padding: 12% 10%;
  background: #fbfbf8;
}

.redacted-bars {
  display: flex;
  flex-direction: column;
  gap: 5.5%;
  height: 100%;
}

.redacted-bars span {
  display: block;
  width: var(--bar);
  height: 4.5%;
  background: var(--text);
}

.redacted-stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  rotate: -14deg;
  padding: 0.3em 0.6em;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Captions sit in the middle of the image in a serif, like a title set
   over a photograph. Didot ships with macOS and iOS; others fall back to a
   Bodoni or Georgia. The grey stands in for a screenshot until one arrives. */
.tile {
  background: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 1rem;
  line-height: 1.15;
  color: #fff;
}

/* A tile holding a real image: no caption, the image fills it. */
.tile-media {
  padding: 0;
  background: #eee;
  overflow: hidden;
}

.tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
