/* Archive page — mega title + parallax column gallery */

.archive-page {
  width: 100%;
  padding: 6.5em 0 5.5em;
  color: var(--heading);
  overflow: clip;
}

.archive-hero {
  width: 100%;
  padding: 0 0.35rem;
  margin: 0 0 1.25rem;
  line-height: 0.78;
}

.archive-hero-title,
.archive-hero-years {
  margin: 0;
  width: 100%;
  display: block;
  font-family: var(--heading-font);
  font-weight: 800;
  text-transform: uppercase;
  /* Reference: black text at ~5% opacity → soft light gray on white */
  color: rgba(35, 31, 32, 0.055);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  /* JS fit-width overrides font-size; fallback approximates full bleed */
  font-size: clamp(3.5rem, 22vw, 16rem);
}

.archive-gallery {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.archive-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  will-change: transform;
}

/* Stagger column starts like the reference masonry */
.archive-col:nth-child(2) {
  margin-top: 4vw;
}

.archive-col:nth-child(3) {
  margin-top: 1.5vw;
}

.archive-col:nth-child(4) {
  margin-top: 6vw;
}

.archive-item {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.archive-item.is-broken {
  display: none;
}

.archive-item-media {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background-color: #d8d4d2;
  object-fit: contain;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.archive-item-video {
  border: 0;
  background-color: #d8d4d2;
}

.archive-item iframe.archive-item-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
}

@media screen and (max-width: 767px) {
  .archive-col:nth-child(2) {
    margin-top: 8vw;
  }
}

@media screen and (min-width: 1200px) {
  .archive-gallery {
    gap: 1.1rem;
    padding: 0 1.25rem;
  }

  .archive-col {
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-col {
    transform: none !important;
    will-change: auto;
  }
}
