/* MontiPrint preview overrides for the drawing gallery [92b22941]. Fixed grid: 2 columns on a phone, 3 on a monitor. */
.mp-rajz { background: var(--bg-soft); }
.mp-rajz .rg { --rg-paper: var(--paper); --rg-card: #fff; --rg-ink: var(--ink); --rg-muted: var(--ink-soft); --rg-accent: var(--accent); --rg-radius: 4px; font-family: 'Barlow', Arial, sans-serif; }
.mp-rajz .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .mp-rajz .rg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* triple-tap on the logo: no double-tap zoom on the logo itself */
.wm-tap { touch-action: manipulation; }
/* Tile fit [92b22941], Viki 15252: the drawing and the photo of an item share one aspect ratio (4:3 or 3:4), so the tile takes the
   ratio of its own image instead of a fixed square. No letterbox bars, no cropping, no jump when the original is revealed.
   Masonry columns (not grid rows) so tiles of different height leave no holes. */
.mp-rajz .rg-grid { display: block; column-count: 2; column-gap: var(--rg-gap); }
/* Desktop with 5 or fewer items: 3 columns left an empty third column (Viki 15252 final scoring, 7/10). 2 centred columns instead;
   a tab with a single item shows it as one centred tile. Phone is unchanged. [92b22941] */
@media (min-width: 720px) { .mp-rajz .rg-grid { column-count: 2; max-width: 760px; margin-inline: auto; } }
.mp-rajz .rg-grid:has(> :only-child) { column-count: 1; max-width: 380px; margin-inline: auto; }
.mp-rajz .rg-fig { break-inside: avoid; margin: 0 0 var(--rg-gap); }
.mp-rajz .rg-tile { aspect-ratio: auto; min-height: 96px; background: #efdebb; }
.mp-rajz .rg-tile > img.rg-rajz,
.mp-rajz .rg-tile > img.rg-foto-only { position: static; display: block; width: 100%; height: auto; }
.mp-rajz .rg-foto { object-fit: cover; }
/* Photo-only tabs with exactly two tiles (Táskák): same aspect ratio on both, no ragged bottom edge. Viki 15300, 7/10 at 1280 px. [92b22941]
   Cropping is top-weighted so the bag handle stays in the frame. */
.mp-rajz .rg-grid:has(> :nth-child(2):last-child) .rg-tile { aspect-ratio: 3 / 4; }
.mp-rajz .rg-grid:has(> :nth-child(2):last-child) .rg-tile > img.rg-foto-only { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 20%; }

/* Pult layouts + sample marking [183a97c0]. The pult renderer (pult-galeria.css) is scoped to .gal; tokens set to the page's look. */
.mp-rajz .gal { --g-card: #efdebb; --g-radius: 4px; --g-ink: var(--ink); --g-blue: var(--blue); --g-muted: var(--ink-soft); font-family: 'Barlow', Arial, sans-serif; }
.mp-rajz .rg-pult { max-width: 1040px; margin-inline: auto; }
.mp-rajz .gal--racs, .mp-rajz .gal--mozaik, .mp-rajz .gal--kepeslap { margin-inline: auto; }
/* "Látványterv" badge on a sample tile (today's view) and the explanatory line above the gallery */
.mp-rajz .rg-tile { position: relative; }
.mp-rajz .rg-minta { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 8px; border-radius: 3px; background: var(--ink); color: #fff; font: 700 .72rem/1.2 'Barlow', Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.rg-minta-sor { margin: 0 auto 14px; max-width: 760px; padding: 8px 12px; border: 1px dashed var(--blue-line); border-radius: 3px; background: #fff; color: var(--ink-soft); font-size: .95rem; text-align: center; }
.rg-teszt { border-color: var(--accent-deep); color: var(--ink); font-weight: 700; }
.mp-rajz .rg-pult .swap{position:relative}
