/*
Theme Name: Helmdon History
Description: The Helmdon History archive theme: Parish Record colours, Ironstone type, Ordnance clarity. Works with the Helmdon History Core plugin.
Version: 0.4.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: helmdon-history
*/

:root {
	--paper: #F6F2E9;
	--paper-deep: #EDE6D6;
	--card: #FFFDF8;
	--ink: #1E2521;
	--ink-soft: #3F4640;
	--muted: #5C625C;
	--rule: #D9D1BF;
	--rule-strong: #B9AF9A;
	--green: #2F5A3C;
	--green-dark: #1E3B27;
	--rust: #8F5A24;
	--serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
	--sans: 'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wide: 1200px;
	--text: 46rem;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.65;
	overflow-wrap: break-word;
}
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 100; background: var(--card); padding: 8px 16px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-weight: 600; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.site-name { display: flex; flex-direction: column; }
.site-logo { width: 50px; height: 59px; flex: none; display: block; }
@media (max-width: 600px) { .site-logo { width: 40px; height: 47px; } .site-brand { gap: 10px; } }
.site-brand:hover { color: var(--ink); }
.site-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.site-tagline { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 17px; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { border-bottom-color: var(--green); }
.header-search { display: flex; }
.header-search input { width: 12em; min-height: 40px; padding: 0 10px; font: inherit; font-size: 16px; border: 1px solid var(--rule-strong); border-right: 0; background: var(--card); color: var(--ink); border-radius: 0; }
.header-search button { min-height: 40px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; background: var(--green); color: #fff; border: 0; border-radius: 0; cursor: pointer; }

/* Main */
.site-main { padding: 40px 0 72px; }
.content-narrow { max-width: var(--text); }
.breadcrumbs { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.breadcrumbs a { color: var(--muted); }

/* Record page */
.record-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.record-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 16px; margin: 0; }
.record-body { font-size: 19px; }
.record-body > * { max-width: var(--text); }
.record-body p { margin: 0 0 1em; }
.record-body img { display: block; margin: 1.2em 0; max-height: 80vh; width: auto; border: 1px solid var(--rule); background: var(--card); }
.record-body figure { margin: 1.6em 0; }
.record-body figure img { margin: 0; }
.record-body figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }
.record-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); font-family: var(--serif); font-size: 1.15em; color: var(--ink-soft); }
.record-body .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.record-body .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.record-body::after, .hh-legacy::after { content: ""; display: table; clear: both; }
.hh-table-wrap { overflow-x: auto; margin: 1.2em 0; max-width: 100%; }
.record-body table { border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.record-body th, .record-body td { border: 1px solid var(--rule); padding: 6px 10px; vertical-align: top; text-align: left; }
.record-body th { background: var(--paper-deep); font-weight: 600; }
.record-body td img { margin: 0; border: 0; }
.record-body details { margin: 1.5em 0; border: 1px solid var(--rule); background: var(--card); padding: 12px 16px; }
.record-body summary { cursor: pointer; font-weight: 600; }
.hh-file-link a { display: inline-block; padding: 10px 16px; border: 2px solid var(--green); text-decoration: none; font-weight: 600; }
.hh-file-link a::before { content: "\2193\00a0"; }
.record-terms { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 16px; }
.record-terms ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.record-terms li a { display: inline-block; padding: 2px 10px; border: 1px solid var(--rule-strong); text-decoration: none; background: var(--card); }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: 16px; }

