/* ─── RESET ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* JS handles smooth scroll */

body {
  font-family: "DM Sans", "Aften Screen", Arial, sans-serif;
  background: #212323;
  color: #dfeae9;
  -webkit-font-smoothing: antialiased;
}

:root {
  --font-display: "Big Caslon FB Black", "Big Caslon FB", "Big Caslon",
                  "Playfair Display", "Book Antiqua", Georgia, serif;
  --font-body: "DM Sans", "Aften Screen", Arial, sans-serif;
  --color-bg:    #212323;
  --color-text:  #dfeae9;
  --color-white: #ffffff;
  --color-hover: #fce685;
  --color-dim:   rgba(223, 234, 233, 0.4);
}

/* ═══════════════════════════════════════════════════════
   HEADER  —  table layout (exact Format Lightbox match)
   ═══════════════════════════════════════════════════════ */

#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 36px 10px 20px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(33, 35, 35, 0.98) 0%, rgba(33, 35, 35, 0.75) 70%, transparent 100%);
  backdrop-filter: none;
  display: table;
  table-layout: auto;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

/* Site name — left cell, takes minimum width so text wraps */
.header_logo {
  display: table-cell;
  margin: 0;
  padding-right: 1em;
  width: 1%;          /* forces cell to minimum, triggers 2-line wrap */
  vertical-align: top;
}

.header_logo a {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  min-width: 180px;
  max-width: 400px;
  transition: color 0.2s;
}

.header_logo a:hover { color: var(--color-hover); }

/* Navigation — right cell, takes remaining space */
#menu {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}

.menu_list {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.menu_list li a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.menu_list li a:hover       { color: var(--color-hover); }
.menu_list li.is_selected a { color: var(--color-hover); }

/* Social icons — inline after nav */
.social_icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0 0 0 24px;
  padding: 0;
  vertical-align: middle;
}

.social_icons a,
.social-link {
  color: var(--color-text);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}

.social_icons a:hover,
.social-link:hover { color: var(--color-hover); }

/* ═══════════════════════════════════════════════════════
   GALLERY PAGE LAYOUT
   body.gallery_page adds right margin for thumb strip
   ═══════════════════════════════════════════════════════ */

@media screen and (min-width: 768px) {
  body.gallery_page {
    margin-right: 3%;
  }

  body.gallery_page #content {
    box-sizing: border-box;
    margin-right: 0;
  }

  /* Each asset fills the viewport */
  #content .asset {
    display: table;
    height: 100vh;
    table-layout: fixed;
    width: 100%;
  }

  /* Vertically centered cell within each asset */
  #content .asset_center {
    display: table-cell;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: center;
    /* padding-top set by JS to clear the fixed header */
  }
}

/* ── Loading state ── */
#content {
  transition: opacity 0.3s ease-out;
  padding-bottom: 50px;
}

#content.is_loading {
  opacity: 0;
}

/* ── Image container ── */
.asset_image_container {
  position: relative;
  max-width: 82%;
  margin: 0 auto;
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}

/* Zoom icon on hover */
.asset_image_container::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
}

.asset_image_container:hover::after { opacity: 1; }

/* Image display — pure CSS sizing, no JS constraint needed */
.asset_image_container img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  transition: opacity 0.3s ease-out;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.asset.is_loading img { opacity: 0; }

/* ── Caption ── */
.asset_caption {
  text-align: center;
  margin: 1em auto 0;
  max-width: 30em;
  color: var(--color-text);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 2;
  transition: all 0.2s ease-out;
}

.asset_caption strong {
  font-weight: 500;
  color: var(--color-white);
}

.is_loading .asset_caption {
  opacity: 0;
  transform: translateY(-10px);
}

/* ═══════════════════════════════════════════════════════
   GALLERY NAVIGATION  —  fixed bottom-left, CSS arrows
   (exact Format Lightbox reproduction)
   ═══════════════════════════════════════════════════════ */

.gallery_navigation {
  position: fixed;
  bottom: 3%;
  left: 2%;
  z-index: 3;
}

.gallery_navigation button {
  background: none;
  border: none;
  display: block;
  height: 22px;
  outline: none;
  padding: 0 8px;
  cursor: pointer;
}

