/* KuhArt 1.16.31 — Category Wall: image background + centered text */

.sc-category-wall .sc-category-wall-item > .content-block {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  aspect-ratio: 200 / 132;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px;
  background: #161616;
  isolation: isolate;
  text-decoration: none !important;
}

.sc-category-wall .sc-category-wall-item > .content-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .20) 0%, rgba(0, 0, 0, .38) 100%);
  transition: background-color .25s ease, opacity .25s ease;
}

.sc-category-wall .sc-category-wall-item > .content-block > img {
  position: absolute !important;
  inset: -4px !important;
  z-index: 0;
  display: block;
  width: calc(100% + 8px) !important;
  height: calc(100% + 8px) !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 0 !important;
  filter: blur(2.4px) brightness(.60) saturate(.95);
  transform: scale(1.055);
  transform-origin: center;
  transition: transform .3s ease, filter .3s ease;
}

.sc-category-wall .sc-category-wall-item > .content-block > .sc-category-wall-title {
  position: relative;
  z-index: 2;
  display: block;
  width: 92%;
  max-width: 92%;
  margin: 0 !important;
  padding: 10px 12px;
  color: #fff !important;
  font-size: clamp(15px, 1.12vw, 19px) !important;
  font-weight: 700 !important;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sc-category-wall .sc-category-wall-item > .content-block:hover > img {
    filter: blur(1.8px) brightness(.66) saturate(1);
    transform: scale(1.09);
  }

  .sc-category-wall .sc-category-wall-item > .content-block:hover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .34) 100%);
  }

  .sc-category-wall .sc-category-wall-item > .content-block:hover > .sc-category-wall-title {
    transform: translateY(-1px);
  }
}

@media (max-width: 767.98px) {
  .sc-category-wall .sc-category-wall-item > .content-block {
    border-radius: 10px;
  }

  .sc-category-wall .sc-category-wall-item > .content-block > .sc-category-wall-title {
    width: 94%;
    max-width: 94%;
    padding: 8px 9px;
    font-size: 14px !important;
    line-height: 1.2;
  }

  .sc-category-wall .sc-category-wall-item > .content-block > img {
    filter: blur(2px) brightness(.59) saturate(.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-category-wall .sc-category-wall-item > .content-block > img,
  .sc-category-wall .sc-category-wall-item > .content-block > .sc-category-wall-title,
  .sc-category-wall .sc-category-wall-item > .content-block::after {
    transition: none !important;
  }
}