/* Lists */
.archive-header { margin-bottom: 24px; }
.archive-header p { color: var(--ink-soft); max-width: var(--text); }
.record-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.record-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.record-list h2 { font-size: 1.3rem; margin: 0; font-weight: 600; }
.record-list h2 a { text-decoration: none; }
.record-list .meta { color: var(--muted); font-size: 15px; white-space: nowrap; }
.record-list .excerpt { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 600px) { .record-list li { grid-template-columns: 1fr; } .record-list .meta { white-space: normal; } }
.pagination { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-block; min-width: 44px; min-height: 44px; line-height: 42px; text-align: center; padding: 0 10px; border: 1px solid var(--rule-strong); text-decoration: none; background: var(--card); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.sort-links { font-size: 15px; color: var(--muted); margin: 0 0 16px; }

/* Front page */
.hero { padding: 56px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.15; }
.hero .lead { color: var(--ink-soft); max-width: 48em; margin: 0 0 20px; text-wrap: pretty; }
.big-search { display: flex; flex-wrap: wrap; gap: 8px; }
.big-search input { flex: 1 1 260px; min-height: 52px; padding: 0 16px; font: inherit; border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 0; }
.big-search button, .button { min-height: 52px; padding: 0 24px; font: inherit; font-weight: 600; background: var(--green); color: #fff; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.button:hover, .big-search button:hover { background: var(--green-dark); color: #fff; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.hero figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.band { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 48px 0; }
.band h2 { margin-top: 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.home-grid > section { border-top: 3px solid var(--green); padding-top: 14px; }
.home-grid > section > h2 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-family: var(--sans); font-weight: 600; margin: 0 0 10px; }
.explore { padding: 56px 0; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 40px; }
.explore-grid a { text-decoration: none; color: inherit; padding: 16px 0; border-top: 1px solid var(--rule); display: flex; justify-content: flex-start; align-items: baseline; gap: 10px; }
.explore-grid a span:first-child { font-family: var(--serif); font-size: 22px; color: var(--green); }
.explore-grid a span:last-child { color: var(--muted); font-size: 16px; }
.explore-grid a:hover span:first-child { text-decoration: underline; }
.feature { padding: 0 0 64px; }
.feature .panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--rule); padding: clamp(20px, 4vw, 32px); }
.feature h2 { margin: 6px 0 12px; }
.family { background: var(--green); color: var(--paper); padding: 48px 0; }
.family .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center; }
.family h2 { color: var(--paper); margin: 0 0 10px; font-weight: 400; }
.family .big-search input { border-color: var(--paper); }
.family .big-search button { background: var(--paper); color: var(--green-dark); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 48px; font-size: 16px; color: var(--ink-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Plugin pieces */
.hh-editor-note { background: #FFF6D8; border: 1px solid #E4CF8A; padding: 8px 12px; font-size: 15px; }
.hh-reliability { font-size: 15px; color: var(--muted); border-left: 3px solid var(--rule-strong); padding-left: 12px; }
.hh-record-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 16px; max-width: var(--text); }
.hh-record-details dt { font-weight: 600; color: var(--muted); }
.hh-record-details dd { margin: 0; }
@media (max-width: 600px) { .hh-record-details { grid-template-columns: 1fr; } .hh-record-details dd { margin-bottom: 8px; } }
.hh-note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--rule-strong); padding-left: 12px; margin-top: 20px; }
.hh-draft { font-size: 13px; background: #FFF6D8; padding: 0 6px; border: 1px solid #E4CF8A; }
.hh-oldnav { display: block; font-size: 15px; color: var(--muted); padding: 6px 0 8px; margin: 0 0 12px; border-bottom: 1px dotted var(--rule-strong); }
.hh-oldnav a { color: var(--muted); }
.home-grid .hh-panel { margin: 0; }
.home-grid .hh-panel h2 { font-family: var(--sans); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-weight: 600; margin: 0 0 10px; }
.home-grid .hh-cards { grid-template-columns: 1fr; }
.home-grid .hh-card { border-top: 0; padding-top: 0; }
.hh-card__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.hh-card__title a { text-decoration: none; }
.hh-did-you-know blockquote { font-family: var(--serif); font-style: italic; font-size: 1.4rem; border-left-color: var(--green); }
.feature .hh-panel { margin: 0; } .feature .hh-panel h2 { display: none; }
.home .site-main { padding-top: 0; }
.hh-archive-index { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); max-width: none !important; }
.hh-archive-index li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.hh-archive-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; }
.hh-ai-name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.hh-ai-count { color: var(--muted); font-size: 16px; }
.hh-archive-index p { margin: 4px 0 0; font-size: 16px; color: var(--ink-soft); }
.series-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 0 0 28px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 16px; }
.record-body + .series-nav { margin: 36px 0 0; }
.series-nav a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.series-nav .next { text-align: right; }
.series-nav .dir { font-weight: 600; }
.series-nav .t { color: var(--ink-soft); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-nav .pos { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { .series-nav { grid-template-columns: 1fr 1fr; } .series-nav .pos { display: none; } .series-nav .t { display: none; } }
.series-nav a, .series-nav span { min-width: 0; }
.record-header + .series-nav { border-top: 0; margin-top: -16px; }

.hh-more-today { margin-top: 16px; font-size: 16px; }
.hh-more-today summary { cursor: pointer; font-weight: 600; color: var(--green); }
.hh-more-today ul { list-style: none; padding: 0; margin: 8px 0 0; }
.hh-more-today li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
/* Picture runs from old pages (portrait strips, photo sets) */
.record-body .hh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 1.4em 0; max-width: var(--text); }
.record-body .hh-grid--pair { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.record-body .hh-grid-item { margin: 0; }
.record-body .hh-grid-item img { display: block; width: 100%; height: auto; max-height: none; margin: 0; }
.record-body .hh-grid-item a { display: block; }
.record-body .hh-grid-item figcaption { font-size: 14px; line-height: 1.35; margin-top: 6px; color: var(--ink-soft); }
.record-body p:empty { display: none; }
.record-body .hh-grid--small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.record-body .hh-float, .record-body .hh-wide { margin: 1.2em 0; }
.record-body .hh-float img, .record-body .hh-wide img { display: block; margin: 0; width: auto; max-width: 100%; height: auto; }
.record-body .hh-float figcaption, .record-body .hh-wide figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
@media (min-width: 760px) {
	.record-body .hh-float { float: right; clear: right; width: min(48%, 380px); margin: .3em 0 1em 1.6em; }
	.record-body .hh-float img { width: 100%; }
}
.record-body .hh-grid, .record-body .hh-wide { clear: both; }

/* Photo galleries from old pages: each picture with its own caption underneath */
.record-body .hh-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; margin: 1.6em 0; align-items: start; clear: both; }
.record-body .hh-gallery-item { margin: 0; }
.record-body .hh-gallery-item a { display: block; background: var(--card); border: 1px solid var(--rule); }
.record-body .hh-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; max-height: none; margin: 0; border: 0; background: var(--paper-deep); }
.record-body .hh-gallery-item figcaption { font-size: 15px; line-height: 1.4; margin-top: 8px; color: var(--ink-soft); }
.record-body .hh-gallery + p:empty, .record-body .hh-gallery + br { display: none; }
@media (max-width: 480px) { .record-body .hh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .record-body .hh-gallery-item figcaption { font-size: 14px; } }
.record-body a.hh-zoom, .record-body .hh-grid-item a { cursor: zoom-in; }

