@charset "utf-8";

/* Wrapper becomes a 2 column grid */
.customSimpleListWrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding:20px;
  margin: 20px auto;
  border: solid 01px #ebebeb;
  box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.25);
}

/* Each item card */
.customSimpleListContainer {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding-bottom: 14px;
  border-bottom: 1px solid #ebebeb;
}

/* Item layout, thumbnail left, content right when thumbnail exists */
.customSimpleListItem {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Only present when thumbnail is rendered */
.customSimpleListThumbnail {
  flex: 0 0 100px;
}

.customSimpleListThumbnail a {
  display: block;
  padding: 0;
  text-decoration: none;
  color: #363636;
}

.customSimpleListThumbnail img {
  width: 100px;
  height: auto;
  display: block;
}

/* Content always present */
.customSimpleListContent {
  flex: 1 1 auto;
  min-width: 0;
}

.customSimpleListTitle {
  padding: 4px 0;
  font-weight: bold;
  font-size: 1.25em;
}

.customSimpleListDate {
  margin: 6px 0 10px 0;
  padding: 0;
  background-image: none;
  font-family: inherit;
  display: inline-flex;
  gap: 0;
  line-height: 1;
}

/* Month block */
.customSimpleListDate::before {
  content: attr(data-month);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #000;
}

/* Year block */
.customSimpleListDate::after {
  content: attr(data-year);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #000;
  border-left: 0;
}

.customSimpleListDescription {
  padding: 0;
}

.customSimpleListAltLink {
  padding: 0;
}

/* Pagination unchanged */
ul.pagination {
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  text-align: center;
}

ul.pagination li {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 4px;
  border: solid 1px #ebebeb;
}

ul.pagination li .visually-hidden {
  font-size: 0.6em;
}

/* 1 column on smaller screens */
@media only screen and (max-width: 768px) {
  .customSimpleListWrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    line-height: 1rem;
  }

  .customSimpleListItem {
    gap: 12px;
  }

  .customSimpleListThumbnail,
  .customSimpleListThumbnail img {
    width: 90px;
    flex-basis: 90px;
  }
}
