.events-content {
  padding-block: 55px 80px;
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.event-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.event-card > a {
  display: block;
  height: 100%;
}
.event-card > a:hover h2 {
  color: var(--teal);
}
.event-cover {
  aspect-ratio: 8/5;
  background: #eaf0f1;
  display: grid;
  place-items: center;
}
.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event-card-copy {
  padding: 30px;
}
.event-card h2 {
  font-size: 27px;
  line-height: 1.3;
  margin-bottom: 17px;
}
.event-card-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.85;
}
.event-card .eyebrow {
  margin-bottom: 14px;
}
.event-introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.event-introduction p,
.event-section > p,
.event-lead > p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}
.event-introduction h2,
.event-lead h2 {
  font-size: 34px;
  line-height: 1.35;
}
.event-feature {
  margin: 0;
}
.event-feature img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}
.event-lead {
  max-width: 800px;
}
.event-section {
  padding-top: 48px;
  margin-top: 45px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 95px;
}
.event-section h2 {
  font-size: 30px;
}
.event-section .eyebrow {
  color: var(--teal);
  font-size: 12px;
  margin-bottom: 14px;
}
.event-section .event-meta {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}
.event-sections-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.event-sections-nav a {
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #eff6f5;
  color: var(--navy);
}
.event-sections-nav a:hover {
  background: var(--navy);
  color: #fff;
}
.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.event-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  background: #eaf0f1;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event-photo:hover {
  outline: 2px solid var(--teal);
}
.campaign-banner {
  margin: 28px 0;
}
.campaign-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1100px;
}
.event-back {
  margin-top: 50px;
}
.event-lightbox {
  width: min(1200px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  border: 0;
  border-radius: 6px;
  background: #0c293e;
  color: white;
  padding: 18px;
}
.event-lightbox::backdrop {
  background: #041725e8;
}
.event-lightbox:not([open]) {
  display: none;
}
.gallery-close {
  display: block;
  margin-left: auto;
  background: none;
  border: 1px solid #78909f;
  color: white;
  border-radius: 4px;
  padding: 8px 14px;
}
.gallery-view {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.gallery-view img {
  width: 100%;
  height: 70dvh;
  object-fit: contain;
}
.gallery-prev,
.gallery-next {
  height: 44px;
  border: 1px solid #78909f;
  background: transparent;
  color: white;
  border-radius: 50%;
  font-size: 22px;
}
.gallery-caption {
  text-align: center;
  font-size: 14px;
  margin: 14px 0 0;
}
.event-lightbox button:focus-visible {
  outline: 3px solid #efb64c;
  outline-offset: 3px;
}
body.gallery-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  .events-content {
    padding-block: 35px 55px;
  }
  .events-grid,
  .event-introduction {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .event-card-copy {
    padding: 24px;
  }
  .event-card h2 {
    font-size: 25px;
  }
  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .event-introduction h2,
  .event-lead h2 {
    font-size: 29px;
  }
  .event-section {
    padding-top: 32px;
    margin-top: 32px;
  }
  .event-section h2 {
    font-size: 26px;
  }
  .gallery-view {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }
  .gallery-prev,
  .gallery-next {
    height: 34px;
    font-size: 18px;
  }
  .event-lightbox {
    padding: 12px;
  }
  .gallery-view img {
    height: 65dvh;
  }
}
