/* Meublex – fotografie: jemné zväčšenie pri prejdení myšou */
main img.nv-photo-zoomable {
  cursor: zoom-in;
  position: relative;
  z-index: 0;
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  main img.nv-photo-zoomable:hover {
    transform: scale(1.045);
    filter: brightness(1.025) saturate(1.025);
    box-shadow: 0 12px 28px rgba(27, 7, 10, .18);
    z-index: 6;
  }
}

main img.nv-photo-zoomable:focus-visible {
  outline: 3px solid #e7bd43;
  outline-offset: 3px;
}

/* Veľké zobrazenie po kliknutí */
.nv-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 54px 70px 64px;
  background: rgba(16, 10, 11, .94);
  backdrop-filter: blur(4px);
}
.nv-photo-lightbox.is-open { display: flex; }
.nv-photo-lightbox__image {
  display: block;
  max-width: min(94vw, 1600px);
  max-height: calc(100vh - 125px);
  max-height: calc(100dvh - 125px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
  cursor: zoom-out;
}
.nv-photo-lightbox__caption {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 18px;
  color: #fff;
  font: 13px/1.4 Arial, sans-serif;
  text-align: center;
}
.nv-photo-lightbox__button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(120,15,32,.92);
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.nv-photo-lightbox__button:hover {
  background: #9b1930;
  transform: scale(1.04);
}
.nv-photo-lightbox__close { top: 18px; right: 20px; }
.nv-photo-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.nv-photo-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.nv-photo-lightbox__prev:hover { transform: translateY(-50%) scale(1.04); }
.nv-photo-lightbox__next:hover { transform: translateY(-50%) scale(1.04); }
body.nv-photo-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .nv-photo-lightbox { padding: 48px 12px 70px; }
  .nv-photo-lightbox__image { max-width: 96vw; max-height: calc(100vh - 135px); max-height: calc(100dvh - 135px); }
  .nv-photo-lightbox__caption { left: 12px; right: 12px; bottom: 15px; font-size: 12px; }
  .nv-photo-lightbox__button { width: 40px; height: 40px; font-size: 27px; }
  .nv-photo-lightbox__close { top: 10px; right: 10px; }
  .nv-photo-lightbox__prev { left: 7px; }
  .nv-photo-lightbox__next { right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  main img.nv-photo-zoomable,
  .nv-photo-lightbox__button { transition: none; }
}
