/* ══════════════════════════════════════════
   Jan Liška — Fotograf  v6
   Art direction: photography-first, editorial strength
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Outfit:wght@300;400;500&display=swap');

:root {
  --bg:       #ffffff;
  --bg-soft:  #f5f3f0;
  --bg-card:  #ece9e4;
  --ink:      #111110;
  --ink-mid:  #555250;
  --ink-dim:  #999591;
  --line:     #e5e2de;
  --nav-h:    68px;
  --serif:    'Cormorant', Georgia, serif;
  --sans:     'Outfit', sans-serif;
  --pad:      60px;
  --max-w:    1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0d0c0b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: var(--pad);
  right: var(--pad);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-left { animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) both 0.3s; }

.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(72px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-name em { font-style: italic; display: block; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: var(--ink); color: #fff; }
.hero-cta-arrow { font-size: 16px; transition: transform 0.2s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

.hero-right {
  text-align: right;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) both 0.5s;
}
.hero-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 2.2;
}

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active { background: #fff; width: 28px; border-radius: 2px; }

/* ── SECTIONS ────────────────────────────── */
.section {
  padding: 96px 0 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding: 0 var(--pad);
}

.section-label {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}

.section-more {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.section-more:hover { color: var(--ink); }

/* ── ALBUM GRID — featured layout ──────────*/
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding-bottom: 96px;
}

.album-grid-sub {
  display: contents;
}

.album-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding-bottom: 0;
}

.album-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.album-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.album-card:hover img { transform: scale(1.05); }

.album-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,7,6,0.85) 0%,
    rgba(8,7,6,0.15) 45%,
    transparent 65%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
}

.album-card-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-card:first-child .album-card-name {
  font-size: 36px;
}

.album-card-count {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  text-transform: uppercase;
}

.album-card-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-card);
}

/* ── BIO STRIP ───────────────────────────── */
.bio-strip {
  background: #111110;
  padding: 96px var(--pad);
  text-align: center;
  margin-top: 0;
}
.bio-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 820px;
  margin: 0 auto 40px;
}
.bio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 3px;
  transition: all 0.2s;
}
.bio-link:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── VÝSTAVY SECTION ─────────────────────── */
.vystavy-section {
  padding: 160px 0 96px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.vystavy-section .section-header {
  padding: 0 var(--pad);
  margin-bottom: 40px;
}

/* ── VÝSTAVY TABS ────────────────────────── */
.vystavy-tabs {
  display: flex;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}
.vystavy-tab {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 20px 28px 18px;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  transition: all 0.18s;
  margin-bottom: -1px;
}
.vystavy-tab:hover { color: var(--ink-mid); }
.vystavy-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ── PROFIL PAGE ─────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 80px) var(--pad) 64px;
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.0;
}

.profil-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 72px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.profil-portrait { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.profil-portrait img { width: 100%; display: block; }
.profil-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 24px;
}
.profil-text p:first-child { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }
.profil-signature { margin-top: 44px; }
.profil-signature img { height: 44px; opacity: 0.35; }

/* ── KONTAKT PAGE ────────────────────────── */
.kontakt-body { padding: 72px var(--pad); max-width: 640px; margin: 0 auto; }
.kontakt-item { display: flex; align-items: baseline; gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.kontakt-label { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); min-width: 88px; }
.kontakt-value { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); }
.kontakt-value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.2s; }
.kontakt-value a:hover { border-color: var(--ink); }

/* ── ALBUM MODAL ─────────────────────────── */
.album-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.album-modal.active { transform: translateY(0); }

.am-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
}
.am-back {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--ink-mid); background: none; border: none;
  cursor: pointer; transition: color 0.15s; white-space: nowrap;
}
.am-back:hover { color: var(--ink); }
.am-title {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  font-style: italic; color: var(--ink);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.am-count {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
}

.am-desc {
  display: flex; gap: 56px; align-items: baseline;
  padding: 40px var(--pad) 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.am-desc-year {
  font-family: var(--serif); font-size: 56px; font-weight: 300;
  color: var(--ink-dim); line-height: 1; flex-shrink: 0;
}
.am-desc-text {
  font-size: 15px; font-weight: 400; line-height: 1.85;
  color: var(--ink-mid); max-width: 720px;
}

.am-section-title {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  font-style: italic; color: var(--ink);
  padding: 40px var(--pad) 20px;
  border-top: 1px solid var(--line); display: block;
}
.am-section-title:first-child { border-top: none; padding-top: 32px; }

.am-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0 var(--pad) 8px;
}

.am-grid {}

.am-photo {
  aspect-ratio: 3/2; overflow: hidden;
  cursor: pointer; background: var(--bg-card);
}
.am-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.am-photo:hover img { transform: scale(1.04); }

.am-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 24px var(--pad) 0;
}

