/* css/galanteria.css (rewritten for the Elementor mirror) */
/* Galanteria nagrobna (7 Nov). Hub: a catalogue opener with a big serif title over a wide still life, then the categories as
   large photo tiles with an italic name and a "Zobacz" pill on a white card (refs Cosmos category cards and the Palmer
   Dinnerware collections grid with product counts on Mobbin, 21st.dev Shop by Category Grid for the hover zoom), the original
   text as an editorial spread and a numbered catalogue index whose rows show a photo beside the cursor. Category pages: a split
   head with the photo labelled "Zdjęcie poglądowe", then each page's own body (lantern model cards set like the grey product
   cells of Analogue Agency and Palmer on Mobbin, a spec sheet for the cushions, three steps for the glass plaques). Photos are
   generated and illustrative only; the real model photos come from the client. */

/* hub head */
body.cg .gal-hero { padding-bottom: clamp(24px, 3vw, 40px); }
body.cg .gal-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
body.cg .gal-h1 { font: 300 clamp(64px, 9vw, 140px)/.88 var(--serif); letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
body.cg .gal-h1 em { font-style: italic; color: var(--gold-text); }
body.cg .gal-hero-lead { max-width: 26em; padding-bottom: 10px; font-size: 19px; line-height: 1.6; color: var(--text); }
body.cg .gal-hero-lead .btn { margin-top: 22px; }
body.cg .gal-hero-media { position: relative; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: clamp(28px, 3.6vw, 44px) auto 0; padding: 0 var(--gutter); }
body.cg .gal-hero-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-band); background: #d9d5cb; }
body.cg .gal-hero-media :where(figcaption,.t-figcaption):not(cg-x),body.cg  .cat-media :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; right: calc(var(--gutter) + 18px); bottom: 18px; }

/* category tiles */
body.cg .gal-cats { padding: clamp(56px, 7vw, 96px) 0; }
body.cg .gal-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; }
body.cg .gal-tile { grid-column: span 2; }
body.cg .gal-tile:nth-child(-n+2) { grid-column: span 3; }
body.cg .gal-tile :where(a,.t-a):not(cg-x) { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 12px; border-radius: var(--r-card); overflow: hidden; isolation: isolate; background: #d9d5cb; color: var(--ink); text-decoration: none; }
body.cg .gal-tile:nth-child(-n+2) :where(a,.t-a):not(cg-x) { min-height: 460px; }
body.cg .gal-tile img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
body.cg .gal-tile :where(a,.t-a):not(cg-x):hover img { transform: scale(1.05); }
body.cg .gal-tile-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .94); }
body.cg .gal-tile-name { font: italic 400 30px/1 var(--serif); letter-spacing: -0.015em; }
body.cg .gal-tile-note { display: block; margin-top: 6px; font: 400 14px/1.3 var(--sans); font-style: normal; color: var(--muted); }
body.cg .gal-tile-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; white-space: nowrap; transition: background-color .3s; }
body.cg .gal-tile-pill .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .35s var(--ease); }
body.cg .gal-tile :where(a,.t-a):not(cg-x):hover .gal-tile-pill .icon { transform: translateX(3px); }
body.cg .gal-tile-count { position: absolute; top: 14px; left: 14px; }
body.cg .gal-tile-service { grid-column: 1 / -1; }
body.cg .gal-tile.gal-tile-service :where(a,.t-a):not(cg-x) { min-height: 240px; }
body.cg .gal-tile-service img { object-position: 50% 42%; }
body.cg .gal-tile-service .gal-tile-card { width: min(520px, 100%); background: var(--primrose); }

/* the original text as a spread */
body.cg .gal-spread { padding-bottom: clamp(56px, 7vw, 96px); }
body.cg .gal-spread-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
body.cg .gal-spread :where(h2:not(.elementor-heading-title),.t-h2):not(cg-x) { position: sticky; top: calc(var(--header-h) + 28px); font: 300 clamp(38px, 4.2vw, 60px)/1.02 var(--serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
body.cg .gal-spread :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 18.5px; line-height: 1.8; color: var(--text); }
body.cg .gal-spread :where(p:not(.elementor-heading-title),.t-p):not(cg-x) + :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 18px; }
body.cg .gal-spread :where(p:not(.elementor-heading-title),.t-p):not(cg-x):first-child::first-letter { float: left; margin: .08em .1em 0 -.02em; font: 300 4.9em/.76 var(--serif); color: var(--ink); }
body.cg .gal-spread :where(a,.t-a):not(cg-x),body.cg  .gal-index :where(a,.t-a):not(cg-x),body.cg  .cat-copy :where(a,.t-a):not(cg-x):not(.btn) { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 4px; }

