/* =========================
   Basis
   ========================= */

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: #2a2a2a;
    background-color: #f1eee9;
}

/* =========================
   Header
   ========================= */

header {
    text-align: center;
    margin: 70px 0 40px;
}

header h1 {
    font-size: 2.2em;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.gallery-name {
  margin-top: 0.4rem;
  margin-bottom: 0.45rem;   /* bepaalt hoeveel ‘lucht’ tot de werken */
  text-align: center;
  font-size: 1.0rem;       /* vergelijkbaar met e-mailblok */
  letter-spacing: 0.06em;
  color: #6f655a;          /* zelfde pastel-familie */
}

/* =========================
   HOME (inkomhal) — GEÏSOLEERD
   ========================= */

.home-main {
    display: flex;
    justify-content: center;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    padding: 40px;
}

.home-item {
    text-align: center;
    text-decoration: none;
    color: #2a2a2a;
}

.home-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e6e1d9;
}

.home-item span {
    display: block;
    margin-top: 12px;
    font-size: 1em;
    letter-spacing: 0.05em;
}

/* =========================
   HOME FOOTER — CORRECT
   ========================= */

.home-footer {
    position: relative;
    padding: 40px 60px 60px;
}

/* links */
.home-footer-left {
    position: absolute;
    left: 60px;
    bottom: 60px;
}

.home-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    text-decoration: none;
    color: #2a2a2a;
}

.home-mail img {
    height: 14px;
    opacity: 0.65;
}

/* midden exact gecentreerd */
.home-footer-center {
    text-align: center;
    font-size: 1em;
    letter-spacing: 0.08em;
}

/* =========================
   GALLERY — HERSTELD & ONAANGETAST
   ========================= */

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e6e1d9;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* =========================
   Home footer (stabiel)
   ========================= */

.home-footer {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 40px;
    text-align: center;
    font-size: 1.05em;
    letter-spacing: 0.08em;
}

/* Centrale footertekst */
.home-footer-text {
    text-align: center;
}

/* Mailblok – exact op dezelfde hoogte */
.home-mail {
    position: absolute;
    left: 10px;               /* bijna tegen linkerrand */
    bottom: 0;                /* exact footer-hoogte */
    font-size: 0.85em;        /* kleiner dan naam */
}

.home-mail a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2a2a2a;
}

.home-mail img {
    height: 18px;             /* klein, discreet */
    opacity: 0.8;
}
/* LIGHTBOX – privé museumruimte */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox img {
  image-rendering: auto;
  backface-visibility: hidden;
}

#lightbox .lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

#lightbox button {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

#lightbox button:hover {
  opacity: 0.7;
}
/* PAGINATIE – definitief, rustig, identiek offline/online */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
  font-size: 1.15rem;
  font-family: system-ui, sans-serif;
  position: relative;
  z-index: 2;
}

/* gemeenschappelijke vorm */
.pagination a,
.pagination strong {
  display: inline-block;        /* essentieel */
  min-width: 2.2rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
}

/* gewone pagina */
.pagination a {
  color: #5e554b;               /* warm pastel */
  background: transparent;
  text-decoration: none;
}

/* hover (lichter dan actief) */
.pagination a:hover,
.pagination a:focus {
  background: #d8d2c8;          /* lichte pastel */
  color: #4a443d;
  outline: none;
}

/* actieve pagina */
.pagination strong {
  background: #6f655a;          /* donker pastel */
  color: #f7f5f2;
  font-weight: 500;
}

/* ellipsis */
.pagination span {
  color: #888;
  padding: 0 0.3rem;
}
}
