/* zakravsky.cz — Into the Wild · varianta C „Panorama“
   Každá stránka fotky nastavuje na .page: --bg, --accent, --ar (poměr stran fotky)
   a třídy skin-dark | skin-light, fmt-landscape | fmt-portrait; tl-l / tl-r = světlý levý / pravý
   horní roh fotky (tmavé logo / tmavé Menu přes fotku na desktopu). */

:root {
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Quicksand, 'Trebuchet MS', 'Segoe UI', sans-serif;
  --pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #000C21; }
img { display: block; }
[hidden] { display: none !important; }

.page {
  --bg: #000C21;
  --accent: #E3B585;
  --ar: 1.5;
  --fg: #fff;
  --soft: rgba(255, 255, 255, 0.88);
  --mute: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.62);
  --hair: rgba(255, 255, 255, 0.18);
  --on-l: #fff;
  --on-r: #fff;
  --scrim-l: var(--bg);
  --scrim-r: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.page.skin-light {
  --fg: #2B2A3A;
  --soft: rgba(43, 42, 58, 0.9);
  --mute: rgba(43, 42, 58, 0.78);
  --faint: rgba(43, 42, 58, 0.74);
  --hair: rgba(43, 42, 58, 0.2);
}
.page.tl-l { --on-l: #2B2A3A; --scrim-l: transparent; }
.page.tl-r { --on-r: #2B2A3A; --scrim-r: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page a { color: inherit; text-decoration: none; }
.page a:hover { color: var(--accent); }
.page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- hlavička ---------- */
.hdr {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 12px 0 24px;
}
.logo { display: flex; align-items: center; height: 44px; }
.logo img { width: 158px; height: auto; }
.skin-light .logo img { filter: brightness(0); opacity: 0.84; }
.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: 400 20px/1 var(--serif);
  cursor: pointer;
}
.menu-btn svg { flex: none; }

/* ---------- lokalita a pořadí ---------- */
.meta {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad) 18px;
}
.meta .place { color: var(--accent); }
.meta .idx { color: var(--mute); white-space: nowrap; }

/* ---------- fotka ---------- */
.stage { position: relative; flex: none; }
.pan {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.pan::-webkit-scrollbar { display: none; }
.pan img {
  --h: min(62vh, 560px);
  --h: min(62svh, 560px);
  /* fotka má vždy aspoň výšku --h; když by při ní byla užší než displej, roztáhne se na šířku */
  height: max(var(--h), calc(100vw / var(--ar)));
  width: auto;
  max-width: none;
  aspect-ratio: var(--ar);
}
.fmt-portrait .pan { display: flex; justify-content: center; }
.fmt-portrait .pan img {
  width: min(100vw, calc(88vh * var(--ar)));
  width: min(100vw, calc(88svh * var(--ar)));
  height: auto;
}
.full-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
}
.panbar { display: none; flex: none; flex-direction: column; gap: 14px; padding: 18px var(--pad) 0; }
.stage.is-pannable + .panbar { display: flex; }
.track { position: relative; height: 2px; background: var(--hair); }
.thumb { position: absolute; top: 0; left: 0; width: 40%; height: 2px; background: var(--accent); }
.hint { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--mute); }

@media (min-width: 600px) {
  .fmt-landscape .pan img { height: calc(100vw / var(--ar)); }
}

/* ---------- nadpis, text, citát ---------- */
.plaque { flex: none; display: flex; flex-direction: column; gap: 24px; padding: 44px var(--pad) 0; }
.plaque h1 {
  margin: 0;
  font: 300 clamp(44px, 15.4vw, 60px)/0.98 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead { margin: 0; font-weight: 300; color: var(--soft); text-wrap: pretty; }
.skin-light .lead { font-weight: 400; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 0;
  padding: 36px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.quote blockquote { margin: 0; font: italic 300 31px/1.22 var(--serif); text-wrap: balance; }
.skin-light .quote blockquote { font-weight: 400; }
.quote figcaption { color: var(--accent); letter-spacing: 0.28em; }

/* ---------- další fotka a patička ---------- */
.next { margin-top: auto; display: flex; flex-direction: column; gap: 20px; padding: 32px var(--pad) 28px; }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.next-link .txt { display: flex; flex-direction: column; gap: 8px; }
.next-link .label { color: var(--accent); letter-spacing: 0.22em;; white-space: nowrap; }
.next-link .t { font: 300 34px/1.05 var(--serif); }
.next-link svg { flex: none; }
.foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}
.foot a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--soft); }

