/*
Theme Name: Resu Aqua Clean
Theme URI: https://resu.dog/
Author: Pascal Seibt / ChatGPT
Description: Resu Theme v2.5.0 – Gallery Experience Update.
Version: 2.5.0
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resu-aqua-clean
*/

:root {
  color-scheme: dark;
  --resu-bg: #050607;
  --resu-bg-soft: #081115;
  --resu-surface: rgba(10, 18, 22, 0.84);
  --resu-surface-strong: #0c1419;
  --resu-text: #f7fbff;
  --resu-text-soft: rgba(247, 251, 255, 0.76);
  --resu-text-muted: rgba(247, 251, 255, 0.56);
  --resu-line: rgba(64, 198, 240, 0.34);
  --resu-line-soft: rgba(255, 255, 255, 0.10);
  --resu-aqua: #40c6f0;
  --resu-aqua-2: #00d6d6;
  --resu-red: #e63946;
  --resu-white: #ffffff;
  --resu-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --resu-glow: 0 0 42px rgba(64, 198, 240, 0.16);
  --resu-radius: 26px;
  --resu-radius-small: 16px;
  --resu-max: 1240px;
  /* Font roles: easy to override in WordPress → Customizer → Zusätzliches CSS. */
  --resu-font-header-logo: "Orbitron", "Anta", "Segoe UI", system-ui, sans-serif;
  --resu-font-hero-logo: "Rubik Glitch", "Major Mono Display", "Courier New", monospace;
  --resu-font-heading: "Orbitron", "Anta", "Segoe UI", system-ui, sans-serif;
  --resu-font-display: var(--resu-font-heading);
  --resu-font-body: "Anta", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --resu-font-meta: "Quantico", "Courier New", monospace;
  --resu-font-button: var(--resu-font-body);
  /* Backward compatibility: old overrides for --resu-font-logo still affect the hero only. */
  --resu-font-logo: var(--resu-font-hero-logo);
}

html[data-theme="light"] {
  color-scheme: light;
  --resu-bg: #f4fbff;
  --resu-bg-soft: #eaf6fa;
  --resu-surface: rgba(255, 255, 255, 0.88);
  --resu-surface-strong: #ffffff;
  --resu-text: #061014;
  --resu-text-soft: rgba(6, 16, 20, 0.74);
  --resu-text-muted: rgba(6, 16, 20, 0.56);
  --resu-line: rgba(0, 150, 188, 0.28);
  --resu-line-soft: rgba(6, 16, 20, 0.10);
  --resu-aqua: #007d91;
  --resu-aqua-2: #009fb7;
  --resu-red: #c92f3b;
  --resu-shadow: 0 22px 70px rgba(6, 16, 20, 0.10);
  --resu-glow: 0 0 42px rgba(0, 150, 188, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -8%, rgba(64, 198, 240, 0.17), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(230, 57, 70, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--resu-bg), var(--resu-bg-soft));
  color: var(--resu-text);
  font-family: var(--resu-font-body);
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(64, 198, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 198, 240, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  z-index: -1;
}

a { color: var(--resu-aqua); text-underline-offset: 0.22em; }
a:hover { color: var(--resu-aqua-2); }
img { max-width: 100%; height: auto; }

.resu-site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.resu-container { width: min(var(--resu-max), calc(100% - 2rem)); margin-inline: auto; }

.resu-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--resu-bg) 80%, transparent);
  border-bottom: 1px solid var(--resu-line-soft);
}

.resu-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.resu-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
  color: var(--resu-text);
}

.resu-logo-wrap {
  position: relative;
  width: 72px;
  aspect-ratio: 1.1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(64, 198, 240, 0.25));
}

.resu-logo,
.resu-hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resu-logo-wrap .resu-logo,
.resu-hero-card .resu-hero-logo {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

/* Logo switching: keep selectors more specific than the generic positioning rule above. */
.resu-logo-wrap .resu-logo--dark,
.resu-hero-card .resu-logo--dark { opacity: 1; }
.resu-logo-wrap .resu-logo--light,
.resu-hero-card .resu-logo--light { opacity: 0; }
html[data-theme="light"] .resu-logo-wrap .resu-logo--dark,
html[data-theme="light"] .resu-hero-card .resu-logo--dark { opacity: 0; }
html[data-theme="light"] .resu-logo-wrap .resu-logo--light,
html[data-theme="light"] .resu-hero-card .resu-logo--light { opacity: 1; }

.resu-brand-title { display: flex; flex-direction: column; line-height: 1.04; min-width: 0; }
.resu-brand-title strong {
  font-family: var(--resu-font-header-logo);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--resu-text);
  white-space: nowrap;
}
.resu-brand-title span {
  font-family: var(--resu-font-meta);
  color: var(--resu-text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.resu-nav-row { display: flex; align-items: center; gap: 0.78rem; }
.resu-primary-menu,
.resu-primary-menu ul { list-style: none; margin: 0; padding: 0; }
.resu-primary-menu { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.resu-primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  color: var(--resu-text-soft);
  text-decoration: none;
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.resu-primary-menu a:hover,
.resu-primary-menu .current-menu-item > a,
.resu-primary-menu .current_page_item > a { color: var(--resu-text); background: rgba(64, 198, 240, 0.12); }

.resu-icon-button,
.resu-menu-toggle {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--resu-line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--resu-text);
  background: rgba(64, 198, 240, 0.08);
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.resu-menu-toggle { display: none; font-size: 1.55rem; }
.resu-icon-button:hover,
.resu-menu-toggle:hover { transform: translateY(-2px); border-color: var(--resu-aqua); box-shadow: var(--resu-glow); }

.resu-main { flex: 1; }

.resu-hero { padding: clamp(4.2rem, 9vw, 8.4rem) 0 clamp(3rem, 8vw, 5.4rem); }
.resu-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.resu-kicker,
.resu-gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--resu-font-meta);
  color: var(--resu-aqua);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.resu-kicker::before {
  content: "";
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--resu-red);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.36);
}

.resu-hero h1 {
  margin: 1.1rem 0 0;
  font-family: var(--resu-font-hero-logo);
  font-size: clamp(3.15rem, 9vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  color: var(--resu-text);
  text-transform: uppercase;
}

.resu-gradient-word {
  color: var(--resu-aqua);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--resu-white) 48%, transparent);
  text-shadow:
    0 0 24px rgba(64, 198, 240, 0.30),
    0.045em 0.045em 0 rgba(230, 57, 70, 0.48);
}
html[data-theme="light"] .resu-gradient-word {
  -webkit-text-stroke: 1px rgba(255,255,255,0.72);
  text-shadow:
    0 0 14px rgba(0, 150, 188, 0.18),
    0.04em 0.04em 0 rgba(201, 47, 59, 0.38);
}

.resu-hero-text { max-width: 68ch; margin: 1.15rem 0 0; color: var(--resu-text-soft); font-size: clamp(1rem, 1.8vw, 1.22rem); }
.resu-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.55rem; }
.resu-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.74rem 1.18rem;
  border-radius: 999px;
  border: 1px solid var(--resu-aqua);
  background: var(--resu-aqua);
  color: #041014;
  text-decoration: none;
  font-family: var(--resu-font-button);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(64, 198, 240, 0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.resu-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(64, 198, 240, 0.24); color: #041014; }
.resu-button.is-ghost { background: transparent; color: var(--resu-text); border-color: var(--resu-line); box-shadow: none; }
.resu-button.is-ghost:hover { border-color: var(--resu-aqua); color: var(--resu-aqua); }

.resu-hero-card {
  position: relative;
  min-height: clamp(280px, 31vw, 430px);
  border: 1px solid var(--resu-line);
  border-radius: calc(var(--resu-radius) + 8px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(64, 198, 240, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(64,198,240,0.08), rgba(230,57,70,0.06)),
    var(--resu-surface);
  box-shadow: var(--resu-glow), var(--resu-shadow);
}
.resu-hero-card::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--resu-line);
  opacity: 0.64;
}
.resu-hero-card .resu-hero-logo { width: min(76%, 460px); height: min(76%, 460px); inset: auto; }
.resu-hero-card.has-image { place-items: stretch; }

.resu-hero-ecg {
  margin: 1.35rem 0 0;
  width: min(920px, calc(100vw - 2rem));
  max-width: 100%;
  color: var(--resu-aqua);
  opacity: 0.74;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.resu-ecg { display: block; width: 100%; height: auto; overflow: visible; }
.resu-ecg-line,
.resu-ecg-r { fill: none; stroke: currentColor; stroke-width: 5.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.resu-ecg-r { color: var(--resu-red); stroke-width: 4.2; opacity: 0.94; }
.resu-hero-ecg .resu-ecg-line,
.resu-hero-ecg .resu-ecg-r,
.resu-card-ecg .resu-ecg-line,
.resu-card-ecg .resu-ecg-r {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: resu-ecg-draw 1.55s cubic-bezier(.22,.72,.2,1) 0.28s forwards;
}
.resu-card-ecg .resu-ecg-line,
.resu-card-ecg .resu-ecg-r { animation-delay: 0.16s; }
@keyframes resu-ecg-draw { to { stroke-dashoffset: 0; } }

.resu-section { padding: clamp(2.6rem, 7vw, 6rem) 0; }
.resu-section-title { max-width: 880px; margin: 0; font-family: var(--resu-font-heading); text-transform: uppercase; font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.06em; }
.resu-lead { max-width: 760px; color: var(--resu-text-soft); font-size: clamp(1rem, 1.7vw, 1.15rem); }

.resu-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.resu-card,
.resu-post-item {
  border: 1px solid var(--resu-line-soft);
  border-radius: var(--resu-radius);
  background: var(--resu-surface);
  box-shadow: var(--resu-glow);
  padding: clamp(1.15rem, 3vw, 1.65rem);
}
.resu-card h3,
.resu-post-item h2 { margin-top: 0; font-family: var(--resu-font-body); font-size: 1.35rem; }
.resu-card p { color: var(--resu-text-soft); margin-bottom: 0; }

.resu-gallery-preview,
.resu-gallery-teaser { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.resu-preview-card,
.resu-gallery-card {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  min-height: 440px;
  border: 1px solid var(--resu-line);
  border-radius: calc(var(--resu-radius) + 10px);
  overflow: hidden;
  text-decoration: none;
  color: var(--resu-text);
  background: var(--resu-surface);
  box-shadow: var(--resu-glow), var(--resu-shadow);
}
.resu-preview-collage,
.resu-collage-strip {
  display: flex;
  height: 100%;
  min-height: 440px;
  background: #050607;
  overflow: hidden;
}
.resu-preview-panel,
.resu-collage-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: flex 0.45s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
}
.resu-preview-panel:last-child,
.resu-collage-panel:last-child { border-right: 0; }
.resu-preview-panel img,
.resu-collage-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.65s ease, filter 0.45s ease;
}
.resu-preview-card:hover .resu-preview-panel,
.resu-gallery-card:hover .resu-collage-panel { flex: 0.85 1 0; filter: saturate(0.86) brightness(0.82); }
.resu-preview-card:hover .resu-preview-panel:hover,
.resu-gallery-card:hover .resu-collage-panel:hover { flex: 1.75 1 0; filter: saturate(1.08) brightness(1); }
.resu-preview-panel:hover img,
.resu-collage-panel:hover img { transform: scale(1.10); }

.resu-preview-copy,
.resu-gallery-info {
  position: relative;
  min-height: 100%;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(64, 198, 240, 0.13), transparent 18rem),
    radial-gradient(circle at 95% 88%, rgba(230, 57, 70, 0.14), transparent 14rem),
    color-mix(in srgb, var(--resu-surface-strong) 88%, transparent);
}
.resu-preview-copy::before,
.resu-gallery-info::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--resu-line-soft);
  border-radius: calc(var(--resu-radius) - 2px);
  pointer-events: none;
}
.resu-card-ecg { width: min(340px, 100%); color: var(--resu-aqua); opacity: 0.32; margin-bottom: 1.1rem; }
.resu-preview-copy h2,
.resu-gallery-info h2 {
  margin: 0.65rem 0 0;
  font-family: var(--resu-font-heading);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.resu-preview-copy p,
.resu-gallery-info p { color: var(--resu-text-soft); margin: 1rem 0 0; }
.resu-gallery-button {
  width: fit-content;
  margin-top: 1.35rem;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--resu-aqua);
  color: var(--resu-aqua);
  font-family: var(--resu-font-body);
  font-weight: 800;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}
