/* Farver og typografi hentet fra din nuværende side (style2.css) */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #777777;          /* brødtekst, som på den gamle side */
  --heading: #111111;
  --line: #e4e4e4;
  --dark: #2d2d30;          /* navbar, footer og Collections-båndet */
  --dark-2: #29292c;
  --on-dark: #d5d5d5;
  --btn: #333333;
  --btn-text: #f1f1f1;
  --max: 1170px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e; --bg-alt: #232326; --text: #a8a8a8; --heading: #f1f1f1;
    --line: #333336; --dark: #121214; --dark-2: #0d0d0f; --btn: #e8e8e8; --btn-text: #111;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1c1e; --bg-alt: #232326; --text: #a8a8a8; --heading: #f1f1f1;
  --line: #333336; --dark: #121214; --dark-2: #0d0d0f; --btn: #e8e8e8; --btn-text: #111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 50px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.8 Lato, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.brand, .nav a, .chip, .btn, .eyebrow { font-family: Montserrat, system-ui, sans-serif; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  margin: 0; font-size: 20px; font-weight: 400; letter-spacing: 10px;
  text-transform: uppercase; color: var(--heading);
}
.section-head p { margin: 10px 0 0; font-style: italic; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 50px;
  display: flex; align-items: center;
  background: rgba(45,45,48,.9);
  font-size: 11px; letter-spacing: 4px;
}
.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 18px; letter-spacing: 4px; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: #fff; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav a.link {
  display: block; line-height: 50px; padding: 0 16px; text-decoration: none;
  color: var(--on-dark); transition: color .2s, background .2s;
}
.nav a.link:hover { color: #fff; }
.nav a.link.active { color: #fff; background: var(--dark-2); }
.menu-btn { display: none; background: none; border: 0; color: var(--on-dark); padding: 8px; cursor: pointer; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: 50px; left: 0; right: 0; flex-direction: column;
    background: rgba(45,45,48,.97); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav ul.open { max-height: 300px; }
  .nav ul a.link { padding: 0 24px; }
}

/* ---------- Hero / slideshow (sort/hvid som før) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 460px; overflow: hidden; background: #111; padding: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(90%);
  transform: scale(1.05); transition: transform 7s ease-out;
}
.slide.on img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%);
}
.caption { position: absolute; left: 0; right: 0; bottom: 70px; z-index: 2; color: #fff; text-align: center; }
.caption h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: 10px; text-transform: none; }
.caption p { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.85); }
.hero-ctrl button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; background: transparent; color: #fff;
  opacity: .6; cursor: pointer; display: grid; place-items: center; transition: opacity .2s;
}
.hero-ctrl button:hover { opacity: 1; }
#prevSlide { left: 12px; } #nextSlide { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; padding: 0;
  background: transparent; cursor: pointer;
}
.dots button.on { background: #fff; }
@media (max-width: 600px) { .hero-ctrl { display: none; } }

/* ---------- Photos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 36px; }
.chip, .btn {
  background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn);
  border-radius: 0; padding: 10px 20px; font-size: 12px; cursor: pointer; transition: .2s;
}
.chip:hover, .btn:hover, .btn:focus { background: var(--bg); color: var(--heading); }
.chip.on { background: var(--bg); color: var(--heading); }

/* Masonry: billeder i høj- og bredformat passer sammen uden huller */
.grid { columns: 3 300px; column-gap: 20px; }
.tile { break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg-alt); }
.tile img { width: 100%; height: auto; transition: transform .6s ease, filter .4s; }
.tile:hover img { transform: scale(1.03); }
.tile .tag {
  position: absolute; left: 0; bottom: 0; font: 400 11px Montserrat, sans-serif; letter-spacing: 4px;
  text-transform: uppercase; color: #fff; background: rgba(45,45,48,.85); padding: 6px 12px;
  opacity: 0; transition: opacity .3s;
}
.tile:hover .tag { opacity: 1; }
.tile.hide { display: none; }

/* ---------- Collections (mørkt bånd som før) ---------- */
.band { background: var(--dark); color: #bdbdbd; }
.band .section-head h2 { color: #fff; }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.col-card { display: block; text-decoration: none; color: #fff; }
.col-card .img { aspect-ratio: 4 / 3; overflow: hidden; border: 10px solid transparent; transition: border-color .3s; }
.col-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); transition: filter .4s, transform .6s; }
.col-card:hover .img { border-color: #f1f1f1; }
.col-card:hover img { filter: none; }
.col-card h3 { margin: 12px 0 0; text-align: center; font-size: 15px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact .info p { margin: 0 0 10px; display: flex; gap: 12px; align-items: center; }
.contact .info svg { color: var(--heading); flex: none; }
.contact .info a { text-decoration: none; color: var(--heading); }
.contact .info a:hover { text-decoration: underline; }
form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
form .full { grid-column: 1 / -1; }
input, textarea {
  width: 100%; font: inherit; color: var(--heading); background: var(--bg);
  border: 1px solid var(--line); border-radius: 0; padding: 10px 12px;
}
input:focus, textarea:focus { outline: none; border-color: var(--text); }
textarea { min-height: 130px; resize: vertical; }
.btn { justify-self: end; }
@media (max-width: 720px) {
  .contact { grid-template-columns: 1fr; gap: 28px; }
  form { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #f5f5f5; padding: 32px 0; text-align: center; font-size: 14px; }
.to-top { display: inline-grid; place-items: center; color: #f5f5f5; text-decoration: none; margin-bottom: 8px; }
.to-top:hover { color: #777; }
footer p { margin: 0; }
footer p a { transition: color .2s; }
footer p a:hover { color: #777; }

/* ---------- Tekstsider (privatliv) ---------- */
.prose { padding-top: 0; }
.prose .wrap { max-width: 720px; }
.prose h2 { margin: 36px 0 8px; font: 400 14px Montserrat, sans-serif; letter-spacing: 4px; text-transform: uppercase; color: var(--heading); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--heading); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,20,22,.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 16px; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb .close { top: 8px; right: 8px; }
.lb .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #bdbdbd; font: 400 11px Montserrat, sans-serif; letter-spacing: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tilføjelser til det PHP-drevne system ---------- */
.lb figcaption {
  position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; color: #fff; padding: 0 60px;
}
.lb figcaption strong { display: block; font: 400 14px Montserrat, sans-serif; letter-spacing: 4px; }
.lb figcaption span { display: block; color: #bdbdbd; font-size: 14px; }
.empty { text-align: center; padding: 40px 0; font-style: italic; }

/* Samlingsside */
.page-head { padding: 130px 0 40px; text-align: center; }
.page-head h1 { margin: 0; font: 400 24px Montserrat, sans-serif; letter-spacing: 10px; text-transform: uppercase; color: var(--heading); }
.page-head p { max-width: 640px; margin: 14px auto 0; font-style: italic; }
.page-head .back { display: inline-block; margin-bottom: 18px; font: 400 11px Montserrat, sans-serif; letter-spacing: 4px; text-transform: uppercase; text-decoration: none; }
.page-head .back:hover { color: var(--heading); }
.collection-grid { padding-top: 0; }
