/* 25 anys: history page built from the exhibition panels. */

/* Hero */
.hist-hero__bg {
  background-image: url('../images/web/rotllana-2002.jpg');
  filter: grayscale(1) contrast(1.15);
  opacity: 0.28;
}

.hist-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4rem);
}

.hist-hero__lead {
  margin-top: 1.5rem;
}

.hist-hero__logo {
  justify-self: center;
  width: min(100%, 380px);
  height: auto;
}

/* Chapters */
.hist-cap + .hist-cap {
  border-top: 3px solid var(--ink);
}

.hist-cap__cap {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hist-cap__cap .label {
  color: var(--lila);
}

/* One exhibition panel: image and text side by side, alternating. */
.plafo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  scroll-margin-top: 84px;
}

.plafo + .plafo {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.plafo:nth-of-type(even) .plafo__img {
  order: 2;
}

.plafo__img {
  margin: 0;
  justify-self: center;
  max-width: 100%;
}

.plafo__img img {
  display: block;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  height: auto;
}

.plafo--logo .plafo__img img {
  max-height: 380px;
}

.plafo--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 40rem;
  margin-inline: auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
}

.plafo__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--lila);
}

.plafo__titol {
  margin: 0.2rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.plafo__text p:not(.plafo__num) {
  max-width: 36rem;
  line-height: 1.65;
}

.plafo__text p + p {
  margin-top: 0.9rem;
}

.plafo__text blockquote {
  max-width: 36rem;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--lila);
  background: var(--white);
  font-family: var(--font-label);
  font-size: 1rem;
  line-height: 1.6;
}

/* Closing panel */
.hist-final__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.hist-final__in > img {
  justify-self: center;
  width: min(100%, 360px);
  height: auto;
}

.hist-final .plafo__num {
  color: var(--lila-clar);
}

.hist-final .lead {
  margin-top: 1.25rem;
}

.hist-final__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn--ghost {
  color: var(--white);
  border: 2px solid var(--white);
  background: transparent;
}

@media (max-width: 859px) {
  .hist-hero__in,
  .plafo,
  .hist-final__in {
    grid-template-columns: 1fr;
  }

  .hist-hero__logo {
    width: min(70%, 260px);
    justify-self: start;
  }

  .plafo:nth-of-type(even) .plafo__img {
    order: 0;
  }

  .plafo__img img {
    max-height: 440px;
  }

  .hist-final__in > img {
    width: min(60%, 240px);
    justify-self: start;
  }
}