body.cg .gal-index-band { margin: 0 var(--inset); padding: clamp(64px, 8vw, 104px) 0; border-radius: var(--r-band); background: var(--paper-deep); }
body.cg .gal-index-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(32px, 4vw, 48px); }
body.cg .gal-index-head :where(h2:not(.elementor-heading-title),.t-h2):not(cg-x) { position: sticky; top: calc(var(--header-h) + 28px); font: italic 300 clamp(34px, 3.4vw, 46px)/1.06 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
body.cg .gal-index-head :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 17.5px; line-height: 1.7; color: var(--text); }
body.cg .gal-index-head :where(p:not(.elementor-heading-title),.t-p):not(cg-x) + :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 14px; }
body.cg .gal-index { list-style: none; border-top: 1px solid var(--line-strong); }
/* 7 Nov site review: the five category texts were a text-only list behind a cursor peek; each row now shows its photo
   (ref the Büro and Waka Waka index rows on Mobbin) */
body.cg .gal-index :where(li,.t-li):not(cg-x) { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 52px; gap: 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
body.cg .gi-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: #d9d5cb; }
body.cg .gi-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
body.cg .gal-index :where(li,.t-li):not(cg-x):hover .gi-thumb img { transform: scale(1.06); }
body.cg .gal-index :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { max-width: 52em; font-size: 17px; line-height: 1.7; color: var(--text); }
body.cg .gi-dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.cg .gi-go { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background-color .3s, border-color .3s, color .3s; }
body.cg .gi-go .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
body.cg .gal-index :where(li,.t-li):not(cg-x):hover .gi-go { border-color: var(--ink); background: var(--ink); color: #fff; }
body.cg .gal-index :where(li,.t-li):not(cg-x):hover .gi-go .icon { transform: translateX(2px); }
body.cg .gal-index strong { display: block; margin-bottom: 6px;  font: 400 26px/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); font-weight: 400; }

body.cg .gal-extra { padding: clamp(56px, 7vw, 96px) 0; }
body.cg .gal-extra-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
body.cg .gal-extra-card :where(figure,.t-figure):not(cg-x) { margin: 0; min-height: 420px; }
body.cg .gal-extra-card img { width: 100%; height: 100%; object-fit: cover; }
body.cg .gal-extra-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
body.cg .gal-extra-copy :where(h2:not(.elementor-heading-title),.t-h2):not(cg-x) { font: 300 clamp(36px, 3.6vw, 50px)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .gal-extra-copy :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.kicker) { font-size: 17.5px; line-height: 1.7; color: var(--text); }
body.cg .gal-extra-copy .link-arrow { align-self: flex-start; }

/* category pages */
body.cg .cat-hero { padding-bottom: clamp(56px, 7vw, 96px); }
body.cg .cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
body.cg .cat-copy .kicker { margin-top: clamp(28px, 4vw, 48px); }
body.cg .cat-h1 { margin-top: 14px; font: 300 clamp(64px, 8vw, 124px)/.9 var(--serif); letter-spacing: -0.04em; color: var(--ink); }
body.cg .cat-h1-cap::first-letter { text-transform: uppercase; }
body.cg .cat-h2 { margin-top: 22px; font: 400 clamp(26px, 2.4vw, 34px)/1.12 var(--serif); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
body.cg .cat-lead { max-width: 30em; margin-top: 14px; font-size: 18.5px; line-height: 1.7; color: var(--text); }
body.cg .cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
body.cg .cat-phone { font-size: 16.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
body.cg .cat-phone:hover { text-decoration-color: currentColor; }
body.cg .cat-media { position: relative; margin: 0; }
body.cg .cat-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: #d9d5cb; }
body.cg .cat-media :where(figcaption,.t-figcaption):not(cg-x) { right: 16px; bottom: 16px; }
body.cg .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
body.cg .cat-chips :where(li,.t-li):not(cg-x) { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: var(--ink); }
body.cg .cat-chips :where(i,.t-i):not(cg-x) { width: 14px; height: 14px; border-radius: 50%; background: var(--sw, var(--gold)); }

body.cg .cat-band { margin: 0 var(--inset); padding: clamp(56px, 7vw, 96px) 0; border-radius: var(--r-band); background: var(--paper-deep); }
body.cg .cat-band-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 3.4vw, 40px); }
body.cg .cat-band-title { font: 300 clamp(34px, 3.6vw, 50px)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .cat-band-note { max-width: 26em; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* lantern models: grey cells with the model number set large */
body.cg .models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; border-radius: var(--r-card); overflow: hidden; background: var(--line-strong); }
body.cg .model { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding: 22px 24px 24px; background: var(--card); transition: background-color .35s; }
body.cg .model:hover { background: var(--primrose); }
body.cg .model-tag { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .model-tag :where(i,.t-i):not(cg-x) { width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #f5d27a 0 35%, var(--gold) 60%); transform-origin: 50% 100%; }
body.cg .model-no { font: 300 clamp(72px, 7vw, 104px)/.9 var(--serif); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: lining-nums; }
body.cg .model-no :where(small,.t-small):not(cg-x) { font-size: .32em; letter-spacing: .02em; color: var(--muted); }
body.cg .model-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
body.cg .model-foot :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { font: italic 400 30px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
body.cg .model-foot :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  body.cg .model:hover .model-tag :where(i,.t-i):not(cg-x) { animation: flicker 1.6s ease-in-out infinite; }
}
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08, .94) rotate(-3deg); } 60% { transform: scale(.95, 1.06) rotate(2deg); } }
body.cg .models-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: 18px; padding: 20px 24px; border-radius: var(--r-md); background: var(--card); }
body.cg .models-note :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { max-width: 40em; font-size: 16px; line-height: 1.55; color: var(--text); }

