.event-gallery[hidden] {
  display: none;
}

.event-gallery {
  width: min(1200px, calc(100% - 48px));
  margin: clamp(58px, 7vw, 100px) auto;
  color: #003956;
  font-family: Inter, Arial, sans-serif;
}

.event-gallery-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  min-height: 420px;
  gap: clamp(20px, 4vw, 54px);
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(161, 39, 88, 0.13);
  border-radius: 28px;
  background-color: #fff4f8;
  background-image:
    linear-gradient(90deg, #fff7fa 0%, rgba(255, 247, 250, 0.98) 42%, rgba(255, 247, 250, 0.8) 59%, rgba(255, 247, 250, 0.1) 100%),
    url("/images/mb-news/outubro/fundo-outubro-rosa.png");
  background-position: center, right 54%;
  background-size: cover, cover;
  box-shadow: 0 28px 72px rgba(103, 31, 61, 0.13);
}

.event-gallery-feature::before {
  position: absolute;
  z-index: -1;
  top: -132px;
  right: 27%;
  width: 310px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.08), 0 0 0 54px rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.event-gallery-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.event-gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 9px 13px;
  border: 1px solid rgba(161, 39, 88, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #a12758;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.event-gallery-tag > span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

.event-gallery-tag-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d3819a;
}

.event-gallery-copy h2 {
  margin: 0;
  color: #003956;
  font-size: clamp(2.7rem, 5.5vw, 4.55rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.event-gallery-copy h2 span {
  color: #a12758;
}

.event-gallery-description {
  max-width: 48ch;
  margin: 22px 0 0;
  color: #536675;
  font-size: 1.02rem;
  line-height: 1.7;
}

.event-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 21px 0 0;
  color: #775966;
  font-size: 0.82rem;
  font-weight: 550;
}

.event-gallery-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-gallery-meta-location::before,
.event-gallery-meta-edition::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3819a;
  content: "";
}

.event-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 8px 9px 8px 20px;
  border: 1px solid #a12758;
  border-radius: 999px;
  background: #a12758;
  box-shadow: 0 10px 24px rgba(126, 26, 67, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.event-gallery-link:hover {
  transform: translateY(-2px);
  background: #831c49;
  box-shadow: 0 14px 30px rgba(126, 26, 67, 0.26);
}

.event-gallery-link:focus-visible {
  outline: 3px solid #003956;
  outline-offset: 4px;
}

.event-gallery-link-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.19);
  font-size: 1.1rem;
  line-height: 1;
}

.event-gallery-art {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.event-gallery-art::before {
  position: absolute;
  width: min(340px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.07), 0 0 0 46px rgba(255, 255, 255, 0.05);
  content: "";
}

.event-gallery-poster {
  position: relative;
  display: flex;
  width: min(276px, 100%);
  min-height: 306px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px 25px 21px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 240, 246, 0.72));
  box-shadow: 0 24px 56px rgba(74, 7, 33, 0.22);
  color: #003956;
  transform: rotate(3deg);
  backdrop-filter: blur(10px);
}

.event-gallery-poster::after {
  position: absolute;
  right: -56px;
  bottom: 23px;
  width: 178px;
  height: 48px;
  border-radius: 999px;
  background: rgba(209, 46, 102, 0.12);
  content: "";
  transform: rotate(-42deg);
}

.event-gallery-poster-kicker,
.event-gallery-poster-footer {
  position: relative;
  z-index: 1;
  color: #775966;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.event-gallery-poster-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(161, 39, 88, 0.13);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 25px rgba(161, 39, 88, 0.1);
  color: #c64170;
  font-size: 2.4rem;
  line-height: 1;
}

.event-gallery-poster strong {
  position: relative;
  z-index: 1;
  margin: 4px 0 14px;
  font-size: 2rem;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.event-gallery-poster strong em {
  color: #a12758;
  font-style: normal;
}

.event-gallery-poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.48rem;
  letter-spacing: 0.09em;
}

.event-gallery-poster-footer span {
  color: #c64170;
  font-size: 0.9rem;
}

.event-gallery-art-caption {
  position: absolute;
  right: 2%;
  bottom: 1%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 10px rgba(61, 0, 25, 0.55);
  text-transform: uppercase;
}

.event-gallery-content {
  margin-top: clamp(34px, 5vw, 58px);
  scroll-margin-top: 110px;
}

