/* Openbaar overzicht van het bestaande foto-, radio- en videoarchief. */
.media-library-hero { margin-bottom: 20px; }
.media-library-types { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 20px; }
.media-library-types a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.media-library-types strong { font: 800 14px/1.4 Manrope,sans-serif; }
.media-library-types span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.media-library-types a[aria-current] { border-color: #a80710; background: #fff5f4; }
.media-library-types a:hover { border-color: #a80710; color: #a80710; }
.media-library-filters { display: grid; grid-template-columns: minmax(160px,2fr) repeat(2,minmax(140px,1fr)) auto; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); align-items: end; }
.media-library-filters label { display: grid; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; }
.media-library-filters input:not([type=hidden]), .media-library-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #bdbbc0; border-radius: 3px; background: #fff; color: var(--ink); font-size: 14px; }
.media-library-filters .button { min-height: 44px; }
.media-library-reset { grid-column: 1/-1; justify-self: start; color: #a80710; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.media-library-help { margin: 12px 0 24px; max-width: 900px; color: #68686e; font-size: 12px; line-height: 1.65; }
.media-library-results-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 26px 0 16px; scroll-margin-top: 24px; }
.media-library-results-heading p { margin: 0; font: 800 16px/1.5 Manrope,sans-serif; overflow-wrap: anywhere; }
.media-library-results-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.media-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 20px; }
.media-library-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.media-library-card figure { margin: 0; }
.media-library-image { display: flex; justify-content: center; align-items: center; width: 100%; height: 220px; background: #eae8e4; }
.media-library-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-library-image.photo-popup-trigger { cursor: zoom-in; }
.media-library-video { display: block; width: 100%; height: 220px; background: #17181b; }
.media-library-recording { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; min-height: 220px; padding: 24px; text-align: center; color: #fff; background: #202127; }
.media-library-recording svg { color: #e1b6b8; }
.media-library-recording span { font-size: 13px; line-height: 1.6; }
.media-library-recording:hover { background: #3b1c20; }
.media-library-card figcaption { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; padding: 12px 18px 0; color: #68686e; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.media-library-card-body { padding: 18px; }
.media-library-card .eyebrow { color: #a80710; font-size: 10px; }
.media-library-card h2 { margin: 7px 0; font: 800 16px/1.4 Manrope,sans-serif; overflow-wrap: anywhere; }
.media-library-date { margin: 8px 0 12px; color: #68686e; font-size: 11px; line-height: 1.5; }
.media-library-related { list-style: none; margin: 0; padding: 0; }
.media-library-related li + li { margin-top: 8px; }
.media-library-related a { color: #a80710; font-size: 12px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.media-library-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin: 30px 0 40px; }
.media-library-pagination a { padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #a80710; font-size: 13px; font-weight: 700; }
.media-library-pagination span { color: #68686e; font-size: 12px; }
@media (max-width: 900px) { .media-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .media-library-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
    .media-library-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .media-library-types { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .media-library-types a { padding: 13px 15px; }
    .media-library-filters { grid-template-columns: minmax(0,1fr); padding: 18px; }
    .media-library-image, .media-library-video { height: 230px; }
}
/* Extra menu-item: gebruik op middelgrote schermen hetzelfde uitklapmenu als op mobiel. */
@media (min-width: 981px) and (max-width: 1180px) {
    .header-inner { position: relative; }
    .site-header .desktop-navigation { display: none !important; }
    .mobile-navigation { display: block; position: relative; margin-left: auto; }
    .mobile-navigation summary { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 3px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
    .mobile-navigation summary::-webkit-details-marker { display: none; }
    .mobile-navigation nav { position: absolute; z-index: 25; top: calc(100% + 9px); right: 0; width: 320px; display: none; padding: 8px; background: #17181b; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 42px rgba(0,0,0,.3); }
    .mobile-navigation[open] nav { display: grid; gap: 2px; }
    .mobile-navigation nav a { display: block; padding: 12px 13px; color: #eee; font-size: 13px; }
}

/* Eén omslag per wedstrijd, speler of verhaal; de bijbehorende foto’s openen samen. */
.media-library-gallery-card .media-library-image { position: relative; }
.media-library-photo-count { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(18,20,24,.9); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }
.media-library-gallery-open { display: inline-block; margin: 0 0 15px; color: #a80710; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.media-library-gallery-card .media-library-related { padding-top: 12px; border-top: 1px solid var(--line); }
.media-library-group-summary { margin: -6px 0 18px; color: #68686e; font-size: 12px; line-height: 1.6; }
