/* WordPress-specifikus kiegészítések a dizájnhoz (a megjelenést nem változtatják). */

/* Motivum szerkesztő mód: a mozgó elemek állnak, a beúszó elemek láthatók, az egyedi kurzor ki. */
html.mtv-editing .vw-reveal, html.vedia-editing .vw-reveal { opacity: 1 !important; transform: none !important; }
html.mtv-editing .vw-cursor, html.vedia-editing .vw-cursor { display: none !important; }

/* A kezelt régiók csomagolója nem befolyásolja az elrendezést (a témasablon base.css-éből is). */
.mtv-region { display: contents; }

/* A gomb-mező saját szövegcsomagolója örökli a stílust. */
.mtv-button__text { font: inherit; color: inherit; }

/* Körhinta Megállítás/Lejátszás felirat váltása. */
[data-vedia-lab][hidden] { display: none !important; }

/* Hero: a H1 szövege a sima mező (felolvasó, kereső); a látható, mozgó másolat aria-hidden.
   Szerkesztő módban a sima mező látszik, hogy kattintható legyen. */
.vw-hero__kinetic { display: contents; }
html.mtv-editing .vw-hero__kinetic { display: none; }
html.mtv-editing .vw-hero__src.vd-sr { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }

/* Galériák (vedia-archiv.js): a rejtett kártyák, sávok, panelek valóban rejtve (a DS display-szabályai felett). */
[data-vedia-kartya][hidden], [data-vedia-tobb-bar][hidden], .vw-card-more[hidden], .vw-ar-panel[hidden],
[data-vedia-torol][hidden], [data-vedia-ures][hidden], [data-vedia-van][hidden] { display: none !important; }
/* Az eredménysáv csak akkor látszik, ha van benne látható tartalom (a dizájn :has szabályának megfelelője). */
.vw-resultbar:not(:has(p, button:not([hidden]))) { display: none; }
.vw-fae-detail[hidden] { display: none !important; }
.vw-confirm[hidden], .vw-form[hidden], .vw-prefill[hidden], .vw-err[hidden] { display: none !important; }

/* ---------- 1.0.2 ---------- */

/* „Nézd meg a faladon”: valódi QR-kód (asztali gép) és a telefonos indítás. */
.vw-ar-panel { position: relative; }
.vw-qr[data-ar-qr]:empty::after { content: ""; display: block; width: 40%; aspect-ratio: 1; border: 1px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: vw-ar-spin .8s linear infinite; }
@keyframes vw-ar-spin { to { transform: rotate(360deg); } }
.vw-qr:has(svg) { border: 0; padding: 0; background: var(--paper); }
.vw-qr svg { display: block; width: 100%; height: 100%; }
.vw-qr svg rect[fill="#ffffff"], .vw-qr svg path { shape-rendering: crispEdges; }
.vw-ar-panel--mobile { grid-template-columns: 1fr; }
.vw-ar-panel--card.vw-ar-panel--mobile { flex-direction: column; align-items: flex-start; }
.vw-ar-panel--mobile .vw-qr, .vw-ar-panel--mobile .vd-ar__hint { display: none; }
.vw-ar-go { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.vw-ar-status { margin: 0; font-size: .875rem; line-height: 1.5; }
.vw-ar-launch[hidden] { display: none !important; }
.vw-ar-mv { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .vw-qr[data-ar-qr]:empty::after { animation: none; } }

/* Műkártyák: a cím középre igazítva (minden galériában és a „Hasonló művek” sorban). */
.vd-card__title { text-align: center; }
.vd-card__title .vw-card-toggle { justify-content: center; }

/* Lista-szekció (színes, helyben maradó fejjel): felső vonal, ha nem egy másik lista-szekció után jön. */
.vd-section + .vw-rows { border-top: var(--line); }

/* Egymást követő képes szekciók: reális térköz (Díjak és trófeák). */
.vd-section.vw-section--flush-b { padding-bottom: 0; }
.vd-section.vw-section--tight-t { padding-top: var(--space-5); }
@media (max-width: 991px) { .vd-section.vw-section--tight-t { padding-top: var(--space-4); } }

/* Kiállítási plakát a kiállítás-sorokban (főoldal) és az eseménykártyákon (Aktuális). */
.vw-row--event:has(.vw-row__thumb--poster) { grid-template-columns: 10rem minmax(0, 1fr) auto; }
.vw-row__thumb--poster { display: flex; align-items: center; justify-content: center; width: 11rem; padding: var(--space-2); }
.vw-row__thumb--poster img { display: block; width: 100%; height: auto; max-height: 14rem; object-fit: contain; }
.vd-event:has(.vw-event__poster) { grid-template-columns: 9rem minmax(0, 1fr) auto; }
.vw-event__poster { margin: 0; width: 12rem; padding: var(--space-2); border-left: var(--line); display: flex; align-items: center; justify-content: center; }
.vw-event__poster img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: contain; }
@media (max-width: 767px) {
	.vw-row--event:has(.vw-row__thumb--poster) { grid-template-columns: 5.5rem minmax(0, 1fr); }
	.vw-row--event .vw-row__thumb--poster { grid-column: 1 / -1; width: auto; height: auto; border-left: 0; border-top: var(--line); }
	.vw-row--event .vw-row__thumb--poster img { width: auto; max-width: 100%; max-height: 18rem; }
	.vd-event:has(.vw-event__poster) { grid-template-columns: 5.5rem minmax(0, 1fr); }
	.vw-event__poster { grid-column: 1 / -1; width: auto; border-left: 0; border-top: var(--line); }
	.vw-event__poster img { width: auto; max-width: 100%; max-height: 20rem; }
}
.vw-zoomable .vw-event__poster img { cursor: zoom-in; }
