.dh-events {
  margin: 2rem 0;
}

.dh-events__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.dh-events .dh-event-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.dh-events .dh-event-card__poster {
  display: block;
  flex: 0 0 220px;
  max-width: 220px;
  background: #f5f5f5;
  text-decoration: none;
}

.dh-events .dh-event-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.dh-events .dh-event-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 1.25rem 1.5rem;
}

.dh-events .dh-event-card__date {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #555;
}

.dh-events .dh-event-card__title {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #232323 !important;
  text-indent: 0;
  visibility: visible !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Refuerzo frente a temas que fuerzan los títulos o enlaces en blanco. */
body .dh-events .dh-event-card .dh-event-card__title,
body .dh-events .dh-event-card .dh-event-card__title a,
body .dh-events .dh-event-card__content .dh-event-card__title {
  color: #232323 !important;
}

.dh-events .dh-event-card__title a {
  color: #232323 !important;
  text-decoration: none;
}

.dh-events .dh-event-card__location {
  margin: 0 0 1rem;
  color: #666;
}

.dh-events .dh-event-card__link {
  margin-top: 0.25rem;
}

@media (min-width: 992px) {
  .dh-events__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dh-events .dh-event-card__poster {
    flex: 0 0 180px;
    max-width: 180px;
  }

  .dh-events .dh-event-card__content {
    padding: 1rem 1.25rem;
  }

  .dh-events .dh-event-card__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .dh-events .dh-event-card {
    flex-direction: column;
  }

  .dh-events .dh-event-card__poster {
    flex-basis: auto;
    max-width: none;
    width: 100%;
  }

  .dh-events .dh-event-card__poster img {
    height: auto;
    max-height: 320px;
    aspect-ratio: 16 / 9;
  }

  .dh-events .dh-event-card__content {
    padding: 1rem;
  }
}
