/* S&D builder page photos: head photo, gallery grid and the slab stand video (includes/sd_builders.php sd_builder_media_html, 2026-11-12). Uses the sd.css tokens. */
.sd-head-photo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; }
.sd-head-photo__pic { margin: 0; width: 220px; }
.sd-head-photo__pic img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--sd-mist, #f4f4f1); }
.sd-head-photo__pic figcaption { font-size: .8rem; color: var(--sd-mute, #5d5d57); line-height: 1.4; margin-top: .4rem; }
@media (max-width: 640px) { .sd-head-photo { grid-template-columns: 1fr; } .sd-head-photo__pic { width: min(100%, 300px); } }
.sd-photos { margin: 2.2rem 0 1.6rem; }
.sd-photos h2 { font-family: var(--font-serif, Georgia, serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 .9rem; }
.sd-photos__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sd-photos__grid a { display: block; border-radius: 12px; overflow: hidden; background: var(--sd-mist, #f4f4f1); border: 1px solid var(--sd-line, #e2e2dc); }
.sd-photos__grid a:focus-visible { outline: 3px solid var(--sd-accent, #2563eb); outline-offset: 2px; }
.sd-photos__grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.sd-photos__video { margin: 0 0 1rem; max-width: 420px; }
.sd-photos__video video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; background: #151412; }
.sd-photos__video figcaption { font-size: .85rem; color: var(--sd-mute, #5d5d57); line-height: 1.4; margin-top: .4rem; }
@media (max-width: 640px) { .sd-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sd-photos__video { max-width: none; } }
