:root {
  --color-group-a: var(--color-light-text);
  --color-group-b: var(--color-text);
  --collection-entry-gap: 5px;
  --collection-entry-mobile-padding: 9px;
  --collection-entry-desktop-padding: 5px 0;
  --collection-entry-mobile-title-bottom: 9px;
  --collection-entry-desktop-title-bottom: 33px;
  --collection-entry-mobile-title-size: 10px;
  --collection-entry-desktop-title-size: 14px;
  --collection-entry-title-color-secondary: #959595;
  --collection-entry-transition-duration: 300ms;
  --collection-entry-transform-duration: 500ms;
}

.bb-collection-entries {
  padding: var(--collection-entry-mobile-padding);
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-text));
}

.bb-collection-entries__items--a {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--collection-entry-gap);
}

.bb-collection-entries__items--b {
  display: flex;
  margin-top: var(--collection-entry-gap);
  gap: var(--collection-entry-gap);
}

.bb-collection-entries__items--b .bb-collection-entries__item {
  flex: 1;
}

.bb-collection-entries__item {
  position: relative;
  display: block;
}

.bb-collection-entries__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--collection-entry-transform-duration);
}

.bb-collection-entries__item-title {
  position: absolute;
  bottom: var(--collection-entry-mobile-title-bottom);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  text-align: center;
  line-height: 0.6em;
  font-size: var(--collection-entry-mobile-title-size);
}

.bb-collection-entries__items--a .bb-collection-entries__item-title {
  color: var(--collection-entry-item-title-color, rgb(var(--color-group-a)));
}

.bb-collection-entries__items--b .bb-collection-entries__item-title {
  color: var(--collection-entry-item-title-color, var(--collection-entry-title-color-secondary));
}

@media (min-width: 960px) {
  .bb-collection-entries {
    padding: var(--collection-entry-desktop-padding);
  }

  .bb-collection-entries__item {
    overflow: hidden;
  }

  .bb-collection-entries__item:hover img {
    transform: scale(1.07);
  }

  .bb-collection-entries__items--a {
    grid-template-columns: repeat(6, 1fr);
  }

  .bb-collection-entries__item-title {
    bottom: var(--collection-entry-desktop-title-bottom);
    font-size: var(--collection-entry-desktop-title-size);
    transition: all var(--collection-entry-transition-duration);
  }

  .bb-collection-entries__items--b .bb-collection-entries__item-title {
    color: var(--collection-entry-item-title-color, rgb(var(--color-group-b)));
    font-weight: 500;
  }
}
