.zx-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}
.zx-image__wrap {
  display: block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.zx-image__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transition-property: opacity, filter, transform, box-shadow, border-color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
.zx-image__placeholder {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.zx-image__caption {
  margin-top: 8px;
  font-size: 0.9em;
  line-height: 1.4;
  opacity: 0.85;
}

/* Lightbox (frontend runtime) */
.zx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.92);
  cursor: zoom-out;
  animation: zx-lightbox-in 0.2s ease;
}
.zx-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.zx-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
@keyframes zx-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zx-lightbox {
    animation: none;
  }
}
