/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gal li { border: 1px solid var(--line); background: var(--ink-1); }
.gal img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gal li:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gal li:nth-child(6n+1) img { height: 100%; aspect-ratio: auto; }
@media (max-width: 960px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; }
.gal figcaption { padding: 10px 12px; font-size: var(--fs-xs); line-height: 1.35; color: var(--fg-2); border-top: 1px solid var(--line); }
/* Screenshots with captions: even grid, whole image visible */
.gal--shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.gal--shots li:nth-child(6n+1) { grid-column: auto; grid-row: auto; }
.gal--shots img, .gal--shots li:nth-child(6n+1) img { aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #fff; }
@media (max-width: 600px) { .gal--shots { grid-template-columns: 1fr; } }
