.section-heading > .text-link { font-size: 14px; }
.object-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.object-grid article { display: flex; min-width: 0; }
.object-card { display: flex; flex: 1; flex-direction: column; border: 1px solid var(--line); background: var(--surface); transition: border-color .16s ease, background-color .16s ease; }
.object-card:hover { border-color: #8c7854; background: #24271e; }
.card-image { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #20221b; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.image-missing-label { color: var(--muted); font-size: 14px; }
.photo-i-5901 { background: #222119; }
.photo-i-10178 { background: #181d1a; }
.photo-i-10163 { background: #545452; }
.card-content { padding: 17px 19px 21px; }
.object-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--gold); font-size: 13px; }
.object-meta span + span { color: var(--muted); }
.card-content h3 { margin-top: 7px; font-size: clamp(22px, 2vw, 30px); }
.card-content p { margin-top: 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); background: #11130f; }
.footer-inner { display: flex; gap: 14px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 100px; padding-block: 22px; color: var(--subtle); font-size: 13px; }
.footer-title { color: var(--muted); font: 16px var(--serif); }

.interior { padding-bottom: 76px; }
.breadcrumbs { padding-block: 27px; font-size: 13px; color: var(--subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; padding-right: 12px; color: #81765e; }
.breadcrumbs a:hover { color: var(--gold-bright); text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink); }
.page-intro { padding-block: 20px 37px; }
.page-intro h1 { margin: 9px 0 12px; font-size: clamp(40px, 5.2vw, 69px); letter-spacing: .045em; }
.page-intro > p:last-child:not(.kicker), .museum-intro > p:last-of-type { color: var(--muted); }
.museum-list { display: grid; gap: 20px; }
.museum-card { display: grid; grid-template-columns: minmax(220px, .9fr) 1.25fr; min-height: 310px; background: var(--surface); border: 1px solid var(--line); }
.museum-card-image { position: relative; display: block; min-height: 280px; }
.museum-card-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.museum-card-content { align-self: center; padding: clamp(24px, 4vw, 58px); }
.museum-card-content h2 { margin: 10px 0 9px; font-size: clamp(28px, 3.5vw, 43px); }
.museum-card-content h2 a:hover { color: var(--gold-bright); }
.museum-card-content > p:last-of-type { color: var(--muted); }
.museum-card-content .button { margin-top: 24px; }
.stats { padding: 23px 26px 26px; border: 1px solid var(--line); background: var(--surface); }
.stats-heading { display: flex; gap: 6px 17px; align-items: baseline; flex-wrap: wrap; }
.stats-heading h2 { font-size: 24px; }
.stats-heading p { color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 17px; border-top: 1px solid var(--line); }
.stat-grid > div { min-width: 0; padding: 12px 12px 1px; text-align: center; }
.stat-grid > div + div { border-left: 1px solid var(--line); }
.stat-grid dt { color: var(--muted); font-size: 14px; }
.stat-grid dd { color: var(--gold-bright); font: 36px/1.5 Georgia, serif; font-variant-numeric: tabular-nums; }
.stat-grid small { padding-left: 4px; color: var(--muted); font: 13px var(--body); }
.museum-objects { margin-top: 44px; }
.museum-objects .section-heading h2, .results .section-heading h2 { font-size: 34px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 23px; color: var(--muted); font-size: 14px; }
.pagination select { padding-inline: 12px; background: var(--surface); }
#museum-items-title, #result-count { scroll-margin-top: calc(var(--header-height) + 18px); }

.search-form { border: 1px solid var(--line); padding: 22px 25px 25px; background: var(--surface); }
.filter-grid { display: grid; grid-template-columns: 1.35fr 1fr .85fr 1.25fr; gap: 15px; }
.filter-grid label { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 14px; }
.filter-grid input, .filter-grid select { width: 100%; min-height: 46px; padding: 8px 11px; background: #151812; border: 1px solid #4b4a3c; border-radius: 2px; color: var(--ink); }
.filter-grid input::placeholder { color: var(--subtle); opacity: 1; }
.keyword-field, .select-wrapper { position: relative; display: block; }
.keyword-field input { padding-left: 34px; }
.keyword-field .icon { position: absolute; pointer-events: none; top: 16px; left: 11px; color: var(--gold); }
.select-wrapper select { appearance: none; padding-right: 30px; }
.select-wrapper::after { content: ""; position: absolute; top: 18px; right: 13px; width: 7px; height: 7px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search-form .actions { margin-top: 19px; }
.results { margin-top: 45px; }
.results-table { overflow-x: auto; border: 1px solid var(--line); }
.results-table table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.results-table th, .results-table td { padding: 15px 20px; }
.results-table th { background: #272a21; color: var(--muted); font-size: 14px; font-weight: 500; }
.results-table td { border-top: 1px solid var(--line); font-size: 15px; }
.results-table tr:hover td { background: var(--surface); }
.results-table td a { display: inline-block; padding-block: 3px; }
.empty-state { margin-top: 26px; padding: 35px 27px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.empty-state h1 { margin-bottom: 18px; color: var(--ink); }

.back-to-search { display: inline-block; margin: -4px 0 15px; font-size: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 76px); padding-top: 10px; }
.detail-photo { position: relative; display: grid; place-items: center; width: 100%; min-height: 360px; aspect-ratio: 1.06; padding: 18px; border: 1px solid #57513d; cursor: zoom-in; }
.detail-photo:hover { border-color: var(--gold); }
.detail-photo.missing-photo { cursor: default; background: var(--surface); }
.detail-photo.missing-photo:hover { border-color: #57513d; }
.detail-photo img { width: auto; max-height: min(530px, 57vw); object-fit: contain; }
.detail-extra-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-extra-photos button { padding: 0; border: 1px solid #57513d; background: var(--surface); cursor: zoom-in; }
.detail-extra-photos button:hover { border-color: var(--gold); }
.detail-extra-photos img { width: 76px; height: 76px; object-fit: contain; }
.detail-figure figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; color: var(--muted); font-size: 13px; }
.zoom-label { position: absolute; bottom: 13px; right: 13px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #7c6d4c; border-radius: 2px; color: #f0dfbc; background: #171912ef; font-size: 13px; }
.detail-body .kicker { margin-bottom: 6px; }
.detail-body h1 { font-size: clamp(34px, 4.3vw, 59px); letter-spacing: .035em; }
.original-name { margin-top: 7px; color: var(--gold); font: clamp(17px, 2vw, 25px)/1.45 Georgia, serif; overflow-wrap: anywhere; }
.detail-group { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-group h2 { margin-bottom: 10px; color: var(--gold-bright); font-size: 23px; }
.detail-field { display: grid; grid-template-columns: minmax(116px, .43fr) minmax(0, 1fr); gap: 9px 16px; padding-block: 5px; }
.detail-field > dt { color: var(--muted); font-size: 14px; }
.detail-field > dd { font-size: 14px; overflow-wrap: anywhere; }
.dimensions { display: grid; gap: 5px; }
.dimensions > div { display: flex; flex-wrap: wrap; gap: 0 11px; }
.dimensions dt { color: var(--muted); }
.label-copy { color: #ddd6c6; font-size: 16px; line-height: 1.85; white-space: pre-line; }
.record-notes { padding-left: 21px; color: var(--muted); font-size: 14px; white-space: pre-line; }
.new-window { color: var(--muted); font-size: 12px; white-space: nowrap; }
.image-viewer { width: min(100% - 32px, 1040px); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 1px solid #7d6c4b; border-radius: 3px; background: #161813; color: var(--ink); overflow: hidden; }
.image-viewer::backdrop { background: #080a08dd; }
.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.viewer-bar h2 { font-size: 20px; }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.viewer-controls button { min-height: 35px; padding: 5px 10px; border-radius: 2px; border: 1px solid var(--line-gold); background: #25261e; color: var(--gold-bright); cursor: pointer; font-size: 13px; }
.viewer-controls button:hover { border-color: var(--gold); }
.viewer-image { display: grid; justify-items: center; align-items: center; width: 100%; height: min(calc(100dvh - 101px), 755px); overflow: auto; }
.viewer-image img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.zoomed .viewer-image { display: block; }
.zoomed .viewer-image img { width: auto; max-width: none; height: max(140%, 780px); margin: auto; }
