/* ======= Generelt ======= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #1a0000;
  line-height: 1.6;
}

/* ======= Header ======= */
header {
  background-color: #1a0000;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
}

nav {
  margin-top: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ======= Seksjoner ======= */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

section h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* ======= Hero / Portrett ======= */
#hero {
  text-align: center;
}

.hero-img {
  max-width: 250px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* ======= Galleri ======= */
.galleri {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.galleri img {
  width: 300px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galleri img:hover {
  transform: scale(1.02);
}

/* ======= Kontakt ======= */
#kontakt a {
  color: #0066cc;
  text-decoration: none;
}

#kontakt a:hover {
  text-decoration: underline;
}

/* ======= Footer ======= */
footer {
  text-align: center;
  background-color: #eee;
  padding: 15px;
  font-size: 0.9em;
  color: #555;
}

/* ======= Responsiv visning ======= */
@media (max-width: 768px) {
  .galleri img {
    width: 90%;
    max-width: 400px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hero-img {
    width: 150px;
  }
}
/* ======= Lightbox fullskjerm ======= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border-radius: 4px;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
