/* ── A SECTION page (Insects, Minerals, Botany, Human specimens): a row of thumbnails to choose from, the chosen
      specimen's text and figures, and the viewer with a choice of detail. Loaded after site.css. ── */
/* top and bottom only: the sides are .wrap's gutter (a "padding: … 0 …" here put the text against a phone's edge) */
.section { padding-top: 2.2rem; padding-bottom: 4rem; }
.section .head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin: 0 0 0.4rem; }
.section .head .back { margin-left: auto; }
.section .head svg { width: 2.4rem; height: 2.4rem; color: var(--accent); flex: none; }
.section h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.section .sub { color: var(--ink-2); margin: 0.2rem 0 0; }

/* the thumbnails: the same photographs as the cards on the main page, smaller, the chosen one framed in blue */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.8rem; margin: 1.6rem 0 1.8rem; }
.picker button { font: inherit; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--rule-2);
                 border-radius: 4px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.picker button img, .picker button .no-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #000;
                                               transition: transform 0.5s ease; }
.picker button:hover img { transform: scale(1.05); }
.picker button .t { padding: 0.5rem 0.7rem 0.6rem; position: relative; background: var(--surface); }
.picker button .n { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.25; }
.picker button .l { display: block; font-style: italic; font-size: 0.82rem; color: var(--ink-3); margin-top: 0.1rem; }
.picker button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.picker button[aria-pressed="true"] .n { color: var(--accent-2); }
@media (max-width: 600px) { .picker { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

.about { max-width: 48rem; margin: 0 0 1.6rem; }
.about .kind { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.3rem; }
.about .kind:empty { display: none; }
.about h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 0.8rem; }
.about h2 i { display: block; font-family: var(--f-body); font-weight: 500; font-size: 0.95rem; color: var(--ink-3); margin-top: 0.2rem; letter-spacing: 0; }
.about p { color: var(--ink-2); margin: 0 0 0.9rem; }
.about p.credit { color: var(--ink-3); font-size: 0.9rem; margin: -0.3rem 0 1.1rem; }
.about p.credit:empty { display: none; }
.about .facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; color: var(--ink-2); }
.about .facts .m { margin-right: 0.35rem; }
.about .download { display: inline-block; margin-top: 0.8rem; font-size: 0.9rem; }
.view { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #000; }
.view-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem;
            padding: 0.6rem 0.8rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.view-title { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.levels { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.levels button, .full { font: inherit; font-size: 0.88rem; background: transparent; color: var(--ink-2);
                        border: 1px solid var(--rule-2); border-radius: 3px; padding: 0.3rem 0.7rem; cursor: pointer; }
.levels button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b1216; }
.stack { position: relative; height: min(78vh, 56rem); }
.stack iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.view:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.view:fullscreen .stack { flex: 1; height: auto; }
.hint { color: var(--ink-3); font-size: 0.88rem; margin: 0.7rem 0 0; }
.empty { color: var(--ink-2); }
