.eventWrapper {
  //margin: calc(var(--spacing-sitepadding-block)*-1) calc(var(--spacing-sitepadding-inline)*-1);
}

.eventList {
  padding: var(--spacing-sitepadding-block) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--spacing-gap-column);
  row-gap: var(--spacing-gap-row);
  padding-bottom: var(--spacing-section-bottom);
}

.displayOptions {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  position: relative;
  z-index: 10;
  transition: background-color .5s ease;

  button {
    margin-bottom: 0;
  }

  button:last-child {
    margin: 0 0 0 auto;
  }

  &[data-showFilter=true] {
    background-color: var(--color-background-secondary);
  }
}

.eventCalendar {
  position: relative;
}

.calendarYearMonth {
  margin-top: var(--spacing-sitepadding-block);

  h2 {
    font-size: var(--font-size-lead);
    padding: calc(var(--spacing-gap-column)/2);
    background: var(--color-chateauBlue);
    color: var(--color-betongGray);
    position: sticky;

    &:first-letter {
      text-transform: capitalize;
    }
  }

  &[data-collapsed=true] > .calendarWeek {
    display: none;
  }
}

.calendarWeek {
  display: grid;
  grid-template-columns: repeat(7, 1fr);

  &:nth-of-type(even) {
    .calendarDay {
      background: var(--color-background);

      &:nth-of-type(even) {
        background: var(--color-background-secondary);
      }
    }
  }
}

.calendarDay {
  background: var(--color-background-secondary);
  min-height: 12rem;
  padding: calc(var(--spacing-gap-column)/2);

  &:nth-of-type(even) {
    background: var(--color-background);
  }

  h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-body);
    font-weight: 400;
    margin-bottom: var(--spacing-s);


    &:first-letter {
      text-transform: capitalize;
    }
  }
}

@media (max-width: 1200px) {
  .eventList {
    grid-template-columns: 1fr 1fr;
  }

  .calendarWeek {
    grid-template-columns: 1fr;
  }

  .calendarDay {

    min-height: 0;
    padding: calc(var(--spacing-gap-column)/2) var(--spacing-sitepadding-inline);

    &.empty {
      display: none;
    }

    ul {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      column-gap: var(--spacing-gap-column);
      row-gap: var(--spacing-gap-row);
    }

    &:first-child,
    &:last-child {
      padding: calc(var(--spacing-gap-column)/2) var(--spacing-sitepadding-inline);
    }
  }
}

@media (max-width: 700px) {
  .eventList {
    grid-template-columns: 1fr;
  }
}