/* Events: full-screen stacked cards ------------------------------------------
   Every card is sticky at the top of the viewport; the following card scrolls
   over it, so they pile up like a deck. */
.events { position: relative; }

.events__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  position: sticky;
  top: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0 0 0 100px;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.event-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark veil for legibility (lighter on the first card). */
.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.40);
}

/*.event-card--first::before { background: rgba(0, 0, 0, 0.12); }*/

.event-card__content { max-width: min(900px, 80%); }
.event-card__title {
  font-family: var(--f-text);
  font-size: 90px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
.event-card__text {
  margin-top: 30px;
  font: 500 14px/1.6 var(--f-text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .event-card { padding-left: 60px; }
  .event-card__title { font-size: 70px; }
}

@media (max-width: 767px) {
  .events__list { gap: 0; }
  .event-card { min-height: 75vh; padding: 0 30px; }
  .event-card__content { max-width: 100%; }
  .event-card__title { font-size: 45px; }
  .event-card__text { margin-top: 20px; font-size: 12px; }
}