/* ============================================================================
   gallery.css — Event photo gallery
   Dark, calm, "the photos are the star". Theming knobs are the CSS variables
   in :root — change colours / spacing / fonts there and the whole UI follows.
   ============================================================================ */

:root {
  /* ── Colour ───────────────────────────────────────────────────────────── */
  --bg:            #0c0c0f;
  --bg-elevated:   #16161b;
  --surface:       #1d1d23;
  --surface-hover: #26262e;
  --line:          rgba(255, 255, 255, 0.10);
  --text:          #f5f5f7;
  --text-dim:      #a9a9b2;
  --text-faint:    #6b6b76;
  --accent:        #d9c3a0;   /* muted warm gold — selection + focus */
  --accent-strong: #efd9ad;
  --danger:        #e0746a;
  --scrim:         rgba(8, 8, 11, 0.92);

  /* ── Type ─────────────────────────────────────────────────────────────── */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ── Spacing / shape ──────────────────────────────────────────────────── */
  --space:    1rem;
  --gap:      8px;          /* grid gap — also read by gallery.js layout */
  --radius:   10px;
  --radius-sm: 7px;
  --max-w:    1680px;
  --tap:      44px;         /* min touch target */

  /* ── Motion ───────────────────────────────────────────────────────────── */
  --t-fast:  150ms;
  --t:       240ms;
  --t-slow:  360ms;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #1a1a1a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────*/
.btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: var(--tap);
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #1a1611; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--solid { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--solid:hover { background: var(--surface-hover); }
.btn--ghost { background: transparent; color: var(--text-dim); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: -4%;                       /* bleed for Ken Burns + parallax */
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  will-change: transform;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.6%, 0); }
}
/* stop animating the big hero layer once it's scrolled out of view */
.hero.is-past .hero__bg { animation-play-state: paused; }

