.tmc-events__rail {
  grid-auto-columns: min(88vw, 38rem);
  gap: 1.25rem;
}

.tmc-event-card {
  border-color: #3f3f46;
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .24);
}

.tmc-event-card__media {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  background: #27272a;
}

.tmc-event-card__media > img {
  display: block;
  width: 100%;
  height: 21rem;
  object-fit: cover;
  transition: transform .35s ease;
}

.tmc-event-card:hover .tmc-event-card__media > img {
  transform: scale(1.02);
}

.tmc-event-card__counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 9, 11, .72);
  font-size: .72rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.tmc-event-card__gallery {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .35rem;
  border-radius: .9rem;
  background: rgba(9, 9, 11, .64);
  backdrop-filter: blur(8px);
  scrollbar-width: thin;
}

.tmc-event-card__gallery button {
  flex: 0 0 4rem;
  height: 3rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: .65rem;
  background: #18181b;
}

.tmc-event-card__gallery button.is-active {
  border-color: #a3e635;
}

.tmc-event-card__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tmc-event-card > div:last-child {
  padding: 1.4rem 1.5rem 1.6rem;
}

@media (max-width: 40rem) {
  .tmc-event-card__media,
  .tmc-event-card__media > img {
    min-height: 15rem;
    height: 15rem;
  }
}
