.novelty {
  --novelty-gap: 16px;
  --novelty-pad: 20px;
  --novelty-surface: #fff;
  --novelty-muted: #a6acb1;
  --novelty-title-bg: #73787d;
  --novelty-title-color: #ecf1f7;
  --novelty-more-bg: var(--bg-primary-blue, #ecf1f7);
  --novelty-text: var(--bg-dark, #2c3135);
  --novelty-radius: 8px;

  padding-block: 24px 0;
  font-family: "ITCOfficinaSansW10-Book_862508", Arial, sans-serif;
}

.novelty__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.novelty__title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
}

.novelty__note {
  margin: 0;
  flex: 1 1 12rem;
  color: var(--novelty-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.novelty__note-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.novelty__note-link:hover,
.novelty__note-link:focus-visible {
  color: var(--novelty-text);
}

.novelty__body {
  background-color: var(--novelty-surface);
  border-radius: 0 var(--novelty-radius) 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.novelty__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--novelty-gap);
  padding: var(--novelty-pad);
  margin: 0;
  list-style: none;
}

.novelty__list:not(.novelty__list--expanded) .novelty__item:nth-child(n + 6) {
  display: none;
}

.novelty__item {
  min-width: 0;
}

.novelty__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.novelty__link:hover .novelty__caption,
.novelty__link:focus-visible .novelty__caption {
  color: var(--novelty-text);
}

.novelty__cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
}

.novelty__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.novelty__caption {
  color: var(--novelty-muted);
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novelty__more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0 0 var(--novelty-radius) var(--novelty-radius);
  background-color: var(--novelty-more-bg);
  color: var(--novelty-muted);
  font: inherit;
  cursor: pointer;
}

.novelty__more:hover,
.novelty__more:focus-visible {
  color: var(--novelty-text);
}

.novelty__more-label {
  border-bottom: 1px dashed currentColor;
}

@media (max-width: 1199.98px) {
  .novelty__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .novelty__list:not(.novelty__list--expanded) .novelty__item:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .novelty__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .novelty__list:not(.novelty__list--expanded) .novelty__item:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .novelty {
    --novelty-pad: 16px;
    --novelty-gap: 12px;
  }

  .novelty__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .novelty__list:not(.novelty__list--expanded) .novelty__item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .novelty__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .novelty__title {
    border-radius: var(--novelty-radius);
    width: fit-content;
  }

  /* flex-basis 12rem in a column head inflates note height */
  .novelty__note {
    flex: 0 1 auto;
  }

  .novelty__list {
    grid-template-columns: 1fr;
  }

  .novelty__list:not(.novelty__list--expanded) .novelty__item:nth-child(n + 3) {
    display: none;
  }
}
