:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #eef2ef;
  --ink: #252927;
  --muted: #69736f;
  --line: #d7ded9;
  --accent: #6f867d;
  --accent-warm: #b88f86;
  --shadow: 0 22px 70px rgba(38, 43, 40, 0.12);
  --max: 1180px;
  --home-header-strip-height: 106px;
  --hero-photo-bottom: clamp(620px, 72svh, 780px);
  --hero-gradient-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  letter-spacing: 0;
}

body[data-page="home"] {
  position: relative;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--surface);
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 18px auto 0;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(215, 222, 217, 0.78);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(38, 43, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 700;
}

.brand span:last-child {
  color: var(--accent);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 18px;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-soft);
  outline: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 7px auto;
  background: var(--ink);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

body[data-page="home"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  height: var(--home-header-strip-height);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(215, 222, 217, 0.72);
}

.hero {
  position: relative;
  padding-top: var(--home-header-strip-height);
  height: calc(var(--hero-photo-bottom) + 360px);
  min-height: 960px;
  max-height: none;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}

.hero-image-frame {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: calc(var(--hero-photo-bottom) - var(--home-header-strip-height));
  overflow: hidden;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position-x, 50%) var(--hero-position-y, 50%);
  transform: scale(var(--hero-scale, 1));
  transform-origin: var(--hero-position-x, 50%) var(--hero-position-y, 50%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(247, 248, 246, var(--hero-tone, 0.42));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--hero-photo-bottom);
  z-index: 3;
  padding: 30px 0 98px;
  background: var(--bg);
}

.hero-content::before {
  display: none;
}

