.page-events .site-header h1 {
  max-width: 720px;
}

.events-intro {
  display: grid;
  grid-template-columns: minmax(300px, 34%) minmax(0, 720px);
  gap: clamp(48px, 6vw, 100px);
  min-height: 960px;
  padding: 145px 7.2vw 165px 0;
}

.events-intro__visual {
  align-self: start;
  width: min(400px, 100%);
  margin-top: 145px;
}

.events-intro__visual img {
  width: 100%;
  height: auto;
}

.events-intro__copy {
  max-width: 720px;
}

.events-intro__copy p {
  margin: 0 0 38px;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.events-intro__copy .events-intro__title {
  margin-bottom: 20px;
  color: var(--red);
  font-weight: 600;
}

.events-intro__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.events-intro__nav a {
  color: #090909;
  font-size: 17px;
  line-height: 1.35;
  text-decoration-color: #090909;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

.events-intro__nav a:hover,
.events-intro__nav a:focus-visible {
  color: var(--red);
  text-decoration-color: var(--red);
}

.events-section {
  padding: 140px 0 165px;
}

.events-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 6.25%;
  align-items: center;
}

.events-section__copy {
  grid-area: copy;
  width: min(600px, calc(100% - 34px));
}

.events-section__copy h2 {
  margin: 0 0 36px;
  color: var(--red);
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.events-section__copy p {
  margin: 0 0 32px;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.026em;
}

.events-section__copy p:last-child {
  margin-bottom: 0;
}

.events-section__copy strong {
  font-weight: 700;
}

.events-section__copy .events-section__evidence {
  color: #090909;
}

.events-text-project-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.events-text-project-link:hover,
.events-text-project-link:focus-visible {
  text-decoration: underline;
}

.events-gallery {
  grid-area: visual;
  min-width: 0;
}

.events-project-link,
.events-project-link img,
.events-static-image,
.events-static-image img {
  display: block;
}

.events-project-link {
  position: relative;
  overflow: hidden;
}

.events-project-link:focus-visible {
  outline-offset: 5px;
}

.events-project-link img,
.events-static-image img {
  width: 100%;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .events-project-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 13px 16px;
    color: #fff;
    background: var(--red);
    content: attr(data-caption);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .events-project-link:hover::after,
  .events-project-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
}

.events-section--programming .events-section__inner,
.events-section--shows .events-section__inner,
.events-section--digital .events-section__inner {
  grid-template-areas: "visual copy";
}

.events-section--celebrations .events-section__inner,
.events-section--materials .events-section__inner {
  grid-template-areas: "copy visual";
}

.events-section--celebrations .events-section__copy,
.events-section--materials .events-section__copy {
  justify-self: start;
  width: min(550px, calc(100% - 9.03vw));
  margin-left: 9.03vw;
}

.events-section--programming {
  min-height: 1120px;
}

.events-gallery--programming {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
}

.events-gallery--programming .events-project-link:first-child {
  align-self: center;
  width: min(68.4%, 540px);
}

.events-gallery--programming .events-project-link:last-child {
  width: min(90%, 720px);
}

.events-section--celebrations {
  min-height: 1120px;
}

.events-gallery--celebrations {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 380px);
  gap: 18px 20px;
  align-items: end;
  justify-content: end;
}

.events-gallery--celebrations .events-project-link--civitas {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 380px);
}

.events-gallery--celebrations .events-project-link--campeche {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  width: min(100%, 560px);
}

.events-gallery--celebrations .events-project-link--aguedas {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 250px);
}

.events-section--shows {
  min-height: 1360px;
}

.events-gallery--shows {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px 22px;
  align-items: end;
}

.events-gallery--shows .events-project-link--concerts {
  width: min(100%, 300px);
}

.events-gallery--shows .events-project-link--theatre {
  width: min(100%, 300px);
}

.events-gallery--shows .events-project-link--narrar {
  grid-column: 1 / -1;
  width: min(82%, 700px);
}

.events-section--materials {
  min-height: 1280px;
}

.events-gallery--materials {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 34px 18px;
  align-items: end;
}

.events-gallery--materials .events-project-link--programs {
  width: min(100%, 360px);
}

.events-gallery--materials .events-project-link--brochure {
  width: min(100%, 640px);
}

.events-gallery--materials .events-project-link--summer-mupi {
  grid-column: 1 / -1;
  justify-self: end;
  width: min(86%, 650px);
}

.events-section--digital {
  min-height: 1280px;
  padding-bottom: 210px;
}

.events-gallery--digital {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.56fr);
  gap: 34px 28px;
  align-items: end;
}

.events-gallery--digital .events-project-link--vertical {
  width: min(90%, 450px);
}

.events-gallery--digital .events-static-image--square {
  width: min(90%, 297px);
}

.events-gallery--digital .events-project-link--horizontal {
  grid-column: 1 / -1;
  width: min(73.8%, 630px);
}

