:root {
  --ink: #000;
  --muted: #6b6b6b;
  --paper: #fff;
  --accent: #f5ec8c;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --sans: "Roboto", Arial, Helvetica, sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.6 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

/* Header */
.site-header {
  height: var(--header-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); position: relative; z-index: 10;
}
.brand { text-decoration: none; font-family: var(--mono); line-height: 1.1; }
.brand-name { display: block; font-size: 32px; letter-spacing: -1.6px; }
.brand-tag { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.6px; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav > ul { display: flex; gap: clamp(20px, 3.5vw, 58px); }
nav a { font-family: var(--mono); font-size: 16px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"], nav a.current { text-decoration: underline; text-underline-offset: 4px; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 10px 0; min-width: 180px; text-align: center;
  display: none; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.sub li a { display: block; padding: 6px 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.menu-toggle { display: none; }

/* Footer */
.site-footer {
  padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 14px;
}
.site-footer p { margin: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.social svg { width: 24px; height: 24px; fill: #fff; }

/* Home */
.home .hero-video { height: calc(100vh - var(--header-h) - 64px); min-height: 320px; overflow: hidden; background: #000; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }

/* Page titles */
.page-title, .about h1, .exhibitions h2 { font-family: var(--mono); font-weight: 700; }
.page-title { text-align: center; font-size: 28px; margin: 24px 0 36px; }

/* Galleries */
.work { padding: 0 var(--gutter) 60px; max-width: 1240px; margin: 0 auto; }
.gallery { column-gap: 24px; }
.gallery.portraits { columns: 4 230px; }
.gallery.murals { columns: 3 280px; margin-top: 48px; }
.item { break-inside: avoid; margin: 0 0 28px; }
.item a { display: block; cursor: zoom-in; }
.item img { width: 100%; height: auto; }
.item figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.item figcaption strong { display: block; }
.item figcaption span { color: var(--muted); }
.item a { position: relative; }
.item a[hidden] { display: none; }
.item .count {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff;
  font: 11px var(--mono); padding: 3px 7px;
}

/* Street art banner */
.banner { position: relative; height: clamp(240px, 44vh, 420px); overflow: hidden; background: #333; }
.banner video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.banner h1 {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--accent);
  font-size: clamp(32px, 5vw, 64px); letter-spacing: 2px;
}

/* Stranica murala: fotografije lijevo, tekst desno */
.mural {
  max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter) 60px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start;
}
.mural-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mural-photos a { display: block; cursor: zoom-in; overflow: hidden; }
.mural-photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .2s; }
.mural-photos a:hover img { opacity: .85; }
.mural-photos.n2 img, .mural-photos.n1 img { aspect-ratio: auto; }
.mural-photos.n3 a:first-child { grid-column: 1 / -1; }
.mural-photos.n3 a:first-child img { aspect-ratio: 4 / 3; }
.mural-text { position: sticky; top: 24px; }
.mural-text h1 { font: 700 22px/1.3 var(--mono); margin: 0 0 18px; }
.mural-text p { margin: 0 0 16px; }
.mural-text .place { color: var(--muted); font-style: italic; margin-top: 24px; }
.mural-text .back a { font: 14px var(--mono); text-decoration: none; }
.mural-text .back a:hover { text-decoration: underline; }
.murals .item a { cursor: pointer; }
.murals .item a:hover img { opacity: .85; }

/* About */
.about {
  max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter) 60px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 60px;
}
.about h1 { font-size: 20px; margin: 0 0 14px; }
.about-text p { margin: 0 0 18px; }
.about-photo img { width: 100%; height: auto; filter: grayscale(1); }
.about-photo:not(.wide) img { max-width: 420px; aspect-ratio: 1; object-fit: cover; }
.exhibitions h2 { font-size: 22px; color: var(--muted); margin: 0 0 18px; letter-spacing: 1px; }
.exhibitions h3 { font: 700 15px var(--mono); color: var(--muted); margin: 22px 0 6px; }
.exhibitions p { margin: 0 0 12px; font-style: italic; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { text-align: center; padding: 80px var(--gutter); }
.contact h1 {
  font: 700 clamp(28px, 4vw, 44px)/1.5 var(--mono); letter-spacing: 2px;
  text-decoration: underline; text-underline-offset: 8px; margin: 0 0 28px;
}
.contact p { margin: 6px 0; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.97);
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 24px;
}
.lightbox.open { display: flex; }
.lightbox .lb-desc { font: 14px/1.6 var(--sans); max-width: 640px; margin-top: 8px; color: var(--muted); }
.lightbox img { max-height: calc(100vh - 190px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox p { font: 13px var(--mono); margin: 14px 0 0; text-align: center; }
.lightbox button {
  position: absolute; background: none; border: 0; font: 28px var(--mono); cursor: pointer; padding: 10px 16px; color: var(--ink);
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 24px; letter-spacing: -1px; }
  .brand-tag { font-size: 11px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); }
  nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper);
    display: none; padding: 8px var(--gutter) 20px; box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  nav.open { display: block; }
  nav > ul { flex-direction: column; gap: 14px; }
  .sub { position: static; transform: none; display: block; box-shadow: none; text-align: left; padding: 8px 0 0 16px; min-width: 0; }
  .sub li a { padding: 4px 0; }
  .home .hero-video { height: calc(100svh - var(--header-h) - 64px); }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .mural { grid-template-columns: 1fr; gap: 28px; }
  .mural-text { position: static; }
  .site-footer { font-size: 12px; }
}
