/* BTS Artist Gallery Lightbox — isolated component styles v2.1.80 */
.bts-gallery-lightbox-link{cursor:zoom-in}
.bts-gallery-lb-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.88);z-index:0}
#bts-artist-gallery-lightbox{position:fixed;z-index:999999;inset:0;display:none;place-items:center;padding:24px;cursor:zoom-out;overscroll-behavior:contain;touch-action:none;isolation:isolate}
#bts-artist-gallery-lightbox.open{display:grid;visibility:visible;opacity:1}
.bts-gallery-lb-box{position:relative;max-width:min(94vw,1200px);max-height:92vh;z-index:2;cursor:default}
.bts-gallery-lb-box img{display:block;max-width:94vw!important;max-height:88vh!important;width:auto!important;height:auto!important;object-fit:contain;border-radius:12px;box-shadow:0 25px 80px rgba(0,0,0,.5);user-select:none;-webkit-user-drag:none}
.bts-gallery-lb-box button{position:absolute;right:-12px;top:-12px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#111;font-size:28px;line-height:1;cursor:pointer;z-index:3}
#bts-artist-gallery-lightbox .bts-gallery-lb-backdrop{z-index:0}
#bts-artist-gallery-lightbox .bts-gallery-lb-box{z-index:2}
body.bts-gallery-lb-open{overflow:hidden}
@media(max-width:560px){#bts-artist-gallery-lightbox{padding:12px}.bts-gallery-lb-box{max-width:100%;max-height:90vh}.bts-gallery-lb-box img{max-width:calc(100vw - 24px)!important;max-height:82vh!important}.bts-gallery-lb-box button{right:0;top:-48px;width:42px;height:42px}}

/* v2.1.77 — Gallery lightbox navigation, caption and mobile controls */
#bts-artist-gallery-lightbox .bts-gallery-lb-box{position:relative;max-width:min(94vw,1100px);max-height:92vh;padding:44px 58px 52px;box-sizing:border-box}
#bts-artist-gallery-lightbox .bts-gallery-lb-box img{max-width:100%;max-height:70vh;object-fit:contain}
#bts-artist-gallery-lightbox .bts-gallery-lb-close,#bts-artist-gallery-lightbox .bts-gallery-lb-prev,#bts-artist-gallery-lightbox .bts-gallery-lb-next{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.6);color:#fff;cursor:pointer;border-radius:999px;width:42px;height:42px;font-size:30px;line-height:1}
#bts-artist-gallery-lightbox .bts-gallery-lb-close{top:8px;right:8px;font-size:26px}
#bts-artist-gallery-lightbox .bts-gallery-lb-prev{left:8px;top:50%;transform:translateY(-50%)}
#bts-artist-gallery-lightbox .bts-gallery-lb-next{right:8px;top:50%;transform:translateY(-50%)}
#bts-artist-gallery-lightbox .bts-gallery-lb-caption{margin-top:10px;color:#fff;text-align:center;font-size:.95rem;line-height:1.4}
#bts-artist-gallery-lightbox .bts-gallery-lb-counter{margin-top:6px;color:rgba(255,255,255,.7);text-align:center;font-size:.8rem}
#bts-artist-gallery-lightbox button:focus-visible{outline:3px solid #f0b85a;outline-offset:3px}
@media(max-width:560px){#bts-artist-gallery-lightbox .bts-gallery-lb-box{padding:42px 42px 48px}#bts-artist-gallery-lightbox .bts-gallery-lb-prev,#bts-artist-gallery-lightbox .bts-gallery-lb-next{width:34px;height:34px;font-size:25px}#bts-artist-gallery-lightbox .bts-gallery-lb-close{width:36px;height:36px}}


/* v2.1.77 — Prevent floating Back to Top control from overlapping Gallery lightbox navigation */
body.bts-gallery-lb-open .bts-back-to-top{
  display:none!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-prev,
#bts-artist-gallery-lightbox .bts-gallery-lb-next{
  touch-action:manipulation;
}
@media(max-width:560px){
  #bts-artist-gallery-lightbox .bts-gallery-lb-prev{left:4px}
  #bts-artist-gallery-lightbox .bts-gallery-lb-next{right:4px}
}


/* v2.1.77 — Fixed lightbox control collision on mobile */
#bts-artist-gallery-lightbox .bts-gallery-lb-close{
  position:fixed!important;
  top:max(14px,env(safe-area-inset-top))!important;
  right:max(14px,env(safe-area-inset-right))!important;
  z-index:1000003!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-prev,
#bts-artist-gallery-lightbox .bts-gallery-lb-next{
  position:fixed!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:1000003!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-prev{left:max(10px,env(safe-area-inset-left))!important}
#bts-artist-gallery-lightbox .bts-gallery-lb-next{right:max(10px,env(safe-area-inset-right))!important}
body.bts-gallery-lb-open .bts-back-to-top,
body.bts-gallery-lb-open button.bts-back-to-top{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:560px){
 #bts-artist-gallery-lightbox .bts-gallery-lb-close{top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;width:38px!important;height:38px!important}
 #bts-artist-gallery-lightbox .bts-gallery-lb-prev,#bts-artist-gallery-lightbox .bts-gallery-lb-next{width:42px!important;height:42px!important}
}


/* v2.1.79 — Center lightbox image on all viewport sizes */
#bts-artist-gallery-lightbox .bts-gallery-lb-box{
  width:min(100%,1100px)!important;
  max-width:100%!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-box img{
  display:block!important; width:auto!important; height:auto!important;
  max-width:100%!important; margin:0 auto!important; object-fit:contain!important;
}
@media(max-width:560px){
 #bts-artist-gallery-lightbox .bts-gallery-lb-box{width:100%!important;max-width:100%!important;padding:52px 48px 48px!important}
 #bts-artist-gallery-lightbox .bts-gallery-lb-box img{max-width:100%!important;max-height:calc(100dvh - 150px)!important}
}


/* v2.1.79 — Lightbox accessibility, swipe support and deterministic mobile centering */
#bts-artist-gallery-lightbox .bts-gallery-lb-box{
  width:min(100vw,1100px)!important;
  max-width:100vw!important;
  min-width:0!important;
  margin-inline:auto!important;
  align-items:center!important;
  overflow:visible!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-box img{
  display:block!important;
  width:auto!important;
  max-width:calc(100vw - 116px)!important;
  max-height:calc(100dvh - 170px)!important;
  height:auto!important;
  margin-inline:auto!important;
  object-fit:contain!important;
}
@media (min-width:561px){
  #bts-artist-gallery-lightbox .bts-gallery-lb-box img{max-width:min(100%,calc(100vw - 180px))!important;max-height:calc(100dvh - 150px)!important;}
}
@media (max-width:560px){
  #bts-artist-gallery-lightbox .bts-gallery-lb-box{
    width:100vw!important;
    max-width:100vw!important;
    padding:52px 58px 48px!important;
  }
  #bts-artist-gallery-lightbox .bts-gallery-lb-box img{
    max-width:calc(100vw - 116px)!important;
    max-height:calc(100dvh - 170px)!important;
  }
}

/* Artist Gallery Lightbox — keep close control fully inside viewport */
#bts-artist-gallery-lightbox .bts-gallery-lb-box{
  position:relative;
  width:fit-content;
  max-width:96vw;
  max-height:92vh;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-box button{
  right:10px;
  top:10px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(0,0,0,.12);
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:32px;
  font-weight:500;
  line-height:1;
  text-align:center;
  z-index:5;
  box-shadow:0 5px 22px rgba(0,0,0,.28);
}
#bts-artist-gallery-lightbox .bts-gallery-lb-box button:focus-visible{
  outline:3px solid #f0b85a;
  outline-offset:3px;
}
@media (max-width:600px){
  #bts-artist-gallery-lightbox{
    padding:12px;
  }
  #bts-artist-gallery-lightbox .bts-gallery-lb-box{
    max-width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
  }
  #bts-artist-gallery-lightbox .bts-gallery-lb-box img{
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
    border-radius:12px;
  }
  #bts-artist-gallery-lightbox .bts-gallery-lb-box button{
    right:8px;
    top:8px;
    width:44px;
    height:44px;
    font-size:30px;
  }
}






