:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --border-subtle: #222222;
  --accent: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav a {
  margin-left: 1rem;
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--muted);
}

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

/* Layout */

.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ========================= */
/*       HOMEPAGE GRID       */
/* ========================= */

.home {
  position: relative;
}

.home-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid-item,
.grid-item--trigger {
  position: relative;
  overflow: hidden;
}

.grid-item img,
.grid-item--trigger img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 150ms ease-out;
}

/* Trigger: subtiel randje + animatie */

.grid-item--trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 18px rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

.grid-item--trigger:hover img {
  transform: scale(1.03);
}

.grid-item--trigger:hover::after {
  opacity: 1;
}

/* zachte pulse om de zoveel tijd */

@keyframes triggerPulse {
  0%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.grid-item--trigger {
  animation: triggerPulse 8s infinite;
}

/* ========================= */
/*   FAST SCROLL (rechts)    */
/* ========================= */

.fast-scroll-thumb {
  position: fixed;
  right: 8px;
  top: 20%;
  width: 4px;
  height: 60%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  z-index: 30;
}

.fast-scroll-thumb::before {
  content: "";
  position: absolute;
  inset: 20% 0;
  margin-inline: auto;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

/* ========================= */
/*   ROLLS OVERZICHT PAGINA  */
/* ========================= */

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

.rolls-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.rolls-thumb {
  overflow: hidden;
}

.rolls-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.rolls-label {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ========================= */
/*     ROLL DETAIL PAGINA    */
/* ========================= */

.roll-page {
  max-width: 1100px;
  margin: 0 auto;
}

.roll-header {
  margin-bottom: 1rem;
}

.roll-title {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.roll-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roll-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

@media (max-width: 640px) {
  .site-main {
    padding-inline: 0.5rem;
  }

  .site-header__inner {
    padding-inline: 0.75rem;
  }

  .home-grid,
  .rolls-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fast-scroll-thumb {
    right: 4px;
  }
}
