/* Website photo gallery (Er Dk 2026-10-26, SEO): /gallery, /gallery/<category>, /gallery/photo/<id>/<slug>. Uses blog.css tokens. */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding-top: 26px; padding-bottom: 10px; }
.gal-item { margin: 0; background: #fff; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; }
.gal-item:hover { box-shadow: 0 10px 30px rgba(10, 56, 104, .12); transform: translateY(-2px); }
.gal-item a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.gal-pic { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.gal-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item figcaption { padding: 12px 14px 14px; display: grid; gap: 4px; }
.gal-item figcaption b { font-size: 15px; line-height: 1.35; }
.gal-item figcaption span { font-size: 13px; color: var(--ink-mute); }
.gal-photo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; padding-top: 30px; padding-bottom: 10px; align-items: start; }
.gal-photo figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--line2); }
.gal-photo figure img { width: 100%; height: auto; min-height: 240px; max-height: 78vh; object-fit: contain; display: block; background: var(--soft); }
.gal-photo figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-soft); }
.gal-info h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 6px 0 12px; }
.gal-info > p { line-height: 1.65; color: var(--ink-soft); }
.gal-facts { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: 14.5px; }
.gal-facts b { display: inline-block; min-width: 82px; color: var(--ink); }
.gal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.gal-nav a { padding: 9px 14px; border: 1px solid var(--line2); border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.gal-nav a:hover { border-color: var(--navy); }
.gal-h2 { font-size: 22px; margin: 34px 0 0; }
@media (max-width: 860px) { .gal-photo { grid-template-columns: 1fr; } }

/* 2026-10-28: a photo that cannot load (e.g. a Google Drive file that is not shared publicly) shows a clean placeholder,
   never a broken image with its alt text */
.gal-miss { display: grid; place-items: center; background: linear-gradient(135deg, #072747, #0A3868 70%, #0e4a86) !important; min-height: 160px; }
.gal-miss::after { content: "CADD Training Centre"; color: rgba(255,255,255,.85); font-weight: 700; letter-spacing: .02em; font-size: 15px; }
figure.gal-miss { aspect-ratio: 4 / 3; border-radius: 14px; }
