/*
Theme Name: VeszprémBer
Theme URI: https://veszprember.hu
Author: BEMIND
Description: Minimalista blokkos (FSE) téma a VeszprémBer Építő Kft. számára. Fehér alap, hajszálvonalak, tervrajz-hangulat.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: veszprember
*/

/* ===================================================== alapok */
:root {
	--vb-ink: #111111;
	--vb-muted: #4D4D4D;
	--vb-line: #E3E3E3;
	--vb-surface: #F5F5F5;
	--vb-mark: #B5B5B5;
	--vb-gutter: clamp(1rem, 4vw, 2.5rem);
	--vb-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
	--vb-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M20 12H4M10 6l-6 6 6 6'/%3E%3C/svg%3E");
	--vb-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E");
	--vb-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--vb-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' fill='none' stroke='%23B5B5B5' stroke-width='1'%3E%3Cpath d='M4.5 0v9M0 4.5h9'/%3E%3C/svg%3E");
	--vb-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
	--vb-phone-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--vb-ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.vb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* címke-stílus (kis nagybetűs felirat) */
.vb-label, .vb-eyebrow, .vb-job-label, .vb-footer-label, .vb-contact th, .vb-more-title {
	font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vb-muted); line-height: 1.4;
}

/* nyíl a linkek végén */
.vb-tile-label a::after, .vb-more a::after {
	content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--vb-arrow) center / contain no-repeat; mask: var(--vb-arrow) center / contain no-repeat;
	transition: transform .15s;
}
.vb-tile-label a:hover::after, .vb-more a:hover::after { transform: translateX(4px); }

/* külső link jelölő */
.vb-ext-mark { display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; background: currentColor; -webkit-mask: var(--vb-ext) center / contain no-repeat; mask: var(--vb-ext) center / contain no-repeat; }

main.vb-main { padding-bottom: clamp(3.5rem, 7vw, 5rem); }

/* ===================================================== fejléc */
.vb-header { border-bottom: 1px solid var(--vb-line); background: #fff; position: relative; z-index: 20; }
.vb-header-inner { box-sizing: border-box; max-width: 1360px; margin-inline: auto; padding: 16px var(--vb-gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; }
.vb-logo { margin: 0; line-height: 0; }
.vb-logo img { display: block; height: 68px; width: auto; }
.vb-header-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 32px; }
.vb-header .wp-block-navigation { gap: 0 4px; }
.vb-header .wp-block-navigation .wp-block-navigation__container { gap: 0 4px; }
.vb-header .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.vb-header .wp-block-navigation-item__content:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.vb-header .current-menu-item > .wp-block-navigation-item__content,
.vb-header .wp-block-navigation-item__content[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.vb-phone { margin: 0; }
.vb-phone a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.vb-phone a:hover { text-decoration: underline; }

/* mobil menü (a WordPress beépített menüje) */
.vb-header .wp-block-navigation__responsive-container-open,
.vb-header .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (max-width: 599px) { .vb-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; } }
.vb-header .wp-block-navigation__responsive-container.is-menu-open { padding: 0; background: #fff; }
.vb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 10px; right: var(--vb-gutter); }
.vb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 72px var(--vb-gutter) 24px; align-items: stretch; }
.vb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.vb-header .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--vb-line); width: 100%; }
.vb-header .is-menu-open .wp-block-navigation-item__content { min-height: 52px; padding: 0 !important; font-size: 1.25rem; width: 100%; }

@media (max-width: 599px) {
	.vb-header-inner { padding-block: 10px; flex-wrap: nowrap; }
	.vb-logo img { height: 44px; }
	.vb-header-right { flex-direction: row-reverse; gap: 4px; flex-wrap: nowrap; }
	.vb-phone a { width: 44px; height: 44px; justify-content: center; font-size: 0; }
	.vb-phone a::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--vb-phone-ico) center / contain no-repeat; mask: var(--vb-phone-ico) center / contain no-repeat; }
}

