/* Project gallery lightbox (slider) */
#projectLightbox{z-index:5000;padding:0;touch-action:none;overscroll-behavior:contain;-webkit-tap-highlight-color:transparent}
#projectLightbox img{max-width:min(92vw,1600px);max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;will-change:transform}
#projectLightbox img.from-right{animation:pgFromRight .32s cubic-bezier(.2,.7,.2,1)}
#projectLightbox img.from-left{animation:pgFromLeft .32s cubic-bezier(.2,.7,.2,1)}
@keyframes pgFromRight{from{opacity:0;transform:translateX(60px)}to{opacity:1;transform:none}}
@keyframes pgFromLeft{from{opacity:0;transform:translateX(-60px)}to{opacity:1;transform:none}}
#projectLightbox .lightbox-close{z-index:3;right:12px;top:calc(10px + env(safe-area-inset-top,0px));width:52px;height:52px;display:flex;align-items:center;justify-content:center;font-size:36px;line-height:1;background:rgba(20,20,19,.6);border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#fff}
#projectLightbox .lightbox-nav{z-index:3;top:50%;transform:translateY(-50%);width:54px;height:54px;display:flex;align-items:center;justify-content:center;padding:0;background:rgba(20,20,19,.6);border:1px solid rgba(255,255,255,.22);border-radius:50%;color:#fff;transition:background .25s,border-color .25s,color .25s}
#projectLightbox .lightbox-nav:hover{background:#c9952e;border-color:#c9952e;color:#111}
#projectLightbox .lightbox-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#projectLightbox .lightbox-prev{left:20px;right:auto;font-size:0}
#projectLightbox .lightbox-next{right:20px;left:auto;font-size:0}
#projectLightbox .lightbox-counter{position:absolute;z-index:3;left:50%;bottom:calc(26px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);font-size:11px;letter-spacing:.24em;color:#d8d3c8;font-family:Inter,Arial,Helvetica,sans-serif}
@media (max-width:700px){
  #projectLightbox img{max-width:100vw;max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px)}
  #projectLightbox .lightbox-nav{top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:none;width:50px;height:50px}
  #projectLightbox .lightbox-prev{left:14px}
  #projectLightbox .lightbox-next{right:14px}
  #projectLightbox .lightbox-counter{bottom:calc(30px + env(safe-area-inset-bottom,0px))}
}

/* the floating WhatsApp / chat / back-to-top / language buttons must not sit on top of the viewer */
body.pg-lightbox-open .quick-actions-cluster,body.pg-lightbox-open .back-to-top,body.pg-lightbox-open .locale-floating-control,body.pg-lightbox-open .chat-panel{display:none!important}