.resu-preview-card:hover .resu-gallery-button,
.resu-gallery-card:hover .resu-gallery-button { background: var(--resu-aqua); color: #041014; transform: translateX(4px); }

.resu-full-gallery { width: min(var(--resu-max), calc(100% - 2rem)); margin: clamp(2.4rem, 6vw, 5rem) auto; }
.resu-gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  padding: clamp(1.25rem, 3.6vw, 2rem);
  border: 1px solid var(--resu-line);
  border-radius: calc(var(--resu-radius) + 8px);
  background:
    radial-gradient(circle at 18% 0%, rgba(64, 198, 240, 0.16), transparent 22rem),
    radial-gradient(circle at 100% 40%, rgba(230, 57, 70, 0.12), transparent 18rem),
    var(--resu-surface);
  box-shadow: var(--resu-glow);
}
.resu-gallery-hero h2 { margin: 0.8rem 0 0; max-width: 14ch; font-family: var(--resu-font-heading); text-transform: uppercase; font-size: clamp(2.1rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.06em; }
.resu-gallery-hero p { max-width: 72ch; margin: 1rem 0 0; color: var(--resu-text-soft); font-size: clamp(1rem, 1.8vw, 1.17rem); }
.resu-gallery-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; font-family: var(--resu-font-meta); }
.resu-gallery-meta span { display: inline-flex; align-items: center; min-height: 36px; padding: 0.35rem 0.75rem; border: 1px solid var(--resu-line-soft); border-radius: 999px; color: var(--resu-text-soft); background: rgba(64, 198, 240, 0.08); font-size: 0.92rem; }

.resu-photo-grid {
  column-width: 210px;
  column-gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(1rem, 2.4vw, 1.35rem);
}
.resu-photo-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  padding: 0;
  border: 1px solid var(--resu-line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: var(--resu-surface-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
  appearance: none;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.resu-photo-card:hover,
.resu-photo-card:focus-visible { transform: translateY(-5px); border-color: var(--resu-aqua); box-shadow: 0 18px 48px rgba(64, 198, 240, 0.18); outline: none; }
.resu-photo-card img { width: 100%; height: auto; object-fit: contain; display: block; transform: scale(1.001); transition: transform 0.58s ease, filter 0.35s ease; }
.resu-photo-card:hover img,
.resu-photo-card:focus-visible img { transform: scale(1.035); filter: saturate(1.08) contrast(1.05); }
.resu-photo-card span { position: absolute; left: 0.75rem; bottom: 0.75rem; min-width: 2.2rem; min-height: 2.2rem; display: grid; place-items: center; border-radius: 999px; color: #041014; background: var(--resu-aqua); font-family: var(--resu-font-meta); font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

body.resu-lightbox-open { overflow: hidden; }
.resu-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: clamp(0.8rem, 3vw, 2rem); background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; overflow-y: auto; overscroll-behavior: contain; transition: opacity 0.24s ease; }
.resu-lightbox.is-open { opacity: 1; pointer-events: auto; }
.resu-lightbox-figure { width: min(100%, 1180px); max-height: calc(100dvh - clamp(1.6rem, 6vw, 4rem)); display: flex; flex-direction: column; gap: 0.85rem; margin: auto; }
.resu-lightbox-figure img { width: 100%; height: auto; max-height: calc(100dvh - 8.4rem); object-fit: contain; border-radius: 20px; background: #050607; box-shadow: 0 24px 90px rgba(0,0,0,0.55); }
.resu-lightbox figcaption { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: #f7fbff; border: 1px solid rgba(255,255,255,0.15); border-radius: 18px; padding: 0.7rem 0.85rem; background: rgba(5, 6, 7, 0.72); }
.resu-lightbox figcaption span { color: rgba(247,251,255,0.78); }
.resu-lightbox figcaption a { color: #041014; background: var(--resu-aqua); border-radius: 999px; padding: 0.56rem 0.8rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
.resu-lightbox-close,
.resu-lightbox-nav { position: fixed; z-index: 2; border: 1px solid rgba(255,255,255,0.2); background: rgba(5, 6, 7, 0.72); color: #f7fbff; cursor: pointer; box-shadow: 0 14px 40px rgba(0,0,0,0.38); transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.resu-lightbox-close:hover,
.resu-lightbox-nav:hover,
.resu-lightbox-close:focus-visible,
.resu-lightbox-nav:focus-visible { transform: scale(1.04); background: rgba(64, 198, 240, 0.18); border-color: var(--resu-aqua); outline: none; }
.resu-lightbox-close { top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 999px; font-size: 2rem; line-height: 1; }
.resu-lightbox-nav { top: 50%; width: 52px; height: 72px; border-radius: 999px; font-size: 3rem; line-height: 1; transform: translateY(-50%); }
.resu-lightbox-nav:hover,
.resu-lightbox-nav:focus-visible { transform: translateY(-50%) scale(1.04); }
.resu-lightbox-nav.is-prev { left: 1rem; }
.resu-lightbox-nav.is-next { right: 1rem; }

.resu-social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.resu-social-card { display: grid; gap: 0.8rem; min-height: 130px; padding: 1.2rem; border: 1px solid var(--resu-line-soft); border-radius: var(--resu-radius); background: var(--resu-surface); color: var(--resu-text); text-decoration: none; box-shadow: var(--resu-glow); transition: transform 0.22s ease, border-color 0.22s ease; }
.resu-social-card:hover { transform: translateY(-4px); border-color: var(--resu-aqua); color: var(--resu-text); }
.resu-social-card span { color: var(--resu-aqua); font-family: var(--resu-font-meta); }
.resu-social-card strong { font-size: 1.35rem; }

.resu-home-content,
.entry-content { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0; }
.entry-content h1,
.entry-content h2 { font-family: var(--resu-font-heading); text-transform: uppercase; letter-spacing: -0.05em; }
.entry-content p { color: var(--resu-text-soft); }

.resu-site-footer { margin-top: auto; border-top: 1px solid var(--resu-line-soft); background: color-mix(in srgb, var(--resu-bg) 84%, transparent); }
.resu-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; color: var(--resu-text-muted); font-family: var(--resu-font-meta); font-size: 0.9rem; }
.resu-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.resu-footer-links a { color: var(--resu-text-soft); text-decoration: none; }
.resu-footer-links a:hover { color: var(--resu-aqua); }

.resu-post-list { display: grid; gap: 1rem; width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.resu-post-item a { color: var(--resu-text); text-decoration: none; }
.resu-post-item a:hover { color: var(--resu-aqua); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.resu-reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.62s ease var(--resu-reveal-delay, 0ms), transform 0.62s ease var(--resu-reveal-delay, 0ms); will-change: opacity, transform; }
.resu-reveal.is-visible { opacity: 1; transform: translateY(0); }
html.resu-theme-is-changing body,
html.resu-theme-is-changing .resu-site-header,
html.resu-theme-is-changing .resu-site-footer,
html.resu-theme-is-changing .resu-card,
html.resu-theme-is-changing .resu-preview-card,
html.resu-theme-is-changing .resu-gallery-card,
html.resu-theme-is-changing .resu-preview-copy,
html.resu-theme-is-changing .resu-gallery-info,
html.resu-theme-is-changing .resu-hero-card,
html.resu-theme-is-changing .resu-icon-button,
html.resu-theme-is-changing .resu-menu-toggle,
html.resu-theme-is-changing .resu-button,
html.resu-theme-is-changing .resu-photo-card,
html.resu-theme-is-changing .resu-lightbox figcaption { transition: background-color 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }

@media (max-width: 1020px) {
  .resu-menu-toggle { display: inline-grid; }
  .resu-nav-row nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; padding: 0.85rem; border: 1px solid var(--resu-line-soft); border-radius: 20px; background: var(--resu-surface-strong); box-shadow: var(--resu-shadow); }
  body.resu-menu-open .resu-nav-row nav { display: block; }
  .resu-primary-menu { display: grid; gap: 0.2rem; }
  .resu-primary-menu a { justify-content: center; }
  .resu-hero-grid,
  .resu-preview-card,
  .resu-gallery-card { grid-template-columns: 1fr; }
  .resu-preview-collage,
  .resu-collage-strip { min-height: 320px; }
  .resu-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .resu-gallery-hero { grid-template-columns: 1fr; align-items: start; }
  .resu-gallery-meta { justify-content: flex-start; }
  .resu-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resu-lightbox { padding: 0.65rem; align-items: flex-start; }
  .resu-lightbox-figure { width: 100%; max-height: none; padding-top: 3.2rem; padding-bottom: 0.7rem; }
  .resu-lightbox-figure img { max-height: calc(100dvh - 11.2rem); }
  .resu-lightbox figcaption { flex-direction: column; align-items: stretch; }
  .resu-lightbox figcaption a { text-align: center; }
  .resu-lightbox-nav { width: 44px; height: 58px; font-size: 2.25rem; }
  .resu-lightbox-close { width: 44px; height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .resu-container { width: min(var(--resu-max), calc(100% - 1.55rem)); }
  .resu-header-inner { min-height: 78px; gap: 0.75rem; }
  .resu-logo-wrap { width: 56px; }
  .resu-brand-title strong { font-size: 1.02rem; }
  .resu-brand-title span { font-size: 0.68rem; letter-spacing: 0.07em; }
  .resu-nav-row { gap: 0.55rem; }
  .resu-menu-toggle,
  .resu-icon-button { min-width: 56px; min-height: 56px; }
  .resu-hero { padding-top: 2.9rem; }
  .resu-hero h1 { font-size: clamp(2.95rem, 15vw, 4.8rem); }
  .resu-actions { display: grid; grid-template-columns: 1fr; }
  .resu-preview-collage,
  .resu-collage-strip { min-height: 300px; }
  .resu-preview-copy,
  .resu-gallery-info { min-height: 280px; }
  .resu-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) {
  .resu-preview-card:hover .resu-preview-panel,
  .resu-gallery-card:hover .resu-collage-panel { flex: 1 1 0; filter: none; }
}

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

/* v2.0.2 — gallery hero collage + tighter full-gallery rhythm */
.resu-full-gallery { margin: clamp(1.4rem, 4vw, 3.2rem) auto; }
.resu-gallery-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  align-items: stretch;
  min-height: clamp(360px, 38vw, 520px);
  padding: clamp(1.2rem, 3.4vw, 2.2rem);
  overflow: hidden;
}
.resu-gallery-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.resu-gallery-hero p { margin-top: clamp(1.1rem, 2.4vw, 1.55rem); }
.resu-gallery-meta { justify-content: flex-start; margin-top: clamp(1.2rem, 3vw, 2.1rem); }
.resu-gallery-hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.resu-gallery-hero-collage {
  position: relative;
  width: min(100%, 460px);
  height: min(100%, 400px);
  min-height: 320px;
  filter: drop-shadow(0 30px 58px rgba(0,0,0,0.38));
}
.resu-gallery-hero-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--resu-line);
  border-radius: 24px;
  background: var(--resu-surface-strong);
  box-shadow: 0 20px 55px rgba(0,0,0,0.34), 0 0 38px rgba(64,198,240,0.12);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.45s ease, z-index 0.01s linear;
}
.resu-gallery-hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transform: scale(1.04); }
.resu-gallery-hero-shot.is-shot-1 { inset: 3% 34% 18% 0; transform: rotate(-8deg); z-index: 2; }
.resu-gallery-hero-shot.is-shot-2 { inset: 0 7% 10% 27%; transform: rotate(5deg); z-index: 3; }
.resu-gallery-hero-shot.is-shot-3 { inset: 32% 0 0 43%; transform: rotate(11deg); z-index: 1; }
.resu-gallery-hero:hover .resu-gallery-hero-shot.is-shot-1 { transform: rotate(-11deg) translate(-8px, -6px) scale(1.03); }
.resu-gallery-hero:hover .resu-gallery-hero-shot.is-shot-2 { transform: rotate(3deg) translate(0, -10px) scale(1.04); }
.resu-gallery-hero:hover .resu-gallery-hero-shot.is-shot-3 { transform: rotate(14deg) translate(10px, 6px) scale(1.03); }
.resu-photo-grid { margin-top: clamp(0.85rem, 2.2vw, 1.25rem); }

/* Wider EKG sweep: it draws across the content area, then stays visible in the center. */
.resu-hero-ecg {
  width: min(1120px, calc(100vw - 2rem));
  transform: translateX(clamp(-2rem, -5vw, -0.75rem));
  max-width: none;
}
.resu-card-ecg { mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }

@media (max-width: 900px) {
  .resu-gallery-hero { grid-template-columns: 1fr; min-height: unset; }
  .resu-gallery-hero-visual { min-height: 280px; order: -1; }
  .resu-gallery-hero-collage { height: 310px; min-height: 280px; width: min(100%, 520px); }
  .resu-gallery-hero h2 { max-width: none; }
}

@media (max-width: 560px) {
  .resu-gallery-hero { padding: 1rem; border-radius: 24px; }
  .resu-gallery-hero-visual { min-height: 230px; }
  .resu-gallery-hero-collage { height: 240px; min-height: 230px; }
  .resu-gallery-hero-shot { border-radius: 18px; }
  .resu-gallery-meta span { min-height: 32px; font-size: 0.82rem; }
}


/* v2.0.4 — gallery order, card rhythm, download/back-to-top polish */
.resu-hero-ecg {
  width: min(680px, 100%);
  max-width: 100%;
  transform: none;
  margin-top: 1.55rem;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.resu-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.05rem);
  column-width: auto;
  column-gap: normal;
  align-items: start;
  margin-top: clamp(1rem, 2.2vw, 1.45rem);
}

.resu-photo-card {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.resu-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 45%, rgba(64, 198, 240, 0.08), transparent 58%),
    var(--resu-surface-strong);
}

