.event-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-black);
}

.event-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:top;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(21, 19, 18, 0.76), rgba(21, 19, 18, 0.06)),
    linear-gradient(90deg, rgba(21, 19, 18, 0.52), rgba(21, 19, 18, 0.02));
}

.event-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 150px 0 86px;
  color: var(--color-ice);
}

.event-hero-content .section-kicker {
  color: rgba(250, 248, 245, 0.76);
}

.event-hero-content h1 {
  max-width: 900px;
  font-family: var(--font-title);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.event-hero-content p {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(250, 248, 245, 0.78);
}

.event-story-section {
  padding: 110px 0;
  background: var(--color-bg);
}

.event-story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 72px;
  align-items: start;
}

.event-story-heading h2 {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.95;
}

.event-story-text {
  max-width: 700px;
}

.event-story-text p {
  color: var(--color-muted);
  font-size: 1rem;
}

.event-gallery-section {
  padding: 100px 0 120px;
  background: var(--color-ice);
}

/* MASONRY AUTOMÁTICO DA PÁGINA DO EVENTO */
.event-gallery-masonry {
  column-count: 4;
  column-gap: 2px;
}

.event-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-nude);
  cursor: pointer;
  break-inside: avoid;
  page-break-inside: avoid;
}

.event-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.event-gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(0.84);
}

.event-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 18, 0.08);
  opacity: 0;
  transition: opacity var(--transition);
}

.event-gallery-item:hover::after {
  opacity: 1;
}

/* OPCIONAL: caso depois a gente queira forçar tamanho via JS/painel */
.event-gallery-item[data-size="normal"] {
  aspect-ratio: 4 / 5;
}

.event-gallery-item[data-size="tall"] {
  aspect-ratio: 3 / 5;
}

.event-gallery-item[data-size="wide"] {
  aspect-ratio: 5 / 3;
}

.event-gallery-item[data-size="square"] {
  aspect-ratio: 1 / 1;
}

.event-gallery-item[data-size] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-cta-section {
  padding: 110px 0;
  background: var(--color-bg-soft);
  text-align: center;
}

.event-cta-section h2 {
  color: var(--color-text);
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.event-cta-section p {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--color-muted);
}

.event-cta-section .btn {
  margin-top: 34px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 82px;
  background: rgba(21, 19, 18, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 2002;
  color: var(--color-ice);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 2002;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(250, 248, 245, 0.3);
  border-radius: 999px;
  color: var(--color-ice);
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background var(--transition), border-color var(--transition);
}

.lightbox-arrow:hover {
  background: rgba(250, 248, 245, 0.1);
  border-color: rgba(250, 248, 245, 0.7);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

@media (max-width: 980px) {
  .event-story-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .event-gallery-masonry {
    column-count: 3;
    column-gap: 2px;
  }

  .event-gallery-item {
    margin-bottom: 2px;
  }
}

@media (max-width: 768px) {
  .event-hero {
    min-height: 82vh;
  }

  .event-hero-content {
    width: min(100% - 24px, var(--container));
    padding: 130px 0 54px;
  }

  .event-story-section,
  .event-gallery-section,
  .event-cta-section {
    padding: 74px 0;
  }

  .event-gallery-masonry {
    column-count: 2;
    column-gap: 2px;
  }

  .event-gallery-item {
    margin-bottom: 2px;
    border-radius: 4px;
  }

  .lightbox {
    padding: 70px 18px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 22px;
    right: 22px;
  }
}