/* Hobycasa lightbox (modal de imagen). CSS plano namespaced (.hc-*) — no Tailwind. */
html.hc-lb-open { overflow: hidden; }

.post-content a.hc-zoom { cursor: zoom-in; }

.hc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.hc-lightbox.is-open { display: flex; }

.hc-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.hc-lb-figure {
  position: relative;
  margin: 0;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hc-lb-img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.hc-lb-cap {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  text-align: center;
  max-width: 80vw;
}

.hc-lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}
.hc-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  width: 54px;
  height: 72px;
  border-radius: 6px;
  cursor: pointer;
}
.hc-lb-prev { left: 12px; }
.hc-lb-next { right: 12px; }
.hc-lb-close:hover, .hc-lb-nav:hover { opacity: 0.8; }
.hc-lb-close:focus-visible, .hc-lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hc-lb-counter {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .hc-lightbox.is-open { animation: hc-lb-fade 0.15s ease; }
}
@keyframes hc-lb-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .hc-lb-nav { width: 42px; height: 60px; font-size: 32px; }
  .hc-lb-img { max-height: 78vh; }
}
