/* ═══════════════════════════════════════════════════════
   Quiet Gallery — Wedding Site Styles
   Anssi & Vilma · Levi 5.9.2026
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────── */

:root {
  --display-font: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Palatino, serif;
  --body-font: "Inter", "Avenir Next", "Segoe UI Variable", "Trebuchet MS",
    sans-serif;
}

body[data-theme="gallery"][data-mode="light"] {
  --bg: #efe7db;
  --bg-accent: rgba(182, 103, 51, 0.12);
  --surface: rgba(251, 245, 237, 0.92);
  --surface-strong: #fbf7ef;
  --surface-alt: #d8c4a8;
  --text: #241812;
  --muted: #695744;
  --accent: #9a6239;
  --accent-strong: #5e3b24;
  --border: rgba(95, 59, 36, 0.12);
  --shadow: 0 18px 50px rgba(79, 54, 34, 0.08);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  --topbar-bg: rgba(239, 231, 219, 0.92);
  --button-text: #fffaf4;
  --card-surface: rgba(252, 247, 240, 0.92);
  --line: rgba(95, 59, 36, 0.15);
  --icon-bg: rgba(154, 98, 57, 0.12);
}

body[data-theme="gallery"][data-mode="dark"] {
  --bg: #071019;
  --bg-accent: rgba(84, 224, 194, 0.1);
  --surface: rgba(10, 20, 31, 0.78);
  --surface-strong: rgba(12, 24, 36, 0.92);
  --surface-alt: rgba(18, 40, 52, 0.9);
  --text: #e8f4ef;
  --muted: #9eb7bf;
  --accent: #7fdcc2;
  --accent-strong: #d6fff6;
  --border: rgba(127, 220, 194, 0.14);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(5, 13, 22, 0.6) 100%
  );
  --topbar-bg: rgba(7, 16, 25, 0.88);
  --button-text: #071019;
  --card-surface: rgba(10, 22, 34, 0.88);
  --line: rgba(127, 220, 194, 0.18);
  --icon-bg: rgba(127, 220, 194, 0.12);
}

/* ── Reset & Base ──────────────────────────────────────── */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

button {
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}