/* ===================================================== lábléc */
.vb-footer { border-top: 1px solid var(--vb-line); }
.vb-footer-inner { box-sizing: border-box; max-width: 1360px; margin-inline: auto; padding: 32px var(--vb-gutter); }
.vb-footer-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.vb-footer-grid > * { margin: 0 !important; min-width: 0; }
.vb-footer-item p { margin: 0; }
.vb-footer-item p a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.vb-copy { margin: 24px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--vb-line); font-size: 0.875rem; color: var(--vb-muted); }

/* ===================================================== oldalfej (cím, vissza-link) */
.vb-page-head { padding: 48px 0 40px; }
.vb-page-head h1 { margin: 0; }
.vb-page-sub { margin-top: -32px !important; }
.vb-back-wrap { padding-top: 16px; }
.vb-back-wrap + .vb-page-head { padding-top: 8px; padding-bottom: 0; }
.vb-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.vb-back::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--vb-arrow-left) center / contain no-repeat; mask: var(--vb-arrow-left) center / contain no-repeat; transition: transform .15s; }
.vb-back:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.vb-back:hover::before { transform: translateX(-4px); }

/* ===================================================== főoldal */
.vb-hero.wp-block-cover { min-height: 560px; padding: 80px var(--vb-gutter); }
.vb-hero .wp-block-cover__inner-container { max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.vb-hero h1 { margin: 0 !important; color: #fff; }
.vb-hero p { margin: 0 !important; max-width: 62ch; font-size: 1.25rem; line-height: 1.55; color: #fff; }
.vb-hero .wp-block-buttons { margin: 8px 0 0 !important; justify-content: center; }
.vb-hero .wp-block-button__link { background: #fff !important; color: var(--vb-ink) !important; min-height: 52px; padding: 0 28px; display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; }
.vb-hero .wp-block-button__link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--vb-arrow) center / contain no-repeat; mask: var(--vb-arrow) center / contain no-repeat; transition: transform .15s; }
.vb-hero .wp-block-button__link:hover::after { transform: translateX(4px); }
.vb-hero :focus-visible { outline-color: #fff; }

.vb-home-body { box-sizing: border-box; max-width: 1360px; margin-inline: auto; padding-inline: var(--vb-gutter); }
ul.vb-trust { list-style: none; margin: 0 !important; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--vb-line); border-left: 1px solid var(--vb-line); }
ul.vb-trust li { flex: 1 1 200px; box-sizing: border-box; padding: 16px 20px; margin: 0; border-right: 1px solid var(--vb-line); border-bottom: 1px solid var(--vb-line); font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

/* számozott szekció (csak a többszekciós oldalakon) */
.vb-sections { counter-reset: vbsec; }
.vb-section { padding-top: 80px; margin: 0 !important; scroll-margin-top: 24px; }
.vb-eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 !important; padding: 13px 0; border-top: 1px solid var(--vb-line); border-bottom: 1px solid var(--vb-line); counter-increment: vbsec; }
.vb-eyebrow::before { content: counter(vbsec, decimal-leading-zero) " /"; }
.vb-split { gap: 24px 40px !important; padding-top: 32px; margin: 0 !important; }
.vb-split h2 { margin: 0; }
.vb-cols-text { column-count: 2; column-width: 320px; column-gap: 40px; }
.vb-cols-text > p { margin: 0 0 14px !important; max-width: 65ch; break-inside: avoid; }
.vb-stack > * { margin: 0 !important; max-width: 65ch; }
.vb-stack > * + * { margin-top: 16px !important; }
.vb-lead { font-size: 1.5rem !important; font-weight: 300; line-height: 1.4 !important; letter-spacing: -0.01em; max-width: 65ch; }
.vb-section-head { padding-top: 32px; }
.vb-section-head h2 { margin: 0; }
.vb-subtitle { margin: 8px 0 0 !important; font-size: 1.25rem; line-height: 1.4; color: var(--vb-muted); }

/* csempék (főoldal, Referenciák) */
.vb-tiles { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 28px !important; }
.vb-tiles > * { margin: 0 !important; }
.vb-tile .wp-block-image { margin: 0; }
.vb-tile .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vb-tile-label { margin: 8px 0 0 !important; font-weight: 500; }
.vb-tile-label a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; text-decoration: none; }
.vb-tile-label a .vb-tile-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vb-tile-label a:hover .vb-tile-name { text-decoration-thickness: 2px; }
.vb-tile-count { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 400; color: var(--vb-muted); }
.vb-tile:has(a:hover) .vb-tile-label a::after { transform: translateX(4px); }
@media (max-width: 900px) { .vb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vb-tiles { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================== referencia-kategória */
.vb-list-section { padding-top: 40px; }
.vb-list-section h2 { font-size: var(--wp--preset--font-size--x-large); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.vb-count { margin: 8px 0 20px !important; font-size: 0.875rem; line-height: 1.5; color: var(--vb-muted); }
.vb-list-section h2 + .wp-block-table { margin-top: 20px; }

/* referencia-táblázat: egyetlen táblázat, széles képernyőn két hasábban, automatikus sorszámmal */
.wp-block-table.is-style-vb-index { margin: 0; overflow: visible; }
.is-style-vb-index table { display: block; width: 100%; border: 0; border-collapse: collapse; }
.is-style-vb-index thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.is-style-vb-index tbody { display: block; columns: 2 320px; column-gap: 40px; counter-reset: vbrow; }
.is-style-vb-index tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 38%; break-inside: avoid; border-top: 1px solid var(--vb-line); border-bottom: 1px solid var(--vb-line); margin-top: -1px; counter-increment: vbrow; }
.is-style-vb-index tr::before { content: counter(vbrow, decimal-leading-zero); padding: 12px 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; color: var(--vb-muted); line-height: 1.4; }
.is-style-vb-index td { border: 0; padding: 12px 16px 12px 0; vertical-align: top; font-size: 1rem; line-height: 1.5; }
.is-style-vb-index td + td { padding-right: 0; font-size: 0.875rem; color: var(--vb-muted); }

/* galéria: 6 hasáb, 4:3 kivágás, nagyító, tervrajz-sarkok */
.wp-block-gallery.is-style-vb-gal { position: relative; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px !important; padding-top: 14px; margin-top: 56px !important; }
.wp-block-gallery.is-style-vb-gal::before, .wp-block-gallery.is-style-vb-gal::after,
.vb-plus::before, .vb-plus::after { content: ""; position: absolute; top: 0; width: 9px; height: 9px; background: var(--vb-plus) center / contain no-repeat; }
.wp-block-gallery.is-style-vb-gal::before, .vb-plus::before { left: -4px; }
.wp-block-gallery.is-style-vb-gal::after, .vb-plus::after { right: -4px; }
.wp-block-gallery.is-style-vb-gal > figure.wp-block-image { width: auto !important; margin: 0 !important; position: relative; display: block; }
.wp-block-gallery.is-style-vb-gal > figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wp-block-gallery.is-style-vb-gal figcaption { display: none; }
.is-style-vb-gal a, .vb-certs a { position: relative; display: block; cursor: zoom-in; }
.is-style-vb-gal a::after, .vb-certs a::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; background: #fff var(--vb-zoom) center / 16px no-repeat; opacity: 0; transition: opacity .15s; z-index: 1; }
.is-style-vb-gal a:hover::after, .is-style-vb-gal a:focus-visible::after, .vb-certs a:hover::after, .vb-certs a:focus-visible::after { opacity: 1; }
@media (max-width: 900px) { .wp-block-gallery.is-style-vb-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wp-block-gallery.is-style-vb-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* további kategóriák */
.vb-more { margin-top: 64px; border-top: 1px solid var(--vb-line); }
.vb-more-title { margin: 0; padding: 16px 0 12px; }
.vb-more ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.vb-more a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--vb-line); text-decoration: none; }
.vb-more a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 899px) { .vb-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .vb-more ul { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================== Média */
.vb-articles { border-bottom: 1px solid var(--vb-line); }
.vb-article { gap: 24px 40px !important; padding: 32px 0; border-top: 1px solid var(--vb-line); margin: 0 !important; }
.vb-article .wp-block-image { margin: 0; }
.vb-article .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vb-article h2 { font-size: 1.625rem; line-height: 1.25; margin: 0; }
.vb-article p { margin: 14px 0 0; max-width: 65ch; }
.vb-article p a { display: inline-flex; align-items: center; min-height: 44px; }

/* média-cikk oldal (ActiCity, Devecser) */
.vb-cikk { gap: 28px 40px !important; padding-top: 8px; margin: 0 !important; }
.vb-cikk h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0; }
.vb-cikk h1.vb-h1-long { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.vb-cikk .vb-lead { margin-top: 24px; }
.vb-credits { margin-top: 24px !important; border-top: 1px solid var(--vb-line); }
.vb-credits p { margin: 0 !important; padding: 12px 0; border-bottom: 1px solid var(--vb-line); }
.vb-caption { margin: 8px 0 0 !important; font-size: 0.875rem; color: var(--vb-muted); }

/* videó: kattintásra töltődik be (addig nincs kapcsolat a YouTube-bal) */
.vb-video { position: relative; padding-top: 14px; margin: 0; }
.vb-video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--vb-ink); overflow: hidden; }
.vb-video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vb-video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0; border: 0; background: var(--vb-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vb-video-play::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.vb-video-play:hover { background: #333; }
.vb-video-play:focus-visible { outline-color: #fff; outline-offset: -6px; }
.vb-video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; font-size: 0.875rem; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }

/* ===================================================== Karrier */
.vb-jobs-intro { margin: 0 0 20px !important; font-size: 1.25rem; line-height: 1.4; }
.vb-jobs-nav { margin: 0 0 40px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 32px; }
.vb-jobs-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.vb-jobs-nav a::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--vb-arrow-down) center / contain no-repeat; mask: var(--vb-arrow-down) center / contain no-repeat; }
.vb-jobs { counter-reset: vbjob; border-bottom: 1px solid var(--vb-line); }
.vb-jobs > .wp-block-details { margin: 0 !important; border-top: 1px solid var(--vb-line); scroll-margin-top: 24px; counter-increment: vbjob; }
.vb-jobs > .wp-block-details:first-of-type { border-top-color: var(--vb-ink); }
.vb-jobs summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 24px 0; cursor: pointer; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
.vb-jobs summary::-webkit-details-marker { display: none; }
.vb-jobs summary::before { content: counter(vbjob, decimal-leading-zero); flex: 0 0 32px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; color: var(--vb-muted); line-height: 1.4; }
.vb-jobs summary::after { content: ""; margin-left: auto; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--vb-arrow-down) center / contain no-repeat; mask: var(--vb-arrow-down) center / contain no-repeat; transition: transform .2s; }
.vb-jobs details[open] > summary::after { transform: rotate(180deg); }
.vb-jobs summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.vb-jobs details > :not(summary) { margin-top: 0; }
.vb-job-cols { gap: 0 40px !important; margin: 8px 0 0 !important; }
.vb-job-label { margin: 0 0 8px !important; }
.vb-jobs ul { margin: 0 0 24px; padding: 0; list-style: none; }
.vb-jobs li { display: flex; gap: 10px; margin: 0 0 6px; line-height: 1.6; }
.vb-jobs li::before { content: "–"; flex: none; color: #5A5A5A; }
.vb-jobs .wp-block-buttons { margin: 8px 0 40px !important; }
.vb-jobs .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; box-sizing: border-box; padding-block: 0; }
.vb-jobs .wp-block-button__link::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--vb-arrow) center / contain no-repeat; mask: var(--vb-arrow) center / contain no-repeat; }