.resu-photo-card:hover img,
.resu-photo-card:focus-visible img {
  transform: scale(1.02);
}

.resu-back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.4rem);
  bottom: clamp(1rem, 3vw, 1.4rem);
  z-index: 70;
  width: 54px;
  height: 54px;
  border: 1px solid var(--resu-line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #041014;
  background: var(--resu-aqua);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 34px rgba(64, 198, 240, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.resu-back-to-top span[aria-hidden="true"] {
  font-family: var(--resu-font-meta);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.resu-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.resu-back-to-top:hover,
.resu-back-to-top:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38), 0 0 44px rgba(64, 198, 240, 0.32);
  outline: none;
}

@media (max-width: 760px) {
  .resu-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resu-photo-card { border-radius: 16px; }
  .resu-back-to-top { width: 50px; height: 50px; }
}

@media (max-width: 420px) {
  .resu-photo-grid { gap: 0.72rem; }
  .resu-photo-card span { left: 0.5rem; bottom: 0.5rem; min-width: 2rem; min-height: 2rem; font-size: 0.78rem; }
}


/* v2.0.5 — direct original links + filled gallery cards */
.resu-photo-card {
  aspect-ratio: 3 / 4;
  background: var(--resu-surface-strong);
}

.resu-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--resu-surface-strong);
}

.resu-photo-card:hover img,
.resu-photo-card:focus-visible img {
  transform: scale(1.055);
}

/* v2.0.6 — strict gallery filenames, clean filled cards, unified ECG wipe */
.resu-ecg-line,
.resu-ecg-r {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  animation: none !important;
}

.resu-ecg-wipe {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: resu-ecg-wipe 1.55s cubic-bezier(.22,.72,.2,1) 0.28s forwards;
}

.resu-card-ecg .resu-ecg-wipe {
  animation-delay: 0.16s;
}

@keyframes resu-ecg-wipe {
  to { transform: scaleX(1); }
}

.resu-photo-grid .resu-photo-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0 !important;
  line-height: 0;
  overflow: hidden;
  vertical-align: top;
  background: var(--resu-surface-strong);
}

.resu-photo-grid .resu-photo-card > img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  object-fit: cover !important;
  object-position: center center;
  background: var(--resu-surface-strong);
  transform: scale(1.01);
}

.resu-photo-grid .resu-photo-card:hover > img,
.resu-photo-grid .resu-photo-card:focus-visible > img {
  transform: scale(1.055);
}

.resu-photo-card span {
  z-index: 2;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .resu-ecg-wipe { transform: scaleX(1) !important; }
}

/* v2.2.1 — collapsed event gallery cards with dynamic Cover/Web collage */
.resu-event-gallery {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  border-radius: 32px;
  position: relative;
}

.resu-event-cover {
  position: relative;
  min-height: clamp(420px, 58vw, 620px);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--resu-line);
  background: linear-gradient(135deg, rgba(5, 6, 7, 0.96), rgba(8, 28, 34, 0.92));
  box-shadow: var(--resu-shadow), var(--resu-glow);
  isolation: isolate;
}

.resu-event-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
}

/* Subtle separators between the angled image panels. */
.resu-event-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 4;
  background:
    linear-gradient(104deg, transparent 0 36.5%, rgba(64, 198, 240, 0.34) 36.62%, rgba(255,255,255,0.16) 36.78%, transparent 36.95%),
    linear-gradient(104deg, transparent 0 66.1%, rgba(64, 198, 240, 0.30) 66.25%, rgba(255,255,255,0.14) 66.42%, transparent 66.60%);
  pointer-events: none;
  opacity: 0.85;
}

.resu-event-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(circle at 70% 25%, rgba(64, 198, 240, 0.16), transparent 34%),
    radial-gradient(circle at 30% 75%, rgba(230, 57, 70, 0.13), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.resu-event-bg-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 47%;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: saturate(1.04) contrast(1.05) brightness(0.82);
  opacity: 0.82;
  transition: transform 0.7s cubic-bezier(.18,.84,.22,1), opacity 0.35s ease, filter 0.35s ease;
}

.resu-event-bg-img.is-img-1 {
  left: 0;
  width: 42%;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
  z-index: 1;
  transform: scale(1.035);
}

.resu-event-bg-img.is-img-2 {
  left: 30%;
  width: 44%;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 14% 100%);
  z-index: 2;
  transform: scale(1.04);
}

.resu-event-bg-img.is-img-3 {
  right: 0;
  width: 43%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
  transform: scale(1.035);
}

.resu-event-gallery:hover .resu-event-bg-img { opacity: 0.92; filter: saturate(1.13) contrast(1.08) brightness(0.90); }
.resu-event-gallery:hover .resu-event-bg-img.is-img-1 { transform: translateX(-0.8%) scale(1.07); }
.resu-event-gallery:hover .resu-event-bg-img.is-img-2 { transform: translateY(-1.2%) scale(1.085); }
.resu-event-gallery:hover .resu-event-bg-img.is-img-3 { transform: translateX(0.8%) scale(1.07); }