/* spec sheet (poduszki) */
body.cg .spec-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
body.cg .spec-card { padding: 26px 26px 28px; border-radius: var(--r-card); background: var(--card); }
body.cg .spec-card-sand { background: var(--sand); }
body.cg .spec-k { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .spec-list { display: grid; margin-top: 12px; list-style: none; }
body.cg .spec-list :where(li,.t-li):not(cg-x) { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .1); font: 400 24px/1.2 var(--serif); color: var(--ink); }
body.cg .spec-list :where(li,.t-li):not(cg-x):first-child { border-top: 0; }
body.cg .spec-list .icon { width: 22px; height: 22px; color: var(--gold-deep); }
body.cg .stones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; list-style: none; }
body.cg .stones :where(li,.t-li):not(cg-x) { display: flex; align-items: center; gap: 12px; font: 400 21px/1.15 var(--serif); color: var(--ink); }
body.cg .stones :where(i,.t-i):not(cg-x) { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--st); }
body.cg .stones-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* three steps (tablice) */
body.cg .steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; counter-reset: s3; }
body.cg .steps3 :where(li,.t-li):not(cg-x) { position: relative; padding: 26px 24px 28px; border-radius: var(--r-card); background: var(--card); counter-increment: s3; }
body.cg .steps3 :where(li,.t-li):not(cg-x):nth-child(2) { background: var(--mist); }
body.cg .steps3 :where(b,.t-b):not(cg-x) { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink); font-weight: 400; }
body.cg .steps3 :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: block; margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* two-photo gallery (krzyże) */
body.cg .duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
body.cg .duo :where(figure,.t-figure):not(cg-x) { position: relative; margin: 0; }
body.cg .duo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--r-card); }
body.cg .duo :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; left: 14px; bottom: 14px; }
body.cg .duo-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px; border-radius: var(--r-card); background: var(--card); }
body.cg .duo-copy :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 17.5px; line-height: 1.65; color: var(--text); }