/* ===================================================== Tanúsítványok */
.wp-block-gallery.vb-certs { position: relative; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 24px !important; padding-top: 14px; }
.wp-block-gallery.vb-certs::before, .wp-block-gallery.vb-certs::after { content: ""; position: absolute; top: 0; width: 9px; height: 9px; background: var(--vb-plus) center / contain no-repeat; }
.wp-block-gallery.vb-certs::before { left: -4px; }
.wp-block-gallery.vb-certs::after { right: -4px; }
.wp-block-gallery.vb-certs > figure.wp-block-image { width: auto !important; margin: 0 !important; display: block !important; }
.wp-block-gallery.vb-certs > figure.wp-block-image a { border: 1px solid var(--vb-line); }
.wp-block-gallery.vb-certs > figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: contain; display: block; }
.wp-block-gallery.vb-certs > figure.wp-block-image figcaption { position: static !important; background: none !important; color: var(--vb-ink) !important; padding: 0 !important; margin-top: 12px; font-size: 1.25rem; font-weight: 500; line-height: 1.3; text-align: left; max-height: none; overflow: visible; text-shadow: none; }

/* ===================================================== Kapcsolat */
.vb-contact-cols { gap: 32px 40px !important; margin: 0 !important; }
.wp-block-table.vb-contact { margin: 0; }
.vb-contact table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--vb-line); }
.vb-contact th, .vb-contact td { border: 0; border-bottom: 1px solid var(--vb-line); padding: 0; text-align: left; vertical-align: middle; }
.vb-contact thead { display: none; }
.vb-contact td:first-child { width: 140px; padding-right: 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vb-muted); line-height: 1.4; }
.vb-contact td + td { font-size: 1.25rem; line-height: 1.3; }
.vb-contact td a { display: inline-flex; align-items: center; min-height: 56px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .vb-contact tr { display: block; padding: 12px 0 0; border-bottom: 1px solid var(--vb-line); } .vb-contact td { display: block; border: 0; width: auto !important; } .vb-contact td a { min-height: 44px; } }

