/* Album pages share the site's typography and colours. */
.article-body a{text-decoration:underline;overflow-wrap:anywhere}
.article-heading .lead{overflow-wrap:anywhere}
.album-event-link{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline;margin-bottom:28px}
.album-event-link>span{color:var(--muted);font-size:14px}
.album-event-link a{overflow-wrap:anywhere}
.related-albums,.publication-gallery{border-top:1px solid var(--line);padding-top:28px;margin-top:32px}
.related-albums ul{list-style:none;padding:0;margin:0}
.related-albums li+li{margin-top:14px}
.gallery-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-bottom:20px}
.gallery-heading h2,.gallery-counts{margin:0}
.gallery-counts{display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--muted);font-size:15px}
.gallery-counts strong{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px;list-style:none;margin:0;padding:0}
.gallery-item{min-width:0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.gallery-preview{display:block;position:relative;aspect-ratio:4/3;background:var(--soft)}
.gallery-preview img{width:100%;height:100%;object-fit:contain}
.gallery-placeholder{display:grid;height:100%;place-items:center;font-size:36px;color:var(--muted)}
.gallery-video-label{position:absolute;bottom:8px;left:8px;background:var(--ink);color:var(--surface);padding:2px 8px;border-radius:3px;font-size:13px}
.gallery-item-caption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:10px;font-size:14px;line-height:1.5}
.gallery-filename{overflow-wrap:anywhere;min-width:0}
.gallery-kind{font-size:12px;color:var(--muted);flex-shrink:0}
.gallery-item-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0 16px;font-size:14px}
.gallery-item-actions a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
.gallery-pagination{scroll-margin-top:24px}
.media-viewer{display:flex;justify-content:center;align-items:center;background:var(--soft)}
.media-viewer img,.media-viewer video{display:block;width:100%;height:auto;max-height:80vh;object-fit:contain}
.media-viewer video{background:#111}
.media-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px;margin-top:24px}
.media-navigation{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;border-top:1px solid var(--line);margin-top:32px;padding-top:24px}
.media-navigation a[rel="next"]{margin-left:auto}
.media-delete-preview{margin-bottom:28px}
.media-delete-preview img{max-width:480px;max-height:360px;width:100%;object-fit:contain;object-position:left;margin-bottom:16px}
.media-delete-preview p{margin-bottom:8px}
@media(max-width:1100px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.gallery-item-caption{display:block}.gallery-kind{display:none}.media-actions .button{max-width:100%}.media-navigation{align-items:stretch}.media-navigation a{font-size:14px}.media-viewer img,.media-viewer video{max-height:75vh}}
@media(max-width:420px){.gallery-grid{gap:20px 12px}.media-navigation{flex-direction:column}.media-navigation a[rel="next"]{margin-left:0}}
