/* === Grundstil === */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* === Header === */
header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(135deg, #2e2e2e, #444);
  color: #fff;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* === Featured Images === */
.featured-images {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.featured-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.featured-grid img {
  max-width: 30%;
  min-width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.featured-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .featured-grid img {
    max-width: 45%;
    min-width: 200px;
  }
}

@media (max-width: 600px) {
  .featured-grid {
    flex-direction: column;
  }
  .featured-grid img {
    max-width: 100%;
    min-width: auto;
  }
}

/* === Intro === */
.intro {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.intro h2 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* === Galleri (masonry) === */
.gallery {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

/* Masonry-layout med tre kolumner */
.grid {
  column-count: 3;
  column-gap: 1rem;
  margin-bottom: 4rem;
}

.grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
  break-inside: avoid;
}

.grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* === Showcase Sections (Art Gallery Style) === */
.showcase {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.showcase-image {
  flex: 1;
  min-width: 0;
}

.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.showcase-image img:hover {
  transform: scale(1.03);
}

.showcase-text {
  flex: 1;
  min-width: 0;
}

.showcase-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2e2e2e;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.showcase-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* Responsive showcase */
@media (max-width: 900px) {
  .showcase-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .showcase-image {
    width: 100%;
  }
  
  .showcase-text {
    width: 100%;
  }
  
  .showcase-text h3 {
    text-align: center;
    font-size: 1.5rem;
  }
  
  .showcase-text p {
    text-align: left;
    font-size: 1rem;
  }
}

/* Responsivitet */
@media (max-width: 900px) {
  .grid {
    column-count: 2;
  }
  
  .showcase {
    padding: 2rem 1.5rem;
    margin: 3rem auto;
  }
}
@media (max-width: 600px) {
  .grid {
    column-count: 1;
  }
  
  .showcase {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }
  
  .showcase-text h3 {
    font-size: 1.3rem;
  }
}

/* === Lightbox === */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  cursor: zoom-out;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #2e2e2e;
  color: #eee;
  font-size: 0.9rem;
}

/* === Admin Login Button === */
/* Always visible, styled in main CSS so it works even when admin-styles.css is disabled */
#adminLoginButton {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 9999;
  font-size: 0.9rem;
  font-family: inherit;
}

#adminLoginButton:hover {
  background: rgba(0, 0, 0, 0.9);
}

