/* Single Listing gallery: main image + thumbnails + next/prev */

.vlc-gallery{ margin:14px 0 0; }

.vlc-gallery-main{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background: rgba(0,0,0,.10);
}

.vlc-gallery-main a{ display:block; }

.vlc-gallery-main img{
  width:100%;
  height:auto;
  display:block;
}

.vlc-gallery-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(0,0,0,.45);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  z-index:3;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.vlc-gallery-btn:hover{ background:rgba(0,0,0,.60); }
.vlc-gallery-btn:active{ transform:translateY(-50%) scale(0.98); }
.vlc-gallery-btn:focus{ outline:2px solid rgba(255,255,255,.70); outline-offset:2px; }

.vlc-gallery-btn.prev{ left:10px; }
.vlc-gallery-btn.next{ right:10px; }

.vlc-gallery-count{
  position:absolute;
  left:12px;
  bottom:10px;
  font-size:12px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:rgba(255,255,255,.90);
  border:1px solid rgba(255,255,255,.18);
  z-index:3;
}

.vlc-gallery-thumbs{
  display:flex;
  gap:10px;
  margin-top:10px;
  overflow-x:auto;
  padding:2px 2px 6px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}

.vlc-gallery-thumb{
  flex:0 0 auto;
  scroll-snap-align:start;
}

.vlc-gallery-thumb button{
  border:2px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:0;
  background:transparent;
  cursor:pointer;
  overflow:hidden;
  width:86px;
  height:64px;
}

.vlc-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.vlc-gallery-thumb button.is-active{
  border-color: rgba(44,110,99,.85);
  box-shadow:0 0 0 2px rgba(0,0,0,.25);
}

@media (max-width: 420px){
  .vlc-gallery-thumb button{ width:74px; height:56px; }
  .vlc-gallery-btn{ width:40px; height:40px; font-size:26px; }
}


/* In-page listing photo lightbox */
.vlc-lightbox{ position:fixed; inset:0; z-index:99999; display:none; }
.vlc-lightbox.is-open{ display:block; }
.vlc-lightbox-backdrop{ position:absolute; inset:0; background:rgba(9,12,14,.82); }
.vlc-lightbox-dialog{ position:relative; width:min(96vw, 1280px); height:min(92vh, 860px); margin:4vh auto; border-radius:18px; background:#0f1314; border:1px solid rgba(255,255,255,.10); box-shadow:0 25px 90px rgba(0,0,0,.45); overflow:hidden; }
.vlc-lightbox-stage{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:14px; }
.vlc-lightbox-img{ max-width:100%; max-height:100%; width:auto; height:auto; display:block; border-radius:12px; }
.vlc-lightbox-close{ position:absolute; top:12px; right:12px; width:42px; height:42px; border-radius:999px; border:1px solid rgba(255,255,255,.20); background:rgba(0,0,0,.45); color:#fff; font-size:28px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:4; }
.vlc-lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:999px; border:1px solid rgba(255,255,255,.24); background:rgba(0,0,0,.42); color:#fff; font-size:30px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:4; }
.vlc-lightbox-nav.prev{ left:12px; }
.vlc-lightbox-nav.next{ right:12px; }
.vlc-lightbox-count{ position:absolute; left:14px; bottom:14px; padding:6px 10px; border-radius:999px; background:rgba(0,0,0,.45); color:#fff; font-size:12px; border:1px solid rgba(255,255,255,.14); z-index:4; }
.vlc-lightbox-close:hover,.vlc-lightbox-nav:hover{ background:rgba(0,0,0,.65); }
@media (max-width: 640px){
  .vlc-lightbox-dialog{ width:100vw; height:100vh; margin:0; border-radius:0; }
  .vlc-lightbox-stage{ padding:8px; }
  .vlc-lightbox-close{ top:10px; right:10px; width:40px; height:40px; }
  .vlc-lightbox-nav{ width:40px; height:40px; font-size:26px; }
  .vlc-lightbox-nav.prev{ left:8px; }
  .vlc-lightbox-nav.next{ right:8px; }
  .vlc-lightbox-count{ left:10px; bottom:10px; }
}
