/* A2 Craftsmen photo viewer: site-side styles on top of PhotoSwipe's own CSS (vendor/photoswipe/photoswipe.css). */

/* The gallery grid's own rules (tile links, focus ring, thumbnail cursor) are in site.css, so this file can load without blocking the first paint. */

/* Viewer: plain, dark, no glow. Controls sit on the dark bars, never on the photo, so contrast holds. */
.pswp{
  --pswp-bg:var(--green-950);
  --pswp-placeholder-bg:var(--green-900);
  --pswp-icon-color:var(--neutral-0);
  --pswp-icon-color-secondary:var(--green-950);
  --pswp-icon-stroke-color:var(--green-950);
  --pswp-preloader-color-secondary:var(--neutral-0);
  font-family:Poppins,"Poppins Fallback","Helvetica Neue",Arial,sans-serif;
}
.pswp__top-bar{background:var(--green-950);height:60px}
.pswp__counter{color:var(--neutral-0);opacity:1;text-shadow:none;font-size:15px;font-weight:600}
.pswp__button{opacity:1;width:56px;height:60px}
.pswp__button--close{margin-right:4px}
.pswp__button:focus-visible{outline:3px solid var(--neutral-0);outline-offset:-4px;background:var(--a2-green-deep)}

/* Arrows stay available on touch screens (PhotoSwipe hides them by default) and are 48 px or larger. Square corners, as everywhere in the Workshop look. */
.pswp--touch .pswp__button--arrow{visibility:visible}
.pswp__button--arrow{width:56px;height:64px;margin-top:-32px}
.pswp__button--arrow .pswp__icn{
  top:8px;left:4px;margin-top:0;width:48px;height:48px;
  background:var(--green-950);border-radius:var(--radius-xs);
}
.pswp__button--arrow--next .pswp__icn{left:auto;right:4px}
.pswp__button--arrow--prev{left:4px}
.pswp__button--arrow--next{right:4px}

/* Caption bar */
.pswp__a2-caption{
  position:absolute;left:0;right:0;bottom:0;z-index:10;
  padding:14px 16px 18px;
  background:var(--green-950);color:var(--neutral-0);
  font-size:15px;font-weight:600;line-height:1.4;text-align:center;
}
.pswp__a2-caption[hidden]{display:none}

@media (prefers-reduced-motion:reduce){
  /* !important kept on purpose: PhotoSwipe (vendor) sets its transition durations as inline styles, which only !important can beat. */
  .pswp,.pswp__bg,.pswp__button,.pswp__preloader .pswp__icn,.pswp__top-bar{transition:none!important}
  .pswp__preloader .pswp__icn{animation:none}
}
