/*
Theme Name: TVR Budapest Törzsszék
Theme URI: https://tvrbudapest.hu/
Author: Történelmi Vitézi Rend Budapest Törzsszék
Description: Egyedi, reszponzív WordPress téma a Budapest Törzsszék számára.
Version: 1.0.36
Text Domain: tvrbp
*/

:root {
  --burgundy: #741b25;
  --burgundy-dark: #4b0d15;
  --gold: #b99343;
  --gold-light: #d9bf7a;
  --ink: #26221f;
  --cream: #f4efe5;
  --paper: #fffdf8;
  --forest: #123f36;
  --muted: #6e6860;
  --shadow: 0 12px 34px rgba(40, 25, 17, .13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: white; padding: 12px 18px; }
.skip-link:focus { top: 16px; }
.admin-bar .nav-wrap { top: 32px; }

.topbar { background: linear-gradient(115deg, #711925, #450b13 70%, #22070b); color: white; border-bottom: 3px solid var(--gold); }
.brand-row { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.seal { width: 78px; height: 92px; display: grid; place-items: center; flex: 0 0 auto; color: #fff7db; font: 700 24px/1 var(--serif); border: 3px double var(--gold-light); border-radius: 42% 42% 50% 50%; background: linear-gradient(90deg, #a52531 0 33%, #f5f0e5 33% 66%, #256146 66%); box-shadow: inset 0 0 0 7px rgba(83, 10, 19, .75), 0 3px 14px rgba(0,0,0,.35); text-shadow: 0 1px 3px #000; }
.brand-emblem { width: 86px; height: 102px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.32)); }
.brand-name { color: var(--gold-light); font: 700 clamp(21px, 2.4vw, 33px)/1.12 var(--serif); letter-spacing: .03em; text-transform: uppercase; }
.brand-place { display: block; }
.brand-motto { display: block; margin-top: 8px; color: #eadfca; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.social-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(217,191,122,.55); border-radius: 50%; color: var(--gold-light); text-decoration: none; font-weight: 700; }
.search-toggle { border: 1px solid rgba(217,191,122,.7); color: white; background: transparent; padding: 9px 14px; cursor: pointer; }

.nav-wrap { background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; justify-content: space-between; align-items: center; min-height: 58px; }
.nav { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { display: flex; }
.nav a { display: flex; align-items: center; min-height: 58px; padding: 0 14px; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .02em; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--burgundy); border-color: var(--burgundy); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 12px; font-size: 24px; cursor: pointer; }

.hero { min-height: 590px; color: white; display: grid; place-items: center; text-align: center; background: linear-gradient(rgba(8,15,28,.16), rgba(5,16,27,.72)), url('assets/images/generated-1.png') center/cover no-repeat; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-content { position: relative; z-index: 1; padding: 80px 20px; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.eyebrow { color: var(--gold-light); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin: 10px 0 12px; font: 700 clamp(44px, 7vw, 86px)/.94 var(--serif); letter-spacing: .02em; text-transform: uppercase; }
.hero h1 span { display: block; margin-top: 17px; color: var(--gold-light); font-size: .43em; line-height: 1.1; }
.hero-motto { margin: 22px 0 32px; font: 700 clamp(15px, 2vw, 20px)/1.5 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; color: white; background: var(--burgundy); border: 1px solid var(--burgundy); text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.button:hover, .button:focus-visible { background: #8e2833; }
.button-outline { background: rgba(0,0,0,.22); border-color: var(--gold); color: #f4d891; }
.button-outline:hover { background: var(--gold); color: #271e0d; }

.section { padding: 78px 0; }
.section-tint { background: linear-gradient(120deg, rgba(183,146,66,.07), transparent 50%), var(--cream); }
.section-dark { color: white; background: var(--forest); }
.section-heading { text-align: center; margin: 0 auto 42px; max-width: 820px; }
.section-heading h2, .page-heading h1 { margin: 0; color: var(--burgundy); font: 700 clamp(30px, 4vw, 45px)/1.15 var(--serif); text-transform: uppercase; }
.section-dark .section-heading h2 { color: #f3e5bd; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 18px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 74px; height: 1px; background: var(--gold); }
.lead { font-size: 18px; color: #514c46; }
.section-dark .lead { color: #d9ddd8; }

.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 42px; }
.mission { padding: 28px 25px; text-align: center; border-right: 1px solid rgba(116,27,37,.17); }
.mission:last-child { border: 0; }
.mission-icon { width: 68px; height: 68px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 29px var(--serif); }
.mission h3 { margin: 0 0 10px; color: var(--burgundy); font: 700 19px var(--serif); text-transform: uppercase; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: white; box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-media { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.card-media-facebook { object-fit: contain; background: #251b17; }
.card-body { padding: 23px; }
.card-date { color: var(--burgundy); font-weight: 800; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.card h3 { margin: 8px 0 10px; font: 700 23px/1.25 var(--serif); }
.card p { color: var(--muted); margin: 0 0 18px; }
.text-link { color: var(--burgundy); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-card-anchor { display: block; height: 100%; color: inherit; text-decoration: none; }
.news-card-anchor .text-link { display: inline-block; text-decoration: underline; }
.story-back-link { display: inline-block; margin-bottom: 26px; color: var(--burgundy); font-weight: 750; text-underline-offset: 4px; }
.kenderes-story > h2 { margin: 8px 0 22px; color: var(--burgundy); font: 700 clamp(28px,4vw,42px)/1.16 var(--serif); }
.kenderes-story-lead { margin: 0 0 38px; padding: 24px 26px; border-left: 5px solid var(--gold); background: var(--cream); color: #423b35; font-size: 18px; line-height: 1.78; }
.bodajk-story-text p { margin: 0 0 18px; }
.bodajk-story-text p:last-child { margin-bottom: 0; }
.story-source { margin: -20px 0 38px; color: var(--muted); font-size: 14px; font-style: italic; text-align: right; }
.kenderes-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #d8c8aa; }
.kenderes-gallery-heading h3 { margin: 0; color: var(--burgundy); font: 700 27px var(--serif); text-transform: uppercase; }
.kenderes-gallery-heading p { margin: 0; color: var(--muted); }
.kenderes-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.events-panel, .history-panel { padding: 62px max(35px, calc((100vw - 1160px)/2)); }
.events-panel { background: var(--forest); color: white; padding-right: 55px; }
.history-panel { background: var(--cream); padding-left: 55px; }
.panel-title { margin: 0 0 28px; font: 700 33px var(--serif); text-transform: uppercase; color: #f4e2b7; }
.history-panel .panel-title { color: var(--burgundy); }
.event-row { display: grid; grid-template-columns: 74px 1fr; gap: 20px; margin: 22px 0; align-items: center; }
.event-date { border: 1px solid var(--gold); text-align: center; color: var(--gold-light); font: 700 28px/1 var(--serif); padding: 10px 5px; }
.event-date small { display: block; margin-bottom: 5px; font: 700 12px var(--sans); text-transform: uppercase; }
.event-row h3 { margin: 0 0 4px; font: 700 19px var(--serif); }
.event-row p { margin: 0; color: #cdd8d4; font-size: 14px; }
.upcoming-event-list { display: grid; gap: 16px; }
.upcoming-event { min-width: 0; }
.upcoming-event-row { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 20px; align-items: center; padding: 18px; border: 1px solid rgba(185,147,67,.7); background: var(--forest); color: white; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.upcoming-event-row:hover, .upcoming-event-row:focus-visible { background: #1b5549; border-color: var(--gold-light); }
.upcoming-event-row:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.upcoming-event-details { display: grid; gap: 3px; min-width: 0; color: #e0e8e3; font-size: 14px; line-height: 1.45; }
.upcoming-event-title { color: #fff; font: 700 20px/1.2 var(--serif); text-transform: uppercase; }
.upcoming-event-action { margin-top: 6px; color: var(--gold-light); font-weight: 700; }
.history-content { display: grid; grid-template-columns: 1fr .85fr; gap: 28px; align-items: center; }
.history-photo { transform: rotate(2deg); border: 10px solid white; box-shadow: var(--shadow); filter: sepia(.12); }

.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); min-height: 210px; }
.gallery-strip a { display: block; min-width: 0; overflow: hidden; }
.gallery-strip a:focus-visible { position: relative; z-index: 1; outline: 4px solid var(--gold-light); outline-offset: -4px; }
.gallery-strip img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; filter: saturate(.75); transition: filter .2s; }
.gallery-strip img:hover { filter: saturate(1); }

.page-hero { color: white; background: linear-gradient(100deg, rgba(8,15,28,.42), rgba(5,16,27,.68)), url('assets/images/generated-1.png') center/cover; padding: 82px 0; text-shadow: 0 2px 10px rgba(0,0,0,.72); }
.page-heading { max-width: 800px; }
.page-hero .page-heading { box-sizing: border-box; padding-left: 24px; }
.page-heading h1 { color: white; }
.page-heading p { color: #efe3d5; font-size: 18px; max-width: 700px; }
.breadcrumbs { color: var(--gold-light); font-size: 14px; margin-bottom: 14px; }

/* Történelmünk – vizuális idővonal */
.history-page-hero { min-height: 390px; display: flex; align-items: end; padding: 100px 0 72px; background-position: center 44%; }
.history-page-hero .page-heading { margin-left: 0; }
.history-kicker { margin: 0 0 12px; color: var(--gold-light) !important; font-size: 13px !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.history-jump { position: relative; z-index: 35; background: rgba(255,253,248,.96); border-bottom: 1px solid #dfd4c0; box-shadow: 0 8px 24px rgba(40,25,17,.07); backdrop-filter: blur(10px); }
.history-jump-inner { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.history-jump a { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #d8c9ad; color: var(--burgundy); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.history-jump a:hover, .history-jump a:focus-visible { background: var(--burgundy); border-color: var(--burgundy); color: white; }
.history-story { overflow: clip; }
.history-chapter { padding: 96px 0; scroll-margin-top: 135px; }
.history-chapter-feature { background: linear-gradient(130deg, #fffdf8 0 62%, #efe4ce 62%); }
.history-feature-grid, .history-origin-grid, .history-two-column { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 7vw, 90px); align-items: center; }
.history-feature-reverse { grid-template-columns: 1.05fr .95fr; }
.history-feature-reverse .history-illuminated { order: 2; }
.history-illuminated, .history-portrait, .history-wide-photo { margin: 0; position: relative; }
.history-illuminated::before { content: ""; position: absolute; inset: -15px 18px 24px -15px; border: 1px solid var(--gold); z-index: 0; }
.history-illuminated img { position: relative; z-index: 1; width: 100%; max-height: 630px; object-fit: cover; box-shadow: 0 24px 55px rgba(43,29,19,.2); }
.history-illuminated-small img { max-height: 540px; object-position: center 28%; }
.history-illuminated figcaption, .history-wide-photo figcaption { position: relative; z-index: 2; margin: 12px 0 0; color: #726859; font-size: 13px; }
.history-copy h2, .history-section-heading h2, .history-homecoming h2 { margin: 10px 0 22px; color: var(--burgundy); font: 700 clamp(32px, 4vw, 52px)/1.05 var(--serif); text-transform: uppercase; }
.history-copy p { color: #4c4640; }
.history-era { display: inline-block; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.history-lead { font: 600 20px/1.7 var(--serif); }
.history-copy blockquote { margin: 30px 0 0; padding: 22px 26px; border-left: 4px solid var(--gold); background: rgba(185,147,67,.1); font: italic 19px/1.6 var(--serif); }
.history-chapter-dark { color: white; background: radial-gradient(circle at 15% 20%, rgba(185,147,67,.15), transparent 33%), #102f2a; }
.history-chapter-dark .history-copy h2, .history-chapter-dark .history-recognition h3 { color: #f2dfaa; }
.history-chapter-dark .history-copy p, .history-chapter-dark .history-illuminated figcaption { color: #d9dfdc; }
.history-principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.history-principles span { padding: 8px 14px; border: 1px solid rgba(217,191,122,.55); color: #f2dfaa; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-origin-grid { grid-template-columns: 1.2fr .8fr; }
.history-portrait-founder { padding: 18px; background: white; box-shadow: 0 28px 65px rgba(45,28,16,.2); transform: rotate(1.2deg); }
.history-portrait-founder img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; filter: saturate(.72) contrast(1.04); }
.history-portrait figcaption { padding: 17px 6px 4px; }
.history-portrait figcaption strong, .history-portrait figcaption span { display: block; }
.history-portrait figcaption strong { color: var(--burgundy); font: 700 20px var(--serif); }
.history-portrait figcaption span { color: var(--muted); font-size: 14px; }
.history-date-card { display: grid; grid-template-columns: 145px 1fr; gap: 18px; margin-top: 13px; padding: 15px 18px; background: var(--cream); border-left: 3px solid var(--gold); }
.history-date-card strong { color: var(--burgundy); }
.history-ceremony { background: #eee6d8; }
.history-section-heading { max-width: 820px; margin: 0 auto 45px; text-align: center; }
.history-section-heading p { font-size: 18px; color: #514a43; }
.history-wide-photo { box-shadow: 0 26px 60px rgba(42,26,15,.2); }
.history-wide-photo img { width: 100%; aspect-ratio: 2/1; object-fit: cover; filter: sepia(.12) contrast(1.05); }
.history-wide-photo figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 34px 22px 15px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.history-ceremony-steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 32px; background: white; box-shadow: 0 12px 35px rgba(42,26,15,.1); }
.history-ceremony-steps > div { padding: 27px; border-right: 1px solid #e4d9c7; }
.history-ceremony-steps > div:last-child { border: 0; }
.history-ceremony-steps b { color: var(--gold); font: 700 28px var(--serif); }
.history-ceremony-steps h3 { margin: 5px 0; color: var(--burgundy); font: 700 21px var(--serif); }
.history-ceremony-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.history-two-column { grid-template-columns: 1.2fr .8fr; align-items: stretch; }
.history-recognition { padding: 38px; border: 1px solid rgba(217,191,122,.45); background: rgba(255,255,255,.05); }
.history-recognition h3 { margin: 10px 0 18px; font: 700 31px/1.15 var(--serif); text-transform: uppercase; }
.history-recognition strong, .history-recognition small { display: block; }
.history-recognition strong { margin-top: 25px; color: var(--gold-light); font: 700 21px var(--serif); }
.history-recognition small { margin-top: 8px; color: #c8d1cd; }
.history-leaders-section { background: linear-gradient(135deg, #fffdf8, #f2eadc); }
.history-leaders { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.history-leaders figure { margin: 0; overflow: hidden; background: white; box-shadow: 0 14px 35px rgba(40,25,17,.12); border-bottom: 3px solid var(--gold); }
.history-leaders img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center top; filter: sepia(.18) contrast(1.04); }
.history-leaders figcaption { display: grid; grid-template-columns: 42px 1fr; padding: 19px; }
.history-leaders figcaption b { grid-row: 1/3; color: var(--gold); font: 700 25px var(--serif); }
.history-leaders figcaption strong { color: var(--burgundy); font: 700 18px/1.25 var(--serif); }
.history-leaders figcaption span { color: var(--muted); font-size: 13px; }
.history-homecoming { color: white; background: linear-gradient(105deg, rgba(66,7,15,.94), rgba(33,7,11,.87)), url('assets/images/generated-1.png') center/cover; }
.history-homecoming-inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.history-homecoming h2 { color: white; }
.history-homecoming p { color: #f0e5df; font-size: 18px; }
.history-sources { padding: 34px 0; background: #171817; color: #c8c5be; }
.history-sources h2 { margin: 0 0 8px; color: var(--gold-light); font: 700 19px var(--serif); text-transform: uppercase; }
.history-sources p { margin: 0; font-size: 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; }
.prose h2, .prose h3 { color: var(--burgundy); font-family: var(--serif); }
.prose h2 { font-size: 31px; margin-top: 1.5em; }
.prose h3 { font-size: 22px; }
.prose p, .prose li { color: #47423e; }
.quote { margin: 35px 0; padding: 25px 28px; border-left: 4px solid var(--gold); background: var(--cream); font: italic 20px/1.6 var(--serif); }
.sidebar-card { background: var(--cream); padding: 26px; border-top: 4px solid var(--gold); margin-bottom: 24px; }
.sidebar-card h2 { margin: 0 0 14px; color: var(--burgundy); font: 700 22px var(--serif); }
.sidebar-card a { display: block; padding: 7px 0; color: #393532; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0; }
.fact { padding: 25px; background: var(--cream); text-align: center; }
.fact strong { display: block; color: var(--burgundy); font: 700 31px var(--serif); }

.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.event-list { display: grid; gap: 18px; }
.event-list .event-row { margin: 0; padding: 22px; background: var(--forest); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; }
.gallery-grid img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0; padding: 24px 16px 12px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gallery-page-hero { min-height: 300px; }
.gallery-page-lead { max-width: 700px; margin: 16px 0 0; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.65; }
.gallery-page-section { background: #f7f1e6; }
.gallery-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid #d8c8aa; }
.gallery-page-heading p { max-width: 650px; margin: 0; color: #675d53; line-height: 1.6; }
.gallery-page-heading .gallery-count { flex: 0 0 auto; color: var(--burgundy); font: 700 24px/1.2 var(--serif); text-transform: uppercase; }
.modern-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #251b17; cursor: zoom-in; box-shadow: 0 7px 18px rgba(53,35,24,.12); }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); filter: brightness(.76); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(54,13,18,.82); font-size: 24px; line-height: 1; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: translateY(0); }
body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-columns: minmax(54px,1fr) minmax(0,1400px) minmax(54px,1fr); align-items: center; background: rgba(3,4,4,.96); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-figure { grid-column: 2; margin: 0; display: grid; place-items: center; max-height: 100vh; padding: 34px 12px 54px; }
.gallery-lightbox-figure img { display: block; max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.gallery-lightbox-figure figcaption { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.86); font-weight: 700; letter-spacing: .08em; }
.gallery-lightbox-close, .gallery-lightbox-nav { position: fixed; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(116,27,37,.82); cursor: pointer; }
.gallery-lightbox-close:hover, .gallery-lightbox-nav:hover, .gallery-lightbox-close:focus-visible, .gallery-lightbox-nav:focus-visible { background: var(--burgundy); outline: 2px solid var(--gold-light); outline-offset: 2px; }
.gallery-lightbox-close { top: 20px; right: 22px; width: 48px; height: 48px; font-size: 34px; line-height: 1; }
.gallery-lightbox-nav { top: 50%; width: 54px; height: 54px; transform: translateY(-50%); font-size: 46px; line-height: .8; }
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.documents { display: grid; gap: 18px; }
.document { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 22px; background: white; border: 1px solid #e1d7c3; box-shadow: 0 7px 20px rgba(40,25,17,.07); }
.document-icon { width: 54px; height: 62px; display: grid; place-items: center; color: white; background: var(--burgundy); font-weight: 800; font-size: 13px; }
.document h2 { margin: 0; font: 700 21px var(--serif); color: var(--burgundy); }
.document p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: #e7dfcf; color: #665b4b; padding: 5px 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.document-available { border-left: 4px solid var(--gold); }
.document-download { min-width: 174px; padding-inline: 16px; text-align: center; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.contact-card { padding: 25px; background: var(--forest); color: white; margin-bottom: 16px; }
.contact-card strong { display: block; color: var(--gold-light); font: 700 18px var(--serif); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cfc5b2; background: white; padding: 12px 13px; font: inherit; }
textarea { min-height: 170px; resize: vertical; }
.form-status { min-height: 28px; color: var(--forest); font-weight: 700; }
.contact-page-hero { min-height: 330px; }
.contact-page-lead { max-width: 730px; margin: 16px 0 0; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.65; }
.contact-page-section { background: linear-gradient(135deg,#f8f2e7,#fffdf8); }
.contact-page-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(35px,7vw,90px); align-items: start; }
.contact-kicker { margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.contact-details h2, .contact-form-panel h2 { margin: 0 0 20px; color: var(--burgundy); font: 700 clamp(30px,4vw,43px)/1.15 var(--serif); text-transform: uppercase; }
.contact-detail-list { margin-top: 34px; border-top: 1px solid #d8c9af; }
.contact-detail-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid #d8c9af; }
.contact-detail-item > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; color: var(--burgundy); font-size: 22px; }
.contact-detail-item strong, .contact-detail-item a, .contact-detail-item p { display: block; }
.contact-detail-item strong { margin-bottom: 5px; color: var(--burgundy); font-family: var(--serif); font-size: 18px; text-transform: uppercase; }
.contact-detail-item a { color: #493e35; word-break: break-word; }
.contact-detail-item p { margin: 0; color: #493e35; }
.contact-note { margin-top: 24px; color: #786d62; font-size: 14px; line-height: 1.65; }
.contact-form-panel { scroll-margin-top: 125px; padding: clamp(28px,5vw,52px); border-top: 5px solid var(--gold); background: #fff; box-shadow: 0 18px 45px rgba(55,34,21,.12); }
.contact-form-panel > p:not(.contact-kicker) { margin: -8px 0 26px; color: #6b6159; line-height: 1.65; }
.contact-form label { color: #443a32; font-size: 15px; }
.contact-form input, .contact-form textarea, .contact-form select { border: 1px solid #cbbda8; border-radius: 0; color: #28231f; background: #fffdf9; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(182,144,54,.18); }
.contact-form textarea { min-height: 190px; }
.contact-form input[type="file"] { padding: 10px; background: #f8f2e7; }
.contact-form input[type="file"]::file-selector-button { margin-right: 12px; border: 0; padding: 10px 14px; color: #fff; background: var(--burgundy); font: 700 13px var(--sans); cursor: pointer; }
.field-help { margin: 7px 0 0; color: #786d62; font-size: 13px; line-height: 1.5; }
.contact-consent { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 2px 0 0; line-height: 1.55; }
.contact-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--burgundy); }
.contact-required { margin: 15px 0 18px; color: #786d62; font-size: 13px; }
.contact-submit { border: 0; cursor: pointer; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-notice { margin: 0 0 24px; padding: 15px 17px; border-left: 4px solid; font-weight: 700; line-height: 1.5; }
.contact-notice-success { border-color: #2f7359; color: #184f3b; background: #e8f5ef; }
.contact-notice-error { border-color: var(--burgundy); color: #64151e; background: #f8e8e8; }

.footer-contact { background: #181a19; color: white; padding: 42px 0; border-top: 4px solid var(--gold); }
.back-to-top { position: fixed; right: clamp(16px,3vw,34px); bottom: clamp(16px,3vw,34px); z-index: 900; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; color: #fff; background: var(--burgundy); box-shadow: 0 8px 24px rgba(28,15,13,.3); font: 700 28px/1 var(--serif); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s, visibility .2s, transform .2s, background-color .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover, .back-to-top:focus-visible { color: var(--burgundy); background: var(--gold-light); outline: 3px solid rgba(182,144,54,.28); outline-offset: 3px; }
.footer-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-contact strong { color: var(--gold-light); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
.footer-contact p { margin: 7px 0 0; color: #c8c8c5; font-size: 14px; }
.footer-main { color: #f0e7df; background: linear-gradient(110deg, #68121d, #39080e); padding: 35px 0 18px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; align-items: start; }
.footer-brand { font: 700 20px var(--serif); color: var(--gold-light); text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 30px; }
.footer-links a { text-decoration: none; font-size: 14px; }
.copyright { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 16px; color: #cdbdc0; font-size: 13px; }

.search-dialog { position: fixed; inset: 0; z-index: 100; display: none; place-items: start center; padding-top: 12vh; background: rgba(16,9,10,.86); }
.search-dialog.open { display: grid; }
.search-box { width: min(620px, calc(100% - 34px)); background: white; padding: 26px; box-shadow: var(--shadow); }
.search-box-row { display: flex; gap: 10px; }
.search-results { margin: 18px 0 0; padding: 0; list-style: none; }
.search-results a { display: block; padding: 10px 0; border-bottom: 1px solid #e7dfd4; color: var(--burgundy); font-weight: 700; }

/* A Vitézi Rend – modern bemutatkozó oldal */
.order-page-hero { min-height: 470px; display: flex; align-items: center; padding: 84px 0; background: radial-gradient(circle at 78% 50%, rgba(187,145,53,.18), transparent 25%), linear-gradient(100deg, rgba(8,15,28,.42), rgba(5,16,27,.68)), url('assets/images/generated-1.png') center/cover; overflow: hidden; }
.order-hero-grid { max-width: none; display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: center; gap: clamp(40px,8vw,110px); }
.order-hero-copy { max-width: 760px; }
.order-eyebrow, .order-section-label { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.order-page-hero .order-eyebrow { color: var(--gold-light); }
.order-page-hero h1 { font-size: clamp(46px,7vw,78px); }
.order-lead { font-size: clamp(18px,2.2vw,23px) !important; line-height: 1.55; }
.order-hero-emblem { position: relative; display: grid; place-items: center; }
.order-hero-emblem::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border: 1px solid rgba(226,192,111,.38); border-radius: 50%; box-shadow: 0 0 0 28px rgba(226,192,111,.06), 0 0 80px rgba(0,0,0,.35); }
.order-hero-emblem img { position: relative; width: min(245px,70vw); max-height: 340px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.order-intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px,8vw,100px); align-items: start; }
.order-intro h2, .order-creed h2, .order-service h2, .order-closing h2 { margin: 0; color: var(--burgundy); font: 700 clamp(32px,4.5vw,52px)/1.12 var(--serif); text-transform: uppercase; }
.order-intro-copy { border-left: 1px solid var(--gold); padding-left: clamp(25px,4vw,55px); }
.order-intro-copy p, .order-creed-lead, .order-service-copy > p { font-size: 17px; line-height: 1.8; }
.order-intro-lead { margin-top: 0; color: #352d27; font-size: 21px !important; font-family: var(--serif); }
.order-values { position: relative; background: linear-gradient(130deg, #112f28, #071d19); }
.order-heading-light h2 { color: #f3e5bd; }
.order-heading-light p { color: #d7d1c2; }
.order-value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.order-value-card { min-height: 275px; padding: 28px; border: 1px solid rgba(218,183,99,.28); background: rgba(255,255,255,.04); }
.order-value-card > span { display: block; color: var(--gold-light); font: 700 14px/1 var(--serif); }
.order-value-card h3 { margin: 55px 0 12px; color: #f5e5bb; font: 700 23px/1.2 var(--serif); text-transform: uppercase; }
.order-value-card p { margin: 0; color: #d5d2c9; line-height: 1.65; }
.order-creed-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(40px,8vw,100px); align-items: center; }
.order-creed-mark { display: grid; place-items: center; width: 220px; aspect-ratio: 1; border: 1px solid #cfb475; border-radius: 50%; color: var(--burgundy); background: radial-gradient(circle, #fff 0 55%, #efe4ca 56%); font: 700 110px/1 var(--serif); box-shadow: 0 20px 45px rgba(57,37,19,.14); }
.order-creed-lead { color: #453a31; font-family: var(--serif); font-size: 20px; }
.order-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 35px; }
.order-principles div { padding-top: 18px; border-top: 2px solid var(--gold); }
.order-principles strong, .order-principles span { display: block; }
.order-principles strong { margin-bottom: 8px; color: var(--burgundy); font-family: var(--serif); font-size: 18px; text-transform: uppercase; }
.order-principles span { color: #6c6158; line-height: 1.55; }
.order-symbol-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.order-symbol-card { display: grid; grid-template-columns: 180px 1fr; min-height: 260px; overflow: hidden; border: 1px solid #dfd1b9; background: #fff; box-shadow: 0 15px 35px rgba(68,45,26,.08); }
.order-symbol-image { display: grid; place-items: center; min-height: 260px; padding: 22px; background: #efe2bb; }
.order-symbol-image img { width: 100%; height: 215px; object-fit: contain; }
.order-symbol-landscape img { height: 170px; }
.order-symbol-tall img { height: 230px; }
.order-symbol-card > div:last-child { padding: 28px; }
.order-symbol-no { margin: 0 0 22px; color: var(--gold); font-weight: 800; }
.order-symbol-card h3 { margin: 0 0 12px; color: var(--burgundy); font: 700 24px/1.2 var(--serif); text-transform: uppercase; }
.order-symbol-card p:last-child { margin-bottom: 0; color: #62584e; line-height: 1.65; }
.order-service-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px,8vw,100px); align-items: center; }
.order-service-copy .button { margin-top: 18px; }
.order-service-list { border-top: 1px solid #d9cab0; }
.order-service-list > div { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #d9cab0; }
.order-service-list b { color: var(--gold); font: 700 15px/1.5 var(--serif); }
.order-service-list strong, .order-service-list span { display: block; }
.order-service-list strong { margin-bottom: 4px; color: var(--burgundy); font-family: var(--serif); font-size: 19px; text-transform: uppercase; }
.order-closing { padding: 68px 0; color: white; background: linear-gradient(110deg,#651019,#31070c); }
.order-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.order-closing h2 { color: #f3e5bd; font-size: clamp(29px,4vw,44px); }
.order-closing p:not(.order-section-label) { margin-bottom: 0; color: #eadfce; }
.order-closing .button-outline { flex: 0 0 auto; border-color: var(--gold-light); color: #f4e5bb; }
.order-source-note { padding-block: 25px; color: #776d64; font-size: 13px; }
.order-source-note p { margin: 0; }
.order-definition { display: grid; gap: 5px; margin: 30px 0 0; padding: 23px 26px; border-left: 5px solid var(--gold); background: var(--cream); }
.order-definition strong { color: var(--burgundy); font: 700 21px var(--serif); text-transform: uppercase; }
.order-definition span { color: #403831; font: italic 19px/1.55 var(--serif); }
.order-history-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: clamp(40px,7vw,85px); align-items: start; }
.order-timeline { position: relative; }
.order-timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 92px; width: 1px; background: #cdb888; }
.order-timeline article { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 36px; padding: 0 0 34px; }
.order-timeline article:last-child { padding-bottom: 0; }
.order-timeline article::before { content: ""; position: absolute; top: 9px; left: 87px; width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--burgundy); box-shadow: 0 0 0 1px var(--gold); }
.order-timeline-year { padding-top: 2px; color: var(--gold); font: 800 14px/1.35 var(--serif); text-align: right; text-transform: uppercase; }
.order-timeline h3 { margin: 0 0 9px; color: var(--burgundy); font: 700 23px/1.22 var(--serif); }
.order-timeline p { margin: 0; color: #554d46; line-height: 1.72; }
.order-history-figure { position: sticky; top: 95px; margin: 0; padding: 18px; background: #fff; box-shadow: var(--shadow); transform: rotate(1deg); }
.order-history-figure img { width: 100%; max-height: 620px; object-fit: contain; background: #eee3c7; }
.order-history-figure figcaption { padding: 14px 4px 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-present { background: linear-gradient(135deg,#102f2a,#071d19); }
.order-present-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.order-present-grid article { min-height: 240px; padding: 27px; border: 1px solid rgba(217,191,122,.3); background: rgba(255,255,255,.045); }
.order-present-grid span { color: var(--gold-light); font: 700 14px var(--serif); }
.order-present-grid h3 { margin: 35px 0 10px; color: #f3e5bd; font: 700 21px/1.25 var(--serif); text-transform: uppercase; }
.order-present-grid p { margin: 0; color: #d6d8d2; line-height: 1.62; }
.order-ethos { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; margin-top: 35px; padding: 30px 32px; border-top: 1px solid rgba(217,191,122,.45); border-bottom: 1px solid rgba(217,191,122,.45); }
.order-ethos strong { color: #f3e5bd; font: 700 24px/1.3 var(--serif); text-transform: uppercase; }
.order-ethos p { margin: 0; color: #d6d8d2; line-height: 1.7; }
.order-member-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.order-member-grid article { padding: 29px 25px; border-top: 4px solid var(--gold); background: #fff; box-shadow: 0 13px 32px rgba(51,35,22,.1); }
.order-member-number { color: var(--gold); font: 700 28px var(--serif); }
.order-member-grid h3 { margin: 24px 0 10px; color: var(--burgundy); font: 700 20px/1.25 var(--serif); text-transform: uppercase; }
.order-member-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.order-admission-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px,8vw,100px); align-items: start; }
.order-admission-copy h2 { margin: 0 0 20px; color: var(--burgundy); font: 700 clamp(31px,4vw,48px)/1.12 var(--serif); text-transform: uppercase; }
.order-admission-copy > p:not(.order-section-label) { color: #4b443e; font-size: 17px; line-height: 1.78; }
.order-admission-copy .button { margin-top: 15px; }
.order-admission-steps { border-top: 1px solid #d4c4a7; }
.order-admission-steps > div { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid #d4c4a7; }
.order-admission-steps b { color: var(--gold); font: 700 16px/1.5 var(--serif); }
.order-admission-steps strong, .order-admission-steps span { display: block; }
.order-admission-steps strong { margin-bottom: 5px; color: var(--burgundy); font: 700 19px var(--serif); text-transform: uppercase; }
.order-admission-steps span { color: #554d46; line-height: 1.65; }

/* A Vitézi Rend és Budapest */
.budapest-history-hero { min-height: 430px; display: flex; align-items: end; padding: 110px 0 72px; background-position: center 44%; }
.budapest-history-hero .page-heading { margin-left: 0; max-width: 850px; }
.budapest-history-kicker { margin: 0 0 12px; color: var(--gold-light) !important; font-size: 13px !important; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.budapest-history-nav { position: relative; z-index: 35; background: rgba(255,253,248,.97); border-bottom: 1px solid #dfd4c0; box-shadow: 0 8px 24px rgba(40,25,17,.07); }
.budapest-history-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.budapest-history-nav a { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #d8c9ad; color: var(--burgundy); text-decoration: none; font-size: 13px; font-weight: 800; }
.budapest-history-nav a:hover, .budapest-history-nav a:focus-visible { background: var(--burgundy); color: white; border-color: var(--burgundy); }
.budapest-history-article section[id] { scroll-margin-top: 82px; }
.budapest-history-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(45px,7vw,90px); align-items: start; }
.budapest-era { display: inline-block; margin-bottom: 8px; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.budapest-history-copy h2, .budapest-history-grid h2, .budapest-present h2 { margin: 0 0 22px; color: var(--burgundy); font: 700 clamp(32px,4vw,51px)/1.08 var(--serif); text-transform: uppercase; }
.budapest-history-copy h3 { margin: 28px 0 7px; color: var(--forest); font: 700 23px/1.25 var(--serif); }
.budapest-history-copy p, .budapest-history-grid p { color: #49433e; }
.budapest-history-lead { font: 600 19px/1.7 var(--serif); }
.budapest-history-facts { display: grid; gap: 1px; background: #d9cdb8; border: 1px solid #d9cdb8; box-shadow: var(--shadow); }
.budapest-history-facts div { padding: 24px; background: white; }
.budapest-history-facts strong, .budapest-history-facts span { display: block; }
.budapest-history-facts strong { margin-bottom: 4px; color: var(--burgundy); font: 700 25px var(--serif); }
.budapest-history-facts span { color: var(--muted); font-size: 14px; }
.budapest-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px,7vw,90px); }
.budapest-history-grid h2 { font-size: clamp(29px,3.2vw,41px); }
.budapest-ceremony { background: linear-gradient(135deg,#102f2a,#0b211e); color: white; }
.budapest-photo-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(42px,7vw,85px); align-items: center; }
.budapest-archive-photo { margin: 0; padding: 12px; background: #f1eadc; box-shadow: 0 25px 65px rgba(0,0,0,.38); transform: rotate(-.8deg); }
.budapest-archive-photo img { width: 100%; max-height: 690px; object-fit: cover; object-position: center top; filter: sepia(.12) contrast(1.04); }
.budapest-archive-photo figcaption { padding: 14px 5px 4px; color: #5f574e; font-size: 12px; line-height: 1.5; }
.budapest-archive-photo figcaption a { color: var(--burgundy); font-weight: 700; }
.budapest-ceremony .budapest-history-copy h2 { color: #f1dfad; }
.budapest-ceremony .budapest-history-copy h3 { color: var(--gold-light); }
.budapest-ceremony .budapest-history-copy p { color: #d7dedb; }
.budapest-source-note { margin-top: 27px; padding-top: 18px; border-top: 1px solid rgba(217,191,122,.38); font-size: 13px; }
.budapest-source-note a { color: #f1dfad; font-weight: 700; }
.budapest-benefit-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.budapest-benefit-cards article { padding: 31px; background: white; border-top: 4px solid var(--gold); box-shadow: 0 12px 32px rgba(40,25,17,.1); }
.budapest-benefit-cards article > span { color: var(--gold); font: 700 30px var(--serif); }
.budapest-benefit-cards h3 { margin: 8px 0 12px; color: var(--burgundy); font: 700 22px/1.25 var(--serif); }
.budapest-benefit-cards p { margin: 0; color: var(--muted); font-size: 14px; }
.budapest-present { background: linear-gradient(110deg,rgba(70,9,17,.96),rgba(29,7,11,.92)), url('assets/images/generated-1.png') center/cover; color: white; }
.budapest-present-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(45px,8vw,100px); align-items: start; }
.budapest-present h2 { color: white; }
.budapest-present p { margin-top: 0; color: #eee4df; font-size: 18px; }
.budapest-present-actions { justify-content: flex-start; margin-top: 28px; }

@media (max-width: 900px) {
  .brand-row { min-height: 108px; }
  .seal { width: 62px; height: 72px; font-size: 19px; }
  .brand-emblem { width: 64px; height: 76px; }
  .brand-motto, .header-tools { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 58px; flex-direction: column; background: white; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 0 22px; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .modern-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .split, .content-grid, .contact-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .events-panel, .history-panel { padding: 55px max(25px, calc((100vw - 700px)/2)); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip > :nth-child(n+4) { display: none; }
  .footer-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { gap: 35px; }
  .history-feature-grid, .history-origin-grid, .history-two-column, .history-homecoming-inner { grid-template-columns: 1fr; gap: 45px; }
  .history-feature-reverse .history-illuminated { order: 0; }
  .history-illuminated { max-width: 560px; }
  .history-ceremony-steps { grid-template-columns: repeat(2,1fr); }
  .history-ceremony-steps > div:nth-child(2) { border-right: 0; }
  .history-ceremony-steps > div:nth-child(-n+2) { border-bottom: 1px solid #e4d9c7; }
  .history-leaders { grid-template-columns: repeat(2,1fr); }
  .order-hero-grid { grid-template-columns: 1fr 220px; }
  .order-hero-emblem::before { width: 245px; }
  .order-value-grid { grid-template-columns: repeat(2,1fr); }
  .order-symbol-card { grid-template-columns: 145px 1fr; }
  .order-symbol-image { padding: 15px; }
  .order-history-grid, .order-admission-grid { grid-template-columns: 1fr; }
  .order-history-figure { position: static; max-width: 440px; margin-inline: auto; }
  .order-present-grid { grid-template-columns: repeat(2,1fr); }
  .order-member-grid { grid-template-columns: repeat(2,1fr); }
  .budapest-history-intro, .budapest-photo-grid, .budapest-present-grid { grid-template-columns: 1fr; }
  .budapest-photo-grid { gap: 45px; }
  .budapest-archive-photo { max-width: 520px; margin-inline: auto; }
  .budapest-benefit-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .upcoming-event-row { grid-template-columns: 62px minmax(0,1fr); gap: 12px; padding: 13px; }
  .upcoming-event-row .event-date { font-size: 23px; }
  .upcoming-event-title { font-size: 17px; }
  .container { width: min(100% - 28px, 1160px); }
  .page-hero .page-heading { padding-left: 12px; }
  .brand-name { font-size: 18px; }
  .brand { gap: 12px; }
  .brand-emblem { width: 54px; height: 64px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 43px; }
  .section { padding: 58px 0; }
  .mission-grid, .cards, .news-list, .gallery-grid, .facts, .form-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 27px 19px; }
  .gallery-page-heading { display: block; }
  .gallery-page-heading .gallery-count { margin-bottom: 10px; }
  .kenderes-gallery-heading { display: block; }
  .kenderes-gallery-heading h3 { margin-bottom: 8px; }
  .modern-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .gallery-lightbox { grid-template-columns: 1fr; }
  .gallery-lightbox-figure { grid-column: 1; padding: 70px 8px 82px; }
  .gallery-lightbox-figure img { max-height: calc(100vh - 155px); }
  .gallery-lightbox-nav { top: auto; bottom: 18px; width: 48px; height: 48px; transform: none; }
  .gallery-lightbox-prev { left: calc(50% - 62px); }
  .gallery-lightbox-next { right: calc(50% - 62px); }
  .gallery-lightbox-figure figcaption { bottom: 33px; }
  .mission { border-right: 0; border-bottom: 1px solid rgba(116,27,37,.17); }
  .history-content { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip > :nth-child(n+3) { display: none; }
  .footer-contact-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
  .back-to-top { width: 46px; height: 46px; font-size: 24px; }
  .document { grid-template-columns: 45px 1fr; }
  .document .tag, .document .document-download { grid-column: 2; justify-self: start; }
  .history-page-hero { min-height: 330px; padding: 72px 0 55px; }
  .history-chapter { padding: 68px 0; }
  .history-chapter-feature { background: #fffdf8; }
  .history-date-card { grid-template-columns: 1fr; gap: 4px; }
  .history-wide-photo img { aspect-ratio: 4/3; }
  .history-ceremony-steps, .history-leaders { grid-template-columns: 1fr; }
  .history-ceremony-steps > div { border-right: 0; border-bottom: 1px solid #e4d9c7; }
  .history-leaders img { aspect-ratio: 5/4; }
  .order-page-hero { min-height: auto; padding: 68px 0; }
  .order-hero-grid, .order-intro-grid, .order-creed-grid, .order-service-grid { grid-template-columns: 1fr; }
  .order-hero-emblem { display: none; }
  .order-intro-copy { border-left: 0; border-top: 1px solid var(--gold); padding: 24px 0 0; }
  .order-value-grid, .order-symbol-grid, .order-principles { grid-template-columns: 1fr; }
  .order-present-grid, .order-member-grid, .order-ethos { grid-template-columns: 1fr; }
  .order-present-grid article { min-height: auto; }
  .order-timeline::before { left: 11px; }
  .order-timeline article { grid-template-columns: 1fr; gap: 6px; padding-left: 35px; }
  .order-timeline article::before { left: 6px; }
  .order-timeline-year { text-align: left; }
  .order-value-card { min-height: auto; }
  .order-value-card h3 { margin-top: 32px; }
  .order-creed-mark { width: 145px; font-size: 72px; }
  .order-symbol-card { grid-template-columns: 125px 1fr; min-height: 230px; }
  .order-symbol-image { min-height: 230px; padding: 12px; }
  .order-symbol-image img, .order-symbol-landscape img, .order-symbol-tall img { height: 190px; }
  .order-symbol-card > div:last-child { padding: 21px 17px; }
  .order-symbol-card h3 { font-size: 20px; }
  .order-closing-inner { align-items: flex-start; flex-direction: column; }
  .budapest-history-hero { min-height: 350px; padding: 85px 0 55px; }
  .budapest-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) { .admin-bar .nav-wrap { top: 46px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* A híroldal három, időrendben rendezett kártyája. */
.news-page-content .news-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 900px) { .news-page-content .news-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .news-page-content .news-list { grid-template-columns: 1fr; } }

/* Az eseménykártyák képei azonos, fekvő méretben jelennek meg. */
.cards .card-media, .news-page-content .news-list .card-media { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cards .card-body h3, .news-page-content .news-list .card-body h3 { margin: 0; }

/* Minden eseményfotó fekvő keretben, vágás nélkül; álló képnél fekete oldalsávok. */
.cards .card-media, .news-page-content .news-list .card-media, .modern-gallery .gallery-item img, .gallery-grid img, .gallery-strip img, .history-photo { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; object-fit: cover !important; background: #000; }
.gallery-strip { min-height: 0; }
.gallery-strip a { background: #000; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: none; }
.gallery-lightbox-figure img { width: min(100%, calc(177.7778vh - 177.7778px)); height: auto; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
@media (max-width: 620px) { .gallery-lightbox-figure img { width: min(100%, calc(177.7778vh - 275.5556px)); max-height: none; } }

/* Csak az álló fotók kapnak fekete oldalsávot. */
.cards .card-media.photo-portrait, .news-page-content .news-list .card-media.photo-portrait, .modern-gallery .gallery-item img.photo-portrait, .gallery-grid img.photo-portrait, .gallery-strip img.photo-portrait, .history-photo.photo-portrait, .gallery-lightbox-figure img.photo-portrait { object-fit: contain !important; }
