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

  &.small {

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

    .text {
      padding: 0;
      margin: .4em 0;
      &:before {
        display: none;
      }
    }

    @media (max-width: 700px) {
      --size-image-width: 8.2rem;
      grid-template-columns: var(--size-image-width) auto;
      column-gap: .6rem;
      align-items: flex-start;
      width: var(--size-item-width);
    }
  }

  &.medium {
    --size-image-width: 8.2rem;
    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);
    }

    .day,
    .dates,
    .title {
      font-size: var(--font-size-caption);
      line-height: 1.3;
    }

    .day {
      opacity: 0.8;
      &:first-letter {
        text-transform: uppercase;
      }
    }

    .title {
      margin: .2em 0;
      font-size: var(--font-size-body);
      line-height: 1.2;
    }

    .text {
      &:before {
        display: none;
      }
    }

    .time {
      align-self: start;
    }

    .dates {
      margin: auto 0 0 0;
    }

    .details {
      display: none;
    }
  }

  &.large {
    align-content: start;
    margin-bottom: 1rem;

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

    .text {
      order: 2;
    }

    .time {
      order: 3;
      margin-top: var(--spacing-xs);
    }
  }

  /*&:hover {
    opacity: 1;
    .text {
      &:before {
        transform: translateX(0);
        opacity: 1;
      }
    }
  }*/
}

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

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

.text {
  --size-icon: var(--font-size-caption);
  padding-right: 2rem;
  position: relative;

  &:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: var(--size-icon);
    height: var(--size-icon);
    margin-right: var(--spacing-xs);
    border-radius: var(--size-icon);
    background: var(--color-goldenOrange);
    position: absolute;
    right: 0;
    top: calc(var(--font-size-h3)/2.5);
    transform: translateX(-.5rem);
    opacity: 0;
    transition: transform .4s ease, opacity .2s ease;;
  }
}

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

.details {
  font-size: var(--font-size-lead);
}

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


.time {
  position: relative;
}

.dates {
  font-size: var(--font-size-body);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  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;

  @supports (text-box-trim: trim-both) {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    padding-block: 0.25em;
  }
}

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