/* ---------- menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
}
.menu .hdr { color: var(--fg); }
.menu nav { display: flex; flex-direction: column; gap: 8px; padding: 16px var(--pad) 48px; }
.menu .m1 { display: flex; align-items: center; min-height: 56px; font: 300 44px/1.1 var(--serif); }
.menu .m-sub { display: flex; flex-direction: column; margin: 0 0 12px; padding: 0; list-style: none; }
.menu .m-sub a { display: flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 1.35; color: var(--soft); }
.menu .m-head { margin-top: 8px; color: var(--accent); }

/* ---------- celá obrazovka ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox .full-btn { top: 12px; right: 12px; bottom: auto; }
.zk-lock { overflow: hidden; }

/* ================= desktop: fotka na šířku ================= */
@media (min-width: 900px) {
  :root { --pad: clamp(40px, 5vw, 72px); }
  .label { font-size: 13px; letter-spacing: 0.28em; }
  .hdr { height: 108px; padding: 0 calc(var(--pad) - 12px) 0 var(--pad); }
  .logo img { width: 220px; }
  .menu-btn { font-size: 24px; }
  .menu nav { padding: 24px var(--pad) 64px; max-width: 900px; }

  .over-top > .hdr { position: absolute; top: 0; left: 0; right: 0; color: var(--on-r); }
  .over-top > .hdr .logo img { filter: none; opacity: 1; }
  .over-top.tl-l > .hdr .logo img { filter: brightness(0); opacity: 0.84; }
  .fmt-landscape .stage { order: -1; }
  .over-top .scrim-host { position: relative; }
  .over-top .scrim-host::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 1;
    height: 260px;
    background:
      radial-gradient(ellipse 60% 100% at 0 0, var(--scrim-l), transparent 72%),
      radial-gradient(ellipse 60% 100% at 100% 0, var(--scrim-r), transparent 72%);
    opacity: 0.62;
    pointer-events: none;
  }
  .fmt-landscape .pan { overflow: hidden; }
  .fmt-landscape .pan img { width: 100%; height: auto; cursor: zoom-in; }
  .fmt-landscape .panbar { display: none !important; }
  .fmt-landscape .full-btn { right: calc(var(--pad) - 12px); bottom: 20px; }
  .fmt-landscape .meta { padding: 28px var(--pad) 0; }
  .fmt-landscape .plaque {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 40px;
    align-items: start;
    padding: 52px var(--pad) 64px;
  }
  .fmt-landscape .plaque h1 { grid-column: 1 / -1; font-size: clamp(56px, 6.1vw, 88px); line-height: 0.95; letter-spacing: -0.015em; }
  .fmt-landscape .lead { grid-column: 1 / span 7; }
  .fmt-landscape .quote { grid-column: 9 / span 4; margin: 0; padding: 0; border: 0; }
  .fmt-landscape .quote blockquote { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; }

  .next {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 180px;
    margin: auto var(--pad) 0;
    padding: 24px 0;
    border-top: 1px solid var(--hair);
  }
  .next-link { gap: 36px; }
  .next-link .txt { align-items: flex-end; text-align: right; }
  .next-link .label { letter-spacing: 0.26em; }
  .next-link .t { font-size: 48px; }
  .fmt-landscape .next-link .t, .gal .next-link .t { white-space: nowrap; }
  .next .foot { min-width: 0; }
  .foot { gap: 10px; padding: 0; border: 0; font-size: 14px; }
  .foot a { font-size: 16px; }
}
@media (min-width: 1200px) {
  .fmt-landscape .plaque h1 { grid-column: 1 / span 4; margin-top: -10px; }
  .fmt-landscape .lead { grid-column: 5 / span 4; }
  .fmt-landscape .quote { grid-column: 10 / span 3; }
}

