.image-lightbox__trigger {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}
.image-lightbox__trigger img {
  display: block;
  width: 100%;
  height: 100%;
}

.image-lightbox__overlay {
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  background: transparent;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}
.image-lightbox__overlay[open] {
  opacity: 1;
  transform: scale(1);
}
@starting-style {
  .image-lightbox__overlay[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}
.image-lightbox__overlay::backdrop {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}
.image-lightbox__overlay[open]::backdrop {
  opacity: 1;
}
@starting-style {
  .image-lightbox__overlay[open]::backdrop {
    opacity: 0;
  }
}
.image-lightbox__overlay:not([open]) {
  display: none;
}

.image-lightbox__close {
  position: fixed;
  top: var(--md);
  right: var(--md);
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--Texts-light, #fff);
  font-size: var(--font-size-lg);
  cursor: pointer;
}
.image-lightbox__close:focus-visible {
  outline: 2px solid var(--Primary-Light-Highlight);
  outline-offset: 2px;
}

.image-lightbox__stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--md);
  touch-action: none;
  user-select: none;
}

.image-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.image-lightbox__image.is-animated {
  transition: transform 0.2s ease;
}
.image-lightbox__image.is-zoomed {
  cursor: grab;
}
.image-lightbox__image.is-zoomed:active {
  cursor: grabbing;
}

body.has-image-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox__overlay,
  .image-lightbox__overlay::backdrop {
    transition: none;
  }
}
