/* Scoped to the three editorial CPTs; existing Documents are unchanged. */
.media-section .media-card h2 { font-size:1.4rem; line-height:1.3; }
.media-section .media-card p { line-height:1.6; }
.media-section .media-cover img { height:auto; }
.media-section .gallery a { display:block; border-radius:.25rem; }
.media-section .gallery a:focus-visible { outline:3px solid var(--color-primary, #004b93); outline-offset:5px; }
.media-section .media-pdf { height:75vh; height:75dvh; min-height:24rem; max-width:100%; }
.album-viewer { position:fixed; inset:0; box-sizing:border-box; width:min(70rem,calc(100% - 2rem)); max-width:calc(100% - 2rem); height:min(52rem,calc(100dvh - 2rem)); max-height:calc(100dvh - 2rem); margin:auto; padding:1rem; border:0; border-radius:.4rem; background:#fff; color:#172b3f; overflow:auto; }
.album-viewer::backdrop { background:rgb(0 15 32 / .85); }
.album-viewer[open] { display:flex; flex-direction:column; gap:.75rem; }
.album-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.album-viewer .album-viewer-title { font-size:1.25rem; margin:0; line-height:1.4; }
.album-viewer button { min-height:2.75rem; padding:.55em .8em; border:2px solid #004b93; border-radius:.2rem; background:#004b93; color:#fff; font:inherit; cursor:pointer; }
.album-viewer button:hover { background:#003568; }
.album-viewer button:focus-visible { outline:3px solid #172b3f; outline-offset:3px; box-shadow:0 0 0 6px #ffca4b; }
.album-viewer-image { display:block; width:100%; height:auto; min-height:min(10rem,30dvh); flex:1 1 auto; object-fit:contain; }
.album-viewer-caption { margin:0; font-size:1rem; line-height:1.5; overflow-wrap:anywhere; }
.album-viewer-controls { display:flex; gap:.75rem; align-items:center; justify-content:center; flex-wrap:wrap; }
.album-viewer-status { margin:0; }
.high-contrast .album-viewer { background:#000; color:#fff; border:2px solid #fff; }
.high-contrast .album-viewer button { color:#fff; background:#000; border-color:#ff0; }
.high-contrast .media-section .gallery a:focus-visible { outline-color:#ff0; }
@media (max-width:47.99rem) {
    .media-section .media-pdf { min-height:20rem; height:70vh; height:70dvh; }
    .album-viewer { padding:.75rem; width:calc(100% - 1rem); max-width:calc(100% - 1rem); height:calc(100dvh - 1rem); max-height:calc(100dvh - 1rem); }
}
