/* ---------- project pages (Ottobre Rosa and other reportage projects) ----------
   Structure follows the reference project page: left-aligned uppercase headings,
   a single wide prose column, and contained galleries sitting directly beneath
   the text they belong to. Typography and palette stay with the restyled theme. */

.or-section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.or-section-alt {
  background: rgba(0, 0, 0, .022);
}

.or-wrap {
  max-width: 1030px;
}

/* Production gives its photography substantially more room than its prose.
   At a 1463px viewport this produces an approximately 1280px image field. */
.or-gallery-wrap {
  max-width: 1410px;
}

.or-section h2 {
  margin: 0 0 26px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}

.or-section p {
  margin: 0 0 20px;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: left;
}

.or-section p strong {
  color: var(--ink);
  font-weight: 500;
}

.or-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Full-width documentary band between chapters. */
.or-band {
  overflow: hidden;
}

.or-band img {
  display: block;
  width: 100%;
  height: auto;
}

/* Contained gallery: same width as the prose, three columns, minimal gap,
   photographs keeping their natural proportion. */
.or-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(26px, 4vw, 40px);
}

.or-gallery a {
  display: block;
  overflow: hidden;
}

.or-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.245 / 1;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.or-gallery-four {
  grid-template-columns: repeat(4, 1fr);
}

/* The production portrait gallery is masonry: vertical and horizontal source
   photographs retain their real proportions in three independently stacked
   columns. */
.or-gallery-portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: clamp(26px, 4vw, 40px);
}

.or-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.or-gallery-portraits a,
.or-gallery-portraits img {
  display: block;
  width: 100%;
}

.or-gallery-portraits img {
  height: auto;
  transition: transform 1s var(--ease);
}

.or-gallery a:hover img,
.or-gallery-portraits a:hover img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .or-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .or-gallery-four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .or-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .or-gallery-portraits {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .or-gallery-column {
    display: contents;
  }

  .or-gallery-column a {
    order: var(--source-order);
  }
}

/* ---------- Un 2021 di Rinascita ---------- */
.rinascita-page {
  background: var(--paper);
}

.rinascita-hero {
  margin: 0;
  overflow: hidden;
  background: #171717;
}

.rinascita-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.rinascita-intro {
  padding: clamp(58px, 8vw, 96px) 0 clamp(42px, 6vw, 72px);
  text-align: center;
}

.rinascita-narrow {
  max-width: 900px;
}

.rinascita-intro h1 {
  margin: 14px 0 32px;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 300;
  line-height: 1.08;
}

.rinascita-intro p,
.rinascita-credits li {
  color: var(--ink-soft);
  line-height: 1.85;
}

.rinascita-intro p {
  margin: 0 0 20px;
}

.rinascita-credits {
  margin: 24px 0 30px;
  list-style: none;
}

.rinascita-credits li {
  margin: 0 0 8px;
}

.rinascita-page a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rinascita-video-wrap {
  max-width: 900px;
  padding-bottom: clamp(58px, 8vw, 92px);
}

.rinascita-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.rinascita-section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.rinascita-wide,
.rinascita-gallery-wrap {
  max-width: 1410px;
}

.rinascita-gallery-wrap {
  container-type: inline-size;
}

.rinascita-section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rinascita-section p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.rinascita-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: clamp(34px, 5vw, 54px);
}

.rinascita-calendar-grid a,
.rinascita-calendar-grid img {
  display: block;
  width: 100%;
}

.rinascita-calendar-grid a {
  overflow: hidden;
}

.rinascita-calendar-grid img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.rinascita-calendar-grid a:hover img,
.rinascita-press-masonry a:hover img {
  transform: scale(1.025);
}

.rinascita-meta {
  background: rgba(0, 0, 0, .022);
}

.rinascita-meta h2:not(:first-child) {
  margin-top: clamp(38px, 5vw, 58px);
}

/* Production uses five shortest-column masonry tracks. The measured top
   offsets are ratios of one track width, so the arrangement scales cleanly. */
.rinascita-press-masonry {
  --press-gap: 15px;
  --press-width: calc((100cqw - (4 * var(--press-gap))) / 5);
  position: relative;
  height: calc(4.435 * var(--press-width));
  margin-top: clamp(34px, 5vw, 54px);
}

.rinascita-press-masonry a {
  position: absolute;
  top: calc(var(--press-top) * var(--press-width));
  left: calc(var(--press-column) * (var(--press-width) + var(--press-gap)));
  width: var(--press-width);
  overflow: hidden;
}

.rinascita-press-masonry img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease);
}

@media (max-width: 900px) {
  .rinascita-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rinascita-press-masonry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: auto;
  }

  .rinascita-press-masonry a {
    position: static;
    width: auto;
  }
}

@media (max-width: 620px) {
  .rinascita-calendar-grid,
  .rinascita-press-masonry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rinascita-intro,
  .rinascita-intro p,
  .rinascita-credits {
    text-align: left;
  }

  .rinascita-intro .eyebrow {
    justify-content: flex-start;
  }
}
