/* =========================================================
   NYRG styles

   Table of contents
   1) Theme tokens (colors, type, spacing)  <- start here to re-theme
   2) Base + typography
   3) Buttons + links
   4) Embroidery band (the cross-stitch strip)
   5) Header + navigation
   6) Sections + page headers
   7) Home: hero
   8) Home: next event
   9) Home: photo strip
  10) Home: Instagram, join band
  11) Gallery page + lightbox
  12) Empty state
  13) Footer
  14) 404 + utilities

   Design notes for collaborators
   - The look is "Voroneț blue + ie embroidery": a deep cerulean blue
     (named after the painted monastery in Bucovina) with cross-stitch
     bands in the flag's red and yellow.
   - The cross-stitch artwork lives in assets/img/stitch-*.svg.
   - Keep the Romanian flag strip colors intact unless a maintainer
     requests changes.
   - No frameworks. Plain CSS, one file.
   ========================================================= */

/* =========================================================
   1) Theme tokens
   ========================================================= */
:root {
  /* Romanian flag colors (official) */
  --ro-blue: #002B7F;
  --ro-yellow: #FCD116;
  --ro-red: #CE1126;

  /* Core palette */
  --voronet: #1C4E9E;        /* hero + page headers */
  --voronet-deep: #143C7E;   /* hover / pressed on blue */
  --ink: #101C36;            /* body text, footer */
  --ink-soft: #46526E;       /* secondary text */
  --paper: #FFFFFF;          /* main background */
  --wash: #EEF2F9;           /* alternate section background */
  --line: #D6DDEA;           /* hairlines and borders */
  --stitch-red: #C8102E;
  --stitch-yellow: #FCD116;

  /* Text on blue */
  --on-blue: #FFFFFF;
  --on-blue-soft: rgba(255, 255, 255, 0.82);

  /* Type */
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.875rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 6.2vw, 5.25rem);

  /* Shape + space */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
  --max: 1180px;

  /* Embroidery band height (scales down on mobile) */
  --stitch-h: 76px;
}

/* =========================================================
   2) Base + typography
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "wdth" 84;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.022em; word-spacing: 0.06em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 32, "wdth" 92; }

p { margin: 0; }
p + p { margin-top: 1em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 38em;
  text-wrap: pretty;
}

.small { font-size: var(--fs-small); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--stitch-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-paper :focus-visible,
main :focus-visible { outline-color: var(--voronet); }
.hero :focus-visible,
.page-hero :focus-visible,
.join-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--stitch-yellow); }

/* =========================================================
   3) Buttons + links
   ========================================================= */
a { color: var(--voronet); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--yellow { background: var(--stitch-yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFDD45; }

.btn--blue { background: var(--voronet); color: #fff; }
.btn--blue:hover { background: var(--voronet-deep); }

.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink); }

.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 650;
  color: var(--voronet);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(28, 78, 158, .3);
}
.text-link:hover { text-decoration-color: currentColor; }

/* =========================================================
   4) Embroidery band
   A full-width strip of cross-stitch, like the band on a
   Romanian ie blouse sleeve. On page load it "stitches" in
   from left to right (once). Reduced-motion users see it static.
   ========================================================= */
.stitch-band {
  height: var(--stitch-h);
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
}
.stitch-band--light { background-image: url("img/stitch-band-light.svg"); background-color: var(--paper); }
.stitch-band--dark  { background-image: url("img/stitch-band-dark.svg"); }
.stitch-band--thin  { --stitch-h: 38px; }

.stitch-band--animate {
  animation: stitch-in 1.4s steps(36, end) .25s both;
}
@keyframes stitch-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* =========================================================
   5) Header + navigation
   ========================================================= */
