/* Vidira Concept — PhotoSwipe chrome, restyled to the site's language.
 *
 * Loaded by index.html and by every generated collection gallery page.
 *
 * Deliberately uses literal values rather than var(): index.html loads
 * site-v24.css while the collection pages load ai-seo-v24.css, and the two
 * define different :root scales — site's --wine is #22060c, ai-seo's is
 * #4d1220, and ai-seo has no --sans at all. Tokens would resolve differently
 * on each surface, or not at all.
 */

.pswp {
  --pswp-bg: #050505;
  --pswp-placeholder-bg: #141414;
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #050505;
  --pswp-icon-stroke-width: 0;
}

/* Matches the scrim the old single-image modal used. */
.pswp__bg { background: #050505; }

/* Controls mirror .testimonial-carousel-arrow — same 42px circle, same
   invert-on-hover — flipped for a dark ground: outline at rest, solid on hover. */
.pswp__button--arrow {
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
  transition: background .25s ease, border-color .25s ease;
}
.pswp__button--arrow--prev { left: 22px; }
.pswp__button--arrow--next { right: 22px; }
.pswp__button--arrow:hover { background: #fff; border-color: #fff; }
.pswp__button--arrow .pswp__icn {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  fill: #fff;
  transition: fill .25s ease;
}
.pswp__button--arrow:hover .pswp__icn { fill: #22060c; }

/* The site never uses a bare X — every dismiss is a tracked uppercase label
   (.work-photo-close, .close, .drawer button). */
.pswp__button--close {
  width: auto;
  height: auto;
  padding: 8px 4px;
  margin-right: 12px;
  font: 600 9px/1 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: .82;
  transition: opacity .25s ease;
}
.pswp__button--close .pswp__icn { display: none; }
.pswp__button--close::after { content: 'Close \00d7'; }
.pswp__button--close:hover { opacity: 1; }

/* Same micro-label idiom, zero-padded in JS to match the album numerals and
   the category rail. */
.pswp__counter {
  height: 60px;
  margin: 0;
  padding-left: 22px;
  display: flex;
  align-items: center;
  font: 600 10px/1 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  opacity: 1;
}

.pswp__top-bar { background: none; }

@media (max-width: 760px) {
  .pswp__button--arrow { width: 36px; height: 36px; }
  .pswp__button--arrow--prev { left: 10px; }
  .pswp__button--arrow--next { right: 10px; }
  .pswp__counter { padding-left: 14px; }
}
