/* Universal fullscreen gallery — isolated from existing page layouts */
#km-universal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 10, 18, .96);
  padding: 18px;
  box-sizing: border-box;
  touch-action: pan-y;
}
#km-universal-lightbox.km-open { display: flex; }
body.km-universal-lightbox-open { overflow: hidden !important; }
#km-universal-lightbox .km-ufg-image {
  display: block;
  max-width: calc(100vw - 110px);
  max-height: calc(100vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 4px;
  box-shadow: 0 20px 70px rgba(0,0,0,.48);
}
#km-universal-lightbox .km-ufg-close,
#km-universal-lightbox .km-ufg-arrow {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.56);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s ease, transform .15s ease;
}
#km-universal-lightbox .km-ufg-close:hover,
#km-universal-lightbox .km-ufg-arrow:hover { background: rgba(0,103,89,.9); }
#km-universal-lightbox .km-ufg-close:active,
#km-universal-lightbox .km-ufg-arrow:active { transform: scale(.96); }
#km-universal-lightbox .km-ufg-close {
  top: 18px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}
#km-universal-lightbox .km-ufg-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}
#km-universal-lightbox .km-ufg-prev { left: 20px; }
#km-universal-lightbox .km-ufg-next { right: 20px; }
#km-universal-lightbox .km-ufg-counter {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font: 700 14px/1.2 system-ui, sans-serif;
  border: 1px solid rgba(255,255,255,.2);
}
#km-universal-lightbox.km-single .km-ufg-arrow,
#km-universal-lightbox.km-single .km-ufg-counter { display: none; }
/* Visual affordance only; no layout change */
.simple-gallery .gallery-track img,
#tourModal #modalImage,
.room-details-modal img,
.attraction-program-gallery img,
.daily-csabi-modal img,
[data-auto-gallery] img { cursor: zoom-in; }
@media (max-width: 700px) {
  #km-universal-lightbox { padding: 8px; }
  #km-universal-lightbox .km-ufg-image {
    max-width: 100vw;
    max-height: calc(100vh - 54px);
    border-radius: 0;
  }
  #km-universal-lightbox .km-ufg-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  #km-universal-lightbox .km-ufg-arrow {
    width: 46px;
    height: 46px;
    margin-top: -23px;
    font-size: 36px;
  }
  #km-universal-lightbox .km-ufg-prev { left: 8px; }
  #km-universal-lightbox .km-ufg-next { right: 8px; }
  #km-universal-lightbox .km-ufg-counter { bottom: 8px; }
}
#km-universal-lightbox.km-loading .km-ufg-image { opacity: .72; }
#km-universal-lightbox .km-ufg-image { transition: opacity .08s linear; }
