/* Intentional shadow of the vendored theme's photoswipe-mobile-fix.css
   (themes/hugo-photoswipe5-gallery/static/assets/css/, upstream:
   https://github.com/thkukuk/hugo-photoswipe5-gallery). Our theme is listed first in
   config.toml, so this file wins for /assets/css/photoswipe-mobile-fix.css; the vendored
   copy stays untouched.

   The upstream version clamps .pswp__img and .pswp__zoom-wrap with
   max-height: calc(100vh - 80px) + object-fit: contain on <=768px screens to reserve
   space for the mobile caption bar. PhotoSwipe v5 sizes and positions slides entirely in
   JS (inline width/height on .pswp__img, transform on .pswp__zoom-wrap), so a CSS clamp
   desyncs the rendered box from the computed pan/zoom bounds: tap-to-zoom stops zooming
   and instead shifts the image up — top of the image cut off, blank space at the bottom
   (reported 2026-09-17). It also overrides .pswp height with 100vh/100dvh while JS
   measures clientWidth/innerHeight, and forces the nav arrows visible on touch devices.

   Caption space is already handled correctly in JS by the photoswipe-dynamic-caption
   plugin: onCalcSlideSize() measures the real caption height, shrinks
   slide.panAreaSize.y when the image bottom would be covered, and recomputes zoom levels
   + pan bounds (restoring the full area when zoomed in and the caption is hidden).

   This file therefore intentionally ships NO rules: stock PhotoSwipe + plugin behavior
   is correct (image fits/centers in the full viewport; the mobile caption bar overlays
   the bottom edge and the plugin lifts the image via JS when needed; arrows stay hidden
   on touch devices, swipe navigates).

   Do not delete this file — load-photoswipe.html links /assets/css/photoswipe-mobile-fix.css
   unconditionally, so removing the shadow would serve the vendored (zoom-breaking) copy.
   Do not "restore" the upstream clamp rules here: any rule that touches .pswp__img /
   .pswp__zoom-wrap sizing or .pswp height breaks the lightbox's zoom/pan math again. */
