/******************/
/* MARK: KLEUREN */
/****************/

:root {
  --main-font-color: #ffffff;
  --landing-body-text: #ffffff;
  --landing-content-hover: #f4c468;
  --secondary-font-color: #d9a441;
  --background-color: #160a04;
  --card-bg: linear-gradient(145deg, #2e1a12, #21110a);
  --wood-dark: #22120a;
  --wood-light: #3d2314;
  --leather-accent: #c68a4c;
  --text-gold: #f4c468;
  --stitching: #8d5b28;
  --gold-glow: rgba(244, 196, 104, 0.4);
  --landing-page-glow: #2b1409;
  --landing-heading-start: #ffe39f;
  --landing-heading-middle: #d9a441;
  --landing-heading-end: #9e6319;
  --landing-shadow-deep: rgba(0, 0, 0, 0.9);
  --landing-card-shadow: rgba(0, 0, 0, 0.6);
  --landing-card-hover-shadow: rgba(0, 0, 0, 0.8);
  --landing-card-hover-glow: rgba(198, 138, 76, 0.2);
  --landing-nav-grain: rgba(255, 255, 255, 0.03);
  --landing-shadow-strong: rgba(0, 0, 0, 0.7);
  --landing-nav-hover-end: rgba(61, 35, 20, 0.4);
  --landing-caption-start: rgba(20, 10, 5, 0.6);
  --landing-garden-end: rgba(34, 18, 10, 0.2);
  --landing-garden-shadow: rgba(0, 0, 0, 0.4);
  --landing-dialog-border: #d4a373;
  --landing-dialog-background: #231204;
  --landing-dialog-text: #fff3dc;
  --landing-backdrop: #000c;
  --landing-close-background: #4a2810;
  --landing-focus-color: #fff;
  --landing-skip-focus: #ffd700;
  --landing-light-page-glow: #ebe0d0;
  --landing-light-heading-start: #b0621e;
  --landing-light-heading-middle: #733c08;
  --landing-light-heading-end: #401f02;
  --landing-light-heading-shadow: rgba(0, 0, 0, 0.15);
  --landing-light-card-shadow: rgba(90, 50, 20, 0.08);
  --landing-light-card-hover-shadow: rgba(90, 50, 20, 0.15);
  --landing-light-card-hover-glow: rgba(163, 93, 37, 0.15);
  --landing-light-caption-start: rgba(247, 241, 229, 0.8);
  --landing-light-caption-end: rgba(232, 215, 195, 0.95);
  --landing-light-garden-start: #eee3d3;
  --landing-light-garden-end: rgba(238, 227, 211, 0.2);
  --landing-light-garden-shadow: rgba(0, 0, 0, 0.05);
}





/****************/
/* MARK: FONTS */
/**************/

@font-face {
  font-family: "eastwood";
  src: url(../type/Eastwood.otf);


  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "rye";
  src: url(../type/Rye-Regular.ttf);

  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "roboto";
  src: url(../type/Roboto-Regular.ttf);


  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "roboto";
  src: url(../type/Roboto-Bold.ttf);


  font-weight: 700;
  font-style: normal;
  font-display: swap;
}





/************************************/
/* MARK: BASIS EN ALGEMENE STYLING */
/**********************************/

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, var(--landing-page-glow) 0%, var(--background-color) 70%);
  background-attachment: fixed;
  color: var(--landing-body-text);
  font-family: "Roboto";
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1 {
  font-family: "Eastwood";
  font-size: clamp(42px, 8vw, 75px);
  background: linear-gradient(180deg, var(--landing-heading-start) 0%, var(--landing-heading-middle) 60%, var(--landing-heading-end) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  filter: drop-shadow(2px 4px 6px var(--landing-shadow-deep));
  transition: transform 0.3s ease;
}

h1:hover {
  transform: scale(1.02);
}

h2 {
  font-family: "Rye";
  color: var(--secondary-font-color);
  font-size: 24px;
  margin-top: 0;
  border-bottom: 2px dashed var(--stitching);
  padding-bottom: 8px;
}

a {
  color: var(--secondary-font-color);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--text-gold);
  text-shadow: 0 0 8px var(--gold-glow);
}





/********************/
/* MARK: NAVIGATIE */
/******************/

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--wood-dark);
  background-image: repeating-linear-gradient(90deg, var(--landing-nav-grain) 0px, var(--landing-nav-grain) 2px, transparent 2px, transparent 10px);
  border-top: 3px solid var(--leather-accent);
  border-bottom: 4px dashed var(--stitching);
  box-shadow: 0 4px 15px var(--landing-shadow-strong);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0 15px;
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

nav ul li a {
  display: inline-block;
  padding: 14px 20px;
  color: var(--main-font-color);
  font-family: "Rye";
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

nav ul li a:hover {
  color: var(--text-gold);
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--landing-nav-hover-end) 100%);
  border-radius: 4px;
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--gold-glow);
}





/****************/
/* MARK: INTRO */
/**************/

.hero {
  text-align: center;
  padding: 50px 20px 20px 20px;
  animation: fadeInDown 0.8s ease-out;
}





/*****************/
/* MARK: FOOTER */
/***************/

footer {
  text-align: center;
  padding: 40px;
  color: var(--leather-accent);
  font-size: 14px;
}





/****************************/
/* MARK: INHOUD EN KAARTEN */
/**************************/

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--stitching);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 6px 16px var(--landing-card-shadow);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.8s ease-out both;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--leather-accent);
  box-shadow: 0 12px 24px var(--landing-card-hover-shadow), 0 0 15px var(--landing-card-hover-glow);
}