.event-gallery-content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.event-gallery-content-eyebrow {
  margin: 0 0 7px;
  color: #a12758;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-gallery-content-label {
  margin: 0;
  color: #003956;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.event-gallery-content-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: #775966;
  font-size: 0.76rem;
}

.event-gallery-content-note span {
  color: #b63768;
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-gallery-grid figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #f1dbe3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(64, 29, 43, 0.07);
}

.event-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 11px;
  background: #fff0f5;
}

.event-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.event-gallery-grid a:hover img {
  transform: scale(1.035);
}

.event-gallery-grid a:focus-visible {
  outline: 3px solid #a12758;
  outline-offset: 4px;
}

.event-gallery-grid figcaption {
  padding: 10px 3px 2px;
  color: #5a6670;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-gallery-status {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px 26px;
  border: 1px solid #f0d7e0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.96), transparent 44%),
    linear-gradient(112deg, #fff6f9, #fffafd);
  box-shadow: 0 12px 32px rgba(64, 29, 43, 0.055);
  color: #526574;
}

.event-gallery-status[hidden] {
  display: none;
}

.event-gallery-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f0d5df;
  border-radius: 17px;
  background: #fff;
  color: #aa2d5c;
}

.event-gallery-status-icon svg {
  width: 26px;
  height: 26px;
}

.event-gallery-status-copy {
  display: grid;
  gap: 5px;
}

.event-gallery-status-label {
  color: #003956;
  font-size: 0.94rem;
  font-weight: 750;
}

.event-gallery-status-message {
  color: #687783;
  font-size: 0.87rem;
  line-height: 1.55;
}

.event-gallery-status-edition {
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid #eedce3;
  color: #b75a7d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 820px) {
  .event-gallery-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    background-image:
      linear-gradient(180deg, #fff7fa 0%, rgba(255, 247, 250, 0.97) 47%, rgba(255, 247, 250, 0.45) 100%),
      url("/images/mb-news/outubro/fundo-outubro-rosa.png");
    background-position: center, 70% center;
  }

  .event-gallery-copy {
    max-width: 720px;
  }

  .event-gallery-art {
    min-height: 270px;
  }

  .event-gallery-poster {
    width: min(245px, 82%);
    min-height: 270px;
  }

  .event-gallery-art-caption {
    right: 4%;
    bottom: 3%;
  }
}

@media (max-width: 600px) {
  .event-gallery {
    width: min(640px, calc(100% - 32px));
    margin: 52px auto;
  }

  .event-gallery-feature {
    min-height: 0;
    padding: 29px 22px 20px;
    border-radius: 22px;
    background-position: center, 66% center;
  }

  .event-gallery-tag {
    gap: 7px;
    margin-bottom: 20px;
    font-size: 0.68rem;
  }

  .event-gallery-copy h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.5rem);
  }

  .event-gallery-description {
    margin-top: 17px;
    font-size: 0.94rem;
  }

  .event-gallery-meta {
    gap: 9px 14px;
    font-size: 0.74rem;
  }

  .event-gallery-link {
    margin-top: 24px;
  }

  .event-gallery-art {
    min-height: 250px;
  }

  .event-gallery-poster {
    min-height: 242px;
    padding: 20px;
  }

  .event-gallery-poster-mark {
    width: 63px;
    height: 63px;
    font-size: 2rem;
  }

  .event-gallery-poster strong {
    font-size: 1.75rem;
  }

  .event-gallery-art-caption {
    right: 0;
    bottom: 0;
    font-size: 0.57rem;
  }

  .event-gallery-content-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .event-gallery-grid figure {
    padding: 7px;
    border-radius: 13px;
  }

  .event-gallery-grid a {
    border-radius: 8px;
  }

  .event-gallery-status {
    align-items: flex-start;
    gap: 13px;
    min-height: 0;
    padding: 18px 16px;
    border-radius: 15px;
  }

  .event-gallery-status-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .event-gallery-status-icon svg {
    width: 22px;
    height: 22px;
  }

  .event-gallery-status-label {
    font-size: 0.86rem;
  }

  .event-gallery-status-message {
    font-size: 0.78rem;
  }

  .event-gallery-status-edition {
    display: none;
  }
}

@media (max-width: 390px) {
  .event-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-gallery-tag {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-gallery-link,
  .event-gallery-grid img {
    transition: none;
  }
}
