/* --- SCROLLBAR VASTZETTEN --- */
html {
  scrollbar-gutter: stable;
}

/* --- RESET & BASIS STIJLEN --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #0b0c0e;
  --card-bg: #141619;
  --text-main: #f0f2f5;
  --text-muted: #8a919e;
  --accent: #ffffff;
  --border-color: #212429;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(11, 12, 14, 0.88), rgba(11, 12, 14, 0.88)), 
                    url('images/Background2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- NAVIGATIE --- */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-right: 3rem;
  user-select: none;
  cursor: default;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* --- HERO INTRO (HOMEPAGE) --- */
.hero {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  margin-bottom: 1rem;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 1rem;
}

.hero-subheading {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: block;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 720px;
}

@media (max-width: 768px) {
  .hero h1 {
    white-space: normal;
  }
}

/* --- FILTER BALK --- */
.filter-bar {
  max-width: 1280px;
  width: 100%;
  margin: 2rem auto 2.5rem;
  padding: 0 2rem;
  display: flex;
  gap: 1.5rem;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- GALERIE GRID --- */
.gallery-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  grid-auto-flow: dense; /* Vult gaten in het raster automatisch op */
}

.gallery-item {
  position: relative;
  cursor: pointer;
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: #3b3f46;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.6%;
  overflow: hidden;
  background-color: #1a1d21;
}

.image-wrapper img,
.image-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.video-item video {
  pointer-events: none;
}

video:fullscreen {
  pointer-events: auto !important;
  object-fit: contain;
}

video:-webkit-full-screen {
  pointer-events: auto !important;
  object-fit: contain;
}

.gallery-item:hover .image-wrapper img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(105%);
}

.item-info {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.item-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* --- MODAL (LIGHTBOX) --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(6, 7, 8, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 1000px;
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-img-container {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050607;
  overflow: hidden;
}

.modal-img-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  user-select: none;
}

.modal-img-container img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.modal-details {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-details h3 {
  font-size: 1.15rem;
  font-weight: 400;
}

.modal-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--accent);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 22, 25, 0.75);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-arrow:hover {
  background-color: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .prev-btn { left: 0.5rem; }
  .next-btn { right: 0.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CONTENT CONTAINER (MYSTORY & CONTACT) --- */
.content-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  flex: 1;
}

.content-container h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 100%;
  margin-bottom: 1rem;
}

.content-container p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.intro-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* --- CONTACT FORMULIER --- */
.contact-form {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4a505a;
  box-shadow: 0 0 0 1px #4a505a;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 0.75rem 2.2rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background-color: var(--accent);
  color: #0b0c0e;
  border-color: var(--accent);
}

/* --- FOOTER --- */
footer {
  width: 100%;
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- BEFORE / AFTER SLIDER (GORDIJN EFFECT) --- */
.compare-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0b0c0e; /* nette donkere achtergrond voor eventuele zijbalken */
  pointer-events: none;
}

/* De bovenste afbeelding blijft statisch op 100% breedte, maar wordt 'afgesneden' */
.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 50% 0 0); /* Start exact halverwege afgesneden */
}

/* De verticale lijn */
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--accent);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Het ronde bolletje met pijltjes */
.compare-handle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(11, 12, 14, 0.9);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  user-select: none;
}

.compare-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 10;
}

/* Zorgt voor een staand kader (bijv. 3:4 of 4:5 verhouding) in plaats van liggend */
.gallery-item.portrait-item .image-wrapper {
  padding-top: 133%; /* 3:4 portretverhouding */
}

.gallery-item.portrait-item {
  grid-row: span 2;
}