/* dv-gallery.css - the photo wall and its viewer (Karen Bradshaw, 2026-11-30: one big gallery; a press opens the photo
   large with previous / next). Loaded only where dv_gallery_wall() renders. The same rules are in the package's site.css. */
.gwall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.gwall a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--blue-tint); }
.gwall img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .gwall img { transition: transform .25s var(--ease); }
  .gwall a:hover img, .gwall a:focus-visible img { transform: scale(1.04); }
}
@media (max-width: 520px) { .gwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
dialog.lb { border: 0; padding: 0; margin: 0; background: transparent; color: var(--white); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; overflow: hidden; }
dialog.lb::backdrop { background: rgba(10, 14, 40, .93); }
.lb figure { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb img { display: block; width: auto; height: auto; max-width: calc(100vw - 136px); max-height: calc(100vh - 96px); border-radius: 8px; }
.lb figcaption { font: 700 14px/1 var(--head); color: var(--white); }
.lb button { position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--white); cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .3); }
.lb button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.lb button svg { width: 24px; height: 24px; }
.lb-x { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: calc(50% - 24px); }
.lb-next { right: 10px; top: calc(50% - 24px); }
@media (max-width: 640px) {
  .lb img { max-width: calc(100vw - 12px); max-height: calc(100vh - 150px); }
  .lb figure { justify-content: flex-start; padding-top: 66px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