.am-load-more {
  display: block;
  margin: 32px auto;
  padding: 16px 48px;
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
}
.am-load-more:hover {
  background: var(--ink);
  color: #fff;
}

/* ── LIGHTBOX ────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,7,6,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lb-img-wrap {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 88px;
}
.lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
}

.lb-close, .lb-prev, .lb-next {
  position: fixed; background: none; border: none;
  color: rgba(255,255,255,0.4); cursor: pointer;
  transition: color 0.15s; line-height: 1; padding: 8px; font-weight: 200;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-close { top: 28px; right: 36px; font-size: 18px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 52px; }

.lb-counter {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
}

/* ── FOOTER ──────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px var(--pad); background: var(--bg); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-logo { font-family: var(--serif); font-size: 17px; font-weight: 400; font-style: italic; color: var(--ink-dim); }
.footer-copy { font-size: 11px; font-weight: 400; letter-spacing: 0.1em; color: var(--ink-dim); }
.footer-copy a { color: inherit; text-decoration: none; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────── */
/* ── TABLET ─────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .am-section-grid { grid-template-columns: repeat(3, 1fr); }
  .am-page-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── MOBIL — landscape / velký telefon ──── */
@media (max-width: 800px) {
  :root { --pad: 20px; --nav-h: 60px; }

  /* Nav — větší dotykové plochy */
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 18px var(--pad);
    font-size: 14px; border-bottom: 1px solid var(--line);
  }
  .nav-links a.active { border-bottom: 1px solid var(--line); border-left: 3px solid var(--ink); }
  .nav-burger { display: flex; padding: 10px; }

  /* Hero — čitelný na výšku */
  .hero { min-height: 100svh; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 20px; bottom: 48px; }
  .hero-right { display: none; }
  .hero-name { font-size: clamp(56px, 16vw, 88px); }
  .hero-cta { padding: 15px 28px; font-size: 12px; }

  /* GALERIE — jeden sloupec, fotky přes celou šířku = wow efekt */
  .album-grid { grid-template-columns: 1fr; gap: 3px; padding-bottom: 64px; }
  .album-card { aspect-ratio: 3/2; }
  .album-card-name { font-size: 24px; }
  .album-card-count { font-size: 12px; }

  /* Výstavy — 2 sloupce, kompaktnější karty a menší názvy */
  .album-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .album-grid--4 .album-card { aspect-ratio: 4/5; }
  .album-grid--4 .album-card-name { font-size: 15px; line-height: 1.2; }
  .album-grid--4 .album-card-count { font-size: 10px; }
  .album-grid--4 .album-card-overlay { padding: 14px 14px; }

  /* Sekce */
  .section { padding: 56px 0 0; }
  .section-header { padding: 0 var(--pad); margin-bottom: 24px; }
  .section-label { font-size: 32px; }
  .vystavy-section { padding: 96px 0 64px; }

  /* Bio strip */
  .bio-strip { padding: 72px var(--pad); }
  .bio-quote { font-size: 22px; }

  /* Modal galerie */
  .am-section-grid { grid-template-columns: repeat(2, 1fr); padding: 0 8px 8px; gap: 3px; }
  .am-page-grid { grid-template-columns: repeat(2, 1fr); padding: 16px 8px 0; gap: 3px; }
  .am-photo { aspect-ratio: 1/1; }
  .am-section-title { padding: 28px var(--pad) 14px; font-size: 20px; }
  .am-header { padding: 0 var(--pad); }
  .am-title { font-size: 16px; }
  .am-count { display: none; }
  .am-desc { flex-direction: column; gap: 16px; padding: 28px var(--pad); }
  .am-desc-year { font-size: 40px; }
  .am-desc-text { font-size: 14px; }

  /* Profil */
  .profil-body { grid-template-columns: 1fr; gap: 40px; }
  .profil-portrait { position: static; max-width: 200px; }

  /* Lightbox — menší šipky, víc prostoru pro fotku */
  .lb-img-wrap { padding: 20px 12px; }
  .lb-prev, .lb-next { font-size: 32px; padding: 12px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 16px; right: 16px; font-size: 20px; }
  .lb-counter { bottom: 16px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── MALÝ TELEFON ─────────────────────────── */
@media (max-width: 480px) {
  .hero-name { font-size: clamp(48px, 15vw, 72px); }
  .hero-cta { width: 100%; justify-content: center; }
  .section-label { font-size: 28px; }
  .am-section-grid, .am-page-grid { grid-template-columns: repeat(2, 1fr); }
}