.resu-event-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.90) 36%, rgba(5, 6, 7, 0.60) 58%, rgba(5, 6, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.84), rgba(5, 6, 7, 0.10) 58%);
  pointer-events: none;
}

.resu-event-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  min-height: clamp(420px, 58vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.35rem, 5vw, 4rem);
}

.resu-event-copy h2 {
  margin: 0.7rem 0 0;
  font-family: var(--resu-font-heading);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  color: var(--resu-text);
  text-shadow: 0 12px 44px rgba(0,0,0,0.8);
}

.resu-event-copy p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  text-shadow: 0 8px 28px rgba(0,0,0,0.62);
}

.resu-event-copy .resu-gallery-meta {
  justify-content: flex-start;
  margin-top: 1.35rem;
}

.resu-event-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.45rem;
  border: 1px solid var(--resu-aqua);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: #041014;
  background: var(--resu-aqua);
  font-family: var(--resu-font-body);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(64, 198, 240, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.resu-event-toggle:hover,
.resu-event-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(64, 198, 240, 0.32);
  outline: none;
}

.resu-event-toggle-icon { font-family: var(--resu-font-meta); font-weight: 800; }

.resu-event-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--resu-line-soft);
  border-radius: 28px;
  background: rgba(10, 18, 22, 0.58);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  transform-origin: top center;
  animation: resu-event-panel-in 0.28s ease forwards;
}

.resu-event-panel[hidden] { display: none !important; }

@keyframes resu-event-panel-in {
  from { opacity: 0; transform: translateY(-8px) scaleY(0.985); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

html[data-theme="light"] .resu-event-cover {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(232, 248, 252, 0.94));
}

html[data-theme="light"] .resu-event-scrim {
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.84) 0%, rgba(7, 16, 20, 0.66) 38%, rgba(7, 16, 20, 0.30) 70%, rgba(7, 16, 20, 0.10) 100%),
    linear-gradient(0deg, rgba(7, 16, 20, 0.62), rgba(7, 16, 20, 0.04) 60%);
}

@media (max-width: 760px) {
  .resu-event-cover { min-height: 540px; border-radius: 24px; }
  .resu-event-copy { min-height: 540px; padding: 1.35rem; }
  .resu-event-bg { inset: 0; }
  .resu-event-bg-img { height: 100%; min-width: 0; min-height: 0; opacity: 0.76; }
  .resu-event-bg-img.is-img-1 { left: 0; width: 56%; clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
  .resu-event-bg-img.is-img-2 { left: 34%; width: 58%; clip-path: polygon(0 0, 100% 0, 80% 100%, 12% 100%); }
  .resu-event-bg-img.is-img-3 { right: 0; width: 48%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .resu-event-bg::before { inset: -18%; opacity: 0.74; }
  .resu-event-scrim { background: linear-gradient(0deg, rgba(5,6,7,0.98) 0%, rgba(5,6,7,0.88) 48%, rgba(5,6,7,0.40) 100%); }
  .resu-event-copy { justify-content: flex-end; }
  .resu-event-copy h2 { font-size: clamp(2.1rem, 13vw, 4rem); }
}


/* v2.3.0 — JSON manifest support + smoother event-card hover */
.resu-event-bg-img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0) scale(1.035);
  transition: transform 0.42s cubic-bezier(.18,.84,.22,1), opacity 0.22s ease;
  filter: saturate(1.06) contrast(1.04) brightness(0.84);
}

.resu-event-gallery:hover .resu-event-bg-img {
  opacity: 0.91;
  filter: saturate(1.06) contrast(1.04) brightness(0.84);
}

.resu-event-gallery:hover .resu-event-bg-img.is-img-1 { transform: translate3d(-0.45%,0,0) scale(1.055); }
.resu-event-gallery:hover .resu-event-bg-img.is-img-2 { transform: translate3d(0,-0.55%,0) scale(1.065); }
.resu-event-gallery:hover .resu-event-bg-img.is-img-3 { transform: translate3d(0.45%,0,0) scale(1.055); }

.resu-weather-badge {
  position: relative;
  overflow: hidden;
}

.resu-weather-sunny::before,
.resu-event-gallery.is-weather-sunny .resu-event-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.resu-event-gallery.is-weather-sunny .resu-event-cover::after {
  inset: -35% -10% 40% 45%;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(64,198,240,0.10) 28%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: resu-weather-sun 8s ease-in-out infinite alternate;
}

@keyframes resu-weather-sun {
  from { transform: translate3d(-1%, -1%, 0) scale(1); opacity: 0.42; }
  to { transform: translate3d(1%, 1%, 0) scale(1.04); opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .resu-event-bg-img,
  .resu-event-gallery.is-weather-sunny .resu-event-cover::after {
    transition: none !important;
    animation: none !important;
    will-change: auto;
  }
}


/* v2.3.1 — Light-mode readability + atmosphere roadmap foundation */
html[data-theme="light"] .resu-event-cover {
  background:
    radial-gradient(circle at 78% 8%, rgba(64, 198, 240, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(232, 248, 252, 0.96));
  box-shadow: 0 26px 80px rgba(5, 18, 25, 0.16);
}

html[data-theme="light"] .resu-event-bg-img {
  filter: saturate(0.94) contrast(0.96) brightness(0.78);
  opacity: 0.82;
}

html[data-theme="light"] .resu-event-gallery:hover .resu-event-bg-img {
  filter: saturate(0.98) contrast(0.98) brightness(0.80);
  opacity: 0.88;
}

html[data-theme="light"] .resu-event-bg::before {
  background:
    linear-gradient(104deg, transparent 0 36.5%, rgba(0, 125, 145, 0.38) 36.62%, rgba(255,255,255,0.28) 36.78%, transparent 36.95%),
    linear-gradient(104deg, transparent 0 66.1%, rgba(0, 125, 145, 0.34) 66.25%, rgba(255,255,255,0.24) 66.42%, transparent 66.60%);
  opacity: 0.92;
}

html[data-theme="light"] .resu-event-bg::after {
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,0.30), transparent 30%),
    radial-gradient(circle at 28% 82%, rgba(230, 57, 70, 0.18), transparent 34%);
  opacity: 0.56;
}

html[data-theme="light"] .resu-event-scrim {
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.96) 0%, rgba(5, 9, 12, 0.88) 36%, rgba(5, 9, 12, 0.60) 62%, rgba(5, 9, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 9, 12, 0.88) 0%, rgba(5, 9, 12, 0.52) 48%, rgba(5, 9, 12, 0.16) 100%);
}

html[data-theme="light"] .resu-event-copy h2 {
  color: #f7fbff;
  text-shadow: 0 12px 44px rgba(0,0,0,0.84), 0 0 18px rgba(64,198,240,0.18);
}

html[data-theme="light"] .resu-event-copy p {
  color: rgba(247, 251, 255, 0.90);
  text-shadow: 0 8px 28px rgba(0,0,0,0.72);
}

html[data-theme="light"] .resu-event-copy .resu-gallery-kicker {
  color: #58d8f6;
  text-shadow: 0 0 22px rgba(0,0,0,0.70);
}

html[data-theme="light"] .resu-event-copy .resu-gallery-meta span {
  color: rgba(247, 251, 255, 0.88);
  border-color: rgba(88, 216, 246, 0.36);
  background: rgba(3, 16, 20, 0.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

html[data-theme="light"] .resu-weather-badge {
  color: #f7fbff;
}

/* Future atmosphere classes: currently subtle placeholders so JSON values do not break layout. */
.resu-event-gallery.is-atmosphere-pride .resu-event-cover::before,
.resu-event-gallery.is-weather-pride .resu-event-cover::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(230,57,70,0.16), transparent 24rem),
    radial-gradient(circle at 72% 28%, rgba(64,198,240,0.18), transparent 28rem),
    radial-gradient(circle at 62% 82%, rgba(255,255,255,0.10), transparent 22rem);
}

.resu-event-gallery.is-atmosphere-storm .resu-event-cover::after,
.resu-event-gallery.is-weather-storm .resu-event-cover::after,
.resu-event-gallery.is-weather-thunderstorm .resu-event-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 58%, rgba(255,255,255,0.22) 58.4%, transparent 59.3%);
  opacity: 0.18;
  mix-blend-mode: screen;
}


/* v2.3.2 — batched gallery loading + button font polish */
.resu-photo-card[hidden] { display: none !important; }
.resu-gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: clamp(1.2rem, 3vw, 2rem) 0 0;
}
.resu-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--resu-line);
  background: color-mix(in srgb, var(--resu-surface-strong) 82%, transparent);
  color: var(--resu-text);
  font-family: var(--resu-font-body);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--resu-glow);
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}
.resu-load-more:hover,
.resu-load-more:focus-visible {
  transform: translateY(-2px);
  border-color: var(--resu-aqua);
  color: var(--resu-aqua);
  outline: none;
}
.resu-load-more small {
  font-family: var(--resu-font-meta);
  font-size: 0.76rem;
  color: var(--resu-text-muted);
}
html[data-theme="light"] .resu-load-more {
  background: rgba(255,255,255,0.86);
}
.resu-event-toggle,
.resu-gallery-button,
.resu-button,
.wp-block-button__link {
  font-family: var(--resu-font-body);
}


/* v2.3.3 — manifest extension parsing fix: imageExtension=jpg stays .jpg, not .unnamed-file.jpg */


/* v2.3.5 — Gallery spacing polish */
.resu-photo-grid {
  gap: clamp(12px, 1.2vw, 20px);
  margin-top: clamp(1.05rem, 2.4vw, 1.6rem);
}

.resu-photo-grid .resu-photo-card {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.resu-photo-grid .resu-photo-card:hover,
.resu-photo-grid .resu-photo-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--resu-aqua) 72%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 26px rgba(64, 198, 240, 0.12);
}

.resu-photo-grid .resu-photo-card:hover > img,
.resu-photo-grid .resu-photo-card:focus-visible > img {
  transform: scale(1.035);
}

@media (max-width: 640px) {
  .resu-photo-grid {
    gap: 10px;
  }
  .resu-photo-grid .resu-photo-card {
    border-radius: 13px;
  }
}


/* v2.3.7 — split header/hero font roles */
.resu-brand-title strong {
  font-family: var(--resu-font-header-logo);
  letter-spacing: 0.015em;
  text-shadow: none;
}
.resu-hero h1 {
  font-family: var(--resu-font-hero-logo);
}
.resu-button,
.wp-block-button__link,
.resu-load-more,
.resu-event-toggle {
  font-family: var(--resu-font-button);
}