/* hero background video (muted autoplay loop) — sits over the poster bg */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.hero__video[hidden] { display: none; }
/* when a hero video is present, it provides the motion — kill the Ken Burns */
.hero--video .hero__bg { animation: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 30%, rgba(8,8,11,0.55) 100%),
    linear-gradient(to bottom, rgba(8,8,11,0.35) 0%, rgba(8,8,11,0.15) 45%, rgba(8,8,11,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1.1s var(--ease) 0.15s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.86);
  margin: 1.1rem 0 0;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(245,245,247,0.8);
  text-decoration: none;
  animation: floatY 2.4s ease-in-out infinite;
}
.hero__scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero__scroll-arrow {
  width: 16px; height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================================
   GALLERY GRID (justified rows — sized by gallery.js from manifest dims)
   ============================================================================ */
/* ── Sections (Fotos / Videos) ──────────────────────────────────────────── */
.section[hidden] { display: none; }
.section--videos { border-top: 1px solid var(--line); }

.section__title {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(0.75rem, 3vw, 2.5rem) 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.section__count {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(0.75rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

.gallery__row {
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  flex: 0 0 auto;
  /* entrance animation start state */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.tile.is-in { opacity: 1; transform: translateY(0); }

.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease), transform var(--t) var(--ease);
}
.tile__img.is-loaded { opacity: 1; }
.tile:hover .tile__img { transform: scale(1.045); }

/* full-tile open affordance (real <button>, keyboard-focusable) */
.tile__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tile__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* selected state */
.tile.is-selected { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.is-selected::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(217,195,160,0.16);
  pointer-events: none;
}

/* gradient scrims top & bottom for control legibility */
.tile__scrim {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.tile:hover .tile__scrim,
.tile.is-selected .tile__scrim { opacity: 1; }

/* selection checkbox (top-left) */
.tile__check {
  position: absolute;
  top: 8px; left: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background var(--t-fast) var(--ease);
}
.tile__check::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2px solid #1a1611;
  border-bottom: 2px solid #1a1611;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}
.tile:hover .tile__check,
.tile.is-selected .tile__check { opacity: 1; transform: scale(1); }
.tile.is-selected .tile__check {
  background: var(--accent);
  border-color: var(--accent);
}
.tile.is-selected .tile__check::after { opacity: 1; }

/* download icon (top-right) */
.tile__dl {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background var(--t-fast) var(--ease);
}
.tile:hover .tile__dl { opacity: 1; transform: scale(1); }
.tile__dl:hover { background: rgba(0,0,0,0.7); }
.tile__dl svg { width: 16px; height: 16px; }

/* video tile */
.tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}
.tile__play::before {
  content: "";
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(12,12,15,0.5);
  backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.tile__play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}
.tile__badge {
  position: absolute;
  bottom: 8px; left: 8px;
  z-index: 3;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
}

/* touch devices: controls always visible (no hover) */
@media (hover: none) {
  .tile__check, .tile__dl, .tile__scrim { opacity: 1; transform: scale(1); }
}

.gallery__status {
  text-align: center;
  color: var(--text-faint);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.gallery__status.is-hidden { display: none; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.site-footer__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.site-footer__note {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0;
}

/* ============================================================================
   FLOATING SELECTION BAR
   ============================================================================ */
.selbar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100vw - 1.5rem));
  background: rgba(22,22,27,0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  padding: 0.7rem 0.8rem 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.selbar.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.selbar[hidden] { display: none; }

.selbar__count {
  font-weight: 600;
  font-size: 0.92rem;
  margin-right: auto;
  white-space: nowrap;
}
.selbar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.selbar__actions .btn { padding: 0 0.95rem; min-height: 40px; }

.selbar__progress {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.2rem;
}
.selbar__bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.selbar__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width var(--t-fast) linear;
}
.selbar__progress-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================================
   LIGHTBOX
   ============================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  margin: 0;
  max-width: 92vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform var(--t) var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage img,
.lightbox__stage video {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: var(--bg-elevated);
}
.lightbox__stage.is-loading::before {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  background: rgba(22,22,27,0.6);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.lightbox__close {
  top: 1rem; right: 1rem;
  width: var(--tap); height: var(--tap);
  border-radius: 50%;
}
.lightbox__close::before,
.lightbox__close::after {
  content: ""; position: absolute;
  width: 17px; height: 2px; background: #fff; border-radius: 2px;
}
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after  { transform: rotate(-45deg); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(40,40,48,0.85); }

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav::before {
  content: "";
  width: 13px; height: 13px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.lightbox__nav--prev::before { transform: rotate(-45deg); margin-left: 4px; }
.lightbox__nav--next::before { transform: rotate(135deg); margin-right: 4px; }
.lightbox__nav.is-hidden { display: none; }

.lightbox__bar {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(22,22,27,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.1rem;
}
.lightbox__counter {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lightbox__actions { display: flex; gap: 0.4rem; }
.lightbox__actions .btn { min-height: 38px; padding: 0 0.95rem; }
.btn--selected { background: var(--accent); color: #1a1611; border-color: var(--accent); }

/* ============================================================================
   TOAST
   ============================================================================ */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 6.5rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  max-width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none; }

/* ── small screens ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
  .lightbox__bar { gap: 0.6rem; padding-left: 0.9rem; }
  .selbar__count { font-size: 0.85rem; }
  .selbar { gap: 0.5rem; }
}

/* ============================================================================
   PINNWAND (guestbook) — real cork board with pinned paper notes
   ============================================================================ */
.pinnwand { border-top: 1px solid var(--line); }
.pinnwand__intro {
  max-width: var(--max-w);
  margin: 0.4rem auto 0;
  padding: 0 clamp(0.75rem, 3vw, 2.5rem);
  color: var(--text-dim);
  font-size: 1rem;
}

/* ── "write a note" pad (cream paper, pinned, slightly tilted) ────────────── */
.pinnwand__form {
  max-width: 540px;
  margin: 1.9rem auto 0;
  padding: 1.6rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(#fdf6e3, #f6eac6);
  border-radius: 3px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-1.2deg);
  position: relative;
}
.pinnwand__form::before {                       /* pin on the pad */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 24px; height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb0b0, #d6453d 55%, #8e1f1b);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.45);
}
.pinnwand__form-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  color: #4a3b22;
  text-align: center;
  margin: 0.2rem 0 0.3rem;
}
.pinnwand__input,
.pinnwand__textarea {
  width: 100%;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #2c2417;
  background: transparent;
  border: none;
  border-bottom: 2px solid #d8c39a;
  border-radius: 0;
  padding: 0.3rem 0.15rem;
}
.pinnwand__input::placeholder,
.pinnwand__textarea::placeholder { color: #b6a071; }
.pinnwand__input:focus,
.pinnwand__textarea:focus { outline: none; border-bottom-color: #8a6d35; }
.pinnwand__textarea { min-height: 80px; line-height: 1.45; resize: vertical; }

/* honeypot — visually gone, still in the DOM for bots */
.pinnwand__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pinnwand__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.pinnwand__file {
  cursor: pointer;
  min-height: 36px;
  font-size: 0.8rem;
  color: #5a4a2c;
  background: rgba(74, 59, 34, 0.07);
  border: 1px solid rgba(74, 59, 34, 0.25);
}
.pinnwand__file:hover { background: rgba(74, 59, 34, 0.13); color: #3a2f18; }
.pinnwand__file input { display: none; }
.pinnwand__actions .btn--primary {
  margin-left: auto;
  min-height: 38px;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  background: #3f5d3f;
  color: #fdf6e3;
  border-color: transparent;
}
.pinnwand__actions .btn--primary:hover { background: #344e34; }
.pinnwand__hint { margin: 0.2rem 0 0; font-size: 0.85rem; color: #6a5a3a; min-height: 1.1em; text-align: center; }

/* ── the cork board ──────────────────────────────────────────────────────── */
.pinnwand__wall {
  max-width: var(--max-w);
  margin: 2.6rem auto 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  column-count: 4;
  column-gap: 1.7rem;
  background-color: #c8a571;
  background-image:
    radial-gradient(rgba(90, 60, 30, 0.20) 1px, transparent 1.7px),
    radial-gradient(rgba(255, 240, 210, 0.16) 1px, transparent 1.7px),
    radial-gradient(rgba(120, 80, 40, 0.12) 1px, transparent 2px);
  background-size: 8px 8px, 13px 13px, 19px 19px;
  background-position: 0 0, 4px 6px, 9px 3px;
  border: 16px solid #6b4a2b;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.22),
    inset 0 0 90px rgba(60, 35, 10, 0.42),
    0 26px 60px rgba(0, 0, 0, 0.55);
}
@media (max-width: 1200px) { .pinnwand__wall { column-count: 3; } }
@media (max-width: 860px)  { .pinnwand__wall { column-count: 2; column-gap: 1.3rem; } }
@media (max-width: 560px)  { .pinnwand__wall { column-count: 1; border-width: 11px; } }

.pinnwand__empty {
  column-span: all;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: #4a3415;
  padding: 1.2rem;
}

/* ── a pinned note ───────────────────────────────────────────────────────── */
.wall-card {
  break-inside: avoid;
  margin: 0 0 1.7rem;
  padding: 1.4rem 1.25rem 1.2rem;
  background: var(--note, #fff7d6);
  color: #2a2517;
  border-radius: 2px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt, -2deg));
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.wall-card:hover {
  transform: rotate(0deg) scale(1.035);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  z-index: 3;
}
.wall-card::before {                            /* push pin head */
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 20px; height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), var(--pin, #d6453d) 55%, rgba(0, 0, 0, 0.45));
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.wall-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.wall-card__name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: #3a2f18;
}
.wall-card__date {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: rgba(58, 47, 24, 0.55);
  white-space: nowrap;
}
.wall-card__msg {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.32rem;
  line-height: 1.32;
  color: #2c2417;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* photo note → polaroid (white, photo on top, caption below) */
.wall-card--photo { background: #fff; padding: 0.7rem 0.7rem 0.95rem; }
.wall-card--photo .wall-card__photo { order: 1; }
.wall-card--photo .wall-card__head { order: 2; margin-top: 0.55rem; }
.wall-card--photo .wall-card__msg  { order: 3; }
.wall-card__photo {
  width: 100%;
  display: block;
  border-radius: 1px;
  background: #ece7da;
}

.wall-card__del {
  align-self: flex-end;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: #a32219;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(163, 34, 25, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
}
.wall-card__del:hover { background: #fff; }

/* ── Print / failsafe ───────────────────────────────────────────────────────
   Tiles start at opacity:0 and are revealed by IntersectionObserver. Force them
   visible for print (and as a belt-and-braces fallback) so the grid is never
   left blank when the reveal observer doesn't run. */
@media print {
  .tile, .tile__img { opacity: 1 !important; transform: none !important; }
  .hero { height: auto; min-height: 0; }
  .hero__scroll, .selbar, .lightbox, .toast, .tile__dl, .tile__check { display: none !important; }
}