/* Picture viewer */
.hh-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 24, 21, .92); display: flex; align-items: center; justify-content: center; padding: 16px 56px; }
.hh-lb[hidden] { display: none; }
.hh-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.hh-lb img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border: 0; background: #fff; }
.hh-lb figcaption { color: #F6F2E9; font-size: 17px; margin-top: 12px; text-align: center; max-width: 60em; }
.hh-lb button { position: absolute; background: transparent; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 8px 12px; }
.hh-lb button[hidden] { display: none; }
.hh-lb-close { top: 8px; right: 12px; }
.hh-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.hh-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .hh-lb { padding: 48px 8px; } .hh-lb-prev, .hh-lb-next { top: auto; bottom: 8px; transform: none; } }

/* Lists: who a record is by */
.record-list .excerpt .by { font-weight: 600; color: var(--ink); }

/* Ask the archive on the homepage */
.ask-band { padding: 8px 0 40px; }
.ask-band .hh-ask { max-width: none; }

/* Photo pages: the photo can use the full page width (sized by script, up to 130% of its real size). */
.single-hh_photo .record-body .hh-float { float: none; width: auto; margin: 1.2em 0; }
.single-hh_photo .record-body .hh-float img, .single-hh_photo .record-body .hh-wide img { width: auto; }

/* Photo gallery (the Photos list) */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; }
.photo-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-card a.photo-card__pic { display: block; background: var(--paper-deep); border: 1px solid var(--rule); aspect-ratio: 4 / 3; overflow: hidden; }
.photo-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.photo-card a.photo-card__pic:hover img { transform: scale(1.03); }
.photo-card__pic .no-pic { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 15px; }
.photo-card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-weight: 600; }
.photo-card h2 a { text-decoration: none; }
.photo-card .meta { color: var(--muted); font-size: 15px; }
@media (max-width: 480px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .photo-card h2 { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .photo-card__pic img { transition: none; } }

/* Featured (0.4.4) */
.featured-band { padding: 48px 0 8px; }
.featured-band .hh-panel { margin: 0; }
.featured-band .hh-panel > h2 { margin: 0 0 20px; }
.featured-band .hh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.featured-band .hh-card { border-top: 3px solid var(--green); padding-top: 14px; }
.featured-band .hh-card__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 12px; }
.featured-band .hh-card__kicker { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-weight: 600; margin: 0 0 6px; }
.featured-band .hh-card__title { margin: 0 0 8px; }
.featured-band .hh-card__excerpt { margin: 0; color: var(--ink-soft); }