/* ================= desktop: fotka na výšku ================= */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .fmt-portrait {
    --l: clamp(48px, 6.5vw, 96px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 108px 1fr auto auto 1fr auto;
  }
  .fmt-portrait > .hdr { position: absolute; top: 0; left: 0; right: 0; padding-left: 48px; color: var(--fg); }
  .fmt-portrait > .hdr .logo img { filter: none; opacity: 1; }
  .fmt-portrait.tl-l > .hdr .logo img { filter: brightness(0); opacity: 0.84; }
  .fmt-portrait .stage {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100svh;
    aspect-ratio: var(--ar);
  }
  .fmt-portrait .stage::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 1;
    height: 220px;
    background: radial-gradient(ellipse 100% 100% at 0 0, var(--scrim-l), transparent 72%);
    opacity: 0.6;
    pointer-events: none;
  }
  .fmt-portrait .pan { display: block; height: 100%; overflow: hidden; }
  .fmt-portrait .pan img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
  .fmt-portrait .panbar { display: none !important; }
  .fmt-portrait .meta { grid-column: 2; grid-row: 3; padding: 0 var(--pad) 0 var(--l); }
  .fmt-portrait .plaque { grid-column: 2; grid-row: 4; gap: 36px; padding: 36px var(--pad) 36px var(--l); }
  .fmt-portrait .plaque h1 { font-size: clamp(56px, 7.2vw, 104px); line-height: 0.92; letter-spacing: -0.015em; }
  .fmt-portrait .lead { max-width: 520px; }
  .fmt-portrait .quote { gap: 18px; margin: 0; padding: 32px 0 0; border-bottom: 0; }
  .fmt-portrait .quote blockquote { max-width: 600px; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.2; }
  .fmt-portrait .next { grid-column: 2; grid-row: 6; flex-direction: column; align-items: stretch; gap: 16px; min-height: 0; margin: 0 var(--pad) 0 var(--l); padding: 20px 0 24px; }
  .fmt-portrait .next-link { justify-content: space-between; }
  .fmt-portrait .next-link .txt { align-items: flex-start; text-align: left; }
  .fmt-portrait .next-link { gap: 28px; }
  .fmt-portrait .next-link .t { font-size: 40px; }
  .fmt-portrait .foot { gap: 4px; font-size: 13px; }
  .fmt-portrait .foot a { font-size: 15px; }
}

@media (min-width: 1300px) and (min-aspect-ratio: 5/4) {
  .fmt-portrait .next { flex-direction: row-reverse; align-items: center; gap: 32px; min-height: 132px; padding: 0; }
  .fmt-portrait .next-link .txt { align-items: flex-end; text-align: right; }
  .fmt-portrait .next-link { flex: none; }
  .fmt-portrait .next-link .t { white-space: nowrap; }
}

/* ================= výpis galerie ================= */
.gal-head { display: flex; flex-direction: column; gap: 18px; padding: 20px var(--pad) 44px; }
.gal-head h1 { margin: 0; font: 300 clamp(56px, 19vw, 84px)/0.92 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.gal-head .sub { margin: 0; font: italic 300 26px/1.2 var(--serif); color: var(--accent); text-wrap: balance; }
.skin-light .gal-head .sub { font-weight: 400; }
.gal-head .lead { max-width: 680px; margin-top: 8px; }
.lead p { margin: 0; }
.lead p + p { margin-top: 1em; }
.grid { display: flex; flex-direction: column; gap: 40px; margin: 0; padding: 0; list-style: none; }
.tile { display: block; }
.tile img { width: 100%; height: auto; background: var(--tile, rgba(0, 0, 0, 0.1)); transition: opacity 0.3s; }
.tile:hover img { opacity: 0.86; }
.tile .cap { display: flex; flex-direction: column; gap: 6px; padding: 14px var(--pad) 0; }
.tile .n { font: 300 30px/1.05 var(--serif); }
.tile .label { color: var(--mute); }
.gal .next { margin-top: 56px; }
@media (min-width: 600px) {
  .grid { display: block; columns: 2; column-gap: 24px; padding: 0 var(--pad); }
  .grid li { break-inside: avoid; margin-bottom: 40px; }
  .tile .cap { padding: 12px 0 0; }
  .tile .n { font-size: 28px; }
}
@media (min-width: 900px) {
  .gal-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 18px; align-items: end; padding: 40px var(--pad) 80px; }
  .gal-head h1 { grid-column: 1 / span 7; font-size: clamp(88px, 10vw, 150px); }
  .gal-head .sub { grid-column: 1 / span 7; font-size: 32px; }
  .gal-head .lead { grid-column: 8 / span 5; grid-row: 1 / span 2; margin: 0; }
  .gal .next { margin-top: 80px; }
}
@media (min-width: 1100px) {
  .grid { columns: 3; column-gap: 32px; }
}

