/* Galerie atelierjuza.cz – tmavé warm téma podle hlavního webu */

:root {
  --bg: #100c08;
  --bg-alt: #1a140e;
  --bg-card: #1f1813;
  --ink: #f0e8d8;
  --ink-soft: #b8ad97;
  --accent: #e0c890;
  --accent-bright: #efd9a3;
  --accent-dark: #c2a868;
  --line: #2d2419;
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.6);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 12, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text { display: inline-block; }

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .brand-logo { width: 42px; height: 42px; }
  .brand { gap: 10px; font-size: 22px; }
}

.section-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-toggle {
  display: flex;
  gap: 0;
  align-items: center;
  margin-left: 4px;
}

.lang-toggle a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.lang-toggle a:first-child { border-radius: 3px 0 0 3px; border-right: 0; }
.lang-toggle a:last-child  { border-radius: 0 3px 3px 0; }
.lang-toggle a.active {
  background: var(--accent);
  color: #1a140e;
  border-color: var(--accent);
}
.lang-toggle a:not(.active):hover { color: var(--accent); border-color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--accent);
  margin: 5px 0;
}

/* === Hero === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 28px 56px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: var(--ink);
}

.hero .lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 28px auto;
  border: 0;
}

/* === Sections === */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.section {
  padding: 56px 0 32px;
  scroll-margin-top: 80px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}

.section-head p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15px;
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  aspect-ratio: 1 / 1;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 16px 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1.35;
}

.tile:hover figcaption,
.tile:focus-within figcaption {
  opacity: 1;
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lb-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#lb-img {
  max-width: 95vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

.lb-meta {
  text-align: center;
  color: var(--ink);
  font-family: var(--serif);
}

#lb-caption {
  font-size: 18px;
  margin: 0 0 4px;
  font-style: italic;
  color: var(--ink);
}

#lb-counter {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.lb-btn {
  position: fixed;
  background: rgba(224, 200, 144, 0.1);
  border: 1px solid rgba(224, 200, 144, 0.3);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.lb-btn:hover {
  background: rgba(224, 200, 144, 0.22);
  transform: scale(1.05);
}

#lb-close { top: 20px; right: 20px; }
#lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
#lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
#lb-prev:hover { transform: translateY(-50%) scale(1.05); }
#lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--bg-alt);
  letter-spacing: 0.3px;
}

.site-footer a {
  color: var(--accent