/* DTA Lightbox — see assets/js/lightbox.js */
html.dta-lb-open, html.dta-lb-open body { overflow: hidden !important; }

.dta-lb {
  position: fixed; inset: 0; z-index: 2147483000; /* above the fixed site header (999999) */
  display: grid; grid-template-rows: 56px minmax(0, 1fr) 96px;
  background: rgba(12, 12, 12, calc(0.92 * var(--dta-lb-fade, 1)));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; opacity: 0; transition: opacity .2s ease;
  font-family: 'Questrial', sans-serif;
  -webkit-user-select: none; user-select: none;
}
.dta-lb[hidden] { display: none; }
.dta-lb.is-open { opacity: 1; }

/* top bar */
.dta-lb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 24px; }
.dta-lb__info { display: flex; align-items: baseline; gap: 18px; min-width: 0; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.dta-lb__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.dta-lb__count { flex-shrink: 0; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.dta-lb__actions { display: flex; gap: 4px; }

.dta-lb__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; transition: background .15s;
}
.dta-lb__btn:hover { background: rgba(255, 255, 255, .12); }
.dta-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dta-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* image stage */
.dta-lb__stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 8px 72px; touch-action: none; cursor: default;
}
.dta-lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  cursor: zoom-in; opacity: 0; transition: opacity .25s ease, transform .2s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45); will-change: transform;
}
.dta-lb__img.is-in { opacity: 1; }
.dta-lb.is-loading .dta-lb__img { opacity: .15; }
.dta-lb.is-zoomed .dta-lb__img { cursor: zoom-out; transition: opacity .25s ease; }
.dta-lb.is-zoomed .dta-lb__img:active { cursor: grabbing; }

.dta-lb__spinner {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%;
  opacity: 0; pointer-events: none; animation: dta-lb-spin .8s linear infinite;
}
.dta-lb.is-loading .dta-lb__spinner { opacity: 1; transition: opacity .2s .15s; } /* only shows if loading takes a moment */
@keyframes dta-lb-spin { to { transform: rotate(360deg); } }

/* prev / next */
.dta-lb__nav { position: absolute; top: calc(56px + (100% - 56px - 96px) / 2); transform: translateY(-50%); width: 56px; height: 56px; }
.dta-lb__prev { left: 8px; }
.dta-lb__next { right: 8px; }
.dta-lb__nav svg { width: 30px; height: 30px; }
.dta-lb.is-zoomed .dta-lb__nav, .dta-lb.is-single .dta-lb__nav, .dta-lb.is-single .dta-lb__strip { visibility: hidden; }

/* thumbnail strip */
.dta-lb__strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; padding: 12px 24px 16px; }
.dta-lb__track { display: flex; gap: 8px; width: max-content; margin: 0 auto; }
.dta-lb__thumb {
  flex: 0 0 auto; width: 90px; height: 61px; /* 150x101 thumbnail ratio */
  padding: 0; border: 2px solid transparent; background: #222; cursor: pointer;
  opacity: .45; transition: opacity .15s, border-color .15s; overflow: hidden;
}
.dta-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dta-lb__thumb:hover { opacity: .85; }
.dta-lb__thumb.is-active { opacity: 1; border-color: #fff; }
.dta-lb__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* full screen: no thumbnail strip, the image gets the whole screen, controls float on top */
.dta-lb.is-fullscreen { grid-template-rows: minmax(0, 1fr); background: rgba(0, 0, 0, var(--dta-lb-fade, 1)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dta-lb.is-fullscreen .dta-lb__strip { display: none; }
.dta-lb.is-fullscreen .dta-lb__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 64px; padding-bottom: 8px;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.dta-lb.is-fullscreen .dta-lb__stage { padding: 0; }
.dta-lb.is-fullscreen .dta-lb__img { box-shadow: none; }
.dta-lb.is-fullscreen .dta-lb__nav { top: 50%; z-index: 2; background: rgba(0, 0, 0, .25); }
.dta-lb.is-fullscreen .dta-lb__nav:hover { background: rgba(0, 0, 0, .45); }

/* zoom switched off (project pages) */
.dta-lb.no-zoom .dta-lb__zoom { display: none; }
.dta-lb.no-zoom .dta-lb__img { cursor: default; }

/* phones: swipe replaces arrows, tighter spacing */
@media (max-width: 640px) {
  .dta-lb { grid-template-rows: 52px minmax(0, 1fr) 76px; }
  .dta-lb__top { padding: 0 4px 0 16px; }
  .dta-lb__stage { padding: 4px 0; }
  .dta-lb__nav { display: none; }
  .dta-lb__strip { padding: 10px 12px 12px; }
  .dta-lb__thumb { width: 66px; height: 45px; }
  .dta-lb__title { display: none; }
  .dta-lb.is-fullscreen { grid-template-rows: minmax(0, 1fr); }
  .dta-lb.is-fullscreen .dta-lb__top { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .dta-lb, .dta-lb__img, .dta-lb__thumb { transition: none; }
}

/* hint that page images open the lightbox */
.slider-for .slider-banner-image img, .achi_imgs .achi_img img { cursor: zoom-in; }
