/* Unit photo gallery (gallery.js), 2026-10-25 */
.unit-media[data-gallery-media] { cursor: zoom-in; }
.gal-open { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; padding: 5px 9px; border-radius: 3px; background: transparent; color: var(--gold); border: 1px solid var(--gold); cursor: pointer; }
.gal-open:hover { background: var(--gold); color: var(--on-gold); }
.gal-open svg { flex: 0 0 auto; }
.gal-lock, .gal-lock body { overflow: hidden; }
.gal { width: min(1100px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: var(--text); }
.gal::backdrop { background: rgba(8,8,7,.88); }
.no-dialog .gal[open] { position: fixed; inset: 0; z-index: 200; }
.gal-bar { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.gal-title { flex: 1 1 auto; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.gal-count { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.gal-close, .gal-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--steel); color: var(--text); cursor: pointer; }
.gal-close:hover, .gal-nav:hover { border-color: var(--gold); color: var(--gold); }
.gal-stage { position: relative; background: #fff; touch-action: pan-y; user-select: none; }
.gal-stage picture, .gal-stage img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; aspect-ratio: 4 / 3; margin: 0 auto; }
.gal-img.is-loading { opacity: .35; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(14,14,13,.78); }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
.gal-nav[hidden] { display: none; }
.gal-hint { margin: 0; padding: 10px 18px 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .gal { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; display: none; flex-direction: column; }
  .gal[open] { display: flex; }
  .gal-stage { flex: 1 1 auto; display: flex; align-items: center; }
  .gal-stage img { max-height: calc(100dvh - 130px); }
  .gal-title { font-size: 16px; }
  .gal-nav { width: 40px; height: 40px; }
  .gal-prev { left: 6px; } .gal-next { right: 6px; }
}
@media (prefers-reduced-motion: no-preference) { .gal-img { transition: opacity .15s; } }
