/* ==========================================================================
   RENY TRAVEL VIP — PREMIUM-STYLE-GALLERY.CSS (LIGHTBOX v3)
   Zoom (wheel / pinch), pan, swipe, keyboard, responsive caption
   ========================================================================== */

.rt-lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(8,7,6,.985);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; flex-direction: column;
  padding: clamp(10px, 3vw, 44px);
  opacity: 0; transition: opacity .25s ease;
  overscroll-behavior: contain;
  touch-action: none;
}
.rt-lb.is-open { display: flex; }
.rt-lb.is-visible { opacity: 1; }

.rt-lb__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.rt-lb__stage.is-zoomed { cursor: grabbing; }

.rt-lb__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.8);
  user-select: none; -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform .22s ease, opacity .2s ease;
}
.rt-lb__img.is-dragging { transition: none; }
.rt-lb__img.is-loading { opacity: .25; }

/* --- Controls ------------------------------------------------------------ */
.rt-lb__btn {
  position: absolute; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,14,13,.55);
  border: 1px solid rgba(197,168,128,.45);
  color: #fdfbf7; cursor: pointer;
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.rt-lb__btn:hover,
.rt-lb__btn:focus-visible {
  background: var(--champagne, #C5A880);
  border-color: var(--champagne, #C5A880);
  color: var(--onyx, #181614);
  outline: none;
}
.rt-lb__close { top: clamp(8px,2vw,20px); right: clamp(8px,2vw,24px); width: 46px; height: 46px; font-size: 24px; line-height: 1; }
.rt-lb__nav { top: 50%; transform: translateY(-50%); width: clamp(42px,5vw,58px); height: clamp(42px,5vw,58px); font-size: clamp(18px,2vw,24px); }
.rt-lb__nav--prev { left: clamp(6px,2vw,28px); }
.rt-lb__nav--next { right: clamp(6px,2vw,28px); }
.rt-lb__zoom { bottom: clamp(10px,2vh,20px); width: 40px; height: 40px; font-size: 19px; }
.rt-lb__zoom--out { left: 50%; margin-left: -96px; }
.rt-lb__zoom--in { left: 50%; margin-left: 56px; }
.rt-lb__btn[disabled] { opacity: .28; pointer-events: none; }

/* --- Caption bar --------------------------------------------------------- */
.rt-lb__bar {
  flex: 0 0 auto;
  padding: 14px 8px 4px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.rt-lb__counter {
  color: var(--champagne, #C5A880);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
}
.rt-lb__caption {
  display: block; margin-top: 8px;
  color: rgba(253,251,247,.8);
  font-size: 14px; line-height: 1.55; letter-spacing: .02em;
}
.rt-lb__caption:empty { display: none; }
.rt-lb__hint {
  position: absolute; top: clamp(8px,2vw,20px); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.35); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  z-index: 10; pointer-events: none; text-align: center;
}

/* --- Mobile: full screen, no arrows, caption strip ----------------------- */
@media (max-width: 760px) {
  .rt-lb { padding: 0; }
  .rt-lb__hint,
  .rt-lb__zoom,
  .rt-lb__nav { display: none; }
  .rt-lb__stage { border-radius: 0; }
  .rt-lb__img { border-radius: 0; box-shadow: none; }
  .rt-lb__close {
    top: 10px; right: 10px; width: 40px; height: 40px; font-size: 21px;
    background: rgba(8,7,6,.65);
  }
  .rt-lb__bar {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(8,7,6,0) 0%, rgba(8,7,6,.92) 45%);
    margin-top: -46px;
    position: relative; z-index: 11;
  }
  .rt-lb__caption { font-size: 13px; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .rt-lb, .rt-lb__img { transition: none; }
}

.rt-lb-thumb { cursor: zoom-in; }