/* CSS-drawn chevron arrows using two borders + rotation */
.gallery_navigation span {
  border-width: 0;
  border-top:  solid 2px;
  border-left: solid 2px;
  display: inline-block;
  height: 0.5em;
  width:  0.5em;
  padding: 0;
  text-indent: -999em;   /* hide any text */
  overflow: hidden;
  vertical-align: middle;
  transform: rotate(45deg);   /* ← points left */
  color: var(--color-text);
  font-size: 14px;
}

/* Next arrow — rotate other way to point right */
.gallery_navigation .gallery_next span {
  border-width: 0;
  border-left:   solid 2px;
  border-bottom: solid 2px;
  transform: rotate(-45deg);  /* → points right */
}

.gallery_navigation .gallery_nav_button:hover:enabled span { color: var(--color-hover); }
.gallery_navigation button:active:enabled { transform: scale(0.9); }
.gallery_navigation .gallery_nav_button:disabled {
  cursor: default;
  opacity: 0.3;
}

@media screen and (max-width: 767px) {
  .gallery_navigation { display: none; }
}

/* ═══════════════════════════════════════════════════════
   THUMBNAIL STRIP  —  fixed right side
   (exact Format Lightbox reproduction)
   ═══════════════════════════════════════════════════════ */

.gallery_thumbs {
  transition: opacity 0.7s ease-out, top 0.3s ease;
  margin: 0;
  outline: 0;
  opacity: 1;
  padding: 0 8px;
  position: fixed;
  right: 3%;
  top: 0;           /* JS sets this to center the active thumb */
  z-index: 10;
  list-style: none;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery_thumbs.is_loading { opacity: 0; }

.gallery_thumbs li {
  transition: opacity 0.4s ease-out;
  display: block;
  list-style-type: none;
  padding: 10px 0;
  width: 70px;
  opacity: 0.1;
}

.gallery_thumbs li:hover { opacity: 0.5; }
.gallery_thumbs li.is_selected { opacity: 1; }

/* Active thumbnail: yellow outline, matching Format exactly */
.gallery_thumbs li.is_selected img {
  outline: solid 1px var(--color-hover);
  outline-offset: 3px;
}

.gallery_thumbs li img {
  display: block;
  width: 100%;
}

.gallery_thumbs li a { display: block; }

@media screen and (max-width: 767px) {
  .gallery_thumbs { display: none; }
  body.gallery_page { margin-right: 0; }
  body.gallery_page #content { margin-right: 0; }
  #content .asset {
    display: block;
    min-height: 100px;
    padding: 1em 0;
  }
  .asset_image_container {
    max-width: 100%;
    display: inline-block;
  }
  .image-placeholder { display: block; }
  #content .asset_center { text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   INNER PAGES  (Collecties, Over Mij, Contact)
   ═══════════════════════════════════════════════════════ */

.inner-page {
  padding-top: 130px;
  padding-bottom: 80px;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.inner-page.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  padding: 0 60px 48px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-meta {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-dim);
}

/* ── Photo grid (Collecties) ── */
.photo-grid {
  padding: 0 60px;
  columns: 3;
  column-gap: 3px;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 3px;
  overflow: hidden;
  cursor: pointer;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.28s;
}

.grid-item:hover img { opacity: 0.65; }

/* ── About ── */
.about-page {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.about-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.about-photo-col {
  padding-top: 31px;
}

.about-photo-col img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
}

.about-text-block {
  padding: 0 60px 80px 70px;
}

.about-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dim);
  margin-bottom: 20px;
}

.about-text-block h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: 48px;
  line-height: 1.05;
}

.about-text-block p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2;
  color: rgba(223, 234, 233, 0.78);
  margin-bottom: 20px;
  max-width: 440px;
}

.about-text-block p em { font-style: italic; color: var(--color-text); }

.about-text-block a.link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(223, 234, 233, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.about-text-block a.link:hover {
  color: var(--color-hover);
  border-color: var(--color-hover);
}

.contact-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(223, 234, 233, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.contact-btn:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
}

/* ── Contact ── */
.contact-layout {
  padding: 0 60px;
  max-width: 500px;
}

.contact-layout h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 50px;
  line-height: 1.2;
}

.contact-group { margin-bottom: 34px; }

.contact-group .label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-dim);
  display: block;
  margin-bottom: 10px;
}

.contact-group a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-group a:hover { color: var(--color-hover); }

/* ── Collection intro — split layout (text + photo side by side) ── */

/* Split = intro centered above photo, stacked vertically */
#content .asset_split {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 52px;
}

.asset-intro-panel {
  max-width: 520px;
}

