/* Organism: screenshot gallery (one large shot, thumbnails to switch) and the zoom view. */

.shots { grid-column: 1 / -1; order: 3; }
.shots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.shots-head h4 { font: 600 1.05rem/1.2 var(--display); margin: 0; }
.shots-head span { font: 500 12.5px/1 var(--mono); color: var(--muted); }

.shot-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #070b12; box-shadow: var(--shadow); cursor: zoom-in; }
.shot-main img { display: block; width: 100%; height: auto; aspect-ratio: 1905 / 940; object-fit: cover; object-position: top; transition: transform .5s ease, opacity .25s ease; }
.shot-main:hover img { transform: scale(1.015); }
.shot-main.swap img { opacity: 0; }
.shot-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(7, 11, 18, .78); color: #e7ebf2; font: 600 12.5px/1 var(--font); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.shot-main:hover .shot-zoom, .shot-main:focus-visible .shot-zoom { opacity: 1; transform: none; }

.shot-cap { margin: 14px 2px 16px; color: var(--muted); font-size: 14.5px; min-height: 1.6em; }
.shot-cap b { color: var(--text); font-weight: 600; }

.shot-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot-thumbs.two { grid-template-columns: repeat(2, 1fr); }
.shot-thumbs button { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #070b12; text-align: left; transition: border-color .2s, transform .2s; }
.shot-thumbs button:hover { transform: translateY(-2px); border-color: var(--accent); }
.shot-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: top; opacity: .55; transition: opacity .2s; }
.shot-thumbs button:hover img, .shot-thumbs button.on img { opacity: 1; }
.shot-thumbs button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.shot-thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font: 600 12.5px/1.2 var(--font); color: #e7ebf2; background: linear-gradient(transparent, rgba(7, 11, 18, .92)); }

/* Zoom view */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(5, 8, 13, .94); backdrop-filter: blur(8px); color: #e7ebf2; }
.lightbox.open { display: flex; animation: lb-in .2s ease both; }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb-title { font-size: 14.5px; min-width: 0; }
.lb-title b { font-weight: 600; }
.lb-title span { color: #9aa6b8; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 20px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: inherit; font-size: 20px; line-height: 1; }
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 720px) {
  .shot-thumbs { gap: 8px; }
  .shot-thumbs span { font-size: 11px; padding: 14px 7px 6px; }
  .shot-zoom { opacity: 1; transform: none; right: 8px; bottom: 8px; padding: 6px 10px; }
  .lb-stage { padding: 0 8px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
}

@media (prefers-reduced-motion: reduce) {
  .shot-main img, .shot-thumbs button, .shot-zoom { transition: none; }
  .lightbox.open { animation: none; }
}
