/*
 * modal.css
 * TY Graphics LLC — Portfolio Image Modal Styles
 * Thomas D. Young / TY Graphics LLC
 * March 24, 2026  |  Epoch: 1742827200  |  12:00:00
 * Purpose: External stylesheet for modal.js. Previously injected
 *          via JS style block. Link this file in every site page.
 *          Companion to modal.js — do not load one without the other.
 */

#tyg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  background: rgba(0,0,0,0); /* GSAP drives opacity */
}

#tyg-modal.open { display: flex; }

#tyg-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  cursor: default;
  opacity: 0;
}

#tyg-modal-ba {
  display: none;
  gap: 3px;
  cursor: default;
  max-width: 90vw;
  max-height: 90vh;
}

#tyg-modal-ba.show { display: flex; }

.tyg-ba-wrap {
  display: flex;
  flex-direction: column;
}

.tyg-ba-wrap img {
  max-height: 88vh;
  max-width: 44vw;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
}

.tyg-ba-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 0.4rem 0 0;
}

#tyg-modal-close {
  position: fixed;
  top: 1.1rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s;
  font-family: sans-serif;
  font-weight: 300;
  z-index: 2001;
}

#tyg-modal-close:hover { color: rgba(255,255,255,0.9); }

/* Zoom-in cursor on all modal trigger containers */
.view-img img,
.gallery-item img,
.pair-img img,
.cat-img img,
.ba-img img,
.coll-img img,
.origin-img img,
.dev-img img,
.ref-letter-img img {
  cursor: zoom-in;
}

/* Suppress modal on headshot */
.origin-img.no-zoom,
.origin-img.no-zoom img {
  cursor: default;
  pointer-events: none;
}

/* Click-to-close hint */
.modal-hint {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2002;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
  pointer-events: none;
}

#tyg-modal.open + .modal-hint {
  display: block;
}
