.custom-categories {
  padding: 20px 10px;
  background: #232323;
}

@media (max-width: 767px) {
  .custom-categories {
    padding: 20px 0;
  }
}

.custom-categories__heading {
  font-family: var(--template-font);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-top: 24px;
  color: var(--text-primary);
  margin: 0;
  padding: 20px 16px;
}

.custom-categories__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .custom-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .custom-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === CARD === */
.custom-category-card {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.custom-category-card__link {
  display: block;
}

.custom-category-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.custom-category-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.custom-category-card__logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 100px;
  height: auto;
  object-fit: contain;
  z-index: 2;
  opacity: 0.2;
  transition: opacity 0.35s ease;
}

.custom-category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.8) 0%,
      rgba(0,0,0,.6) 15%,
      rgba(0,0,0,0) 30%
    ),
  linear-gradient(
      225deg,
      rgba(1, 29, 37, 0.65) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.custom-category-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.custom-category-card__title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  /* font-style: italic; */
  color: #ddd;
  z-index: 2;
  white-space: nowrap;
  line-height: 1;
}

.custom-category-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.custom-category-card__link:hover .custom-category-card__image {
  transform: scale(1.08);
}

.custom-category-card__link:hover .custom-category-card__logo {
  opacity: 1;
}

@supports (backdrop-filter: sepia(0.5)) {
  .custom-category-card__link:hover .custom-category-card__overlay {
    -webkit-backdrop-filter: sepia(0.5);
    backdrop-filter: sepia(0.5);
  }
}