.container {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ── Typography ────────────────────────────────────────── */

.display {
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.6rem;
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-text {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 38rem;
}

.required {
  color: var(--accent);
}

/* ── Animations ────────────────────────────────────────── */

.reveal {
  animation: fade-up 700ms ease both;
}

.reveal--delay {
  animation-delay: 150ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Topbar ────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding: 0.65rem 0;
}

.brand-block {
  flex-shrink: 0;
  margin-right: auto;
}

.brand-kicker {
  margin: 0;
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title {
  margin: 0;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-nav a {
  white-space: nowrap;
}

.section-nav a {
  padding: 0.3rem 0;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ── Mode Toggle ───────────────────────────────────────── */

.mode-toggle {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mode-toggle__button {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s;
}

.mode-toggle__button svg {
  vertical-align: -2px;
  flex-shrink: 0;
}

.mode-toggle__button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.mode-toggle__button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

/* ── Site Shell ────────────────────────────────────────── */

.site-shell {
  min-height: 100vh;
}

.page {
  padding: 0 0 5rem;
}

/* ═══════════════════════════════════════════════════════
   GALLERY — Hero
   ═══════════════════════════════════════════════════════ */

.g-hero {
  padding: 0;
}

.g-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.g-hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body[data-mode="dark"] .g-hero__frame img {
  object-position: center 85%;
}

.g-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.g-hero__copy {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

/* Dark mode: position text just above the aurora horizon */
body[data-mode="dark"] .g-hero__copy {
  bottom: 32%;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  background: radial-gradient(
    ellipse farthest-side at center,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.38) 25%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.12) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}

.g-hero__mode {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
}

.g-hero__title {
  font-family: var(--display-font);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.005em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.g-hero__chip {
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.g-hero__subtitle {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════
   GALLERY — Section Heading
   ═══════════════════════════════════════════════════════ */

.g-section-heading {
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════
   GALLERY — Schedule / Timeline
   ═══════════════════════════════════════════════════════ */

.g-schedule {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.g-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.g-tl__event {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.g-tl__image {
  overflow: hidden;
  border-radius: 16px;
}

.g-tl__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.g-tl__event:last-child .g-tl__image img {
  object-position: center bottom;
}

.g-tl__event:hover .g-tl__image img {
  transform: scale(1.03);
}

.g-tl__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
}

.g-tl__icon svg {
  width: 28px;
  height: 28px;
}

.g-tl__content {
  padding: 0.5rem 0;
}

.g-tl__title {
  margin: 0 0 0.4rem;
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.g-tl__time {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
}

.g-tl__location {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.g-tl__venue-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s;
}

.g-tl__venue-link:hover {
  color: var(--accent-strong);
}

.g-tl__address {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.g-tl__address-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s;
}

.g-tl__address-link:hover {
  color: var(--accent-strong);
}

.g-tl__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.g-tl__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.g-tl__map-link {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.g-tl__map-link:hover {
  background: var(--accent);
  color: var(--button-text);
  border-color: var(--accent);
}

/* Area map modal */
.area-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: area-map-fade 0.2s ease;
}

@keyframes area-map-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.area-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.area-map-modal__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
}

.area-map-modal__content img {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.area-map-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.area-map-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Right-aligned text (image on right) */
.g-tl__event--img-right .g-tl__content {
  text-align: right;
}

.g-tl__event--img-right .g-tl__actions {
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════
   GALLERY — Travel & Stay
   ═══════════════════════════════════════════════════════ */

/* ── Saapuminen ─────────────────────────────────────────── */

.g-arrival {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.g-arrival__subtitle {
  text-align: center;
  color: var(--muted);
  margin: -2rem 0 3rem;
  font-size: 1.05rem;
  font-style: italic;
}

.g-arrival__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.g-arrival__map {
  position: sticky;
  top: 5rem;
}

.g-arrival__map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Arrival option cards */
.g-arrival__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arrival-option {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.arrival-option__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.arrival-option__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
}

.arrival-option__icon--plane { background: rgba(74, 144, 226, 0.14); color: #4A90E2; }
.arrival-option__icon--train { background: rgba(224, 120, 32, 0.14); color: #E07820; }
.arrival-option__icon--bus   { background: rgba(42, 170, 106, 0.14); color: #2aaa6a; }

.arrival-option__icon svg {
  width: 100%;
  height: 100%;
}

.arrival-option__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.arrival-option__title {
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.arrival-option__text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.arrival-option__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arrival-option__link {
  font-size: 0.77rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  transition: all 0.2s;
}

.arrival-option__link:hover {
  background: var(--accent);
  color: var(--button-text);
  border-color: var(--accent);
}

/* ── Majoitus ───────────────────────────────────────────── */

.g-stay {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.g-stay__text {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
}

.g-stay__text p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.g-stay__hotel {
  font-size: 1.15rem !important;
  color: var(--text) !important;
  margin: 1.4rem 0 0.4rem !important;
}

.g-stay__link {
  font-family: var(--display-font);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s;
}

.g-stay__link:hover {
  color: var(--accent);
}

.g-stay__code {
  margin: 0 0 0.4rem !important;
  font-size: 0.95rem !important;
  color: var(--text) !important;
}

.g-stay__code code {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "Inter", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.g-stay__code-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.g-stay__note {
  margin-top: 1.6rem !important;
  font-size: 0.92rem !important;
  font-style: italic;
}

/* ── Aktiviteetit ──────────────────────────────────────── */

.g-activities {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.g-activities__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.7;
}

.g-activities__map {
  height: 400px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.g-activities__map .leaflet-control-attribution {
  font-size: 0.6rem;
}


/* Groups grid */
.g-activities__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.g-activities__group {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Expanded group spans full width */
.g-activities__group:not(.is-collapsed) {
  grid-column: 1 / -1;
}

.g-activities__group-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: background 0.25s;
}

.g-activities__group-header:hover {
  background: var(--border);
}

/* Thumbnail — large, card-style */
.g-activities__group-thumb {
  width: 100%;
  overflow: hidden;
}

.g-activities__group-thumb img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transition: transform 0.3s;
}

.g-activities__group-header:hover .g-activities__group-thumb img {
  transform: scale(1.03);
}

/* Bar below thumb with title + chevron */
.g-activities__group-bar {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  gap: 0.5rem;
}

.g-activities__group-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.g-activities__group-title {
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: 600;
}

.g-activities__group-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.g-activities__chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.g-activities__group.is-collapsed .g-activities__chevron {
  transform: rotate(-90deg);
}

.g-activities__group-body {
  padding: 1.2rem;
  border-top: 1px solid var(--border);
}

.g-activities__group.is-collapsed .g-activities__group-body {
  display: none;
}

/* Venue marker on map */
.venue-marker {
  background: none;
  border: none;
}

/* Map permanent labels */
.map-label {
  background: var(--surface, rgba(255,255,255,0.92));
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  color: var(--text, #333);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.map-label--venue {
  background: #c0392b;
  color: #fff;
  border-color: #a93226;
  font-size: 0.75rem;
}

.g-activities__group-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.map-fullscreen-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  color: #333;
}

.g-activities__map:fullscreen {
  height: 100vh;
  border-radius: 0;
}

.g-activities__map:-webkit-full-screen {
  height: 100vh;
  border-radius: 0;
}

.g-activities__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.activity-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.activity-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center bottom;
}

.activity-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.activity-card__meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.activity-card__name {
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.activity-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  flex: 1;
}

.activity-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

a.activity-card__link {
  text-decoration: none;
}

a.activity-card__link:hover {
  color: var(--accent-strong);
}

.activity-card__inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s;
}

.activity-card__inline-link:hover {
  color: var(--accent-strong);
}

article.activity-card {
  cursor: default;
}

/* ── Lahjat ────────────────────────────────────────────── */

.g-gifts {
  padding: clamp(2rem, 4vw, 4rem) 0;
  text-align: center;
}

.g-gifts__text {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   GALLERY — Panels (RSVP + Memories)
   ═══════════════════════════════════════════════════════ */

.g-panels {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.g-panels__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-surface);
}

/* ── RSVP Form ─────────────────────────────────────────── */

.rsvp-form,
.memory-form {
  margin-top: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span,
.field legend {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field--span-full {
  grid-column: 1 / -1;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--icon-bg);
}

.choice-card input {
  accent-color: var(--accent);
}

.toggle {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.plus-one-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
}

.button--primary {
  margin-top: 1rem;
  background: var(--accent);
  color: var(--button-text);
  border-color: var(--accent);
}

.button--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button--soft {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button--soft:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form-status {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--accent);
}

.saved-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.saved-summary h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.saved-summary p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Memories ──────────────────────────────────────────── */

.memory-stage-shell {
  margin-bottom: 1.5rem;
}

.memory-stage__figure {
  margin: 0;
}

.memory-stage__figure img {
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.memory-stage__caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 0.7rem;
}

.memory-stage__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.memory-stage__text {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.memory-stage__author {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.memory-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.memory-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.memory-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.memory-thumb.is-active {
  border-color: var(--accent);
}

.memory-thumb img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.memory-thumb span {
  display: block;
  padding: 0.25rem 0.3rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__inner p {
  margin: 0.2rem 0;
}

/* ═══════════════════════════════════════════════════════
   LOCK SCREEN
   ═══════════════════════════════════════════════════════ */

.lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.lock-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lock-panel .display {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.8rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.concept-preview-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-surface);
}

.concept-preview-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.concept-preview-card__body {
  padding: 1.2rem 1.5rem;
}

.concept-preview-card__body h2 {
  margin: 0 0 0.3rem;
  font-family: var(--display-font);
  font-size: 1.3rem;
}

.concept-preview-card__mood {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.concept-preview-card__body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
}

@media (max-width: 860px) {
  .g-tl__event {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .g-tl__event--img-right .g-tl__image {
    order: -2;
  }

  .g-tl__event--img-right .g-tl__icon {
    order: -1;
  }

  .g-tl__event--img-right .g-tl__content {
    text-align: left;
  }

  .g-tl__icon {
    margin: 0 auto;
  }

  .g-panels__inner,
  .lock-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1280px, calc(100% - 1.5rem));
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }

  .topbar__tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .section-nav {
    gap: 0.2rem 1rem;
    font-size: 0.72rem;
  }

  .g-hero__frame img {
    aspect-ratio: 4 / 5;
    object-position: center top;
  }

  /* Light mode mobile: text at bottom with stronger gradient (Vilma in frame) */
  .g-hero__copy {
    bottom: 0;
    padding: 2rem 1.5rem 2.5rem;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.75) 35%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  /* Dark mode mobile: keep positioning near horizon, wider soft gradient */
  body[data-mode="dark"] .g-hero__copy {
    bottom: 28%;
    padding: 4rem 2.5rem 4.5rem;
  }

  .g-hero__title {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .g-hero__subtitle {
    font-size: 0.92rem;
    margin-top: 0.8rem;
  }

  .g-section-heading {
    font-size: clamp(1.8rem, 7vw, 3rem);
    margin-bottom: 2rem;
  }

  .g-arrival__layout {
    grid-template-columns: 1fr;
  }

  .g-arrival__map {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .g-activities__map {
    height: 280px;
  }

  .g-activities__groups {
    grid-template-columns: 1fr;
  }

  .g-activities__cards {
    grid-template-columns: 1fr;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .plus-one-fields {
    grid-template-columns: 1fr;
  }

  .memory-stage__caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .memory-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1rem);
  }

  .g-hero__copy {
    padding: 1.5rem;
  }

  .g-hero__chip {
    font-size: 0.65rem;
  }

  .mode-toggle__button {
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }
}