.vb-map { position: relative; box-sizing: border-box; min-height: 420px; background: var(--vb-surface); border: 1px solid var(--vb-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.vb-map button { min-height: 48px; padding: 0 24px; border: 0; background: var(--vb-ink); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.vb-map button:hover { background: #333; }
.vb-map p { margin: 0; max-width: 40ch; font-size: 0.875rem; line-height: 1.5; color: var(--vb-muted); }
.vb-map a { display: inline-flex; align-items: center; min-height: 44px; }
.vb-map.is-loaded { padding: 0; background: var(--vb-line); }
.vb-map.is-loaded > :not(iframe) { display: none; }
.vb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===================================================== képnézegető */
.vb-lb { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #fff; }
.vb-lb[hidden] { display: none; }
.vb-lb-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 var(--vb-gutter); border-bottom: 1px solid var(--vb-line); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vb-muted); }
.vb-lb-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--vb-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.vb-lb-close::after { content: "×"; font-size: 1.5rem; line-height: 1; letter-spacing: 0; font-weight: 300; }
.vb-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--vb-gutter); }
.vb-lb-nav { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--vb-line); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vb-lb-nav::before { content: ""; width: 18px; height: 18px; background: var(--vb-ink); -webkit-mask: var(--vb-arrow) center / contain no-repeat; mask: var(--vb-arrow) center / contain no-repeat; }
.vb-lb-prev::before { -webkit-mask-image: var(--vb-arrow-left); mask-image: var(--vb-arrow-left); }
.vb-lb-nav:disabled { opacity: .3; cursor: default; }
.vb-lb-figure { flex: 1; min-width: 0; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.vb-lb-figure img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vb-lb-caption { padding: 0 var(--vb-gutter) 28px; text-align: center; font-size: 0.875rem; color: var(--vb-muted); }
@media (max-width: 600px) {
	.vb-lb-stage { padding-inline: 8px; }
	.vb-lb-nav { position: absolute; bottom: 72px; }
	.vb-lb-prev { left: calc(50% - 56px); } .vb-lb-next { right: calc(50% - 56px); }
	.vb-lb-caption { padding-bottom: 128px; }
}
body.vb-lb-open { overflow: hidden; }

/* ===================================================== Referenciák egy oldalon (2. változat) */
.vb-jumpbar { position: sticky; top: 0; z-index: 15; background: #fff; border-top: 1px solid var(--vb-line); border-bottom: 1px solid var(--vb-line); }
.admin-bar .vb-jumpbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .vb-jumpbar { top: 0; } }
.vb-jumpbar-inner { position: relative; box-sizing: border-box; max-width: 1360px; margin-inline: auto; padding: 0 var(--vb-gutter); }
.vb-jumpbar-list { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; white-space: nowrap; margin: 0; padding: 0; list-style: none; scrollbar-width: none; }
.vb-jumpbar-list::-webkit-scrollbar { display: none; }
.vb-jumpbar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.875rem; color: var(--vb-muted); text-decoration: none; }
.vb-jumpbar a:hover { text-decoration: underline; text-underline-offset: 6px; }
.vb-jumpbar a.is-active { color: var(--vb-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.vb-jumpbar-inner::before, .vb-jumpbar-inner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1; }
.vb-jumpbar-inner::before { left: var(--vb-gutter); background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.vb-jumpbar-inner::after { right: var(--vb-gutter); background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.vb-jumpbar-inner.fade-l::before, .vb-jumpbar-inner.fade-r::after { opacity: 1; }
.vb-onepage-section { padding-top: 80px; scroll-margin-top: 60px; }
.vb-onepage-section .vb-section-head h3 { margin: 12px 0 20px; font-size: 1.25rem; line-height: 1.3; }
.vb-onepage-section .wp-block-gallery.is-style-vb-gal { margin-top: 32px !important; }

/* új lapon nyíló (külső) link jelölése */
a[target="_blank"]::after { content: ""; display: inline-block; flex: none; width: 12px; height: 12px; margin-left: 8px; background: currentColor; -webkit-mask: var(--vb-ext) center / contain no-repeat; mask: var(--vb-ext) center / contain no-repeat; }

/* keskeny kijelző: a megbízó a megnevezés alá kerül, kisebb hirdetéscímek */
@media (max-width: 599px) {
	.is-style-vb-index tr { grid-template-columns: 36px minmax(0, 1fr); }
	.is-style-vb-index tr::before { grid-row: span 2; }
	.is-style-vb-index td { padding: 12px 0 0; }
	.is-style-vb-index td + td { padding: 2px 0 12px; }
	.vb-jobs summary { font-size: 1.375rem; padding: 20px 0; }
	.vb-hero.wp-block-cover { min-height: 520px; padding-block: 64px; }
}

/* hosszú címek (pl. a Facebook-link) egy sorban: a lábléc elemei a tartalmuk szélességét kapják */
.vb-footer-grid { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.vb-footer-item { flex: 0 1 auto; }
.vb-footer-item p a, .vb-contact td a { white-space: nowrap; overflow-wrap: normal; }
a[target="_blank"]::after { margin-left: 6px; }

/* Kapcsolat: széles képernyőn címke a sor elején, keskenyebben a címke a cím fölött */
.vb-contact td + td { font-size: clamp(1rem, 1.5vw, 1.25rem); }
@media (max-width: 1099px) {
	.vb-contact tr { display: block; padding: 12px 0 0; border-bottom: 1px solid var(--vb-line); }
	.vb-contact td { display: block; border: 0; width: auto !important; }
	.vb-contact td a { min-height: 44px; }
}
@media (max-width: 599px) { .vb-footer-grid { flex-direction: column; } }
@media (max-width: 359px) { .vb-footer-item p a, .vb-contact td + td { font-size: 0.875rem; } }
