/* GRIDS FOR CARDS */
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media(min-width: 760px) {
  .about-grid {
    grid-template-columns: 1.3fr .7fr;
  }
}

.event-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* CARD BASE STYLES */
.info-card,
.event-card,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

@media(max-width: 420px) {

  .info-card,
  .event-card {
    padding: 18px;
  }
}

/* SPECIFIC CARD STYLES */
.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: .92rem;
}

.info-card dt {
  color: var(--ink-dim);
}

.info-card dd {
  margin: 0;
}

.info-card {
  transition: border-color .25s ease, transform .25s ease;
}

.info-card:hover {
  border-color: var(--violet-bright);
  transform: translateY(-3px);
}

.event-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.event-card:hover h3 {
  color: var(--violet-bright);
}

.event-card h3 a,
.event-card h3 a:visited,
.event-card h3 a:hover,
.event-card h3 a:active {
  text-decoration: none;
  color: inherit;
}

.event-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.event-card:has(h3 a) {
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease;
}

.event-card:has(h3 a):hover {
  border-color: var(--violet-bright);
  transform: translateY(-3px);
}

.event-card h3 a:focus-visible::after {
  outline: 2px solid var(--violet-bright);
  outline-offset: 2px;
}

.event-card p {
  position: relative;
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.55;
}

.event-card p {
  font-size: 1.12rem;
}

.event-card {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 420px; /* tamanho de card anterior */
}

section:has(.event-grid) {
  max-width: 1400px;
}
@media(min-width: 640px) {
  .event-card {
    flex: 0 1 calc((100% - 20px) / 2);
  }
}

@media(min-width: 960px) {
  .event-card {
    flex: 0 1 calc((100% - 40px) / 3);
  }
}

/* CONTACT BOX */
.contact-box {
  border-radius: 18px;
  padding: 44px 28px;
  text-align: center;
}

.contact-box h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0 0 14px;
}

.contact-box p {
  color: var(--ink-dim);
  margin: 0 auto 30px;
  max-width: 38ch;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media(min-width: 540px) {
  .contact-box {
    padding: 52px 6vw;
  }
}

@media(max-width: 480px) {
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links .btn {
    width: 100%;
  }
}
/* LIGHTBOX */
.event-card .img-placeholder img,
.event-card .img-placeholder video {
  cursor: zoom-in;
}

.img-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}

#lightbox::backdrop {
  background: rgba(10, 6, 18, .85);
  backdrop-filter: blur(4px);
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}