.flag-strip {
  height: 5px;
  background: linear-gradient(90deg,
    var(--ro-blue) 0 33.333%,
    var(--ro-yellow) 33.333% 66.666%,
    var(--ro-red) 66.666% 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name {
  font-weight: 750;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 32, "wdth" 88;
}
.brand-name span { display: block; font-weight: 450; font-size: 0.8125rem; color: var(--ink-soft); letter-spacing: 0; font-variation-settings: "opsz" 14; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.site-nav a:hover { background: var(--wash); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--stitch-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
}

.nav-cta { margin-left: 8px; }
.site-nav a.btn { display: inline-flex; color: #fff; padding: 0 18px; border-radius: 999px; }
.site-nav a.btn:hover { background: var(--voronet-deep); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 4px; }
.menu-toggle-bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .site-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.125rem; }
  .site-nav a[aria-current="page"] { text-decoration: none; box-shadow: inset 3px 0 0 var(--stitch-red); background: var(--wash); }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* =========================================================
   6) Sections + page headers
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--wash { background: var(--wash); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.section-head p { color: var(--ink-soft); max-width: 36em; margin-top: 12px; }

/* Blue header used on Gallery / Jobs / Mentorship */
.page-hero {
  background: var(--voronet);
  color: var(--on-blue);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { color: var(--on-blue-soft); margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero a:not(.btn) { color: #fff; }

/* =========================================================
   7) Home: hero
   ========================================================= */
.hero {
  background: var(--voronet);
  color: var(--on-blue);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero h1 { max-width: 12ch; }
.hero .lead { color: var(--on-blue-soft); margin-top: 24px; max-width: 32em; }
.hero .btn-row { margin-top: 32px; }

/* Arched photo frame (the arch nods to Brâncovenesc church windows) */
.hero-photos {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
}
.hero-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--voronet-deep);
  box-shadow: 0 0 0 8px rgba(255,255,255,.12);
}
.hero-arch img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-arch img.is-active { opacity: 1; }

.hero-round {
  position: absolute;
  left: -14%;
  bottom: 9%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--stitch-yellow);
  background: var(--voronet-deep);
}
.hero-round img { width: 100%; height: 100%; object-fit: cover; }

.hero-star {
  position: absolute;
  right: -6%;
  top: 6%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff url("img/stitch-star.svg") center / 70% no-repeat;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.hero-photos figcaption {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--on-blue-soft);
  text-align: right;
  min-height: 1.5em;
}
.hero-photos figcaption a { color: #fff; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { justify-self: center; width: min(78%, 360px); margin-top: 8px; }
  .hero-photos figcaption { text-align: center; }
}

/* =========================================================
   8) Home: next event
   ========================================================= */
.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.event-cover {
  background: var(--wash);
  aspect-ratio: 1;
  overflow: hidden;
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover-blank { width: 100%; height: 100%; background: var(--wash) url("img/stitch-star.svg") center / 30% no-repeat; }

.event-body {
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-when {
  display: flex;
  align-items: center;
  gap: 18px;
}
.date-tile {
  flex: none;
  width: 84px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.date-tile-month {
  display: block;
  background: var(--stitch-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 4px 0;
}
.date-tile-day {
  display: block;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  padding: 4px 0 6px;
  font-variation-settings: "opsz" 96, "wdth" 80;
}
.event-when-text { line-height: 1.35; }
.event-when-text strong { display: block; font-size: 1.125rem; }
.event-when-text .tag { margin-bottom: 6px; }
.event-title { font-size: clamp(1.625rem, 2.8vw, 2.25rem); }
.event-where { color: var(--ink-soft); }
.event-where strong { color: var(--ink); font-weight: 600; display: block; }
.event-body .btn-row { margin-top: auto; padding-top: 8px; }

@media (max-width: 760px) {
  .event-feature { grid-template-columns: 1fr; }
  .event-cover { aspect-ratio: 16 / 10; }
}

.event-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--ink-soft);
}
.event-note::before {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  background: url("img/stitch-star.svg") center / contain no-repeat;
}

.more-events { margin-top: 32px; }
.more-events h3 { margin-bottom: 8px; }
.more-events ul { list-style: none; margin: 0; padding: 0; }
.more-events li {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.more-events li:last-child { border-bottom: 1px solid var(--line); }
.more-events .when { font-weight: 650; }
.more-events .what { min-width: 0; }
.more-events .what span { display: block; color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 640px) {
  .more-events li { grid-template-columns: 1fr auto; }
  .more-events .when { grid-column: 1 / -1; }
}

.calendar-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.calendar-embed iframe { display: block; width: 100%; height: 520px; border: 0; }
.calendar-embed-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   9) Home: photo strip
   ========================================================= */
.strip-controls { display: flex; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-bottom: 12px;
  scrollbar-width: thin;
  overflow-anchor: none;
}
.photo-strip > * { scroll-snap-align: start; }
.strip-photo {
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}
.strip-photo .frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #dfe5f0;
}
.strip-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strip-photo:hover img { transform: scale(1.03); }
.strip-photo figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-soft); }
.strip-photo figcaption strong { color: var(--ink); font-weight: 650; }

.strip-more {
  display: grid;
  place-content: center;
  gap: 12px;
  aspect-ratio: 4 / 5;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--voronet);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
}
.strip-more::before {
  content: "";
  justify-self: center;
  width: 56px; height: 56px;
  background: #fff url("img/stitch-star.svg") center / 70% no-repeat;
  border-radius: 50%;
}
.strip-more:hover { background: var(--voronet-deep); }

/* =========================================================
  10) Home: Instagram, join band
   ========================================================= */
.insta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.insta-post { min-width: 0; }
/* Instagram's embed page. site.js sets the height Instagram reports. */
.insta-frame {
  display: block;
  width: 100%;
  height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
/* Shown before the posts load, or if Instagram is blocked */
.insta-fallback {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 180px;
  padding: 20px;
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.insta-fallback strong { font-size: 1.125rem; }
.insta-fallback span { color: var(--voronet); font-weight: 650; }
@media (max-width: 900px) {
  .insta-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .insta-row > * { scroll-snap-align: start; }
}

.join-band {
  background: var(--voronet);
  color: var(--on-blue);
}
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.join-band p { color: var(--on-blue-soft); margin-top: 16px; max-width: 30em; }
.join-band .btn-row { margin-top: 28px; }
.playlist h3 { font-size: 1.125rem; margin-bottom: 12px; color: #fff; }
.playlist iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

/* =========================================================
  11) Gallery page + lightbox
   ========================================================= */
.album-latest {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mosaic button {
  padding: 0; border: 0; margin: 0;
  background: #dfe5f0;
  cursor: zoom-in;
  overflow: hidden;
  min-height: 0;
}
.mosaic button:first-child { grid-row: 1 / span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic button:hover img { transform: scale(1.04); }
.album-latest-info h2 { margin-top: 6px; }
.album-latest-info .meta { margin-top: 14px; color: var(--ink-soft); }
.album-latest-info .btn-row { margin-top: 24px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--stitch-yellow);
  color: var(--ink);
  font-weight: 650;
  font-size: var(--fs-small);
}
@media (max-width: 860px) {
  .album-latest { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: 4 / 5; }
  .mosaic button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic button:nth-child(n+4) { display: none; }
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 24px;
}
.album-card {
  display: block;
  align-self: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.album-card .frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #dfe5f0;
}
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.album-card:hover img { transform: scale(1.03); }
.album-card .count {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 28, 54, .78);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.album-card h3 { margin-top: 14px; font-size: 1.375rem; }
.album-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.album-card p { margin-top: 4px; color: var(--ink-soft); font-size: 0.9375rem; }

.drive-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--wash);
}
.drive-note strong { display: block; font-size: 1.125rem; }
/* Lines up with the text inside .drive-note above it */
.photo-removal { margin-top: 12px; padding-inline: 28px; color: var(--ink-soft); font-size: var(--fs-small); }

/* Lightbox (uses the native <dialog> element) */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 16, 32, .96);
  color: #fff;
}
.lightbox::backdrop { background: rgba(10, 16, 32, .9); }
.lightbox-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
}
.lightbox-top, .lightbox-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.lightbox-title { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
  padding: 0 72px;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.lightbox .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { color: rgba(255,255,255,.75); font-size: var(--fs-small); white-space: nowrap; }
.lightbox a { color: #fff; }
.lightbox-status { position: absolute; inset: auto 0 12px; text-align: center; font-size: var(--fs-small); color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .lightbox-stage { padding: 0 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: -58px; transform: none; }
  .lightbox-prev { left: auto; right: 72px; }
  .lightbox-bottom { padding-right: 140px; }
}

/* =========================================================
  12) Empty state (gallery)
   ========================================================= */
.empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px dashed #B9C4D8;
  border-radius: var(--radius-lg);
}
.empty-state::before {
  content: "";
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--wash) url("img/stitch-star.svg") center / 64% no-repeat;
}
.empty-state h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.empty-state p { margin-top: 10px; color: var(--ink-soft); max-width: 34em; }
.empty-state .btn-row { margin-top: 20px; }
@media (max-width: 560px) { .empty-state { grid-template-columns: 1fr; } }

/* =========================================================
  13) Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: 0.9375rem;
}
.site-footer .stitch-band { --stitch-h: 44px; opacity: .9; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: 56px 40px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.footer-brand strong { display: block; color: #fff; font-size: 1.125rem; font-variation-settings: "opsz" 32, "wdth" 88; }
.footer-brand p { margin-top: 6px; max-width: 26em; }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: 0; margin-bottom: 12px; font-variation-settings: "opsz" 14; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-small);
  color: rgba(255,255,255,.6);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
  14) 404 + utilities
   ========================================================= */
.not-found { min-height: 50vh; }

.skeleton {
  background: linear-gradient(90deg, #e3e9f3 0%, #eef2f9 50%, #e3e9f3 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  :root { --stitch-h: 56px; --fs-body: 1rem; }
  .btn { min-height: 46px; }
}

@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;
  }
  .stitch-band--animate { animation: none; }
}