/* ================= úvodní stránka ================= */
.feat { display: flex; flex-direction: column; gap: 48px; }
.feat-card { display: flex; flex-direction: column; }
.feat-card img { width: 100%; height: auto; }
.feat-card .ph { display: block; position: relative; }
.feat-txt { display: flex; flex-direction: column; gap: 8px; padding: 18px var(--pad) 0; }
.feat-txt .t { font: 300 44px/1 var(--serif); letter-spacing: -0.01em; }
.feat-txt .s { font-weight: 300; line-height: 1.5; color: var(--soft); }
.more { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.home .quote { align-items: center; margin: 72px var(--pad); padding: 48px 0; text-align: center; }
.home .quote blockquote { max-width: 900px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.15; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad); }
.strip::-webkit-scrollbar { display: none; }
.strip a, .strip span { flex: none; scroll-snap-align: center; }
.strip img { width: auto; height: clamp(200px, 34vw, 340px); }
.promo { margin: 56px var(--pad) 0; text-align: center; font-weight: 300; color: var(--soft); }
.promo a, .doc p a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.page > .foot { margin-top: auto; padding: 48px var(--pad) 28px; border: 0; text-align: center; }
@media (min-width: 900px) {
  .feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 96px; }
  .feat-card.hero { grid-column: 1 / -1; position: relative; }
  .feat-card.hero img { height: min(100vh, calc(100vw / var(--ar))); height: min(100svh, calc(100vw / var(--ar))); object-fit: cover; }
  .feat-card.hero .feat-txt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    gap: 12px;
    padding: 140px var(--pad) 56px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 82%, transparent));
  }
  .feat-card.hero .t { font-size: clamp(88px, 10vw, 150px); line-height: 0.9; }
  .feat-card.hero .s { font-size: 19px; }
  .feat-card.c2 { grid-column: 1 / span 5; padding-left: var(--pad); }
  .feat-card.c3 { grid-column: 6 / span 7; padding-right: var(--pad); }
  .feat-card.c2 img, .feat-card.c3 img { height: clamp(420px, 46vw, 700px); object-fit: cover; }
  .feat-card.c2 .feat-txt, .feat-card.c3 .feat-txt { padding: 22px 0 0; }
  .feat-card.c2 .t, .feat-card.c3 .t { font-size: 64px; }
  .home .quote { margin: 120px var(--pad); }
}

/* ================= textové stránky: autor, kontakt ================= */
.doc-hero img { width: 100%; height: auto; }
.doc { display: flex; flex-direction: column; gap: 24px; padding: 40px var(--pad) 0; }
.doc h1 { margin: 0; font: 300 clamp(48px, 15vw, 64px)/0.98 var(--serif); letter-spacing: -0.01em; }
.doc h2 { margin: 24px 0 0; font: 400 32px/1.1 var(--serif); }
.doc p { max-width: 680px; margin: 0; font-weight: 300; color: var(--soft); text-wrap: pretty; }
.skin-light .doc p { font-weight: 400; }
.doc .intro { max-width: 900px; font: 300 26px/1.35 var(--serif); color: var(--fg); }
.skin-light .doc .intro { font-weight: 400; }
.doc-figs { display: flex; flex-direction: column; gap: 12px; margin: 24px calc(var(--pad) * -1); }
.doc-figs figure { margin: 0; }
.doc-figs img { width: 100%; height: auto; }
.doc .quote { margin-top: 32px; }
.contact h1 { font-size: clamp(32px, 8.6vw, 52px); line-height: 1.08; text-wrap: balance; }
.contact-img { display: block; margin: 8px calc(var(--pad) * -1); }
.contact-img img { width: 100%; height: auto; }
.form { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.form p { max-width: none; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mute);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
}
.form textarea { min-height: 180px; resize: vertical; }
.form input[type="submit"] {
  min-height: 52px;
  padding: 0 36px;
  border: 0;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.form input[type="submit"]:hover { background: var(--accent); }
.wpcf7-response-output { padding: 14px 16px; border: 1px solid var(--accent); font-size: 15px; line-height: 1.5; }
.wpcf7-response-output:empty { display: none; }
.form.failed .wpcf7-response-output { border-color: #A12B2B; color: #A12B2B; }
@media (min-width: 900px) {
  .doc-hero img { max-height: 88vh; max-height: 88svh; object-fit: cover; }
  .doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; padding: 72px var(--pad) 0; }
  .doc h1 { grid-column: 1 / -1; font-size: clamp(72px, 8vw, 120px); }
  .doc h2 { grid-column: 1 / span 4; margin: 0; }
  .doc > p, .doc > .quote { grid-column: 5 / span 7; }
  .doc > .intro { grid-column: 1 / span 10; margin-bottom: 32px; font-size: 34px; }
  .doc-figs { grid-column: 1 / -1; flex-direction: row; gap: 24px; margin: 40px 0; }
  .doc-figs figure { flex: var(--ar) 1 0; min-width: 0; }
  .doc > .quote { margin-top: 40px; }
  .contact { padding-top: 40px; }
  .contact h1 { grid-column: 1 / span 6; font-size: clamp(36px, 3.6vw, 52px); }
  .contact h2 { grid-column: 1 / span 6; margin-top: 24px; }
  .contact .form-wrap { grid-column: 1 / span 6; }
  .contact-img { grid-column: 8 / span 5; grid-row: 1 / span 3; margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .menu, .lightbox { animation: zk-in 0.25s ease-out; }
  @keyframes zk-in { from { opacity: 0; } to { opacity: 1; } }
}