/* v2.1.81 — Deterministic lightbox centering correction
 * Keep the content box narrower than the viewport controls and remove the
 * previous fit-content/padding interaction that could push wide images right.
 */
#bts-artist-gallery-lightbox .bts-gallery-lb-box{
  width:min(1100px,calc(100vw - 180px))!important;
  max-width:none!important;
  min-width:0!important;
  max-height:calc(100dvh - 24px)!important;
  margin:0 auto!important;
  padding:52px 0 48px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
#bts-artist-gallery-lightbox .bts-gallery-lb-box img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:calc(100dvh - 160px)!important;
  margin:0 auto!important;
  object-fit:contain!important;
}
@media(max-width:560px){
  #bts-artist-gallery-lightbox .bts-gallery-lb-box{
    width:calc(100vw - 96px)!important;
    max-width:calc(100vw - 96px)!important;
    max-height:calc(100dvh - 24px)!important;
    padding:52px 0 48px!important;
  }
  #bts-artist-gallery-lightbox .bts-gallery-lb-box img{
    max-width:100%!important;
    max-height:calc(100dvh - 160px)!important;
  }
}

/* v2.1.87 — Gallery loading/error state and adjacent-image navigation polish */
#bts-artist-gallery-lightbox .bts-gallery-lb-box.is-loading img{opacity:.72;transition:opacity .16s ease}
#bts-artist-gallery-lightbox .bts-gallery-lb-box.is-error img{opacity:.35}
#bts-artist-gallery-lightbox .bts-gallery-lb-box img{transition:opacity .16s ease}