.hero-content-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero-content-inner > * {
  max-width: 620px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 70px;
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 650;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 650;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: #3d4541;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="home"] main > section:not(.hero),
body[data-page="home"] .site-footer {
  position: relative;
  z-index: 4;
}

body[data-page="home"] main > section:not(.hero)::before,
body[data-page="home"] .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.2;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.button-primary {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

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

.button-quiet {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(37, 41, 39, 0.14);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: var(--surface);
  border-color: rgba(37, 41, 39, 0.24);
}

.button-danger {
  color: #7d2118;
  background: #fff4f1;
  border-color: #efb8ae;
}

.button-danger:hover,
.button-danger:focus-visible {
  color: #ffffff;
  background: #9e2f22;
  border-color: #9e2f22;
}

.section-shell {
  scroll-margin-top: 118px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding-top: 72px;
}

.intro-copy {
  max-width: 760px;
}

.intro-copy h2,
.contact-copy h2,
.page-hero h2,
.session-hero h1 {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.intro-copy p,
.section-heading > p,
.contact-copy p {
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 46px;
}

.gallery-stack {
  display: grid;
  gap: 84px;
}

.gallery-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.gallery-title {
  position: sticky;
  top: 104px;
  align-self: start;
}

.gallery-title p {
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-weight: 700;
}

.gallery-title h3 {
  margin-top: 0;
  font-size: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 12px;
  align-items: start;
}

.photo-tile {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.photo-tile-large {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 0;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(0.96) contrast(1.03);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(111, 134, 125, 0.55);
  outline-offset: -3px;
}

.photo-tile figcaption {
  padding: 0 2px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.latest-note-section {
  padding-top: 42px;
}

.latest-note-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.latest-note-card.no-note-image {
  grid-template-columns: 1fr;
}

.latest-note-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.latest-note-card > div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 52px);
}

.latest-note-card h3,
.latest-note-card p {
  margin-bottom: 0;
}

.latest-note-card h3 {
  font-size: 34px;
}

.latest-note-card > div > p:not(.note-meta) {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  align-content: start;
  width: 100%;
  min-height: 230px;
  padding: 24px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  background: #ffffff;
  border-color: rgba(92, 116, 105, 0.38);
  box-shadow: 0 18px 36px rgba(40, 46, 43, 0.08);
  transform: translateY(-3px);
  outline: 0;
}

.service-card:active {
  transform: translateY(-1px);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 1px solid var(--line);
}

.price-row h3,
.price-row p {
  margin-bottom: 4px;
}

.price-row p {
  color: var(--muted);
}

.price-row strong {
  justify-self: end;
  color: var(--accent);
  font-size: 24px;
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: 68px;
  align-items: start;
  padding-bottom: 104px;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  width: fit-content;
  color: var(--ink);
  border-bottom: 1px solid rgba(37, 41, 39, 0.28);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 134, 125, 0.16);
}

.form-result {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.form-result[hidden] {
  display: none;
}

.form-result p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.admin-footer-link {
  color: var(--ink);
  font-weight: 650;
}

.admin-footer-link:hover,
.admin-footer-link:focus-visible {
  color: var(--accent);
  outline: 0;
}

.load-error {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 14px 16px;
  color: var(--surface);
  background: #8a3e36;
  border-radius: 8px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 54px;
  align-items: end;
  padding-top: 164px;
  padding-bottom: 54px;
}

.page-hero h2 {
  font-size: 60px;
}

.page-hero > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.page-section {
  padding-top: 42px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-button,
.text-button,
.icon-button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 1;
  text-align: center;
}

.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.icon-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active,
.text-button:hover,
.text-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
  outline: 0;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.session-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.session-card a {
  display: grid;
  min-height: 100%;
}

.session-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.session-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: var(--muted);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.session-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.session-card h3,
.session-card p {
  margin-bottom: 0;
}

.session-card p {
  color: var(--muted);
}

.session-card span {
  color: var(--accent);
  font-weight: 700;
}

.session-meta {
  color: var(--accent-warm) !important;
  font-size: 17px;
  font-weight: 700;
}

.note-list {
  display: grid;
  gap: 18px;
}

.note-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.note-card:hover,
.note-card:focus-within {
  border-color: rgba(111, 134, 125, 0.58);
  box-shadow: 0 18px 46px rgba(38, 43, 40, 0.08);
  transform: translateY(-1px);
}

.note-card a {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  min-height: 100%;
}

.note-card.no-note-image a {
  grid-template-columns: 1fr;
}

.note-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.note-card-copy {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
}

.note-meta {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.note-card h3,
.note-card p {
  margin-bottom: 0;
}

.note-card h3 {
  font-size: 32px;
}

.note-excerpt {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.48;
}

.note-card-copy span {
  color: var(--accent);
  font-weight: 700;
}

.note-body {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.note-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 64px;
  align-items: end;
  padding-top: 150px;
  padding-bottom: 52px;
}

.note-detail-copy {
  max-width: 980px;
}

.note-detail-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.note-detail-copy h1 {
  margin-bottom: 24px;
  font-size: 58px;
  line-height: 1;
}

.note-detail-lead {
  max-width: 980px;
  margin-bottom: 0;
  padding-left: 22px;
  color: #4c5d56;
  border-left: 3px solid rgba(111, 134, 125, 0.42);
  font-family: inherit;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.48;
  text-wrap: pretty;
}

.note-detail-body {
  display: grid;
  gap: 26px;
  max-width: 1040px;
  padding-top: 28px;
}

.note-detail-body p {
  margin-bottom: 0;
  color: #2f3632;
  font-size: 22px;
  font-weight: 430;
  line-height: 1.72;
  text-wrap: pretty;
}

.note-album-section {
  padding-top: 70px;
}

.note-album-link {
  width: fit-content;
  margin-top: 18px;
}

.session-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: end;
  padding-top: 150px;
  padding-bottom: 52px;
}

.session-hero h1 {
  font-size: 60px;
}

.session-hero-copy > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 20px;
}

.session-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.session-placeholder-large {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--muted);
  border-bottom: 1px solid rgba(37, 41, 39, 0.28);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: 0;
}

.session-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.session-facts span {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.session-photo-grid {
  grid-auto-rows: auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 64px;
  align-items: start;
  padding-top: 150px;
}

.about-copy h1 {
  margin-bottom: 24px;
  font-size: 60px;
  line-height: 1;
}

.about-copy p {
  color: var(--muted);
  font-size: 20px;
}

.about-lead {
  color: var(--ink) !important;
  font-size: 26px !important;
  line-height: 1.45;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 12px;
  align-items: start;
}

.about-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.about-portrait-main {
  max-height: none;
}

.about-portrait-secondary {
  max-height: none;
}

.about-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-top: 24px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about-details article {
  min-width: 0;
}

.about-details h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.about-details ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.about-details li,
.about-details p {
  color: var(--muted);
  font-size: 19px;
}

.tag-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding-left: 0 !important;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-body {
  background: #f3f5f2;
}

.admin-header {
  position: sticky;
}

.admin-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 80px;
}

.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-title h1 {
  margin-bottom: 0;
  font-size: 50px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-status[data-tone="ok"] {
  color: #315d49;
  background: #e9f4ee;
  border-color: #c9dfd2;
}

.admin-status[data-tone="warn"] {
  color: #745526;
  background: #fbf1db;
  border-color: #ead4a7;
}

.admin-status[data-tone="error"] {
  color: #8a3e36;
  background: #f7e4e1;
  border-color: #e3b8b2;
}

.login-body {
  min-height: 100vh;
  background: var(--bg);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.login-panel {
  width: min(520px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 32px;
}

.login-panel h1 {
  margin-bottom: 16px;
  font-size: 44px;
}

.login-panel > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 20px;
}

.login-google-button {
  min-height: 44px;
  margin: 22px 0 16px;
}

.login-status {
  margin-bottom: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-tabs {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-tabs button,
.session-list button {
  width: 100%;
  padding: 11px 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.admin-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-tabs button:hover,
.admin-tabs button:focus-visible,
.admin-tabs button.is-active,
.session-list button:hover,
.session-list button:focus-visible,
.session-list button.is-active {
  color: var(--ink);
  background: var(--surface-soft);
  outline: 0;
}

.admin-panel {
  display: none;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel.is-active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.heading-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  color: #ffffff;
  background: #4f8a64;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.unread-badge[hidden] {
  display: none;
}

.panel-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.security-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.security-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.security-user strong {
  display: block;
  font-size: 20px;
}

.security-user span,
.security-note {
  color: var(--muted);
}

.security-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.security-email-list {
  display: grid;
  gap: 8px;
}

.security-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.security-email-row code {
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sync-card + .sync-card {
  margin-top: 14px;
}

.sync-card-stacked {
  grid-template-columns: minmax(0, 1fr);
}

.sync-download-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) !important;
}

.sync-download-card > div,
.sync-download-card .sync-path-list {
  width: 100%;
  max-width: none;
}

.sync-download-card p {
  max-width: none;
}

.sync-download-card .button {
  align-self: flex-start;
  margin-top: 2px;
}

.sync-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.sync-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sync-card p + p {
  margin-top: 10px;
}

.sync-card code {
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.sync-path-list {
  display: grid;
  gap: 8px;
  max-width: 100%;
  margin-top: 12px;
}

.sync-path-list div {
  display: grid;
  grid-template-columns: max-content max-content minmax(360px, 1fr);
  gap: 8px 10px;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sync-path-list span {
  color: var(--muted);
}

.sync-path-list code:last-child {
  overflow-wrap: anywhere;
}

.sync-warning {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.sync-cleanup-result:empty {
  display: none;
}

.sync-cleanup-note,
.sync-cleanup-summary {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sync-cleanup-summary strong {
  color: var(--ink);
}

.sync-cleanup-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sync-cleanup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sync-cleanup-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.sync-cleanup-item small {
  color: var(--muted);
}

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

.field-grid label,
.admin-row label,
.admin-photo label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.about-upload {
  align-self: end;
  width: fit-content;
}

.field-grid .wide,
.admin-row .wide {
  grid-column: 1 / -1;
}

.hero-admin-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-admin-tool > * {
  min-width: 0;
}

.hero-admin-preview {
  position: relative;
  aspect-ratio: 16 / 5;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-admin-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-admin-preview-tone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(247, 248, 246, var(--hero-tone, 0.42));
}

.hero-admin-preview.is-empty::before {
  content: "Головне фото ще не вибрано";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.hero-admin-preview-band {
  display: none;
}

.hero-admin-preview-band span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.hero-admin-preview-band strong {
  color: var(--ink);
  font-size: 46px;
  line-height: 0.98;
}

.hero-admin-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.hero-admin-controls label {
  min-width: 0;
}

.hero-admin-controls input[type="range"] {
  width: 100%;
}

.hero-admin-controls .button,
.hero-admin-controls .file-button {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 420px;
}

.panel-subform {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-collapsible {
  margin-bottom: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-collapsible summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible summary:focus-visible {
  outline: 3px solid rgba(111, 134, 125, 0.22);
  outline-offset: 2px;
}

.admin-collapsible summary span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-collapsible summary strong {
  color: var(--ink);
  font-size: 19px;
}

.admin-collapsible summary small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.admin-collapsible-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 750;
}

.admin-collapsible[open] .admin-collapsible-action {
  color: var(--muted);
}

.admin-collapsible[open] .admin-collapsible-action::after {
  content: " / згорнути";
}

.admin-collapsible .panel-subform {
  margin: 0;
  padding: 0 14px 14px;
  border-bottom: 0;
}

.field-grid input,
.field-grid select,
.field-grid textarea,
.admin-row input,
.admin-row textarea,
.admin-photo input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.field-grid textarea,
.admin-row textarea {
  resize: vertical;
}

.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus,
.admin-row input:focus,
.admin-row textarea:focus,
.admin-photo input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 134, 125, 0.16);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row label {
  grid-column: 1;
}

.admin-row .icon-button {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.admin-note {
  grid-template-columns: 1fr;
}

.admin-note label {
  grid-column: 1;
}

.admin-note-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-note-summary {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-note-summary img,
.admin-note-summary-placeholder {
  width: 116px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.admin-note-summary img {
  object-fit: cover;
}

.admin-note-summary-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 15px;
  text-align: center;
}

.admin-note-summary h3,
.admin-note-summary p {
  margin-bottom: 4px;
}

.admin-note-summary h3 {
  font-size: 25px;
}

.admin-note-summary p:not(.album-admin-meta),
.admin-note-summary small {
  color: var(--muted);
}

.admin-note-summary small {
  display: block;
}

.admin-note-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-subtitle {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.note-selected-photos {
  display: grid;
  gap: 8px;
}

.note-selected-photos.empty {
  padding: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-selected-photo {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.note-selected-photo.is-cover {
  border-color: rgba(79, 138, 100, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 138, 100, 0.12);
}

.note-selected-photo.is-dragging {
  opacity: 0.55;
}

.note-selected-photo.is-drop-target {
  border-color: #6f9f7c;
  box-shadow: 0 0 0 3px rgba(111, 159, 124, 0.16);
}

.note-selected-photo img {
  width: 82px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.note-selected-photo strong,
.note-selected-photo span {
  display: block;
}

.note-selected-photo span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
}

.note-photo-picker {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-photo-picker-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.note-photo-picker-head h3 {
  margin-top: 4px;
  font-size: 28px;
}

.note-photo-picker-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.note-album-tabs {
  display: grid;
  gap: 8px;
}

.note-album-tabs button {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.note-album-tabs button:hover,
.note-album-tabs button:focus-visible,
.note-album-tabs button.is-active {
  color: var(--ink);
  border-color: rgba(37, 41, 39, 0.28);
  outline: 0;
}

.note-album-tabs span {
  font-size: 15px;
}

.note-picker-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.note-picker-photo {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.note-picker-photo.is-selected {
  border-color: rgba(79, 138, 100, 0.45);
}

.note-picker-photo.is-cover {
  box-shadow: 0 0 0 3px rgba(79, 138, 100, 0.12);
}

.note-picker-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.note-picker-photo strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.note-picker-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.note-picker-check input {
  width: 18px;
  min-height: 18px;
}

.note-picker-selected {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.session-admin {
  display: grid;
  gap: 18px;
}

.album-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
}

.album-admin-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.album-admin-card:hover,
.album-admin-card:focus-visible {
  border-color: rgba(37, 41, 39, 0.28);
  box-shadow: var(--shadow-soft);
  outline: 0;
  transform: translateY(-1px);
}

.album-admin-card img,
.album-admin-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.album-admin-card img {
  object-fit: cover;
}

.album-admin-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.album-admin-card-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.album-admin-card-copy strong {
  font-size: 21px;
  line-height: 1.25;
}

.album-admin-card-copy span:not(.album-admin-meta),
.album-admin-card-copy small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.album-admin-meta {
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.session-editor {
  min-width: 0;
}

.admin-session-panel {
  max-width: 980px;
  margin: 0 auto;
}

.admin-session-title {
  align-items: start;
}

.session-editor-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.session-editor-header h3 {
  margin-top: 5px;
  font-size: 24px;
}

.toggle-line {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  color: var(--ink) !important;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
}

.photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-photo {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.admin-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.admin-photo-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-photo-summary strong {
  display: block;
  line-height: 1.35;
}

.admin-photo-summary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
}

.photo-drag-handle {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  font-size: 14px;
  font-weight: 750;
}

.photo-drag-handle:active {
  cursor: grabbing;
}

.photo-detail-toggle {
  width: fit-content;
}

.photo-detail-fields {
  display: grid;
  gap: 10px;
}

.photo-detail-fields[hidden] {
  display: none;
}

.sortable-photo-grid .admin-photo.is-dragging {
  opacity: 0.55;
}

.sortable-photo-grid .admin-photo.is-drop-target {
  border-color: #6f9f7c;
  box-shadow: 0 0 0 3px rgba(111, 159, 124, 0.16);
}

.photo-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.photo-actions button:disabled {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--line);
  cursor: default;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 650;
}

.request-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.request-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 134, 125, 0.16);
  outline: 0;
}

.request-card.is-unviewed {
  background: #f4fbf6;
  border-color: #98c8a7;
  box-shadow: inset 4px 0 0 #6f9f7c;
}

.request-card.is-viewed {
  background: var(--bg);
}

.request-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.request-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.request-card h3,
.request-card p {
  margin: 0;
}

.request-card-head p,
.request-card dd,
.request-card small {
  color: var(--muted);
}

.request-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.request-card dt {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.request-card dd {
  margin: 0;
}

.request-status {
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.request-status.sent {
  color: #315d49;
  background: #e9f4ee;
}

.request-status.saved {
  color: #745526;
  background: #fbf1db;
}

.request-status.new {
  color: #2f6746;
  background: #ddf0e4;
}

.request-status.viewed {
  color: var(--muted);
  background: var(--surface-soft);
}

.request-delete {
  padding-inline: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 72px 92px;
  background: rgba(8, 9, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  display: grid;
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.lightbox img {
  display: block;
  width: auto;
  max-width: min(100%, 86vw);
  max-height: 80vh;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.lightbox:fullscreen {
  padding: 44px 72px;
  background: rgba(3, 4, 4, 0.96);
}

.lightbox:fullscreen img {
  max-width: calc(100vw - 144px);
  max-height: 88vh;
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--surface);
  text-align: center;
}

.lightbox-close,
.lightbox-fullscreen,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 0;
  line-height: 1;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-nav::before,
.lightbox-nav::after {
  content: "";
  position: absolute;
  top: calc(50% - 1.5px);
  width: 17px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-fullscreen:hover,
.lightbox-fullscreen:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: 0;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-fullscreen {
  top: 24px;
  right: 82px;
}

.lightbox-fullscreen::before,
.lightbox-fullscreen::after {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(currentColor, currentColor) left top / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 10px no-repeat;
}

.lightbox-fullscreen::after {
  display: none;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-prev::before,
.lightbox-prev::after {
  left: calc(50% - 6px);
  transform-origin: left center;
}

.lightbox-prev::before {
  transform: rotate(45deg);
}

.lightbox-prev::after {
  transform: rotate(-45deg);
}

.lightbox-next {
  right: 24px;
}

.lightbox-next::before,
.lightbox-next::after {
  left: calc(50% - 11px);
  transform-origin: right center;
}

.lightbox-next::before {
  transform: rotate(45deg);
}

.lightbox-next::after {
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .section-shell {
    padding: 76px 0;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  .intro,
  .section-heading,
  .gallery-block,
  .latest-note-card,
  .page-hero,
  .note-card a,
  .note-detail-hero,
  .session-hero,
  .about-hero,
  .about-details,
  .contact {
    grid-template-columns: 1fr;
  }

  .gallery-title,
  .contact-copy {
    position: static;
  }

  .photo-grid {
    grid-auto-rows: auto;
  }

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

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

  .admin-title,
  .admin-layout,
  .session-admin {
    grid-template-columns: 1fr;
  }

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

  .admin-title {
    display: grid;
    align-items: start;
  }

  .admin-actions {
    justify-content: start;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-hero h2,
  .note-detail-copy h1,
  .session-hero h1,
  .about-copy h1 {
    font-size: 46px;
  }

  .latest-note-card img,
  .note-card img {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --home-header-strip-height: 88px;
    --hero-photo-bottom: clamp(540px, 68svh, 660px);
    --hero-gradient-height: 64px;
  }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.menu-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    height: calc(var(--hero-photo-bottom) + 350px);
    min-height: 880px;
  }

  .hero-content {
    padding: 24px 0 54px;
  }

  .hero-content-inner {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 44px;
  }

  .page-hero h2,
  .session-hero h1,
  .about-copy h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-text,
  .intro-copy p,
  .section-heading > p,
  .contact-copy p {
    font-size: 18px;
  }

  .section-shell {
    width: calc(100% - 28px);
    padding: 62px 0;
  }

  .gallery-stack {
    gap: 64px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .photo-tile-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .service-grid,
  .session-grid,
  .latest-note-card,
  .note-card a,
  .note-detail-hero,
  .admin-photo-grid,
  .album-admin-grid,
  .hero-admin-tool,
  .field-grid,
  .price-row {
    grid-template-columns: 1fr;
  }

  .hero-admin-controls {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: calc(100% - 28px);
    padding-top: 86px;
  }

  .admin-title h1 {
    font-size: 40px;
  }

  .admin-panel {
    padding: 16px;
  }

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

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

  .admin-note-summary {
    grid-template-columns: 1fr;
  }

  .admin-note-summary img,
  .admin-note-summary-placeholder {
    width: 100%;
  }

  .admin-note-summary-actions {
    justify-content: flex-start;
  }

  .note-photo-picker-layout,
  .note-picker-photos,
  .note-selected-photo {
    grid-template-columns: 1fr;
  }

  .note-selected-photo img {
    width: 100%;
  }

  .security-email-form {
    grid-template-columns: 1fr;
  }

  .sync-card {
    grid-template-columns: 1fr;
  }

  .sync-card .button {
    width: fit-content;
  }

  .sync-path-list div {
    grid-template-columns: 1fr;
  }

  .admin-collapsible summary {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-collapsible-action {
    width: fit-content;
  }

  .admin-row .icon-button {
    grid-column: 1;
    grid-row: auto;
    width: 40px;
  }

  .page-hero,
  .note-detail-hero,
  .session-hero,
  .about-hero {
    padding-top: 130px;
    padding-bottom: 34px;
  }

  .about-media {
    grid-template-columns: 1fr;
  }

  .about-lead {
    font-size: 22px !important;
  }

  .session-photo-grid {
    grid-auto-rows: auto;
  }

  .service-card {
    min-height: auto;
  }

  .latest-note-card h3,
  .note-card h3 {
    font-size: 27px;
  }

  .note-detail-copy h1 {
    font-size: 40px;
  }

  .note-detail-lead {
    padding-left: 16px;
    font-size: 23px;
    line-height: 1.48;
  }

  .note-detail-body p {
    font-size: 20px;
    line-height: 1.68;
  }

  .latest-note-card img,
  .note-card img {
    min-height: 0;
  }

  .price-row strong {
    justify-self: start;
  }

  .contact {
    gap: 34px;
    padding-bottom: 72px;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
    width: calc(100% - 28px);
  }

  .lightbox {
    padding: 70px 14px 82px;
  }

  .lightbox img {
    max-width: calc(100vw - 28px);
    max-height: 74vh;
  }

  .lightbox-fullscreen {
    right: 82px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}

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