.eventItem {
  position: relative;
  list-style: none;
  display: grid;
  align-items: flex-start;

  &.small {

    .title,
    .details {
      font-size: var(--font-size-body);
    }
  }

  &.medium {
    --size-image-width: 8rem;
    grid-template-rows: 1fr 2fr;
    grid-template-columns: var(--size-image-width) auto;
    column-gap: .6rem;
    align-items: center;
    width: var(--size-item-width);

    .image {
      width: var(--size-image-width);
      grid-row: span 2;
    }

    .dates,
    .title,
    .details {
      font-size: var(--font-size-body);
    }

    .dates {
      font-size: var(--font-size-caption);
    }

    .text {
      align-self: start;
    }

    .time {
      align-self: start;
    }

    .dates {
      margin: auto 0 0 0;
    }

    .details {
      display: none;
    }
  }

  &.large {
    align-content: start;

    .image {
      order: 1;
      margin-bottom: var(--spacing-xs);
    }

    .text {
      order: 2;
    }

    .time {
      order: 3;
    }
  }
}

.image {
  width: 100%;
  padding-top: 60%;
  position: relative;

  img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.title {
  font-size: var(--font-size-h3);
}

.details {
  font-size: var(--font-size-lead);
  margin-bottom: var(--spacing-xs);
}

.dates,
.details {
  font-family: var(--font-serif);
}


.time {
  position: relative;
}

.dates {
  font-size: var(--font-size-body);
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .2rem;
}

.datePill,
.moreDates {
  display: inline-block;
  background: var(--color-goldenBeige);
  color: var(--color-deepBrick);
  border-radius: 2rem;
  padding: 0 .4rem;
  font-size: var(--font-size-xs);
  font-family: var(--font-main);
  font-weight: 500;
}

.moreDates {
  color: var(--color-goldenBeige);
  background: var(--color-deepBrick);
}