/* Opmaak overgenomen van trouw-zoe-joel.vankammen.be
   (Tailwind-klassen van het origineel omgezet naar gewone CSS). */

@font-face {
  font-family: Amandine;
  src: url("fonts/Amandine-Regular.woff2") format("woff2"),
       url("fonts/Amandine-Regular.woff") format("woff"),
       url("fonts/Amandine-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Amandine;
  src: url("fonts/Amandine-Italic.woff2") format("woff2"),
       url("fonts/Amandine-Italic.woff") format("woff"),
       url("fonts/Amandine-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: oklch(0.985 0.002 247.839);
  --foreground: rgb(122, 100, 92);
  --color-primary-700: rgb(95, 77, 73);
  --color-gold-300: #dcc968;
  --color-gold-500: #bf9b30;
  --color-gold-600: #a67c28;
  --font-sans: "Optima", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.gallery-lightbox-open { overflow: hidden; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
button { font: inherit; color: inherit; background: transparent; }

.relative { position: relative; }

.font-amandine { font-family: Amandine, cursive, sans-serif; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* container (Tailwind) */
.hero__row,
.content {
  width: 100%;
}
@media (min-width: 40rem) { .hero__row, .content { max-width: 40rem; } }
@media (min-width: 48rem) { .hero__row, .content { max-width: 48rem; } }
@media (min-width: 64rem) { .hero__row, .content { max-width: 64rem; } }
@media (min-width: 80rem) { .hero__row, .content { max-width: 80rem; } }
@media (min-width: 96rem) { .hero__row, .content { max-width: 96rem; } }

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.hero__row {
  display: flex;
  flex-direction: row;
  text-align: center;
  gap: 1rem;
  overflow: hidden;
  font-size: .9vw;
}
@media (min-width: 40rem) { .hero__row { gap: 2rem; } }
@media (min-width: 48rem) { .hero__row { gap: 2.5rem; } }
@media (min-width: 80rem) { .hero__row { font-size: 1rem; } }

.hero__panel {
  width: 33.333333%;
  background-size: cover;
  background-position: center;
  background-color: #3a3029;
  position: relative;
}

.hero__num {
  position: absolute;
  bottom: -0.35em;
  font-size: 16em;
  width: 100%;
  color: #fff;
}

.hero__names {
  position: absolute;
  bottom: 35%;
  font-size: 4.5em;
  width: 100%;
  color: #fff;
}

.hero__amp { font-size: .66em; }

.hero__button {
  margin-top: 3rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
@media (hover: hover) { .hero__button:hover { background-color: oklch(92.8% .006 264.531); } }

/* ---------- Galerij ---------- */
.content {
  margin-left: auto;
  margin-right: auto;
  padding: 6rem 1rem;
  min-height: 100vh;
}

.content__inner { text-align: center; margin: 6rem 0; }

.content__wrap { margin: 0 auto; max-width: 72rem; }

.content__title {
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  margin-bottom: 3rem;
  font-weight: 400;
}
@media (min-width: 40rem) { .content__title { font-size: 3rem; line-height: 1; } }

.tabs { margin-bottom: 2rem; }

.tabs__pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 9999px;
  background-color: #fff;
  padding: .375rem;
  box-shadow: var(--shadow-sm);
}

.gallery-tab {
  font-family: Amandine, cursive, sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  padding: .375rem 1.25rem;
  border-radius: 9999px;
  color: var(--color-primary-700);
  transition: color .15s, background-color .15s;
  cursor: pointer;
}
@media (min-width: 40rem) {
  .gallery-tab { font-size: 1.5rem; line-height: 2rem; padding-left: 1.75rem; padding-right: 1.75rem; }
}

.gallery-tab[aria-current="page"] {
  background-color: var(--color-gold-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.album { margin-bottom: 4rem; }

.album__desc,
.album__empty {
  color: var(--color-primary-700);
  margin-bottom: 1.5rem;
}

.btn-gold {
  display: inline-block;
  background-color: var(--color-gold-500);
  color: #fff;
  font-weight: 700;
  padding: .5rem 1.5rem;
  border-radius: 9999px;
  outline: none;
}
@media (hover: hover) { .btn-gold:hover { background-color: var(--color-gold-600); } }
.btn-gold:focus { box-shadow: 0 0 0 3px rgba(66, 153, 225, .5); }

.album__zip { margin-bottom: 1.5rem; }
.album__zip span { font-weight: 400; font-size: .875rem; line-height: 1.25rem; }

.load-more-wrap { text-align: center; margin-top: 2rem; }

/* Masonry: kolommen worden door app.js aangemaakt (1 / 2 / 3). */
.gallery-grid.masonry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gallery-grid.masonry > .gallery-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  gap: 1rem;
  min-width: 0;
}

.gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #fff;
  background-image: linear-gradient(100deg, #fff 40%, #eae7e3, #fff 60%);
  background-size: 250% 100%;
}

.gallery-tile:focus-visible {
  outline: 4px solid var(--color-gold-300);
  outline-offset: 2px;
}

.gallery-tile img { width: 100%; height: auto; }
.gallery-tile img[data-pending] { opacity: 0; }
.gallery-tile img.is-loaded { opacity: 1; }
.gallery-tile.is-broken { background-color: #f2efec; background-image: none; animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .gallery-tile { animation: gallery-tile-shimmer 1.6s linear infinite; }
  .gallery-tile.is-done { animation: none; background-image: none; }
  .gallery-tile img { transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
  .gallery-tile:hover img { transform: scale(1.05); }
  .gallery-tile img.is-loaded { animation: gallery-tile-fade-in .45s ease; }
  .gallery-lightbox__image { transition: opacity .15s; }
  .gallery-lightbox__box--slide-prev { animation: gallery-lightbox-slide-prev .28s ease; }
  .gallery-lightbox__box--slide-next { animation: gallery-lightbox-slide-next .28s ease; }
}

@keyframes gallery-tile-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes gallery-tile-fade-in { 0% { opacity: 0; } }
@keyframes gallery-lightbox-slide-prev { 0% { transform: translate(var(--slide-from, 24px)); opacity: .7; } }
@keyframes gallery-lightbox-slide-next { 0% { transform: translate(var(--slide-from, -24px)); opacity: .7; } }

/* ---------- Lightbox ---------- */
.gallery-lightbox {
  color: #fff;
  background: none;
  border: 0;
  width: min(100% - 2rem, 64rem);
  height: min(100% - 2rem, 54rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  position: fixed;
  inset: 0;
}

.gallery-lightbox::backdrop { background: rgba(0, 0, 0, .9); }

.gallery-lightbox__box {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, .55);
  border: 0;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
}

.gallery-lightbox__close { z-index: 30; top: .5rem; right: .5rem; }

.gallery-lightbox__nav { z-index: 20; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--prev { left: .5rem; }
.gallery-lightbox__nav--next { right: .5rem; }

.gallery-lightbox__stage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 3rem 3rem .5rem;
  position: relative;
}

.gallery-lightbox__image {
  z-index: 10;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.gallery-lightbox__image--loading { opacity: .4; }

.gallery-lightbox__message {
  z-index: 10;
  color: #fff;
  text-align: center;
  max-width: 28rem;
  margin: .5rem 0 0;
  font-size: 1rem;
  position: relative;
}

.gallery-lightbox__message[hidden] { display: none; }

.gallery-lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
}

.gallery-lightbox__counter {
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.gallery-lightbox__download {
  background: var(--color-gold-500);
  color: #fff;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.gallery-lightbox__download:hover { background: var(--color-gold-600); }

:is(.gallery-lightbox__close, .gallery-lightbox__nav, .gallery-lightbox__download):focus-visible {
  outline: 3px solid var(--color-gold-300);
  outline-offset: 2px;
}
