/* AluPro - realizacje: wpis portfolio (inc/realizacje/realizacje.php) i lista [alupro_realizacje] */

.ax-r, .ax-rl {
	--ax-navy: var(--wp--preset--color--secondary, #0E151F);
	--ax-blue: var(--wp--preset--color--primary, #0D6EFD);
	--ax-grey: var(--wp--preset--color--tertiary, #6C6C77);
	--ax-line: #E2E6EE;
	--ax-soft: #F3F5F9;
	--ax-cien: 0 1px 2px rgba(14, 21, 31, .05), 0 10px 28px -14px rgba(14, 21, 31, .22);
	--ax-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* ---------- wpis ---------- */
.ax-r { padding-top: 28px; }
.ax-r-okr { display: block; margin: 0 0 22px; }
.ax-r-okr span { color: var(--ax-navy); }
.ax-r-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ax-r-media { position: sticky; top: calc(var(--ax-lokal-top, 120px) + 16px); }
.ax-r-media .ax-gal-glowne { aspect-ratio: 4 / 3; }
.ax-r-media .ax-gal-glowne img { width: 100%; height: 100%; object-fit: cover; }
.ax-r-podpis { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ax-grey); }
.ax-r-eyebrow { margin: 0 0 10px; font: 600 12.5px/1.2 var(--ax-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ax-blue); }
.ax-r-tytul { margin: 0 0 22px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; color: var(--ax-navy); font-weight: 600; text-wrap: balance; }

/* metryczka jak tabliczka rysunkowa */
.ax-r-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 26px; border: 1.5px solid var(--ax-navy); border-radius: 4px; overflow: hidden; }
.ax-r-meta > div { padding: 9px 12px 10px; border-right: 1px solid var(--ax-navy); border-bottom: 1px solid var(--ax-navy); margin: -1px -1px 0 0; }
.ax-r-meta dt { font: 500 10.5px/1.2 var(--ax-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ax-grey); margin: 0 0 3px; }
.ax-r-meta dd { margin: 0; font-size: 15.5px; line-height: 1.35; color: var(--ax-navy); font-weight: 500; }

.ax-r-tresc { color: #3A4250; font-size: 17px; line-height: 1.65; max-width: 62ch; }
.ax-r-tresc p { margin: 0 0 14px; }
.ax-r-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ax-r-btn, .ax-r-btn2 { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 500; font-size: 15.5px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.ax-r-btn { background: var(--ax-blue); color: #fff !important; }
.ax-r-btn:hover { background: #0B5ED7; transform: translateY(-1px); }
.ax-r-btn2 { border: 1px solid var(--ax-line); color: var(--ax-navy) !important; background: #fff; }
.ax-r-btn2:hover { border-color: var(--ax-navy); }
.ax-r-dozdj { display: inline-block; margin-top: 16px; font-size: 14.5px; color: var(--ax-grey) !important; text-decoration: none; border-bottom: 1px solid var(--ax-line); }
.ax-r-dozdj:hover { color: var(--ax-navy) !important; border-color: var(--ax-navy); }

/* miniatury: scisle na wlasnym stylu (Radius Portfolio i motyw lubia stylowac kazdy button) */
.ax-r .ax-gal-t { background: var(--ax-soft); padding: 0; border: 2px solid transparent; box-shadow: none; }
.ax-r .ax-gal-t.on { border-color: var(--ax-navy); }
.ax-r .ax-gal-t:focus-visible { outline: 2px solid var(--ax-blue); outline-offset: 2px; }
.ax-gal-min-skrot li:nth-child(n+8):not(.ax-gal-wiecej) { display: none; }
.ax-gal-wiecej a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--ax-navy); color: #fff !important; font: 600 15px/1 var(--ax-mono); text-decoration: none; transition: background-color .2s; }
.ax-gal-wiecej a:hover { background: var(--ax-blue); }

/* "Na zdjeciach" - spis podpisow dla wpisow bez tekstu */
.ax-r-naz { margin: 0 0 4px; }
.ax-r-naz-t { margin: 0 0 10px; font: 500 11px/1.2 var(--ax-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ax-grey); }
.ax-r-naz ol { list-style: none; margin: 0; padding: 0; counter-reset: naz; border-left: 1.5px solid var(--ax-line); }
.ax-r-naz li { margin: 0; counter-increment: naz; }
.ax-r-naz button { display: flex; gap: 12px; align-items: baseline; width: 100%; margin: 0 0 0 -1.5px; padding: 7px 0 7px 16px; border: 0; border-left: 1.5px solid transparent; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 15.5px; line-height: 1.4; text-align: left; color: #3A4250; cursor: pointer; transition: color .2s, border-color .2s; }
.ax-r-naz button::before { content: counter(naz, decimal-leading-zero); flex: none; font: 500 12px/1.4 var(--ax-mono); color: var(--ax-grey); transition: color .2s; }
.ax-r-naz button:hover { color: var(--ax-navy); }
.ax-r-naz button[aria-current="true"] { color: var(--ax-navy); border-left-color: var(--ax-blue); }
.ax-r-naz button[aria-current="true"]::before { color: var(--ax-blue); }
.ax-r-naz button:focus-visible { outline: 2px solid var(--ax-blue); outline-offset: 2px; }

/* siatka wszystkich zdjec */
.ax-r-fot { margin-top: 72px; scroll-margin-top: calc(var(--ax-hdr, 100px) + 16px); }
.ax-r-fot h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 20px; color: var(--ax-navy); font-size: 28px; }
.ax-r-fot h2 small { font: 500 12px/1 var(--ax-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ax-grey); }
.ax-r-fot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }
.ax-r-fot li { margin: 0; }
.ax-r-fot figure { margin: 0; }
.ax-r-fot-z { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--ax-soft); box-shadow: var(--ax-cien); cursor: zoom-in; }
.ax-r-fot-z img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ax-r-fot-z:hover img { transform: scale(1.04); }
.ax-r-fot-z:focus-visible { outline: 2px solid var(--ax-blue); outline-offset: 3px; }
.ax-r-fot figcaption { margin: 9px 2px 0; font-size: 14.5px; line-height: 1.4; color: #3A4250; }
.ax-r-fot figcaption.ax-r-fot-pow { display: none; }
.ax-r-fot-anim li { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 60ms); }
.ax-r-fot-anim li.wid { opacity: 1; transform: none; }

/* podpis w lightboxie */
.ax-real-body .ax-lb img { max-height: 82vh; }
.ax-lb-podpis { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; max-width: min(90vw, 760px); padding: 8px 14px; border-radius: 8px; background: rgba(14, 21, 31, .75); color: #fff; font-size: 14.5px; line-height: 1.4; text-align: center; }

.ax-r-inne { margin-top: 80px; }
.ax-r-inne h2 { color: var(--ax-navy); font-size: 28px; margin: 0 0 20px; }

/* ---------- lista ---------- */
.ax-rl { margin: 10px 0 40px; }
.ax-rl-staty { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid var(--ax-line); }
.ax-rl-staty b { display: block; font-size: 40px; line-height: 1; color: var(--ax-navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.ax-rl-staty span { font-size: 14px; color: var(--ax-grey); }
.ax-rl-filtry { display: grid; gap: 10px; margin: 0 0 28px; }
.ax-rl-gr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ax-rl-gr-n { font: 500 11px/1 var(--ax-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ax-grey); min-width: 104px; }
.ax-rl-f { font: inherit; font-size: 14px; line-height: 1; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--ax-line); background: #fff; color: var(--ax-navy); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, opacity .15s; }
.ax-rl-f:hover { border-color: var(--ax-navy); }
.ax-rl-f[aria-pressed="true"] { background: var(--ax-navy); border-color: var(--ax-navy); color: #fff; }
.ax-rl-f[aria-disabled="true"] { opacity: .38; cursor: default; }
.ax-rl-n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.ax-rl-f:focus-visible { outline: 2px solid var(--ax-blue); outline-offset: 2px; }

.ax-rl-siatka { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ax-rl-k { margin: 0; will-change: transform; }
.ax-rl-k[hidden] { display: none; }
.ax-rl-k a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border: 1px solid var(--ax-line); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: var(--ax-cien); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.ax-rl-k a:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(14, 21, 31, .45); }
.ax-rl-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ax-soft); overflow: hidden; }
.ax-rl-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ax-rl-k a:hover .ax-rl-img img { transform: scale(1.05); }
.ax-rl-tag { position: absolute; left: 12px; top: 12px; background: rgba(14, 21, 31, .78); color: #fff; font: 500 11px/1 var(--ax-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.ax-rl-szkic { position: absolute; right: 12px; top: 12px; background: #B45A09; color: #fff; font: 500 11px/1 var(--ax-mono); text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.ax-rl-tx { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.ax-rl-tx b { color: var(--ax-navy); font-weight: 600; font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ax-rl-tx small { color: var(--ax-grey); font-size: 13.5px; }
.ax-rl-pusto { margin: 24px 0 0; color: var(--ax-grey); }

/* wejscie kart (klasa dodawana skryptem; bez skryptu karty stoja na miejscu) */
.ax-rl-anim .ax-rl-k { animation: ax-rl-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ax-rl-in { from { transform: translateY(14px); opacity: .25; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
	.ax-r-hero { grid-template-columns: 1fr; gap: 28px; }
	.ax-r-media { position: static; }
	.ax-rl-gr-n { min-width: 100%; }
}
@media (max-width: 520px) {
	.ax-r-meta { grid-template-columns: 1fr; }
	.ax-r-fot ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
	.ax-r-fot figcaption { font-size: 13px; }
	.ax-rl-staty b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.ax-rl-anim .ax-rl-k { animation: none; }
	.ax-rl-k a, .ax-rl-img img, .ax-r-btn, .ax-r-fot-z img, .ax-r-fot-anim li { transition: none; }
}
