/* wspólny wygląd podstron (kopie z jandabrowski.com) — ten sam ciemny styl co kula */
:root {
  --tlo-srodek: #1e1e1e;
  --tlo-brzeg: #080808;
  --tekst: #f2f2f2;
  --przygaszony: rgba(255,255,255,0.55);
  --linia: rgba(255,255,255,0.35);
  --szer: 1080px;
  --odstep: clamp(20px, 3.4vw, 52px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--tlo-brzeg); }
/* kolor projektu = kolor jego trasy na kuli; tło to ten sam kulisty gradient co na stronie głównej,
   tylko środek lekko zabarwiony (na tyle słabo, żeby tekst dalej był czytelny) */
/* kolor = kolor poświaty miniatury na kuli (KOLORY_OKLADEK / RODZAJE w index.html — trzymać zgodnie z PODSTRONY_KOLOR) */
body { --akcent: #ffffff; --barwa: 0%; }
body.podstrona-transafrica { --akcent: #ff7a2e; --barwa: 24%; }
body.podstrona-wischla     { --akcent: #ff2e3e; --barwa: 24%; }
body.podstrona-odratowac   { --akcent: #ff9a2e; --barwa: 24%; }
body.podstrona-tablice     { --akcent: #5fe07a; --barwa: 24%; }
body.galeria-silkway       { --akcent: #ffc94a; --barwa: 24%; }
body.galeria-indie         { --akcent: #d1a77a; --barwa: 24%; }
body.galeria-rosja         { --akcent: #b45cff; --barwa: 24%; }
body.podstrona-vanishing-architecture { --akcent: #ff8a1e; --barwa: 24%; }
body.podstrona-poster      { --akcent: #ff2a6d; --barwa: 24%; }
body.podstrona-objects     { --akcent: #7ed957; --barwa: 24%; }
body.podstrona-clothes     { --akcent: #c86bff; --barwa: 24%; }
body.podstrona-wystawy     { --akcent: #f2f2f2; --barwa: 9%; }
/* treść wchodzi łagodnie — tło już jest (płynne przejście z kuli) */
@keyframes wejscie-tresci { from { opacity: 0; transform: translateY(8px); } }
.naglowek, .tresc, .stopka { animation: wejscie-tresci .7s ease both; }
.tresc { animation-delay: .08s; }
body {
  --tlo-srodek-k: color-mix(in srgb, var(--akcent) var(--barwa), #161616);
  --tlo-brzeg-k: color-mix(in srgb, var(--akcent) calc(var(--barwa) / 5), #050505);
  margin: 0; min-height: 100vh; color: var(--tekst);
  background: radial-gradient(ellipse at 50% 45%, var(--tlo-srodek-k) 0%, var(--tlo-brzeg-k) 75%) fixed;
  background-color: var(--tlo-brzeg);
  font-family: "Futura PT", "FuturaPT-Book", Futura, "Jost", sans-serif; font-weight: 400;
  font-size: 16px; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--linia); transition: border-color .2s, text-shadow .2s; }
a:hover { border-color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.45); }

/* nagłówek */
.naglowek { padding: max(4vh, env(safe-area-inset-top)) 16px 0; text-align: center; }
.logo {
  display: inline-block; border: 0;
  font-family: "Futura PT Heavy", "FuturaPT-HeavyObl", "Futura PT", Futura, "Jost", sans-serif;
  font-style: italic; font-weight: 800; font-size: clamp(34px, 6.2vmin, 78px); letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 0 8px rgba(255,255,255,0.45), 0 0 26px rgba(255,255,255,0.18), 0 0 18px rgba(0,0,0,0.85);
}
.logo:hover { text-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.3); }
.logo { line-height: 0; }
.logo img { height: clamp(56px, 8vmin, 96px); width: auto; transition: filter .2s;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.45)) drop-shadow(0 0 18px rgba(255,255,255,0.18)); }
.logo:hover img { filter: drop-shadow(0 0 8px rgba(255,255,255,0.7)) drop-shadow(0 0 24px rgba(255,255,255,0.3)); }
.menu {
  max-width: var(--szer); margin: clamp(14px, 2.6vh, 28px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.menu a { border: 0; color: var(--przygaszony); }
.menu a:hover, .menu a.tu { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.5); }
/* slogan pod logo (zamiast menu) — jak hasło na stronie głównej */
.slogan { margin: clamp(8px, 1.4vh, 14px) auto 0; font-size: clamp(11px, 0.85vw, 13px); letter-spacing: 0.02em; line-height: 1.35;
  color: #fff; text-shadow: 0 0 14px rgba(0,0,0,0.9); }

/* zdjęcia przycięte do 16:9 (kadr ustawiany object-position) */
.tresc img.kadr169 { aspect-ratio: 16 / 9; object-fit: cover; height: auto; }

/* dwie kolumny: prawa (kilka zdjęć) rozciągnięta do wysokości lewej */
@media (min-width: 700px) {
  .wp-block-columns.rowne { align-items: stretch; }
  .wp-block-columns.rowne figure { margin: 0; }
  .wp-block-columns.rowne > .wp-block-column:last-child { display: flex; flex-direction: column; gap: var(--odstep); }
  .wp-block-columns.rowne > .wp-block-column:last-child figure { flex: 1 1 0; min-height: 0; }
  .wp-block-columns.rowne > .wp-block-column:last-child a { display: block; height: 100%; }
  .wp-block-columns.rowne > .wp-block-column:last-child img { width: 100%; height: 100%; object-fit: cover; }
}

/* Ubrania: 4 w rzędzie (2 na telefonie) */
.wp-block-columns.cztery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 700px) { .wp-block-columns.cztery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* posty z LinkedIna osadzone w Blogu */
.posty-li { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin: 24px 0; }
.tresc a.post-k { display: flex; flex-direction: column; border: 0; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.04); box-shadow: 0 0 0 1px rgba(255,255,255,0.08); transition: box-shadow .2s, background .2s; }
.tresc a.post-k:hover { background: rgba(255,255,255,0.07); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 0 18px rgba(255,255,255,0.12); text-shadow: none; }
.tresc a.post-k img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.post-t { padding: 12px 14px 4px; font-size: 17px; line-height: 1.25; font-style: italic; }
.post-z { padding: 2px 14px 8px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.7); flex: 1; }
.post-l { padding: 0 14px 12px; font-size: 12px; color: var(--przygaszony); }
.insta { max-width: 420px; height: 700px; margin: 0 auto 24px; border-radius: 6px; overflow: hidden; background: #fff; }
.insta iframe { width: 100%; height: 100%; border: 0; display: block; }
.kraj { color: var(--przygaszony); }
.rawa-rzad { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--odstep); }
.rawa-rzad p { margin: 0; }
.film-yt.rawa-film { aspect-ratio: auto; height: 100%; min-height: 220px; margin: 0; }
@media (max-width: 700px) { .rawa-rzad { grid-template-columns: 1fr; } .film-yt.rawa-film { aspect-ratio: 16 / 9; height: auto; } }
.rawa-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rawa-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.yt-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0 0 24px; }
.tresc a.yt-k { border: 0; display: block; }
.tresc a.yt-k img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-k span { display: block; font-size: 13px; line-height: 1.35; margin-top: 6px; color: rgba(255,255,255,0.85); }
.film-yt.album-film { max-width: 760px; margin: 0 auto 28px; }

/* rozwijane sekcje (Blog / Szczegóły) */
details.rozwin > summary { cursor: pointer; padding: 6px 0; }
details.rozwin > summary:hover { text-shadow: 0 0 8px rgba(255,255,255,0.45); }
details.rozwin[open] > summary { margin-bottom: 16px; }
details.rozwin > :not(summary) { font-size: 16px; line-height: 1.55; }
details.rozwin .fazy details > summary { cursor: pointer; padding: 6px 0; font-size: clamp(17px, 1.6vw, 20px); }

/* treść */
.tresc { max-width: var(--szer); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 16px 40px; }
.tytul {
  margin: 0 0 clamp(24px, 4vh, 44px); text-align: center; font-weight: 400; font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.01em;
  text-shadow: 0 0 6px color-mix(in srgb, var(--akcent) 55%, transparent), 0 0 20px color-mix(in srgb, var(--akcent) 30%, transparent);
}
.tresc p { margin: 0 0 0.9em; }
.tresc p[style] { color: rgba(255,255,255,0.82); }
.tresc ul, .tresc ol { margin: 0 0 1em; padding-left: 1.2em; }
.tresc li { margin: 0.25em 0; }
.tresc ul li::marker { content: "+  "; color: var(--przygaszony); }
.has-large-font-size, .has-x-large-font-size { font-size: clamp(22px, 2.4vw, 30px) !important; line-height: 1.25; margin-top: 0.6em !important; }
.has-medium-font-size { font-size: clamp(17px, 1.6vw, 20px) !important; line-height: 1.3; margin: 0.9em 0 0.4em !important; }
.has-small-font-size { font-size: 13px !important; }
.has-text-align-center { text-align: center; }
.tresc strong { font-weight: 600; }

/* kolumny WordPressa → siatka */
.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--odstep); margin: 0 0 var(--odstep); align-items: start; }
.wp-block-column > :first-child { margin-top: 0 !important; }
.wp-block-spacer { height: 20px !important; }

/* obrazy */
.tresc figure { margin: 0 0 1em; }
.tresc img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.wp-block-image img { width: 100%; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tresc a:has(img) { border: 0; display: block; }
.tresc a:has(img):hover img { box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 0 18px rgba(255,255,255,0.18); }
figcaption { font-size: 12px; color: var(--przygaszony); margin-top: 6px; }

/* film YouTube — z poświatą jak portret */
.film-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 12px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--akcent) 30%, transparent), 0 0 8px 1px color-mix(in srgb, var(--akcent) 40%, transparent),
              0 0 22px 4px color-mix(in srgb, var(--akcent) 14%, transparent); }
.film-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* przyciski WP */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1em; }
.wp-block-button__link { display: inline-block; padding: 8px 18px; border: 1px solid var(--linia) !important; border-radius: 999px; background: none !important; color: #fff !important; }
.wp-block-separator { border: 0; border-top: 1px solid rgba(255,255,255,0.15); margin: 2em 0; }
.wp-block-quote { margin: 1em 0; padding-left: 16px; border-left: 1px solid var(--linia); font-style: italic; }

/* stopka */
.stopka { text-align: center; padding: 20px 16px 48px; font-size: 13px; font-style: italic; letter-spacing: 0.04em; }
.stopka a { border: 0; color: var(--przygaszony); }
.stopka a:hover { color: #fff; }

@media (max-width: 820px) {
  .menu { gap: 4px 12px; font-size: 11px; }
}

/* osadzone posty (Instagram, Pinterest) */
.osadzone { margin: 0 0 18px; }
.osadzone-insta iframe { display: block; width: 100%; max-width: 420px; height: 720px; border: 0; border-radius: 8px; background: #fff; }
.osadzone-pinterest { min-height: 200px; }
.osadzone-pinterest > span { max-width: 100% !important; border-radius: 8px; }
/* obrazki 1:1 (kwadraty) */
.kwadrat img { width: 100%; height: auto !important; aspect-ratio: 1; object-fit: cover; }

/* przycisk powrotu do globu (lewy górny róg) */
.wroc-glob {
  position: fixed; z-index: 30; top: max(14px, env(safe-area-inset-top)); left: 14px;
  padding: 7px 15px 8px; border: 0; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: box-shadow .2s, background .2s; animation: wejscie-tresci .7s ease both;
}
.wroc-glob:hover { background: rgba(0,0,0,0.55); text-shadow: 0 0 10px rgba(255,255,255,0.6); }

/* okładka filmu zamiast odtwarzacza (YouTube blokuje osadzanie tego filmu) */
.yt-okladka { position: absolute; inset: 0; display: block; border: 0; background: #000; }
.yt-okladka img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.yt-okladka:hover img { opacity: 1; }
.yt-okladka .graj { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: #ff0033; }
.yt-okladka .graj::after { content: ""; position: absolute; left: 31px; top: 16px; border-left: 20px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