/* Search results: choose a kind of record, and the order */
.search-filters select { font: inherit; font-size: 17px; padding: 0 10px; min-height: 52px; border: 2px solid var(--ink); background: #fff; color: var(--ink); max-width: 14em; border-radius: 0; }
.search-kinds { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 6px; max-width: none; }
.search-kinds-label { font-weight: 600; margin-right: 2px; }
.search-kinds a { display: inline-block; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.search-kinds a span { color: var(--muted); margin-left: 2px; }
.search-kinds a:hover { border-color: var(--green); }
.search-kinds a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.search-kinds a[aria-current] span { color: rgba(255,255,255,.85); }
.search-summary .search-sort { display: inline-block; margin-left: 10px; color: var(--muted); }
@media (max-width: 600px) { .search-filters select { max-width: 100%; flex: 1 1 100%; } .search-summary .search-sort { display: block; margin: 6px 0 0; } }


/* 0.4.6 – phone menu, photo pages open at the picture, viewer on the Photos list */
.menu-toggle { display: none; }
.site-menu { display: contents; }
@media (max-width: 760px) {
	.js-menu .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--rule-strong); border-radius: 0; cursor: pointer; }
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
	.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
	.js-menu .site-menu { display: none; width: 100%; }
	.js-menu.menu-open .site-menu { display: block; }
	.js-menu .site-nav ul { flex-direction: column; gap: 0; }
	.js-menu .site-nav li { border-top: 1px solid var(--rule); }
	.js-menu .site-nav a { display: block; padding: 11px 0; border-bottom: 0; }
	.js-menu .header-search { margin: 12px 0 4px; }
	.js-menu .header-search input { flex: 1; width: auto; }
	.site-header .wrap { padding-top: 12px; padding-bottom: 12px; column-gap: 10px; flex-wrap: wrap; }
	.js-menu .site-brand { flex: 1 1 0; min-width: 0; }
	.js-menu .menu-toggle { flex: none; padding: 0 10px; font-size: 16px; }
}
#photo { scroll-margin-top: 6px; }
.single-hh_photo .record-body img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; height: auto; }
.hh-lb-pos { position: absolute; top: 18px; left: 16px; color: #d8d3c7; font-size: 15px; }
.hh-lb-more { color: #F6F2E9; margin-top: 10px; font-weight: 600; font-size: 17px; }
.hh-lb-more[hidden] { display: none; }
.hh-lb-more:hover, .hh-lb-more:focus { color: #fff; }
