/* V!EW - photography portfolio. Minimal, monochrome, image-first. */
:root {
  --ink: #141414;
  --muted: #6d6d6d;
  --line: #e8e8e8;
  --soft: #fafafa;
  --bg: #ffffff;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: 0.02em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(22px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand img { height: 24px; width: auto; }
nav.links a {
  margin-left: 26px; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
nav.links a:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: clamp(88px, 10vw, 128px) 24px clamp(72px, 8vw, 96px);
  max-width: 720px; margin: 0 auto;
}
.hero .mark { width: clamp(220px, 44vw, 400px); height: auto; margin: 0 auto; }
.hero .tag { font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); margin: 8px 0 28px; }
.hero p { margin: 0 auto; max-width: 680px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #333; text-wrap: pretty; }
.cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { background: #f4f4f4; color: var(--ink); }

/* ---- sections ---- */
section { padding: clamp(64px, 7vw, 88px) 28px; max-width: var(--max); margin: 0 auto; }
.section-title { text-align: center; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 42px; }

/* ---- gallery (masonry via columns) ---- */
#portfolio { max-width: 1500px; }
.gallery { column-count: 4; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; cursor: zoom-in; overflow: hidden; background: #f2f2f2; }
.gallery img { width: 100%; transition: opacity 0.25s, transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.03); opacity: 0.92; }
@media (max-width: 1100px) { .gallery { column-count: 3; } }
@media (max-width: 700px)  { .gallery { column-count: 2; } }

/* ---- priser ---- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { border: 1px solid var(--line); padding: 30px; background: var(--soft); }
.price-card h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: 0.06em; }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.price-card li:last-child { border-bottom: 0; }
.price-card li span:last-child { white-space: nowrap; color: var(--muted); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }

/* ---- om ---- */
#om { max-width: 760px; }
#om p { font-size: 17px; color: #2c2c2c; text-wrap: pretty; }

/* ---- kontakt ---- */
#kontakt { max-width: 620px; text-align: center; }
.contact-line { font-size: 18px; margin: 10px 0; }
.placeholder { color: #b00; font-size: 13px; letter-spacing: 0.05em; }

/* ---- footer ---- */
footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 0.1em; }

/* ---- lightbox ---- */
#lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(12, 12, 12, 0.96);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
#lightbox .lb-btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 40px; line-height: 1; padding: 16px; opacity: 0.7; transition: opacity 0.2s;
  user-select: none;
}
#lightbox .lb-btn:hover { opacity: 1; }
#lb-close { top: 8px; right: 14px; font-size: 34px; }
#lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  header.nav { padding: 18px 22px; }
  nav.links { display: none; }
  nav.links.show { display: flex; flex-direction: column; position: absolute; top: 60px; left: 16px; right: 16px; background: #fff; border: 1px solid var(--line); padding: 14px 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
  nav.links.show a { margin: 9px 0; }
  .menu-toggle { display: block; }
  .hero { padding: 82px 24px 68px; }
  section { padding: 58px 20px; }
  .gallery { column-gap: 8px; }
  .gallery figure { margin-bottom: 8px; }
  .prices { grid-template-columns: 1fr; gap: 12px; }
  .price-card { padding: 24px; }
}

@media (min-width: 701px) and (max-width: 950px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
}