/* v2.3.7 — header title uppercase polish */
.resu-brand-title strong {
  text-transform: uppercase;
  letter-spacing: -0.035em;
}


/* v2.3.9 — aligned event-card collage seams + docs refresh */
/* Older separator overlay was a decorative gradient and could drift away from the actual clip-path cuts.
   The separators below are dedicated seam elements whose polygons match the three image panels. */
.resu-event-bg::before {
  background: none !important;
  opacity: 0 !important;
}

.resu-event-seam {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.78;
  background: linear-gradient(180deg, rgba(64, 198, 240, 0.06), rgba(64, 198, 240, 0.38) 46%, rgba(255,255,255,0.18) 52%, rgba(64, 198, 240, 0.08));
  filter: drop-shadow(0 0 12px rgba(64, 198, 240, 0.22));
}

/* Seam 1 follows the visible left edge of panel 2. */
.resu-event-seam.is-seam-1 {
  clip-path: polygon(30.00% 0, 30.28% 0, 36.44% 100%, 36.16% 100%);
}

/* Seam 2 follows the visible left edge of panel 3. */
.resu-event-seam.is-seam-2 {
  clip-path: polygon(64.74% 0, 65.02% 0, 57.28% 100%, 57.00% 100%);
}

html[data-theme="light"] .resu-event-seam {
  opacity: 0.72;
  background: linear-gradient(180deg, rgba(0, 125, 145, 0.08), rgba(0, 125, 145, 0.40) 46%, rgba(255,255,255,0.24) 52%, rgba(0, 125, 145, 0.10));
}

@media (max-width: 760px) {
  .resu-event-seam.is-seam-1 {
    clip-path: polygon(34.00% 0, 34.42% 0, 41.38% 100%, 40.96% 100%);
  }

  .resu-event-seam.is-seam-2 {
    clip-path: polygon(60.64% 0, 61.06% 0, 52.42% 100%, 52.00% 100%);
  }
}

/* v2.3.9 — editable homepage + smaller event teasers */
.resu-section-title.is-smaller {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  max-width: 760px;
}

.resu-latest-event-section .resu-event-gallery {
  margin-top: clamp(1.35rem, 4vw, 2.4rem);
}

.resu-event-teasers-section {
  padding-top: clamp(1.6rem, 4vw, 3.2rem);
}

.resu-mini-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.resu-mini-event-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--resu-line-soft);
  background: var(--resu-surface-strong);
  color: #f7fbff;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0,0,0,0.22), var(--resu-glow);
  isolation: isolate;
  transform: translateZ(0);
}

.resu-mini-event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05) brightness(0.82);
  transform: scale(1.035);
  transition: transform 0.55s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
  z-index: 0;
}

.resu-mini-event-card:hover img,
.resu-mini-event-card:focus-visible img {
  transform: scale(1.09);
  filter: saturate(1.12) contrast(1.08) brightness(0.9);
}

.resu-mini-event-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,7,0.08), rgba(5,6,7,0.72)),
    radial-gradient(circle at 15% 85%, rgba(64,198,240,0.20), transparent 48%);
}

.resu-mini-event-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 0.22rem;
  padding: 1rem;
}

.resu-mini-event-copy strong {
  font-family: var(--resu-font-heading);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(1.08rem, 2.3vw, 1.55rem);
  text-shadow: 0 8px 28px rgba(0,0,0,0.68);
}

.resu-mini-event-copy small {
  font-family: var(--resu-font-meta);
  color: rgba(247,251,255,0.76);
}

@media (max-width: 860px) {
  .resu-mini-event-grid { grid-template-columns: 1fr; }
  .resu-mini-event-card { min-height: 190px; }
}


/* v2.3.10 — Editor Control Fix
   The homepage renders only editor-authored content. Legacy demo sections are no longer injected. */
.resu-front-page,
.resu-frontpage-editor-content {
  width: min(var(--resu-max), calc(100% - 2rem));
  margin-inline: auto;
}

.resu-frontpage-editor-content > * + * {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.resu-admin-empty-frontpage,
.resu-admin-note {
  width: min(920px, calc(100% - 2rem));
  margin: clamp(3rem, 8vw, 6rem) auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px dashed var(--resu-line);
  border-radius: var(--resu-radius);
  background: rgba(64, 198, 240, 0.055);
  color: var(--resu-text-soft);
  box-shadow: var(--resu-glow);
}

.resu-admin-empty-frontpage h1 {
  margin: 0.35rem 0 0;
  font-family: var(--resu-font-heading);
  text-transform: uppercase;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--resu-text);
  font-size: clamp(2rem, 5vw, 4rem);
}

.resu-admin-empty-frontpage pre {
  overflow: auto;
  margin: 1.2rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  white-space: pre-wrap;
}

.resu-hero.is-layout-center .resu-hero-grid,
.resu-hero.is-layout-compact .resu-hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.resu-hero.is-layout-center .resu-kicker,
.resu-hero.is-layout-compact .resu-kicker,
.resu-hero.is-layout-center .resu-actions,
.resu-hero.is-layout-compact .resu-actions {
  justify-content: center;
}

.resu-hero.is-layout-center .resu-hero-text,
.resu-hero.is-layout-compact .resu-hero-text,
.resu-hero.is-layout-center .resu-hero-ecg,
.resu-hero.is-layout-compact .resu-hero-ecg {
  margin-inline: auto;
}

.resu-hero-card {
  width: min(100%, 420px);
  max-width: 420px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  justify-self: center;
}

.resu-hero-card.has-image {
  width: min(100%, 460px);
  max-width: 460px;
  aspect-ratio: 3 / 4;
  background: var(--resu-surface);
}

.resu-hero-card .resu-hero-logo {
  width: min(78%, 320px);
  height: min(78%, 320px);
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  inset: auto;
}

.resu-hero-card .resu-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.resu-hero-card.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,8,10,0.22), transparent 34%),
    radial-gradient(circle at 75% 12%, rgba(64,198,240,0.18), transparent 32%);
}

.resu-event-teasers-section .resu-admin-note {
  width: 100%;
  margin: 1.2rem 0 0;
}


/* v2.3.14 — Hero media + cleaner editable homepage previews */
.resu-hero.is-font-clean h1 {
  font-family: var(--resu-font-heading);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.resu-hero.is-font-glitch h1 {
  font-family: var(--resu-font-hero-logo);
}

.resu-hero-card.has-image.is-shape-circle {
  width: min(82vw, 420px);
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--resu-aqua);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 72px rgba(64,198,240,0.20);
}

.resu-hero-card.has-image.is-shape-circle::before {
  border-radius: 999px;
}

.resu-hero-card.has-image.is-shape-circle::after {
  border-radius: 999px;
  background: radial-gradient(circle at 58% 10%, rgba(64,198,240,0.18), transparent 34%);
}

.resu-hero-card.has-image.is-shape-circle .resu-hero-image {
  border-radius: 999px;
  object-fit: cover;
  object-position: center center;
}

.resu-hero-card.has-image.is-shape-rounded {
  border-radius: calc(var(--resu-radius) + 8px);
}

.resu-latest-event-section .resu-gallery-preview {
  margin-top: clamp(1.35rem, 4vw, 2.4rem);
}

.resu-latest-event-section .resu-preview-card {
  width: 100%;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
}

@media (max-width: 860px) {
  .resu-latest-event-section .resu-preview-card {
    grid-template-columns: 1fr;
  }
}


/* v2.3.14 — restore v2.3.7 event-preview hover + cleaner hero body typography */
.resu-hero.is-font-clean .resu-hero-text {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.7;
}

.resu-hero.is-font-clean .resu-button {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.resu-gallery-preview .resu-preview-card {
  overflow: hidden;
  transform: translateZ(0);
}

.resu-gallery-preview .resu-preview-collage {
  display: flex;
  align-items: stretch;
  min-height: clamp(340px, 38vw, 520px);
}

.resu-gallery-preview .resu-preview-panel {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex 0.58s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
}

.resu-gallery-preview .resu-preview-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
  transition: transform 0.65s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
}

.resu-gallery-preview .resu-preview-card:hover .resu-preview-panel {
  flex: 0.85 1 0;
  filter: saturate(0.88) brightness(0.84);
}

.resu-gallery-preview .resu-preview-card:hover .resu-preview-panel:hover {
  flex: 1.75 1 0;
  filter: saturate(1.08) brightness(1);
}

.resu-gallery-preview .resu-preview-panel:hover img {
  transform: scale(1.10);
}

.resu-gallery-preview .resu-gallery-button:empty,
.resu-gallery-preview .resu-gallery-button.is-hidden {
  display: none;
}

@media (hover: none) {
  .resu-gallery-preview .resu-preview-card:hover .resu-preview-panel,
  .resu-gallery-preview .resu-preview-card:hover .resu-preview-panel:hover {
    flex: 1 1 0;
    filter: none;
  }
}

/* v2.3.14 — Photography Gallery Flow + Gallery Manager UI */
.resu-hero.is-font-clean h1 {
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.resu-hero.is-font-clean .resu-gradient-word {
  -webkit-text-stroke: 0;
  text-shadow: 0 0 22px rgba(64, 198, 240, 0.24);
}

.resu-photography-teaser-section {
  padding-block: clamp(1.8rem, 5vw, 4rem);
}

.resu-photography-teaser .resu-preview-card {
  min-height: clamp(440px, 52vw, 640px);
}

.resu-photography-teaser .resu-preview-copy h2 {
  max-width: 9ch;
}

.resu-gallery-index {
  width: min(var(--resu-max), calc(100% - 2rem));
  margin: clamp(2.5rem, 7vw, 5rem) auto clamp(4rem, 8vw, 7rem);
}

.resu-gallery-index-header {
  max-width: 860px;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.resu-gallery-index-header h1 {
  margin: 0.8rem 0 0;
  font-family: var(--resu-font-heading);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.resu-gallery-index-header p {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--resu-text-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.resu-gallery-index-featured {
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.resu-gallery-index-past {
  margin-top: clamp(2.6rem, 6vw, 5rem);
}

.resu-gallery-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 1.6rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.resu-gallery-index-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--resu-line-soft);
  background: linear-gradient(135deg, rgba(10, 18, 22, 0.94), rgba(8, 28, 34, 0.82));
  color: var(--resu-text);
  text-decoration: none;
  box-shadow: var(--resu-shadow), var(--resu-glow);
  isolation: isolate;
  transform: translateZ(0);
}

.resu-gallery-index-card.is-featured {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  min-height: clamp(420px, 48vw, 620px);
}

.resu-gallery-index-card.is-compact {
  min-height: 340px;
}

.resu-gallery-index-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: rgba(64, 198, 240, 0.06);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media {
  min-height: inherit;
  display: flex;
}

.resu-gallery-index-shot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: flex 0.58s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
}

.resu-gallery-index-shot:last-child { border-right: 0; }

.resu-gallery-index-card.is-compact .resu-gallery-index-shot {
  position: absolute;
  inset: 0;
  border: 0;
}

.resu-gallery-index-shot img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.035);
  filter: saturate(1.02) contrast(1.04) brightness(0.84);
  transition: transform 0.65s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
}