.asset-photo-panel {
  width: 100%;
  text-align: center;
}

.asset-photo-panel .asset_image_container {
  max-width: 94%;
}

.collection-intro-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.collection-intro-text p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(223, 234, 233, 0.65);
  margin-bottom: 0;
}

/* ── Collection card (Collecties) ── */
.collection-card {
  padding: 0 60px;
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.collection-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.collection-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 3px;
}

.collection-banner img {
  display: block;
  width: 100%;
  height: 58vh;
  object-fit: cover;
  transition: opacity 0.28s;
}

.collection-card:hover .collection-banner img { opacity: 0.82; }

.collection-banner-info {
  position: absolute;
  bottom: 24px;
  left: 28px;
}

.collection-banner-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.28s ease-out;
  pointer-events: none;
  white-space: nowrap;
}

.collection-card:hover .collection-banner-view { opacity: 1; }

.collection-banner-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
}

.collection-banner-year {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
}

.collection-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.collection-preview-item img {
  display: block;
  width: 100%;
  height: 22vh;
  object-fit: cover;
  transition: opacity 0.28s;
}

.collection-card:hover .collection-preview-item img { opacity: 0.75; }

/* ── Lightbox (Collecties) ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 22, 0.97);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.lightbox-overlay.open { opacity: 1; visibility: visible; }

.lightbox-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 60px 80px;
  box-sizing: border-box;
}

.lb-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none; border: none;
  color: rgba(223, 234, 233, 0.6);
  font-size: 40px; cursor: pointer;
  line-height: 1; transition: color 0.2s;
  font-family: inherit; padding: 10px;
  z-index: 10;
}

.lb-close:hover { color: var(--color-hover); }

.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(223, 234, 233, 0.35);
  font-size: 16px; cursor: pointer;
  transition: color 0.2s; padding: 24px 32px;
  font-family: inherit;
}

.lb-prev:hover, .lb-next:hover { color: var(--color-hover); }
.lb-prev { left: 0; }
.lb-next { right: 0; }

.lb-counter {
  position: absolute; bottom: 22px;
  left: 50%; transform: translateX(-50%);
  color: rgba(223, 234, 233, 0.3);
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.2em;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media screen and (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 0; padding: 0 24px; }
  .about-photo-col { position: static; }
  .about-photo-col img { height: 60vw; min-height: 260px; }
  .about-text-block { padding: 40px 24px 60px; }
  .section-header { padding-left: 24px; padding-right: 24px; }
  .collection-card { padding: 0 24px; }
  .collection-banner img { height: 40vh; }
  .collection-preview-item img { height: 16vh; }
}

@media screen and (max-width: 767px) {
  #header { padding: 10px 14px; }
  .header_logo a { font-size: 26px; min-width: 120px; }
  .inner-page { padding-top: 100px; }
}

/* ── Hamburger button ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  vertical-align: middle;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.32s ease-in-out, opacity 0.32s ease-in-out, width 0.32s ease-in-out;
}

.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 22px; }

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media screen and (max-width: 640px) {
  .hamburger { display: flex; margin-left: auto; }
  #menu .menu_list,
  #menu .social_icons { display: none; }
}

/* ── Mobile nav overlay ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(20, 22, 22, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease-out, visibility 0.38s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  text-align: center;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}

.mobile-nav li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.38s ease-out, transform 0.38s ease-out;
  margin-bottom: 6px;
}

.mobile-nav-overlay.is-open .mobile-nav li:nth-child(1) { transition-delay: 0.07s; opacity: 1; transform: none; }
.mobile-nav-overlay.is-open .mobile-nav li:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.mobile-nav-overlay.is-open .mobile-nav li:nth-child(3) { transition-delay: 0.23s; opacity: 1; transform: none; }

.mobile-nav li a {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.mobile-nav li.is_selected a,
.mobile-nav li a:hover {
  color: var(--color-hover);
}

.mobile-nav-instagram {
  display: inline-block;
  color: rgba(223, 234, 233, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease-out 0.31s, transform 0.38s ease-out 0.31s, color 0.2s;
}

.mobile-nav-overlay.is-open .mobile-nav-instagram {
  opacity: 1;
  transform: none;
}

.mobile-nav-instagram:hover { color: var(--color-hover); }


@media screen and (max-width: 480px) {
  .section-title { font-size: 26px; }
  .gallery-overview { grid-template-columns: 1fr 1fr; }
}
