/* ==========================================================================
   Photos — het fotoalbum van ROSE Photography (/photos/, 24 nov 2026)
   Kop (variant A), rijen van gelijke hoogte, grote weergave. Alleen op deze pagina geladen.
   ========================================================================== */

.ph {
  --ph-bg: #101010;
  --ph-bg-deep: #0b0b0b;
  --ph-tile: #181818;
  --ph-line: #262626;
  --ph-text: #ededed;
  --ph-muted: #a3a3a3;
  --ph-faint: #7a7a7a;
  --ph-accent: #e8787a;
  background: var(--ph-bg);
  color: var(--ph-text);
}

/* Kop: stil en gecentreerd */
.ph-head {
  text-align: center;
  padding: 84px 24px 52px;
}
.ph-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ph-accent);
}
.ph-title {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.ph-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 22px;
  background: var(--ph-accent);
}
.ph-lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #b8b8b8;
}
.ph-meta {
  margin: 26px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ph-faint);
  font-variant-numeric: tabular-nums;
}
.ph-intro {
  max-width: 60ch;
  margin: 24px auto 0;
  color: #b8b8b8;
}
.ph-intro a { color: var(--ph-accent); }

/* Album: zonder JavaScript een eenvoudig raster, met JavaScript rijen van gelijke hoogte */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
  padding: 0 8px 8px;
}
.ph-grid.is-laid-out {
  display: block;
  position: relative;
  padding: 0;
  margin: 0 8px 8px;
}
.ph-tile {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--ph-tile);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.ph-grid.is-laid-out .ph-tile {
  position: absolute;
  aspect-ratio: auto;
}
.ph-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ph-tile img.is-loaded,
.no-js .ph-tile img { opacity: 1; }
.ph-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .ph-tile:hover img { transform: scale(1.02); }
  .ph-tile:hover::after { opacity: 1; }
}
.ph-tile:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
  z-index: 1;
}

.ph-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 40px;
  font-size: 0.8125rem;
  color: var(--ph-muted);
}
.ph-more[hidden] { display: none; }
.ph-spin {
  width: 16px;
  height: 16px;
  border: 1.5px solid #444;
  border-top-color: #bbb;
  border-radius: 50%;
  animation: ph-spin 0.9s linear infinite;
}
@keyframes ph-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ph-spin { animation: none; }
  .ph-tile img { transition: none; }
}

.ph-empty {
  padding: 48px 24px 96px;
  text-align: center;
  color: var(--ph-muted);
}

/* Contactbalk */
.ph-cta {
  background: var(--ph-bg-deep);
  border-top: 1px solid var(--ph-line);
  padding: 64px 24px;
  text-align: center;
}
.ph-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 300;
  color: #fff;
}
.ph-cta p {
  margin: 0 auto 26px;
  max-width: 56ch;
  color: #b0b0b0;
}

/* Grote weergave */
.ph-lb {
  position: fixed;
  inset: 0;
  z-index: 10000; /* boven de cookiemelding (9999) */
  background: #000;
  color: #cfcfcf;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.ph-lb[hidden] { display: none; }
.ph-lb__img {
  position: absolute;
  top: 56px;
  bottom: 64px;
  left: 72px;
  right: 72px;
  width: calc(100% - 144px);
  height: calc(100% - 120px);
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ph-lb__img.is-loaded { opacity: 1; }
.ph-lb__bar {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 20px;
  font-size: 0.8125rem;
}
.ph-lb__bar--top { top: 0; height: 56px; }
.ph-lb__bar--bottom { bottom: 0; min-height: 64px; padding-block: 10px; }
.ph-lb__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ph-lb__pos { font-variant-numeric: tabular-nums; color: #bdbdbd; }
.ph-lb__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ph-lb__number { color: #8f8f8f; }
.ph-lb__exif { color: #b5b5b5; font-size: 0.78rem; letter-spacing: 0.01em; }
.ph-lb__exif:empty { display: none; }
.ph-lb__copy { color: #767676; white-space: nowrap; }
.ph-lb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  background: none;
  color: #d0d0d0;
  cursor: pointer;
}
.ph-lb__btn:hover { color: #fff; }
.ph-lb__btn:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.ph-lb__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ph-lb__btn[hidden] { display: none; }
.ph-lb__arrow {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 96px;
  margin-top: -48px;
}
.ph-lb__arrow svg { width: 30px; height: 30px; }
.ph-lb__arrow--prev { left: 8px; }
.ph-lb__arrow--next { right: 8px; }

@media (max-width: 767px) {
  .ph-head { padding: 52px 16px 34px; }
  .ph-meta { margin-top: 20px; }
  .ph-grid, .ph-grid.is-laid-out { margin: 0 4px 4px; }
  .ph-grid { padding: 0; grid-template-columns: repeat(2, 1fr); }
  .ph-cta { padding: 48px 16px; }
  .ph-lb__img { left: 0; right: 0; width: 100%; top: 52px; bottom: 76px; height: calc(100% - 128px); }
  .ph-lb__arrow { display: none; }
  .ph-lb__bar--bottom { align-items: flex-end; }
  .ph-lb__copy { display: none; }
}