/* vases: three short notes */
body.cg .notes3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
body.cg .notes3 :where(li,.t-li):not(cg-x) { padding: 26px 24px 28px; border-radius: var(--r-card); background: var(--card); }
body.cg .notes3 :where(li,.t-li):not(cg-x):nth-child(2) { background: var(--blush); }
body.cg .notes3 .icon { width: 26px; height: 26px; color: var(--gold-deep); }
body.cg .notes3 :where(b,.t-b):not(cg-x) { display: block; margin-top: 36px; font: 400 26px/1.1 var(--serif); color: var(--ink); font-weight: 400; }
body.cg .notes3 :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: block; margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* sibling categories */
body.cg .cat-more { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
body.cg .cat-more-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
body.cg .cat-more-title { font: 300 clamp(32px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .sibs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; }
body.cg .sibs :where(a,.t-a):not(cg-x) { position: relative; display: flex; align-items: flex-end; min-height: 190px; padding: 10px; border-radius: var(--r-md); overflow: hidden; isolation: isolate; background: #d9d5cb; color: var(--ink); text-decoration: none; }
body.cg .sibs img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
body.cg .sibs :where(a,.t-a):not(cg-x):hover img { transform: scale(1.06); }
body.cg .sibs :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: italic 400 19px/1 var(--serif); }

@media (max-width: 1180px) {
  body.cg .sibs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.cg .gal-hero-grid,body.cg  .gal-spread-grid,body.cg  .gal-index-head,body.cg  .gal-extra-card,body.cg  .cat-grid,body.cg  .spec-sheet,body.cg  .duo { grid-template-columns: 1fr; }
  body.cg .gal-spread :where(h2:not(.elementor-heading-title),.t-h2):not(cg-x) { position: static; }
  body.cg .gal-tiles { grid-template-columns: 1fr 1fr; }
  body.cg .gal-tile,body.cg  .gal-tile:nth-child(-n+2) { grid-column: span 1; }
  body.cg .gal-tile :where(a,.t-a):not(cg-x),body.cg  .gal-tile:nth-child(-n+2) :where(a,.t-a):not(cg-x) { min-height: 320px; }
  body.cg .gal-extra-card :where(figure,.t-figure):not(cg-x) { min-height: 280px; }
  body.cg .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cg .model:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.cg .steps3,body.cg  .notes3 { grid-template-columns: 1fr; }
  body.cg .cat-band-head,body.cg  .cat-more-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  body.cg .gal-tiles { grid-template-columns: 1fr; }
  body.cg .gal-hero-media img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  body.cg .gal-index :where(li,.t-li):not(cg-x) { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  body.cg .gi-go { display: none; }
  body.cg .models { grid-template-columns: 1fr 1fr; }
  body.cg .model { min-height: 200px; padding: 18px; }
  body.cg .sibs { grid-template-columns: 1fr 1fr; }
  body.cg .stones { grid-template-columns: 1fr; }
  body.cg .gal-tile-card { flex-wrap: wrap; }
}

/* site audit, 8 Nov, batch C */
/* category heads: the lead and the chips centred under the strip, room before the first band */
body.cg .bh-after .cat-lead { margin-inline: auto; }
body.cg .bh-after .cat-chips { justify-content: center; }
body.cg .bh-cat .bh-strip { padding-bottom: clamp(48px, 6vw, 80px); }
/* the Liternictwo tile: the wide gilding photo, a white card like the five others */
body.cg .gal-tile.gal-tile-service :where(a,.t-a):not(cg-x) { min-height: 320px; }
body.cg .gal-tile-service img { object-position: 60% 46%; }
body.cg .gal-tile-service .gal-tile-card { background: rgba(255, 255, 255, .94); }
/* lantern models, second pass: a smaller number, a drawn lantern, one row per model on phones */
body.cg .model { min-height: 232px; }
body.cg .model-no { font-size: clamp(52px, 4.4vw, 64px); }
body.cg .model-art { position: absolute; right: 24px; top: 50%; width: 46px; height: 76px; translate: 0 -56%; color: var(--gold-deep); opacity: .85; transition: color .35s, translate .5s var(--ease); }
body.cg .model:hover .model-art { color: var(--ink); translate: 0 -60%; }
@media (max-width: 700px) {
  body.cg .models { grid-template-columns: 1fr; }
  body.cg .model,body.cg  .model:last-child:nth-child(odd) { grid-column: auto; display: grid; grid-template-columns: 34px auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 0; padding: 16px 18px; }
  body.cg .model-tag { display: none; }
  body.cg .model-art { order: -1; position: static; width: 34px; height: 56px; translate: none; }
  body.cg .model-no { font-size: 40px; }
  body.cg .model-foot { flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 0; border-top: 0; text-align: right; }
  body.cg .model-foot :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { font-size: 26px; }
  /* the index: the photo above the text, so the original paragraphs keep a readable measure */
  body.cg .gal-index :where(li,.t-li):not(cg-x) { grid-template-columns: 1fr; gap: 14px; }
  body.cg .gi-thumb img { aspect-ratio: 16 / 9; }
}
body.cg .model-foot :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x),body.cg  .model-no { font-variant-numeric: lining-nums; }

/* responsive pass, 22 Nov 2026: the letters photo is a landscape picture on tablets and phones (it stood 1000px tall), the five
   "Inne dodatki" fill two even rows on tablets instead of leaving a hole */
@media (max-width: 980px) {
  body.cg .gal-extra-card :where(figure,.t-figure):not(cg-x) { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (min-width: 701px) and (max-width: 980px) {
  body.cg .sibs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.cg .sibs > * { grid-column: span 2; }
  body.cg .sibs > :nth-child(4):nth-last-child(2),body.cg  .sibs > :nth-child(5):last-child { grid-column: span 3; }
}
/* visual audit, 23 Nov 2026 */
@media (max-width: 700px) {
  /* every category card the same way: name and line, the button under them */
  body.cg .gal-tile-card { flex-direction: column; align-items: flex-start; }
  /* "Inne dodatki": names on one line, an odd last tile across both columns */
  body.cg .sibs :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { white-space: nowrap; font-size: 17px; }
  body.cg .sibs > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
