/* Enlarged photographs in ATC construction diary. This layer never changes the thumbnails. */
body .atc-build-lightbox[hidden] { display:none!important; }
body .atc-build-lightbox {
  position:fixed!important; inset:0!important; z-index:2147483000!important;
  width:100vw!important; height:100vh!important; height:100dvh!important;
  max-width:none!important; margin:0!important; padding:0!important;
  background:rgba(5,20,34,.96)!important; color:#fff!important;
  display:flex!important; flex-direction:column!important;
  box-sizing:border-box!important; font:500 15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  isolation:isolate; overscroll-behavior:contain;
}
body .atc-build-lightbox *,body .atc-build-lightbox *:before,body .atc-build-lightbox *:after { box-sizing:border-box!important; }
body .atc-build-lightbox-top {
  flex:0 0 auto; min-height:65px; display:flex; justify-content:space-between; align-items:center;
  padding:calc(9px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 8px max(18px,env(safe-area-inset-left,0px));
  gap:15px;
}
body .atc-build-lightbox-title { font-size:clamp(14px,3.4vw,18px)!important; color:#fff!important; font-weight:650!important; }
body .atc-build-lightbox button {
  appearance:none!important; display:grid!important; place-items:center!important; border:1px solid rgba(255,255,255,.35)!important;
  border-radius:999px!important; padding:0!important; background:rgba(26,68,94,.85)!important; color:#fff!important;
  box-shadow:0 4px 16px rgba(0,0,0,.23)!important; cursor:pointer!important;
  font-family:Arial,sans-serif!important; line-height:1!important; text-decoration:none!important;
}
body .atc-build-lightbox button:hover:not(:disabled) { background:#2779b0!important; }
body .atc-build-lightbox button:focus-visible { outline:3px solid #a8dbfc!important; outline-offset:3px!important; }
body .atc-build-lightbox button:disabled { opacity:.25!important; cursor:default!important; }
body .atc-build-lightbox .atc-build-lightbox-x { flex:0 0 48px; width:48px!important; height:48px!important; font-size:34px!important; font-weight:400!important; }
body .atc-build-lightbox-stage {
  position:relative; display:flex; align-items:center; justify-content:center; min-height:0; flex:1 1 auto;
  padding:0 clamp(54px,7vw,92px);
}
body .atc-build-lightbox-image { display:block!important; width:auto!important; height:auto!important; max-width:100%!important; max-height:100%!important;
  object-fit:contain!important; border-radius:5px!important; box-shadow:none!important; background:transparent!important;
}
body .atc-build-lightbox-image[hidden],body .atc-build-lightbox-error[hidden]{display:none!important}
body .atc-build-lightbox-error {text-align:center;color:#fff;font-size:16px!important}
body .atc-build-lightbox .atc-build-lightbox-prev,body .atc-build-lightbox .atc-build-lightbox-next {
  position:absolute; top:50%; transform:translateY(-50%); width:51px!important; height:58px!important;
  font-size:47px!important; font-weight:300!important; z-index:1;
}
body .atc-build-lightbox .atc-build-lightbox-prev {left:12px}
body .atc-build-lightbox .atc-build-lightbox-next {right:12px}
body .atc-build-lightbox-footer {
  flex:0 0 auto; min-height:68px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between;
  padding:12px max(20px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
  border-top:1px solid rgba(255,255,255,.13);
}
body .atc-build-lightbox-caption {flex:1; color:#f4f8fb!important; font-size:14px!important; font-weight:500!important; overflow-wrap:anywhere}
body .atc-build-lightbox-counter {white-space:nowrap;color:#d2e2ed!important;font-size:14px!important;font-variant-numeric:tabular-nums}
.atc-build-day-photo a.atc-build-photo-open,.atc-build-featured-image a.atc-build-photo-open {cursor:zoom-in}
.atc-build-update-content img{cursor:zoom-in}
@media(max-width:600px){
  body .atc-build-lightbox-stage {padding:0 48px}
  body .atc-build-lightbox .atc-build-lightbox-prev, body .atc-build-lightbox .atc-build-lightbox-next {width:42px!important;height:51px!important;font-size:39px!important}
  body .atc-build-lightbox .atc-build-lightbox-prev{left:4px}
  body .atc-build-lightbox .atc-build-lightbox-next{right:4px}
  body .atc-build-lightbox-footer{min-height:72px;gap:5px;padding-left:14px;padding-right:14px}
  body .atc-build-lightbox-caption{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){body .atc-build-lightbox button{transition:none!important}}
/* Ensure images inserted into a diary report never push the whole mobile page wider. */
.atc-build-day-card .atc-build-update-content img,
.atc-build-day-card .atc-build-featured-image img {max-width:100%!important;height:auto!important;}