.resu-gallery-index-card:hover .resu-gallery-index-shot { flex: 0.86 1 0; filter: saturate(0.9) brightness(0.86); }
.resu-gallery-index-card:hover .resu-gallery-index-shot:hover { flex: 1.72 1 0; filter: saturate(1.08) brightness(1); }
.resu-gallery-index-card:hover .resu-gallery-index-shot img { transform: scale(1.08); }

.resu-gallery-index-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.15rem, 3.6vw, 2.6rem);
}

.resu-gallery-index-card.is-compact .resu-gallery-index-copy {
  min-height: 340px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.04), rgba(5, 6, 7, 0.78)),
    radial-gradient(circle at 20% 86%, rgba(64, 198, 240, 0.22), transparent 46%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 12%, rgba(64, 198, 240, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(7, 20, 25, 0.88), rgba(4, 8, 10, 0.96));
}

.resu-gallery-index-copy h2,
.resu-gallery-index-copy h3 {
  margin: 0.75rem 0 0;
  font-family: var(--resu-font-heading);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.resu-gallery-index-copy h2 { font-size: clamp(2.3rem, 6.2vw, 5.3rem); }
.resu-gallery-index-copy h3 { font-size: clamp(1.55rem, 4.3vw, 3.1rem); }

.resu-gallery-index-copy p {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--resu-text-soft);
}

.resu-gallery-index-card.is-compact .resu-gallery-index-copy p,
.resu-gallery-index-card.is-compact .resu-gallery-meta {
  color: rgba(247,251,255,0.78);
}

.resu-gallery-index-card .resu-gallery-button {
  align-self: flex-start;
  margin-top: 1.2rem;
}

.resu-gallery-detail {
  width: min(var(--resu-max), calc(100% - 2rem));
  margin: clamp(2.2rem, 6vw, 4rem) auto clamp(4rem, 8vw, 7rem);
}

.resu-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
  color: var(--resu-aqua);
  font-family: var(--resu-font-meta);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.resu-detail-back:hover,
.resu-detail-back:focus-visible {
  color: var(--resu-text);
}

@media (max-width: 900px) {
  .resu-gallery-index-card.is-featured { grid-template-columns: 1fr; }
  .resu-gallery-index-grid { grid-template-columns: 1fr; }
  .resu-gallery-index-card.is-featured .resu-gallery-index-media { min-height: 340px; }
}

@media (hover: none) {
  .resu-gallery-index-card:hover .resu-gallery-index-shot,
  .resu-gallery-index-card:hover .resu-gallery-index-shot:hover {
    flex: 1 1 0;
    filter: none;
  }
}

/* v2.3.19 — Gallery Layout Regression Fix */
.resu-component-page > h1,
.resu-component-page > .resu-kicker {
  display: none;
}

.resu-gallery-index-header .resu-kicker {
  display: none;
}

.resu-gallery-index-card,
.resu-gallery-index-media,
.resu-gallery-index-shot {
  min-width: 0;
}

.resu-gallery-index-card.is-featured {
  align-items: stretch;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media {
  min-height: 100%;
  height: auto;
  align-self: stretch;
  background: transparent;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot {
  height: auto;
  min-height: 100%;
  margin: 0;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot img {
  height: 100%;
}

.resu-gallery-index-card.is-compact {
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.resu-gallery-index-card.is-compact .resu-gallery-index-media {
  height: clamp(190px, 21vw, 270px);
  min-height: 0;
  background: transparent;
}

.resu-gallery-index-card.is-compact .resu-gallery-index-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}

.resu-gallery-index-card.is-compact .resu-gallery-index-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.resu-gallery-detail .resu-event-gallery {
  margin-top: 0;
}

.resu-gallery-detail .resu-event-cover {
  display: flex;
  align-items: flex-end;
  min-height: clamp(480px, 60vw, 680px);
}

.resu-gallery-detail .resu-event-scrim {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.74) 0%, rgba(5, 6, 7, 0.52) 42%, rgba(5, 6, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.54), rgba(5, 6, 7, 0.06) 62%);
}

.resu-gallery-detail .resu-event-copy {
  width: min(720px, calc(100% - clamp(2rem, 7vw, 6rem)));
  min-height: auto;
  margin: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3.6vw, 2.6rem);
  border: 1px solid rgba(64, 198, 240, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 10%, rgba(64, 198, 240, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(5, 6, 7, 0.82), rgba(5, 11, 14, 0.66));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 38px rgba(64, 198, 240, 0.12);
  backdrop-filter: blur(16px) saturate(1.08);
}

.resu-gallery-detail .resu-event-copy h2 {
  font-size: clamp(2.25rem, 7vw, 5.6rem);
}

.resu-gallery-detail .resu-event-panel {
  margin-top: clamp(1.4rem, 4vw, 2.4rem);
}

@media (max-width: 900px) {
  .resu-gallery-index-card.is-featured .resu-gallery-index-media {
    min-height: 340px;
    height: 340px;
  }

  .resu-gallery-detail .resu-event-cover {
    min-height: 540px;
  }

  .resu-gallery-detail .resu-event-copy {
    width: calc(100% - 2rem);
    margin: 1rem;
  }
}

/* v2.3.19 — Gallery Layout Regression Fix
   Index = split card: images left (Cover / Web \ Web), copy right.
   Detail = cinematic hero: images behind text (Web / Web \ Cover).
   These overrides deliberately prevent empty bars by making every image layer absolute and full-height. */
.resu-gallery-index-card.is-featured {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  align-items: stretch;
  min-height: clamp(460px, 52vw, 640px);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(460px, 52vw, 640px);
  overflow: hidden;
  background: rgba(4, 10, 13, 0.92);
  isolation: isolate;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,7,0.24), rgba(5,6,7,0.02) 46%, rgba(5,6,7,0.16)),
    radial-gradient(circle at 18% 86%, rgba(64,198,240,0.12), transparent 38%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  overflow: hidden;
  flex: none;
  filter: saturate(1.02) contrast(1.04) brightness(0.92);
  transition: filter 0.35s ease, transform 0.65s cubic-bezier(.18,.84,.22,1);
}

/* Cover / Web \ Web in the index preview. */
.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-1 {
  left: 0;
  width: 42%;
  z-index: 1;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-2 {
  left: 30%;
  width: 44%;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 14% 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-3 {
  right: 0;
  width: 43%;
  z-index: 3;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.045);
  transition: transform 0.7s cubic-bezier(.18,.84,.22,1), filter 0.35s ease;
}

.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot,
.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot:hover {
  flex: none;
}

.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot img {
  transform: scale(1.075);
}

.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-1 img { transform: translateX(-1%) scale(1.08); }
.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-2 img { transform: translateY(-1%) scale(1.085); }
.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-3 img { transform: translateX(1%) scale(1.08); }

.resu-gallery-index-card.is-featured .resu-gallery-index-copy {
  justify-content: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(64,198,240,0.16), transparent 34%),
    linear-gradient(135deg, rgba(7, 20, 25, 0.92), rgba(4, 8, 10, 0.98));
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy::before {
  display: none;
}

/* Compact cards: the media slot must be a real, filled image area — no decorative top strip. */
.resu-gallery-index-card.is-compact .resu-gallery-index-media,
.resu-gallery-index-card.is-compact .resu-gallery-index-shot,
.resu-gallery-index-card.is-compact .resu-gallery-index-shot img {
  background: transparent;
  min-height: 0;
}

/* Detail: force true background slices and left text panel, no image gaps/bars. */
.resu-gallery-detail .resu-event-bg,
.resu-gallery-detail .resu-event-bg-img {
  background: transparent;
}

.resu-gallery-detail .resu-event-bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
}

.resu-gallery-detail .resu-event-copy {
  align-self: flex-end;
  justify-self: flex-start;
}

@media (max-width: 900px) {
  .resu-gallery-index-card.is-featured {
    grid-template-columns: 1fr;
  }

  .resu-gallery-index-card.is-featured .resu-gallery-index-media {
    height: clamp(320px, 62vw, 440px);
    min-height: clamp(320px, 62vw, 440px);
  }

  .resu-gallery-index-card.is-featured .resu-gallery-index-copy {
    justify-content: flex-start;
  }
}

@media (hover: none) {
  .resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot img,
  .resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-1 img,
  .resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-2 img,
  .resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot.is-shot-3 img {
    transform: scale(1.045);
  }
}

/* v2.3.19 — Clean Baseline & Patch Workflow
   Featured index card = full-card image background with soft right-side copy overlay.
   Detail hero = softer glass panel with more transparency and blur.
*/
.resu-gallery-index-card.is-featured {
  position: relative;
  display: block;
  min-height: clamp(500px, 54vw, 680px);
  overflow: hidden;
  border-radius: 34px;
  isolation: isolate;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  overflow: hidden;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(3, 5, 7, 0.16) 0%,
      rgba(3, 7, 10, 0.10) 32%,
      rgba(3, 8, 11, 0.64) 58%,
      rgba(3, 8, 11, 0.94) 100%),
    linear-gradient(0deg, rgba(3, 5, 7, 0.46), rgba(3, 5, 7, 0.05) 58%),
    radial-gradient(circle at 80% 20%, rgba(64, 198, 240, 0.12), transparent 38%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  overflow: hidden;
  flex: none !important;
  background: transparent;
  filter: saturate(1.04) contrast(1.05) brightness(0.9);
}