.events-portfolio-banner h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 80px);
  margin: 0;
  padding: 14px 50px;
  color: #fff;
  background: var(--red);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.events-portfolio-banner h2:hover,
.events-portfolio-banner:focus-visible h2 {
  background: #000;
}

.page-events .contact__intro p {
  max-width: 510px;
}

.page-events .contact__intro .contact__prompt {
  margin-top: 24px;
  font-weight: 500;
}

html.events-lightbox-open {
  overflow: hidden;
}

.events-lightbox {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.events-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.events-lightbox figure {
  position: relative;
  margin: 0;
  background: #fff;
}

.events-lightbox img {
  display: block;
  width: auto;
  max-width: calc(100vw - 80px);
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.events-lightbox figcaption {
  max-width: calc(100vw - 80px);
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  font-size: 15px;
  line-height: 1.35;
}

.events-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  place-items: center;
}

.events-lightbox__close:hover,
.events-lightbox__close:focus-visible {
  background: var(--red);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-events .site-header h1 {
    max-width: 620px;
  }

  .events-intro {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
    min-height: 850px;
    padding: 105px 5vw 125px 0;
  }

  .events-intro__visual {
    margin-top: 120px;
  }

  .events-section,
  .events-section--programming,
  .events-section--celebrations,
  .events-section--shows,
  .events-section--materials,
  .events-section--digital {
    min-height: 0;
    padding-block: 110px;
  }

  .events-section__inner {
    gap: 5%;
  }

  .events-section--celebrations .events-section__copy,
  .events-section--materials .events-section__copy {
    margin-left: 5vw;
  }

  .events-intro__copy p,
  .events-section__copy p {
    font-size: 17px;
  }

  .events-intro__nav a {
    font-size: 16px;
  }

  .events-gallery--programming,
  .events-gallery--celebrations {
    gap: 28px;
  }

  .events-gallery--celebrations {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1fr);
    gap: 18px 16px;
  }

  .events-gallery--shows,
  .events-gallery--materials,
  .events-gallery--digital {
    gap: 24px 18px;
  }

}

@media (max-width: 767px) {
  .page-events .site-header h1 {
    max-width: 345px;
  }

  .events-intro {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 70px 27px 92px;
  }

  .events-intro__visual {
    display: none;
  }

  .events-intro__copy p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.43;
    letter-spacing: -0.023em;
  }

  .events-intro__nav {
    gap: 8px;
  }

  .events-intro__nav a {
    font-size: 16px;
    line-height: 1.4;
  }

  .events-section,
  .events-section--programming,
  .events-section--celebrations,
  .events-section--shows,
  .events-section--materials,
  .events-section--digital {
    min-height: 0;
    padding: 76px 0 104px;
  }

  .events-section__inner,
  .events-section--programming .events-section__inner,
  .events-section--celebrations .events-section__inner,
  .events-section--shows .events-section__inner,
  .events-section--materials .events-section__inner,
  .events-section--digital .events-section__inner {
    display: flex;
    flex-direction: column;
  }

  .events-section__copy,
  .events-section--celebrations .events-section__copy,
  .events-section--materials .events-section__copy {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 27px;
  }

  .events-section__copy h2 {
    margin-bottom: 25px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .events-section__copy p {
    margin-bottom: 29px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.023em;
  }

  .events-gallery,
  .events-gallery--programming,
  .events-gallery--celebrations,
  .events-gallery--shows,
  .events-gallery--materials,
  .events-gallery--digital {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 42px;
    padding: 0;
    gap: 0;
  }

  .events-gallery .events-project-link,
  .events-gallery .events-static-image,
  .events-gallery--programming .events-project-link:first-child,
  .events-gallery--programming .events-project-link:last-child,
  .events-gallery--celebrations .events-project-link--civitas,
  .events-gallery--celebrations .events-project-link--campeche,
  .events-gallery--celebrations .events-project-link--aguedas,
  .events-gallery--shows .events-project-link--concerts,
  .events-gallery--shows .events-project-link--theatre,
  .events-gallery--shows .events-project-link--narrar,
  .events-gallery--materials .events-project-link--programs,
  .events-gallery--materials .events-project-link--brochure,
  .events-gallery--materials .events-project-link--summer-mupi,
  .events-gallery--digital .events-project-link--vertical,
  .events-gallery--digital .events-static-image--square,
  .events-gallery--digital .events-project-link--horizontal {
    align-self: auto;
    width: 100%;
  }

  .events-project-link::after {
    display: none;
  }

  .events-portfolio-banner h2 {
    width: 310px;
    max-width: calc(100% - 40px);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.24;
    letter-spacing: 0.035em;
    white-space: normal;
  }

  .page-events .contact__intro p {
    max-width: none;
  }

  .events-lightbox img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 105px);
  }

  .events-lightbox figcaption {
    max-width: calc(100vw - 24px);
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .events-intro,
  .events-section__copy {
    padding-right: 22px;
    padding-left: 22px;
  }

  .events-intro__copy p,
  .events-section__copy p {
    font-size: 16px;
  }
}
