/* Click-to-zoom lightbox for article images (homecircuits.eu) */
.post__content img.hc-zoomable {
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.post__content img.hc-zoomable:hover {
  opacity: 0.92;
}

.hc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(17, 17, 17, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.hc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.hc-lightbox__img {
  max-width: min(94vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
  transform: scale(0.97);
  transition: transform 0.18s ease;
}

.hc-lightbox.is-open .hc-lightbox__img {
  transform: scale(1);
}

.hc-lightbox__caption {
  max-width: min(90vw, 760px);
  color: #f0f0f0;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.hc-lightbox__caption:empty {
  display: none;
}

.hc-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.65);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hc-lightbox__close:hover,
.hc-lightbox__close:focus-visible {
  background: #e22d30;
  border-color: #e22d30;
  outline: none;
}
