[data-image-zoom] {
  cursor: zoom-in;
  transition: transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  a:hover [data-image-zoom],
  a:focus-visible [data-image-zoom] {
    position: relative;
    z-index: 2;
    transform: scale(1.08);
  }
}

.category-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 88%);
}

.category-image-lightbox[hidden] {
  display: none;
}

.category-image-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: none;
  user-select: none;
}

.category-image-lightbox button,
.category-image-lightbox a {
  position: absolute;
  z-index: 1;
  border: 0;
  border-radius: 6px;
  color: #222;
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.category-image-lightbox button {
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}

.category-image-lightbox a {
  bottom: 20px;
  left: 50%;
  padding: 12px 18px;
  transform: translateX(-50%);
}
