.img-lightbox img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.img-lightbox:hover img {
  transform: scale(1.03);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 24px;
  box-sizing: border-box;
}

.lightbox-box {
  position: relative;
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  display: grid;
  gap: 10px;
  justify-items: center;
  cursor: default;
}

.lightbox-box img {
  display: block;
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.lightbox-caption {
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  min-height: 1.4em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #24301f;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 10000;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 30px;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
}

@media(max-width: 720px) {
  .lightbox-overlay { padding: 12px; }
  .lightbox-box img { max-width: 94vw; max-height: 78vh; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; width: 40px; height: 40px; }
  .lightbox-caption { font-size: .9rem; padding: 0 46px; }
}
