/* blueHealthcare screenshot lightbox — NEW FILE (2026-09-12).
   Additive only: every selector here is scoped to .hc-shot / .hc-lightbox-*
   so this file can be included on any healthcare page without touching
   assets/healthcare-style.css or changing layout on pages that don't have
   screenshots. Vanilla CSS, no dependency, reuses the --hc-* tokens already
   defined in healthcare-style.css (loaded first on every page that needs
   this file).

   Thumbnail affordance: cursor:zoom-in already exists on .hc-shot img in
   healthcare-style.css. This file adds a small always-visible "Enlarge"
   chip (helps touch users, who never see a :hover state) and a visible
   focus ring for keyboard users, neither of which changes the card's
   box size -- both are absolutely positioned over the existing image. */

.hc-shot a { position: relative; }
.hc-shot a:focus-visible {
  outline: 3px solid var(--hc-primary, #14337A);
  outline-offset: -3px;
}

.hc-shot-enlarge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--hc-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 23, 52, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.hc-shot-enlarge::before { content: "\2921"; font-size: 11px; }
.hc-shot a:hover .hc-shot-enlarge,
.hc-shot a:focus-visible .hc-shot-enlarge {
  opacity: 1;
}

/* Lightbox overlay */
.hc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 12, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  /* Never block pinch-zoom or native touch gestures on the overlay. */
  touch-action: manipulation;
}
.hc-lightbox[hidden] { display: none; }

.hc-lightbox-dialog {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
}

.hc-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  background: var(--hc-card, #fff);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hc-lightbox-img {
  display: block;
  /* No explicit width/height: an <img> renders at its natural pixel size
     by default, so these caps only ever shrink it -- they cannot upscale
     a source image past its natural resolution. */
  max-width: min(92vw, 1400px);
  max-height: 72vh;
  width: auto;
  height: auto;
}

.hc-lightbox-caption {
  padding: 14px 20px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hc-ink-soft, #33405A);
  max-width: 72ch;
  text-align: left;
  align-self: stretch;
}
.hc-lightbox-caption .hc-shot-tag { margin-bottom: 6px; }
.hc-lightbox-caption-text { display: block; }

.hc-lightbox-counter {
  margin-top: 14px;
  font-family: var(--hc-mono, monospace);
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: #fff;
  opacity: 0.85;
}

.hc-lightbox-close,
.hc-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 23, 52, 0.72);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hc-lightbox-close:focus-visible,
.hc-lightbox-nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.hc-lightbox-close:hover,
.hc-lightbox-nav:hover { background: rgba(11, 23, 52, 0.92); }

.hc-lightbox-close {
  top: -46px;
  right: -6px;
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.hc-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 26px;
}
.hc-lightbox-prev { left: -64px; }
.hc-lightbox-next { right: -64px; }

/* Background must not scroll while the lightbox is open (JS sets
   position:fixed on <body> too, for iOS Safari's rubber-band scroll --
   this class only handles browsers where overflow:hidden is enough). */
body.hc-lightbox-open { overflow: hidden; }

@media (max-width: 760px) {
  .hc-lightbox { padding: 0; }
  .hc-lightbox-dialog { width: 100%; height: 100%; justify-content: center; }
  .hc-lightbox-figure {
    border-radius: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    border: none;
  }
  .hc-lightbox-img { max-width: 100vw; max-height: 62vh; }
  .hc-lightbox-close { top: 14px; right: 14px; }
  .hc-lightbox-prev { left: 6px; }
  .hc-lightbox-next { right: 6px; }
  .hc-lightbox-nav { top: auto; bottom: 18px; transform: none; }
  .hc-lightbox-prev { bottom: 18px; }
  .hc-lightbox-caption { padding: 10px 16px 16px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-shot-enlarge { transition: none; }
}