.section-block {
  margin: 20px 0;
}

.section-label {
  font-weight: bold;
  margin-bottom: 15px;
}





/********************/
/* MARK: GALERIJEN */
/******************/

.gallery {
  border: 1px solid var(--stitching);
  background-color: var(--wood-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery:hover {
  transform: scale(1.03);
  border-color: var(--secondary-font-color);
  box-shadow: 0 8px 20px var(--landing-shadow-strong), 0 0 12px var(--gold-glow);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery:hover img {
  transform: scale(1.05);
}

.desc {
  color: var(--landing-body-text);
  padding: 12px;
  text-align: center;
  font-size: 14px;
  background: linear-gradient(180deg, var(--landing-caption-start) 0%, var(--landing-shadow-deep) 100%);
  transition: color 0.3s ease;
}

.gallery:hover .desc {
  color: var(--landing-body-text);
  color: var(--landing-content-hover);
}

.gallery-container1 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 15px;
  align-items: start;
}

.main-poster {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.gallery-artists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.gallery-artists .gallery {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.gallery-artists img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}

.gallery-artists .desc {
  color: var(--landing-body-text);
  align-self: end;
}





/*************************/
/* MARK: DIGITAL GARDEN */
/***********************/

.garden-list {
  background: linear-gradient(90deg, var(--wood-dark) 0%, var(--landing-garden-end) 100%);
  padding: 18px 20px 18px 40px;
  border-left: 4px solid var(--secondary-font-color);
  border-radius: 0 6px 6px 0;
  box-shadow: inset 2px 0 6px var(--landing-garden-shadow);
}

.garden-list li {
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.garden-list li:hover {
  transform: translateX(6px);
  color: var(--landing-content-hover);
}





/***************************/
/* MARK: AFBEELDINGSMODAL */
/*************************/

/* De dialoog past om de foto en het bijschrift heen. */
dialog.modal {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 0.5rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--landing-dialog-text);
  box-shadow: none;
}

/* Alleen een geopende dialoog krijgt een zichtbare indeling. */
dialog.modal[open] {
  display: grid;
  grid-template-columns: minmax(0, max-content) 2.75rem;
  grid-template-rows: max-content max-content;
  align-content: start;
  align-items: start;
  gap: 0;
  column-gap: 0.5rem;
}

dialog.modal::backdrop {
  background: var(--landing-backdrop);
}

/* De pagina achter de foto blijft op haar plek. */
html:has(dialog.modal[open]),
body:has(dialog.modal[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}

dialog.modal .modal-content {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: min(calc(100vw - 5.25rem), 50rem);
  max-height: max(1rem, calc(90vh - 9rem));
  max-height: max(1rem, calc(90dvh - 9rem));
  margin: 0;
  object-fit: contain;
  border: 0.125rem solid var(--leather-accent);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

/* Het bijschrift volgt de fotobreedte, ook bij een smalle portretfoto. */
dialog.modal .modal-caption {
  grid-column: 1;
  grid-row: 2;
  box-sizing: border-box;
  width: 0;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem;
  border: 0.125rem solid var(--leather-accent);
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: linear-gradient(180deg, var(--landing-dialog-background), var(--landing-shadow-deep));
  color: var(--landing-dialog-text);
  text-align: center;
  overflow-wrap: anywhere;
  font-family: "Roboto";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

dialog.modal .modal-close {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--landing-dialog-text);
  font: 2rem/1 Roboto;
  cursor: pointer;
}

dialog.modal .modal-close:hover {
  color: var(--landing-skip-focus);
  transform: none;
}





/***************************/
/* MARK: TOEGANKELIJKHEID */
/*************************/

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0.1875rem solid var(--landing-focus-color);
  outline-offset: 0.1875rem;
  box-shadow: 0 0 0 0.375rem var(--landing-dialog-background);
}

.gallery-image-link {
  display: block;
  min-width: 0;
}

.gallery-image-link:focus-visible {
  outline-offset: -0.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset: 0.5rem auto auto 0.5rem;
  z-index: 5000;
  max-width: calc(100vw - 1rem);
  padding: 0.75rem 1rem;
  border: 0.125rem solid var(--landing-dialog-border);
  border-radius: 0.25rem;
  background: var(--landing-dialog-background);
  color: var(--landing-dialog-text);
  font-weight: bold;
  line-height: 1.5;
  text-decoration: underline;
  overflow-wrap: anywhere;
  transform: translateY(calc(-100% - 1rem));
  transition: none;
}

.skip-link:focus {
  transform: none;
  outline: 0.1875rem solid var(--landing-skip-focus);
  outline-offset: 0.125rem;
}

#mainContent {
  scroll-margin-top: 6rem;
}

#mainContent:focus-visible {
  outline: 0.1875rem solid var(--secondary-font-color);
  outline-offset: -0.1875rem;
}





/********************/
/* MARK: ANIMATIES */
/******************/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}





/************************/
/* MARK: MEDIA QUERIES */
/**********************/





@media only screen and (max-width: 650px) {
  .gallery-container1 {
    grid-template-columns: 1fr;
  }

  .main-poster {
    grid-column: auto;
    grid-row: auto;
  }

  nav ul {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
}

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

@media (forced-colors: active) {
  h1 {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    filter: none;
    text-shadow: none;
  }
  a:focus-visible, button:focus-visible, input:focus-visible {
    outline-color: Highlight;
  }
}