/* Soft Cover / Web \ Web background slices across the whole card. */
.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-1 {
  left: 0;
  width: 46%;
  z-index: 1;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-2 {
  left: 30%;
  width: 46%;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 15% 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot.is-shot-3 {
  right: 0;
  width: 48%;
  z-index: 3;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
}

.resu-gallery-index-card.is-featured:hover .resu-gallery-index-shot img {
  transform: scale(1.085);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy {
  position: relative;
  z-index: 10;
  width: min(470px, 46%);
  min-height: clamp(500px, 54vw, 680px);
  margin-left: auto;
  padding: clamp(1.6rem, 3.6vw, 3.2rem);
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.18), rgba(4, 10, 13, 0.64) 35%, rgba(4, 10, 13, 0.76)),
    radial-gradient(circle at 12% 12%, rgba(64,198,240,0.14), transparent 32%);
  border-left: 1px solid rgba(64, 198, 240, 0.10);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy h2 {
  font-size: clamp(2.15rem, 4.15vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 12ch;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy p {
  max-width: 34ch;
  font-size: clamp(0.98rem, 1.28vw, 1.08rem);
  line-height: 1.58;
}

.resu-gallery-index-card.is-featured .resu-gallery-meta {
  justify-content: flex-start;
}

.resu-gallery-detail .resu-event-copy {
  background:
    radial-gradient(circle at 12% 10%, rgba(64, 198, 240, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(5, 8, 10, 0.66), rgba(5, 11, 14, 0.48));
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  border-color: rgba(64, 198, 240, 0.22);
}

@media (max-width: 900px) {
  .resu-gallery-index-card.is-featured,
  .resu-gallery-index-card.is-featured .resu-gallery-index-copy {
    min-height: clamp(520px, 110vw, 700px);
  }

  .resu-gallery-index-card.is-featured .resu-gallery-index-copy {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    background:
      linear-gradient(0deg, rgba(4, 9, 12, 0.92) 0%, rgba(4, 9, 12, 0.62) 44%, rgba(4, 9, 12, 0.08) 100%);
    border-left: 0;
  }

  .resu-gallery-index-card.is-featured .resu-gallery-index-copy h2 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }
}


/* v2.3.19 — Gallery Detail Reveal Fix & Index Typography Polish
   Keeps the cinematic image background, but makes the featured title readable
   and prevents the detail gallery hero from being hidden by reveal animation. */
.resu-gallery-index-card.is-featured .resu-gallery-index-copy {
  width: min(560px, 50%);
  padding: clamp(1.35rem, 3.1vw, 2.75rem);
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.08), rgba(4, 10, 13, 0.56) 34%, rgba(4, 10, 13, 0.72)),
    radial-gradient(circle at 12% 12%, rgba(64,198,240,0.12), transparent 34%);
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy h2 {
  max-width: none;
  font-size: clamp(1.75rem, 3.15vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  overflow-wrap: normal;
  hyphens: none;
}

.resu-gallery-index-copy h2,
.resu-gallery-index-copy h3 {
  font-weight: 700;
}

.resu-gallery-index-card.is-featured .resu-gallery-index-copy p {
  max-width: 42ch;
}

.resu-gallery-detail .resu-event-gallery,
.resu-gallery-detail .resu-event-gallery.resu-reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .resu-gallery-index-card.is-featured .resu-gallery-index-copy {
    width: 100%;
    padding: clamp(1.15rem, 6vw, 2rem);
  }

  .resu-gallery-index-card.is-featured .resu-gallery-index-copy h2 {
    font-size: clamp(1.9rem, 9vw, 3.35rem);
  }
}

/* v2.4.0 – Page spacing polish: less dead air between sticky header and component pages. */
.resu-main > .resu-section:first-child {
  padding-top: clamp(1.15rem, 3.2vw, 2.8rem);
}
.resu-main > .resu-section:first-child .resu-gallery-index,
.resu-main > .resu-section:first-child .resu-gallery-detail,
.resu-main > .resu-section:first-child .resu-full-gallery {
  margin-top: 0;
}
.resu-component-page > :first-child { margin-top: 0; }

/* v2.4.0 – Animated Light/Dark toggle. Built as CSS/SVG-like HTML, no image asset required. */
.resu-theme-toggle {
  --toggle-w: 76px;
  --toggle-h: 42px;
  position: relative;
  isolation: isolate;
  width: var(--toggle-w);
  min-width: var(--toggle-w);
  height: var(--toggle-h);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--resu-aqua) 58%, transparent);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  background:
    radial-gradient(circle at 20% 28%, rgba(255,255,255,0.42), transparent 0.38rem),
    linear-gradient(135deg, #86e7ff 0%, #37bbef 48%, #0b2948 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 10px 28px rgba(64,198,240,0.16);
  transition: border-color 0.42s ease, box-shadow 0.42s ease, transform 0.22s ease, background 0.72s cubic-bezier(.22,.72,.2,1);
}
.resu-theme-toggle:hover,
.resu-theme-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: var(--resu-aqua);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 14px 36px rgba(64,198,240,0.24);
  outline: none;
}
.resu-theme-toggle-sky,
.resu-theme-toggle-orb,
.resu-theme-toggle-cloud,
.resu-theme-toggle-star,
.resu-theme-toggle-ray,
.resu-theme-toggle-moon-cut,
.resu-theme-toggle-crater { position: absolute; display: block; }
.resu-theme-toggle-sky { inset: 0; z-index: 1; }
.resu-theme-toggle-orb {
  z-index: 3;
  left: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fff9b4 0 18%, #ffd84e 46%, #ffad1f 100%);
  box-shadow: 0 0 18px rgba(255,214,75,0.58), 0 6px 14px rgba(3,8,12,0.22);
  transform: translateX(0) rotate(0deg);
  transition: transform 0.82s cubic-bezier(.22,.72,.2,1), background 0.66s ease, box-shadow 0.66s ease;
}
.resu-theme-toggle-ray {
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,226,89,0.92);
  transform-origin: 0 0;
  opacity: 1;
  transition: opacity 0.42s ease, transform 0.62s ease;
}
.resu-theme-toggle-ray.is-ray-1 { transform: translate(-50%, -50%) rotate(0deg) translateX(20px); }
.resu-theme-toggle-ray.is-ray-2 { transform: translate(-50%, -50%) rotate(115deg) translateX(20px); }
.resu-theme-toggle-ray.is-ray-3 { transform: translate(-50%, -50%) rotate(240deg) translateX(20px); }
.resu-theme-toggle-moon-cut {
  inset: -2px -7px 4px 10px;
  border-radius: 50%;
  background: #13263c;
  opacity: 0;
  transform: translateX(14px) scale(0.78);
  transition: opacity 0.56s ease, transform 0.72s cubic-bezier(.22,.72,.2,1), background 0.72s ease;
}
.resu-theme-toggle-crater {
  border-radius: 50%;
  background: rgba(67,89,112,0.74);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.46s ease 0.16s, transform 0.46s ease 0.16s;
}
.resu-theme-toggle-crater.is-crater-1 { width: 6px; height: 6px; left: 9px; top: 10px; }
.resu-theme-toggle-crater.is-crater-2 { width: 4px; height: 4px; left: 18px; top: 21px; }
.resu-theme-toggle-cloud {
  z-index: 2;
  bottom: 8px;
  width: 24px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  box-shadow: 7px -4px 0 1px rgba(255,255,255,0.86), 14px 0 0 -1px rgba(255,255,255,0.76);
  opacity: 1;
  transition: transform 0.72s cubic-bezier(.22,.72,.2,1), opacity 0.52s ease;
}
.resu-theme-toggle-cloud.is-cloud-1 { left: 25px; }
.resu-theme-toggle-cloud.is-cloud-2 { left: 43px; bottom: 20px; transform: scale(0.72); opacity: 0.72; }
.resu-theme-toggle-star {
  z-index: 2;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 9px rgba(255,255,255,0.76);
  opacity: 0;
  transform: translateY(4px) scale(0.5);
  transition: opacity 0.42s ease, transform 0.58s ease;
}
.resu-theme-toggle-star.is-star-1 { left: 17px; top: 9px; }
.resu-theme-toggle-star.is-star-2 { left: 28px; top: 25px; width: 3px; height: 3px; }
.resu-theme-toggle-star.is-star-3 { left: 48px; top: 12px; width: 3px; height: 3px; }
html[data-theme="dark"] .resu-theme-toggle {
  background:
    radial-gradient(circle at 76% 24%, rgba(64,198,240,0.24), transparent 0.34rem),
    linear-gradient(135deg, #07101b 0%, #0a1d32 48%, #030608 100%);
}
html[data-theme="dark"] .resu-theme-toggle-orb {
  transform: translateX(36px) rotate(28deg);
  background: radial-gradient(circle at 32% 25%, #ffffff 0 18%, #d9e2ea 52%, #8fa4b8 100%);
  box-shadow: 0 0 18px rgba(174,218,255,0.42), 0 6px 14px rgba(3,8,12,0.36);
}
html[data-theme="dark"] .resu-theme-toggle-ray { opacity: 0; transform: translate(-50%, -50%) rotate(var(--ray-angle, 0deg)) translateX(12px) scale(0.4); }
html[data-theme="dark"] .resu-theme-toggle-ray.is-ray-1 { --ray-angle: 0deg; }
html[data-theme="dark"] .resu-theme-toggle-ray.is-ray-2 { --ray-angle: 115deg; }
html[data-theme="dark"] .resu-theme-toggle-ray.is-ray-3 { --ray-angle: 240deg; }
html[data-theme="dark"] .resu-theme-toggle-moon-cut { opacity: 1; transform: translateX(0) scale(1); background: #08131f; }
html[data-theme="dark"] .resu-theme-toggle-crater { opacity: 1; transform: scale(1); }
html[data-theme="dark"] .resu-theme-toggle-cloud { opacity: 0; transform: translateX(-24px) scale(0.72); }
html[data-theme="dark"] .resu-theme-toggle-star { opacity: 1; transform: translateY(0) scale(1); }
html[data-theme="dark"] .resu-theme-toggle-star.is-star-2 { transition-delay: 0.08s; }
html[data-theme="dark"] .resu-theme-toggle-star.is-star-3 { transition-delay: 0.16s; }

/* v2.4.0 – Atmosphere Engine Foundation.
   Gallery JSON `type`/`atmosphere` now maps to subtle CSS variables and accents. */
.resu-event-gallery {
  --resu-atmo-accent: var(--resu-aqua);
  --resu-atmo-accent-2: var(--resu-aqua-2);
  --resu-atmo-overlay: rgba(4, 10, 13, 0.58);
  --resu-atmo-glow: rgba(64, 198, 240, 0.18);
}
.resu-event-gallery.is-atmosphere-rainy,
.resu-event-gallery.is-weather-rainy {
  --resu-atmo-accent: #78d8ff;
  --resu-atmo-accent-2: #9ab7ff;
  --resu-atmo-overlay: rgba(6, 16, 24, 0.68);
  --resu-atmo-glow: rgba(120, 216, 255, 0.15);
}
.resu-event-gallery.is-atmosphere-pride,
.resu-event-gallery.is-weather-pride {
  --resu-atmo-accent: #66f6ff;
  --resu-atmo-accent-2: #ff78d4;
  --resu-atmo-overlay: rgba(8, 8, 18, 0.58);
  --resu-atmo-glow: rgba(255, 120, 212, 0.16);
}
.resu-event-gallery.is-atmosphere-festival,
.resu-event-gallery.is-weather-festival {
  --resu-atmo-accent: #62e9ff;
  --resu-atmo-accent-2: #ffd166;
  --resu-atmo-overlay: rgba(11, 8, 18, 0.56);
  --resu-atmo-glow: rgba(255, 209, 102, 0.16);
}
.resu-event-gallery.is-atmosphere-medical,
.resu-event-gallery.is-weather-medical {
  --resu-atmo-accent: #6ee7ff;
  --resu-atmo-accent-2: #e63946;
  --resu-atmo-overlay: rgba(4, 12, 14, 0.62);
  --resu-atmo-glow: rgba(230, 57, 70, 0.12);
}
.resu-event-gallery.is-atmosphere-cyber,
.resu-event-gallery.is-weather-cyber {
  --resu-atmo-accent: #40c6f0;
  --resu-atmo-accent-2: #8a5cff;
  --resu-atmo-overlay: rgba(5, 8, 18, 0.64);
  --resu-atmo-glow: rgba(138, 92, 255, 0.17);
}
.resu-event-gallery .resu-event-cover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--resu-atmo-accent) 28%, transparent), 0 24px 72px rgba(0,0,0,0.44), 0 0 48px var(--resu-atmo-glow);
}
.resu-event-gallery .resu-event-scrim {
  background:
    linear-gradient(90deg, var(--resu-atmo-overlay), rgba(4,10,13,0.22) 48%, rgba(4,10,13,0.72)),
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--resu-atmo-accent) 18%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 72%, color-mix(in srgb, var(--resu-atmo-accent-2) 16%, transparent), transparent 24rem);
}
.resu-event-gallery .resu-gallery-kicker,
.resu-event-gallery .resu-gallery-button { color: var(--resu-atmo-accent); border-color: color-mix(in srgb, var(--resu-atmo-accent) 70%, transparent); }
.resu-event-gallery .resu-gallery-meta span {
  border-color: color-mix(in srgb, var(--resu-atmo-accent) 22%, transparent);
  background: color-mix(in srgb, var(--resu-atmo-accent) 10%, transparent);
}
.resu-event-gallery.is-atmosphere-pride .resu-event-copy::after,
.resu-event-gallery.is-weather-pride .resu-event-copy::after {
  content: "";
  display: block;
  height: 3px;
  width: min(240px, 58%);
  margin-top: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d6d, #ffd166, #46d369, #40c6f0, #8a5cff, #ff78d4);
  opacity: 0.68;
}
.resu-event-gallery.is-atmosphere-rainy .resu-event-bg,
.resu-event-gallery.is-weather-rainy .resu-event-bg { filter: saturate(0.9) contrast(1.04) brightness(0.92); }

