.gallery__item-trigger {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='14' cy='14' r='14' fill='rgba(0,0,0,0.88)'/><path d='M14 9v10M9 14h10' stroke='white' stroke-width='1.5' stroke-linecap='round'/></svg>")
      14 14,
    zoom-in;
}

.gallery__item-trigger:focus-visible {
  outline: 2px solid var(--klv-color-accent);
  outline-offset: -2px;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: rgb(3, 3, 4);
  color: var(--klv-color-text-bright);
}
.gallery-lightbox[open] {
  display: block;
}
.gallery-lightbox__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 300ms ease;
}

.gallery-lightbox__image.is-zoomed {
  cursor: zoom-out;
  transform: scale(2.2);
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: rgb(20, 20, 20);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  outline: 2px solid var(--klv-color-accent);
  outline-offset: 2px;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
}
.gallery-lightbox__controls {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-lightbox__counter {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgb(20, 20, 20);
}

@media (min-width: 810px) {
  .gallery-lightbox__close {
    top: 2rem;
    right: 2rem;
  }

  .gallery-lightbox__controls {
    bottom: 2rem;
    left: 2rem;
  }
}

@media (min-width: 1200px) {
  .gallery-lightbox__close {
    top: 2.5rem;
    right: 2.5rem;
  }

  .gallery-lightbox__controls {
    bottom: 2.5rem;
    left: 2.5rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-lightbox {
    transition: opacity 200ms ease;
  }

  @starting-style {
    .gallery-lightbox[open] {
      opacity: 0;
    }
  }
}
