/* Photo lightbox for /photo-gallery/. Self-hosted, no third parties, no tracking. */
.dp-lb { touch-action: pinch-zoom; overscroll-behavior: contain; position: fixed; inset: 0; z-index: 20000; background: rgba(12,12,12,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; box-sizing: border-box; }
.dp-lb[hidden] { display: none; }
.dp-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.dp-lb-img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.5); background: #222; }
.dp-lb-count { font-family: Poppins, arial, sans-serif; color: #aaa; font-size: 13px; position: absolute; top: 20px; left: 24px; }
.dp-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; width: 48px; height: 48px; font-size: 26px; line-height: 48px; padding: 0; }
.dp-lb button:hover { background: rgba(255,255,255,.25); }
.dp-lb-close { top: 12px; right: 16px; }
.dp-lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.dp-lb-next { right: 12px; top: 50%; margin-top: -24px; }
.dp-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .dp-lb { padding: 56px 8px 16px; }
  .dp-lb-prev, .dp-lb-next { top: auto; bottom: 14px; margin: 0; }
  .dp-lb-img { max-height: calc(100vh - 150px); }
  }
body.dp-lb-open { overflow: hidden; }
.dp-shot img, .dp-lb-img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.dp-gallery-grid .dp-shot-row { grid-column-start: 1; }