@media (prefers-reduced-motion: reduce) {
  .resu-theme-toggle,
  .resu-theme-toggle *,
  html.resu-theme-is-changing * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* v2.4.1 – Light mode gallery contrast fix.
   Gallery cards/heroes are image-overlay components. Their copy must stay bright
   even when the global site text switches to dark in light mode. */
html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-index-copy,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-index-copy,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy,
html[data-theme="light"] .resu-event-gallery .resu-event-copy {
  color: #f7fbff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-index-copy h2,
html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-index-copy h3,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-index-copy h2,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-index-copy h3,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy h1,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy h2,
html[data-theme="light"] .resu-event-gallery .resu-event-copy h1,
html[data-theme="light"] .resu-event-gallery .resu-event-copy h2 {
  color: #f7fbff;
}

html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-index-copy p,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-index-copy p,
html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-meta,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-meta,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy p,
html[data-theme="light"] .resu-event-gallery .resu-event-copy p,
html[data-theme="light"] .resu-event-gallery .resu-gallery-meta span {
  color: rgba(247, 251, 255, 0.82);
}

html[data-theme="light"] .resu-gallery-index-card.is-featured .resu-gallery-meta span,
html[data-theme="light"] .resu-gallery-index-card.is-compact .resu-gallery-meta span,
html[data-theme="light"] .resu-event-gallery .resu-gallery-meta span {
  background: rgba(4, 10, 13, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .resu-gallery-detail .resu-event-copy,
html[data-theme="light"] .resu-event-gallery .resu-event-copy {
  background:
    radial-gradient(circle at 12% 10%, rgba(64, 198, 240, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(5, 8, 10, 0.72), rgba(5, 11, 14, 0.54));
}


/* v2.4.4-no-gallery-effects — Hero credit slot + lightmode readability
   Gallery atmosphere effects are intentionally disabled/postponed. */

/* Hero image credit: own badge below the visual, not clipped by the circle. */
.resu-hero-visual {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.resu-hero-visual .resu-hero-card {
  grid-row: 1;
}

.resu-hero-credit-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.resu-hero-image-credit {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(100%, 360px);
  padding: 0.44rem 0.82rem;
  border: 1px solid rgba(64, 198, 240, 0.34);
  border-radius: 999px;
  background: rgba(4, 12, 16, 0.82);
  color: rgba(247, 251, 255, 0.9);
  font-family: var(--resu-font-meta);
  font-size: clamp(0.7rem, 1.4vw, 0.8rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28), 0 0 28px rgba(64,198,240,0.11);
}

.resu-hero-image-credit a {
  color: inherit;
  text-decoration: none;
}

.resu-hero-image-credit a:hover {
  color: var(--resu-aqua);
}

html[data-theme="light"] .resu-hero-image-credit {
  background: rgba(5, 16, 20, 0.78);
  color: #f7fbff;
}

/* Light mode: gallery copy sits on dark photo overlays, so metadata stays readable. */
html[data-theme="light"] .resu-gallery-index-card .resu-gallery-kicker,
html[data-theme="light"] .resu-gallery-index-card .resu-gallery-button,
html[data-theme="light"] .resu-gallery-index-card .resu-gallery-index-copy,
html[data-theme="light"] .resu-gallery-index-card .resu-gallery-index-copy *,
html[data-theme="light"] .resu-event-gallery .resu-event-copy,
html[data-theme="light"] .resu-event-gallery .resu-event-copy *,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy,
html[data-theme="light"] .resu-gallery-detail .resu-event-copy * {
  color: #f7fbff !important;
}

html[data-theme="light"] .resu-gallery-index-card .resu-gallery-meta span,
html[data-theme="light"] .resu-event-gallery .resu-gallery-meta span,
html[data-theme="light"] .resu-gallery-detail .resu-gallery-meta span {
  color: rgba(247,251,255,0.88) !important;
  background: rgba(4,10,13,0.50) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

@media (max-width: 760px) {
  .resu-hero-visual {
    gap: 0.7rem;
  }

  .resu-hero-image-credit {
    max-width: min(100%, 300px);
    font-size: 0.72rem;
  }
}



/* v2.5.0 — Gallery Experience Update */
.resu-gallery-load-more-wrap {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.resu-load-more.is-load-all {
  border-color: color-mix(in srgb, var(--resu-aqua) 68%, transparent);
  background: var(--resu-aqua);
  color: #041014;
  box-shadow: 0 14px 36px rgba(64, 198, 240, 0.18);
}

.resu-load-more.is-load-all small {
  color: rgba(4, 16, 20, 0.68);
}

.resu-load-more.is-load-all:hover,
.resu-load-more.is-load-all:focus-visible {
  border-color: var(--resu-aqua-2);
  background: var(--resu-aqua-2);
  color: #041014;
}

html[data-theme="light"] .resu-load-more.is-load-all {
  background: var(--resu-aqua);
  color: #ffffff;
}

html[data-theme="light"] .resu-load-more.is-load-all small {
  color: rgba(255, 255, 255, 0.78);
}

.resu-gallery-notice {
  margin-top: clamp(1.4rem, 3.2vw, 2.4rem);
  padding: clamp(1.05rem, 2.5vw, 1.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--resu-line);
  border-radius: var(--resu-radius-small);
  background:
    linear-gradient(135deg, rgba(64, 198, 240, 0.09), transparent 46%),
    color-mix(in srgb, var(--resu-surface-strong) 88%, transparent);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18), var(--resu-glow);
}

.resu-gallery-notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 999px;
  background: var(--resu-aqua);
  color: #041014;
  font-family: var(--resu-font-meta);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(64, 198, 240, 0.24);
}

.resu-gallery-notice-copy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--resu-font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.01em;
}

.resu-gallery-notice-copy p {
  margin: 0.3rem 0;
  color: var(--resu-text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.resu-gallery-notice-copy strong {
  color: var(--resu-aqua);
}

.resu-kofi-button {
  min-height: 50px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  border: 1px solid color-mix(in srgb, var(--resu-aqua) 62%, transparent);
  border-radius: 999px;
  background: var(--resu-aqua);
  color: #041014;
  font-family: var(--resu-font-button);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(64, 198, 240, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.resu-kofi-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.resu-kofi-button:hover,
.resu-kofi-button:focus-visible {
  transform: translateY(-2px);
  background: var(--resu-aqua-2);
  color: #041014;
  box-shadow: 0 18px 42px rgba(64, 198, 240, 0.28);
  outline: none;
}

html[data-theme="light"] .resu-gallery-notice {
  background:
    linear-gradient(135deg, rgba(0, 125, 145, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(6, 16, 20, 0.08);
}

html[data-theme="light"] .resu-kofi-button {
  color: #ffffff;
}

@media (max-width: 760px) {
  .resu-gallery-notice {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .resu-kofi-button {
    grid-column: 1 / -1;
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .resu-gallery-load-more-wrap {
    align-items: stretch;
  }

  .resu-load-more {
    width: 100%;
  }

  .resu-gallery-notice {
    grid-template-columns: 1fr;
  }

  .resu-gallery-notice-icon {
    width: 38px;
    height: 38px;
  }

  .resu-kofi-button {
    grid-column: auto;
  }
}
