.hwx-image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
}

.hwx-image-lightbox.is-active {
  display: flex;
}

.hwx-image-lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hwx-image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.hwx-image-lightbox__caption {
  margin-block-start: 0.75rem;
  color: #e0e0e0;
  font-size: 0.875rem;
  text-align: center;
  max-width: 60ch;
  line-height: 1.5;
}

.hwx-image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.hwx-image-lightbox__close:hover,
.hwx-image-lightbox__close:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hwx-image-lightbox__prev,
.hwx-image-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.hwx-image-lightbox__prev {
  left: 1rem;
}

.hwx-image-lightbox__next {
  right: 1rem;
}

.hwx-image-lightbox__prev:hover,
.hwx-image-lightbox__prev:focus,
.hwx-image-lightbox__next:hover,
.hwx-image-lightbox__next:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hwx-image-lightbox__prev[hidden],
.hwx-image-lightbox__next[hidden] {
  display: none;
}
