:root {
  --ink: #151515;
  --muted: #6b6f76;
  --line: #e7e2da;
  --paper: #faf8f3;
  --white: #ffffff;
  --amber: #f1b82d;
  --red: #9c2d24;
  --steel: #55616d;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.admin-header__icon--badge {
  position: relative;
}

.admin-header__icon--badge span,
.admin-sidebar a span[data-mail-unread="main"] {
  min-width: 22px;
}

.admin-header__icon--badge span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.mail-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mail-settings-grid__check {
  align-self: end;
}

.mail-status-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 16px;
  background: #fbfaf8;
}

.mail-status-card h3 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.mail-status-card p,
.mail-status-card ul {
  margin: 0;
  color: var(--muted);
}

.mail-status-card ul {
  padding-left: 18px;
}

.mail-status-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.mail-status-card__error {
  color: var(--red) !important;
}

.mail-status-card.is-ready {
  border-color: rgba(58, 132, 74, .35);
  background: #f5fbf6;
}

.mail-status-card.is-error {
  border-color: rgba(156, 45, 36, .35);
  background: #fff7f5;
}

.mail-folder-settings {
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fbfaf8;
}

.mail-folder-settings summary {
  font-weight: 900;
  cursor: pointer;
}

.mailbox {
  display: grid;
  gap: 14px;
}

.mailbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}

.mailbox__toolbar h2 {
  margin: 2px 0;
  font-size: 24px;
}

.mailbox__toolbar small {
  color: var(--muted);
}

.mailbox__layout {
  display: grid;
  grid-template-columns: 190px minmax(260px, 360px) minmax(0, 1fr);
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.mailbox__folders {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 14px;
  background: #f6f6f5;
}

.mailbox__folders a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.mailbox__folders a.is-active,
.mailbox__folders a:hover {
  color: var(--white);
  background: var(--ink);
}

.mailbox__folders b {
  color: inherit;
  opacity: .72;
}

.mailbox__list {
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfaf8;
}

.mail-row {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
}

.mail-row span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.mail-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mail-row.is-unread b,
.mail-row.is-unread span strong {
  color: var(--red);
}

.mail-row.is-active,
.mail-row:hover {
  background: var(--white);
}

.mailbox__reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.mailbox__reader-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.mailbox__reader-head h2 {
  margin: 2px 0 8px;
  font-size: 26px;
}

.mailbox__reader-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.mailbox__reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 8px;
}

.mailbox__body {
  overflow: auto;
  padding: 22px;
  font-size: 15px;
  line-height: 1.65;
}

.mailbox__empty {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}

.mailbox__empty--reader {
  align-self: center;
}

.mail-compose {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: #fbfaf8;
}

.mail-compose summary {
  font-weight: 900;
  cursor: pointer;
}

.mail-compose form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .mailbox__layout {
    grid-template-columns: 1fr;
  }

  .mailbox__folders {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mailbox__list {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mail-settings-grid {
    grid-template-columns: 1fr;
  }

  .mail-status-card {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px clamp(18px, 4vw, 56px);
  }

  .site-footer__slot--left,
  .site-footer__slot--right,
  .site-footer__slot--center {
    justify-self: center;
    text-align: center;
  }

  .footer-admin-actions {
    position: static;
    transform: none;
    margin-left: 0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(250, 248, 243, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 78px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

main {
  min-height: calc(100vh - 160px);
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .8fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 56px) clamp(34px, 5vw, 68px);
}

.page-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  font-weight: 700;
  overflow-wrap: break-word;
}

.project-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  font-weight: 700;
  overflow-wrap: break-word;
}

.page-title p,
.page-title blockquote,
.title-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto 26px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.filter-button,
.button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover,
.button {
  color: var(--white);
  background: var(--ink);
}

.filter-button sup {
  color: var(--red);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 72px;
}

.project-card {
  aspect-ratio: 1;
  background: #ddd;
  overflow: hidden;
}

.project-card a {
  position: relative;
  display: block;
  height: 100%;
}

.project-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card__overlay,
.gallery-item span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, .76), rgba(0, 0, 0, .08));
  opacity: 0;
  transition: opacity .22s ease;
}

.project-card:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
}

.project-card:hover .project-card__overlay,
.gallery-item:hover span {
  opacity: 1;
}

.project-card strong,
.gallery-item strong {
  font-size: 22px;
  line-height: 1.1;
}

.project-card em,
.gallery-item em {
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
}

.split-section,
.contact-layout,
.events-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 76px;
}

.split-section figure {
  margin: 0;
}

.split-section img,
.contact-info iframe,
.event-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rich-text p:first-child {
  margin-top: 0;
}

.rich-text a,
.title-copy a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 76px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: zoom-in;
}

.gallery-item img {
  height: auto;
}

.gallery-item video,
.detail-video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--ink);
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px) 80px;
}

.project-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.project-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.project-media {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 18px;
}

.detail-image {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: zoom-in;
}

.detail-image img {
  width: 100%;
  height: auto;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.calendar-panel,
.contact-form,
.contact-info,
.admin-form,
.admin-list,
.admin-login {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.calendar-panel,
.contact-info,
.contact-form {
  padding: 20px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.calendar-head h2 {
  margin: 0;
}

.calendar-head a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.calendar-weekday,
.calendar-day {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 6px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day {
  position: relative;
  background: var(--paper);
}

.calendar-day.has-event {
  color: var(--white);
  background: var(--red);
}

.calendar-day i {
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

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

.event-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.event-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: none;
}

.event-card time,
.meta {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.event-card h2 {
  margin: 4px 0 8px;
}

.contact-info iframe {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

label.is-disabled {
  opacity: .48;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.notice-box {
  max-width: 1240px;
  margin: 0 auto 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
}

.notice-box.is-success {
  border-color: #8cbf87;
}

.notice-box.is-error {
  border-color: var(--red);
  color: var(--red);
}

.center-action {
  text-align: center;
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
}

.button-danger {
  border-color: var(--red);
  background: var(--red);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .88);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.lightbox__nav {
  top: 50% !important;
  right: auto !important;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px !important;
}

.lightbox figure {
  margin: 0;
  color: var(--white);
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 10px;
  text-align: center;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 28px calc(clamp(18px, 4vw, 56px) + 74px) 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.site-footer__slot {
  min-height: 24px;
  min-width: 36px;
}

body.inline-admin-active .site-footer__slot {
  min-width: clamp(150px, 18vw, 280px);
}

.site-footer__slot--left {
  justify-self: start;
  text-align: left;
}

.site-footer__slot--center {
  justify-self: center;
  text-align: center;
}

.site-footer__slot--right {
  justify-self: end;
  text-align: right;
}

/* Refined GHF identity */
body {
  background:
    linear-gradient(90deg, rgba(156, 45, 36, .05) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 44px 44px;
}

.site-header {
  top: 12px;
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 12px auto 0;
  border: 1px solid rgba(21, 21, 21, .12);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand::after {
  content: "Gearhead Factory";
  max-width: 130px;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand img {
  width: 58px;
}

.page-title {
  align-items: center;
}

.project-grid {
  gap: 18px;
}

.project-card {
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(21, 21, 21, .08);
}

.project-card a,
.album-card a {
  isolation: isolate;
}

.project-card img,
.album-card img {
  transition: transform .45s ease, filter .45s ease;
}

.project-card:hover img,
.album-card:hover img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.06) rotate(.7deg);
}

.project-card__overlay {
  inset: auto 12px 12px;
  min-height: 42%;
  border-radius: var(--radius);
  background: rgba(21, 21, 21, .82);
  opacity: 0;
}

.project-media {
  gap: 24px;
}

.detail-image {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(21, 21, 21, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}

.detail-image:hover {
  box-shadow: 0 22px 42px rgba(21, 21, 21, .16);
  transform: translateY(-3px);
}

.detail-image img {
  border-radius: 6px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 76px;
}

.album-archive {
  display: grid;
  gap: 14px;
  width: 100%;
}

.album-archive .album-grid {
  max-width: none;
  padding: 12px;
}

.album-card {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(21, 21, 21, .12);
}

.album-card a {
  position: relative;
  display: block;
  height: 100%;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card__content {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(21, 21, 21, .82);
}

.album-card__content small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--amber);
  font-weight: 900;
}

.album-card__content strong {
  font-size: 24px;
  line-height: 1.1;
}

.album-card__content em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.page-title--compact h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.gallery-grid--detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 380px));
  justify-content: center;
  align-items: start;
  gap: 18px;
  columns: initial;
}

.gallery-grid--detail .gallery-item {
  margin: 0;
}

.gallery-grid--detail .gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-grid--detail .gallery-item--embed,
.gallery-grid--detail .gallery-item--video {
  cursor: default;
}

.gallery-grid--detail .gallery-item--embed .video-frame {
  width: 100%;
  margin: 0;
}

.gallery-detail-intro {
  display: grid;
  gap: 14px;
}

.gallery-detail-description {
  display: grid;
  gap: 10px;
}

.gallery-detail-description p,
.gallery-detail-back {
  margin: 0;
}

.events-layout {
  align-items: start;
}

.calendar-panel {
  position: sticky;
  top: 112px;
  background: #1b1b1b;
  color: var(--white);
}

.calendar-panel .calendar-head a,
.calendar-panel .calendar-day {
  border-color: rgba(255, 255, 255, .16);
}

.calendar-panel .calendar-day {
  color: var(--ink);
}

.calendar-panel .calendar-weekday {
  color: rgba(255, 255, 255, .68);
}

.event-card {
  grid-template-columns: 160px 1fr;
  border-left: 5px solid var(--red);
  box-shadow: 0 14px 30px rgba(21, 21, 21, .08);
}

.event-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  line-height: 1.1;
}

.admin-body {
  background: #f2f0ea;
  background-image: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 16px 24px;
  color: var(--white);
  background: var(--ink);
}

.admin-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.admin-header__brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1);
}

.admin-header__nav {
  display: flex;
  gap: 8px;
}

.admin-header__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
  line-height: 1;
}

.admin-header__icon:hover {
  background: rgba(255, 255, 255, .16);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
}

.admin-sidebar,
.admin-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
}

.admin-sidebar a span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 900;
}

.admin-list a {
  border-radius: var(--radius);
}

.admin-sidebar a.is-active,
.admin-list a.is-active {
  color: var(--white);
  background: var(--ink);
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-title__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.page-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fbfaf7;
}

.page-admin-row--system {
  background: var(--white);
}

.page-admin-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table__head,
.admin-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table__head {
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.admin-table__row:last-child {
  border-bottom: 0;
}

.admin-table--invites .admin-table__head,
.admin-table--invites .admin-table__row {
  grid-template-columns: 1.4fr .7fr .9fr 1fr .7fr;
}

.admin-form--compact {
  gap: 10px;
}

.icon-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-title h1 {
  margin: 0 0 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.admin-list {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.admin-list-item img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-thumb-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--line), var(--paper));
}

.admin-list-item > span,
.admin-list a > span {
  display: grid;
}

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

.admin-list-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  border-radius: var(--radius);
  padding: 8px 10px;
  background: #f4f1ea;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-list-group summary small {
  min-width: 24px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.admin-list-month {
  display: grid;
  gap: 6px;
  padding-left: 10px;
}

.admin-list-month > strong {
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-list span small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.editor-card {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.editor-card h2 {
  margin: 0;
  font-size: 18px;
}

.form-row-compact {
  grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr) minmax(150px, .35fr);
}

.dropzone {
  position: relative;
  min-height: 74px;
  align-content: center;
  justify-items: center;
  border: 2px dashed #cfc7bb;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: #fbfaf7;
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone span {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.dropzone.is-dragover {
  border-color: var(--red);
  background: #fff6ec;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-preview span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.media-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.media-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: grab;
}

.media-tile.is-dragging {
  opacity: .45;
}

.media-tile img,
.media-video-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.media-video-thumb,
.media-choice__video {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-weight: 950;
}

.media-tile figcaption {
  padding: 7px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(21, 21, 21, .78);
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

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

.admin-login {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  min-height: 0 !important;
  height: auto;
  margin: 0 auto;
  padding: 24px;
}

main.admin-login,
.admin-login-page > .admin-login {
  min-height: 0 !important;
  height: auto !important;
  align-self: center;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-login h1 {
  margin-top: 0;
  font-size: 28px;
}

.admin-login .button {
  justify-self: start;
  margin-top: 2px;
}

.admin-login__logo {
  width: auto;
  max-width: 150px;
  max-height: 150px;
  height: auto;
  margin: 10px auto 8px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-group {
    display: grid;
  }

  .nav-group__button {
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 4px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .page-title,
  .split-section,
  .contact-layout,
  .events-layout,
  .project-detail,
  .admin-shell,
  .admin-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .project-copy {
    position: static;
  }

  .admin-shell {
    padding: 16px;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-list {
    max-height: 320px;
  }

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

  .brand::after {
    max-width: 105px;
    font-size: 14px;
  }

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

/* Polished public surface */
body {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, .035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f8f6ef 0, #efede7 100%);
  background-size: 52px 52px, auto;
}

.site-header {
  min-height: 66px;
  color: var(--white);
  background: rgba(22, 23, 22, .94);
  border-color: rgba(255, 255, 255, .12);
}

.brand::after,
.main-nav a {
  color: var(--white);
}

.brand img {
  width: 52px;
}

.main-nav {
  font-size: 12px;
}

.page-title {
  max-width: 1180px;
  padding-top: clamp(42px, 6vw, 80px);
}

.page-title h1,
.project-copy h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 950;
  line-height: .96;
}

.page-title p,
.page-title blockquote,
.title-copy {
  font-size: clamp(16px, 1.4vw, 19px);
}

.filter-bar {
  gap: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(21, 21, 21, .22);
  background: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.filter-button--tag {
  border-color: rgba(156, 45, 36, .24);
}

.project-grid,
.album-grid {
  gap: 20px;
  max-width: 1260px;
}

.project-card {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(21, 21, 21, .08);
  background: var(--white);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover,
.album-card:hover {
  box-shadow: 0 22px 44px rgba(21, 21, 21, .16);
  transform: translateY(-4px);
}

.project-card__overlay,
.album-card__content {
  opacity: 1;
  background: linear-gradient(to top, rgba(18, 18, 18, .9), rgba(18, 18, 18, .52) 56%, rgba(18, 18, 18, 0));
}

.project-card__overlay {
  inset: 0;
  padding: 20px;
  transform: translateY(8px);
  transition: transform .22s ease;
}

.project-card:hover .project-card__overlay {
  transform: translateY(0);
}

.project-card strong,
.gallery-item strong,
.album-card__content strong {
  font-size: clamp(18px, 1.7vw, 24px);
}

.album-card {
  min-height: 320px;
  border: 1px solid rgba(21, 21, 21, .08);
}

.album-card__content {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 72px 18px 18px;
  border-radius: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row--detail {
  margin: 0 0 18px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 3px 8px;
  color: inherit;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.project-copy .tag-chip,
.title-copy .tag-chip,
.event-card .tag-chip {
  border-color: rgba(156, 45, 36, .18);
  color: var(--red);
  background: rgba(156, 45, 36, .07);
}

.gallery-grid {
  column-gap: 18px;
}

.gallery-item {
  margin-bottom: 18px;
  box-shadow: 0 12px 26px rgba(21, 21, 21, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 38px rgba(21, 21, 21, .15);
  transform: translateY(-3px);
}

.calendar-panel {
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--red);
  box-shadow: 0 16px 34px rgba(21, 21, 21, .08);
}

.calendar-panel .calendar-weekday {
  color: var(--muted);
}

.calendar-panel .calendar-head a,
.calendar-panel .calendar-day {
  border-color: var(--line);
}

.event-card {
  grid-template-columns: 78px 160px minmax(0, 1fr);
  align-items: stretch;
  border-left: 0;
  overflow: hidden;
}

.event-card__image-placeholder {
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(156, 45, 36, .18), transparent),
    #f0ece2;
}

.event-date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 104px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  text-transform: uppercase;
}

.event-date-badge strong {
  font-size: 28px;
  line-height: 1;
}

.event-date-badge span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

/* Compact admin workspace */
.admin-body {
  color: #202226;
  background: #f5f6f7;
  font-size: 14px;
  line-height: 1.45;
}

.admin-body .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}

.admin-header {
  min-height: 52px;
  padding: 10px 18px;
}

.admin-header strong {
  font-size: 14px;
}

.admin-header__nav {
  font-size: 12px;
}

.admin-shell {
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 16px;
  max-width: 1420px;
  padding: 16px;
}

.admin-sidebar {
  top: 16px;
  gap: 6px;
}

.admin-sidebar a {
  padding: 10px 12px;
  font-size: 13px;
}

.admin-sidebar a span {
  min-width: 24px;
  height: 24px;
  font-size: 12px;
}

.admin-title {
  margin-bottom: 10px;
}

.admin-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.admin-grid {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
}

.admin-list {
  gap: 6px;
  max-height: calc(100vh - 126px);
  padding: 8px;
}

.admin-list-item {
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 8px;
  font-size: 13px;
}

.admin-list-item img,
.admin-thumb-placeholder {
  width: 48px;
  height: 48px;
}

.admin-list span small {
  font-size: 11px;
}

.admin-form {
  gap: 14px;
}

.editor-card {
  gap: 12px;
  padding: 14px;
}

.editor-card h2 {
  font-size: 16px;
}

.admin-body label {
  gap: 5px;
  font-size: 13px;
}

.admin-body label.is-disabled {
  opacity: .48;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
}

.admin-body .date-picker-field,
.admin-body .time-picker-field {
  position: relative;
}

.admin-body .date-picker-field input,
.admin-body .time-picker-field input {
  padding-right: 38px;
  cursor: pointer;
  color-scheme: light;
}

.admin-body .date-picker-field::after,
.admin-body .time-picker-field::after {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  content: "";
}

.admin-body .date-picker-field::after {
  border: 2px solid var(--muted);
  border-top-width: 5px;
  border-radius: 4px;
}

.admin-body .time-picker-field::after {
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.admin-body .time-picker-field::before {
  position: absolute;
  right: 19px;
  bottom: 17px;
  z-index: 1;
  width: 5px;
  height: 6px;
  border-bottom: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  pointer-events: none;
  content: "";
}

.admin-body .button,
.admin-body button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.admin-body .notice-box {
  max-width: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.form-row {
  gap: 10px;
}

.form-row-compact {
  grid-template-columns: 1fr 118px 118px;
}

.dropzone {
  min-height: 58px;
  padding: 12px;
  font-size: 13px;
}

.dropzone span {
  font-size: 12px;
}

.media-manager {
  display: grid;
  gap: 10px;
}

.media-manager__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.media-manager__bar span {
  color: var(--muted);
  font-size: 12px;
}

.media-link-adder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
}

.media-link-adder input {
  min-width: 0;
}

.media-field {
  display: grid;
  grid-template-columns: 150px max-content;
  align-items: end;
  gap: 10px;
}

.media-field-preview {
  display: grid;
  width: 150px;
  min-height: 92px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8f8f8;
  font-size: 12px;
}

.media-field-preview img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.media-grid-admin {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.media-tile figcaption {
  font-size: 10px;
}

.tag-input.is-enhanced,
.rich-editor-source.is-enhanced {
  display: none;
}

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--white);
}

.tag-editor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-editor input {
  flex: 1 1 150px;
  min-height: 24px;
  border: 0;
  padding: 2px;
  outline: 0;
}

.tag-editor__suggestions {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.tag-suggestion {
  border: 1px solid rgba(156, 45, 36, .2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--red);
  background: #fff8f5;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.tag-suggestion:hover {
  border-color: var(--red);
  background: #fff2ed;
}

.tag-chip--editable {
  border: 1px solid rgba(156, 45, 36, .16);
  color: var(--red);
  background: rgba(156, 45, 36, .08);
  cursor: pointer;
}

.tag-chip--editable::after {
  content: "x";
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #f8f8f8;
}

.rich-editor__toolbar button,
.rich-editor__toolbar select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--white);
  cursor: pointer;
}

.rich-editor__surface {
  min-height: 180px;
  padding: 12px;
  outline: 0;
  font-size: 14px;
  font-weight: 400;
}

.rich-editor__surface h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.rich-editor__surface p {
  margin: 0 0 10px;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .68);
}

.media-modal[hidden] {
  display: none;
}

.admin-body .media-modal--inline {
  position: static;
  inset: auto;
  display: block;
  padding: 0;
  background: transparent;
}

.admin-body .media-modal--inline .media-modal__panel {
  width: 100%;
  height: calc(100vh - 170px);
  max-height: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.admin-body .media-modal--inline .media-modal__close,
.admin-body .media-modal--inline [data-media-confirm] {
  display: none;
}

.has-modal {
  overflow: hidden;
}

.media-modal__panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1120px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.media-modal__panel header,
.media-modal__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.media-modal__panel h2 {
  margin: 0;
  font-size: 20px;
}

.media-modal__close {
  width: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.media-modal__tools input {
  max-width: 420px;
}

.media-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.media-choice {
  display: grid;
  gap: 7px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 7px;
  background: #f5f5f5;
  text-align: left;
  cursor: pointer;
}

.admin-body .media-choice {
  min-height: 0;
  height: 166px;
  padding: 7px;
  overflow: visible;
}

.media-choice[aria-pressed="true"] {
  border-color: var(--red);
  background: #fff7f3;
}

.media-choice img,
.media-choice__video {
  width: 100%;
  height: 112px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.media-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.media-choice strong,
.media-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-choice strong {
  font-size: 12px;
}

.media-choice small,
.media-modal__empty {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .media-modal__panel {
  width: min(1240px, 96vw);
  height: min(820px, 92vh);
  max-height: 92vh;
  border-radius: 10px;
}

.admin-body .media-modal__tools {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-body .media-modal__tools input {
  flex: 1 1 280px;
  max-width: none;
}

.media-current-folder {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #f7f5f1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.media-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 0;
}

.media-modal__main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.media-drop-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 14px 0;
  border: 1px dashed #cfc8bd;
  border-radius: 8px;
  padding: 12px 14px;
  background: #faf8f4;
  color: var(--muted);
  font-size: 12px;
}

.media-drop-target strong {
  color: var(--ink);
  font-size: 13px;
}

.media-drop-target.is-dragover,
.media-modal__grid.is-dragover {
  border-color: var(--red);
  background: #fff7f3;
}

.admin-body .media-modal__grid {
  align-content: start;
  min-height: 0;
}

.admin-body .media-choice {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-body .media-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 18, 14, .12);
}

.media-choice.is-dragging {
  opacity: .55;
}

.media-folders {
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fbfaf7;
  padding: 14px 12px;
}

.media-folders__head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.media-folders__head strong {
  font-size: 13px;
}

.media-folders__head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.media-folder-tree {
  display: grid;
  gap: 4px;
}

.media-folder-branch {
  display: grid;
  gap: 4px;
}

.media-folder-children {
  display: grid;
  gap: 4px;
}

.media-folder-node {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.media-folder-node:hover {
  background: #f1eee7;
}

.media-folder-node.is-active {
  border-color: #151515;
  background: #151515;
  color: var(--white);
}

.media-folder-node.is-selected {
  border-color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}

.media-folder-node.is-active.is-selected {
  border-color: var(--amber);
  box-shadow: inset 3px 0 0 var(--amber);
}

.media-folder-node.is-drop-target {
  border-color: var(--amber);
  background: #fff8e7;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--amber);
}

.media-folder-node.is-drop-denied {
  border-color: #c94a3a;
  background: #fff2ed;
  color: #9a241c;
  cursor: not-allowed;
}

.media-folder-toggle {
  width: 18px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.media-folder-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-folder-node small {
  color: inherit;
  font-size: 10px;
  opacity: .68;
}

.media-folder-node[data-has-nested-media="true"] small {
  font-weight: 900;
  opacity: .95;
}

.media-context-menu {
  position: fixed;
  z-index: 120;
  display: grid;
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.media-context-menu[hidden] {
  display: none;
}

.media-context-menu button {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.media-context-menu button:last-child {
  border-bottom: 0;
  color: var(--red);
}

.media-context-menu button:hover {
  background: #f7f4ee;
}

.media-action-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 15, 15, .42);
}

.media-action-dialog[hidden] {
  display: none;
}

.media-action-dialog__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 94vw);
  max-height: min(640px, 86vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

.media-action-dialog__panel header,
.media-action-dialog__panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.media-action-dialog__panel footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.media-action-dialog__panel h3 {
  margin: 0;
  font-size: 18px;
}

.media-action-dialog__panel header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.media-action-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.media-dialog-form,
.media-dialog-stack {
  display: grid;
  gap: 12px;
}

.media-dialog-note,
.media-dialog-warning {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.media-dialog-warning {
  color: var(--red);
  font-weight: 800;
}

.media-folder-picker {
  display: grid;
  gap: 5px;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfaf7;
}

.media-picker-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.media-picker-folder:hover {
  background: #f1eee7;
}

.media-picker-folder.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.media-picker-folder span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-folder small {
  color: inherit;
  font-size: 10px;
  opacity: .68;
}

.media-modal.is-busy .media-drop-target,
.media-modal.is-busy .media-choice,
.media-modal.is-busy .media-folder-node {
  pointer-events: none;
  opacity: .7;
}

body:not(.admin-body) .event-card {
  display: block;
  padding: 0;
}

body:not(.admin-body) .event-card__link {
  display: grid;
  grid-template-columns: 78px 160px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

@media (max-width: 900px) {
  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body:not(.admin-body) .event-card__link {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .event-card img,
  .event-card__image-placeholder {
    display: none;
  }

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

  .admin-sidebar {
    position: static;
  }

  .form-row-compact,
  .media-field {
    grid-template-columns: 1fr;
  }

  .media-modal {
    padding: 10px;
  }

  .admin-body .media-modal__panel {
    width: 100%;
    height: 94vh;
  }

  .media-modal__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .media-folders {
    max-height: 220px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .media-current-folder {
    margin-left: 0;
  }
}

/* Public color cleanup */
body:not(.admin-body) {
  background: #fff !important;
  background-image: none !important;
  background-size: auto !important;
}

body:not(.admin-body) .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-color: rgba(21, 21, 21, .12);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .08);
}

body:not(.admin-body) .brand::after,
body:not(.admin-body) .main-nav a {
  color: var(--ink);
}

body:not(.admin-body) .main-nav a:hover,
body:not(.admin-body) .main-nav a.is-active {
  color: var(--ink);
}

body:not(.admin-body) .nav-toggle {
  background: var(--white);
}

body:not(.admin-body) .main-nav {
  margin-left: auto;
  justify-content: flex-end;
}

body:not(.admin-body) .main-nav a,
body:not(.admin-body) .nav-group__button {
  color: var(--ink);
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-group::after {
  position: absolute;
  top: 100%;
  right: -12px;
  left: -12px;
  height: 18px;
  content: "";
}

.nav-group__button {
  position: relative;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-group__button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-group:hover .nav-group__button::after,
.nav-group:focus-within .nav-group__button::after {
  transform: scaleX(1);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(21, 21, 21, .12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(21, 21, 21, .12);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  padding: 9px 10px;
  border-radius: 6px;
}

.nav-submenu a:hover {
  background: var(--paper);
}

@media (max-width: 820px) {
  .nav-group {
    display: grid;
  }

  .nav-group::after {
    display: none;
  }

  .nav-group__button {
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 4px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
  }
}

body:not(.admin-body) .site-footer {
  width: 100%;
}

/* Frontend repair and editable public content */
body:not(.admin-body) .brand::after {
  content: none;
}

.admin-login-link {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer .admin-login-link {
  color: var(--muted);
  font-size: 10px;
  opacity: .55;
}

.site-footer .admin-login-link:hover {
  color: var(--ink);
  opacity: 1;
}

.footer-admin-actions {
  position: absolute;
  top: 50%;
  right: clamp(18px, 4vw, 56px);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
}

.admin-icon-link {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  font-size: 14px;
  text-decoration: none;
}

body:not(.admin-body) .page-title {
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(42px, 5.5vw, 72px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

body:not(.admin-body) .page-title__main,
body:not(.admin-body) .page-title__intro {
  align-self: start;
  min-width: 0;
}

body.inline-admin-active .page-title__main,
body.inline-admin-active .page-title__intro {
  outline: 1px dashed rgba(156, 45, 36, .35);
  outline-offset: 8px;
}

body.inline-admin-active .page-title__main .inline-editable {
  outline: 0;
  background: transparent;
}

body:not(.admin-body) .page-title h1,
body:not(.admin-body) .project-copy h1,
body:not(.admin-body) .event-detail__header h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 950;
  line-height: 1.03;
  text-wrap: balance;
}

body:not(.admin-body) .page-title p,
body:not(.admin-body) .page-title blockquote,
body:not(.admin-body) .title-copy {
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.55;
}

body:not(.admin-body) .eyebrow {
  color: var(--steel);
  font-size: 12px;
  letter-spacing: .02em;
}

.inline-edit-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .12);
  font-size: 12px;
  font-weight: 900;
}

.inline-edit-status[data-state="dirty"] {
  border-color: var(--amber);
}

.inline-edit-status[data-state="saved"] {
  border-color: #2f8f56;
}

.inline-edit-status[data-state="error"] {
  border-color: var(--red);
}

.inline-editable {
  cursor: pointer;
  outline: 1px dashed rgba(156, 45, 36, .35);
  outline-offset: 6px;
  overflow-wrap: anywhere;
  transition: outline-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.inline-editable:hover,
.inline-editable.is-live-editing {
  outline-color: var(--red);
  background: rgba(241, 184, 45, .08);
}

.inline-image-editable:hover,
.inline-image-editable.is-live-editing {
  box-shadow: 0 0 0 4px rgba(156, 45, 36, .14), var(--shadow);
}

.inline-editable.has-unsaved {
  outline-color: var(--amber);
}

.live-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--live-layout-gap, clamp(18px, 3vw, 36px));
  align-items: start;
}

.live-layout > :not(.live-block) {
  grid-column: 1 / -1;
}

.live-block {
  position: relative;
  min-width: 0;
  margin-top: var(--live-block-margin-top, 0px);
  margin-bottom: var(--live-block-margin-bottom, 0px);
}

.live-block > img,
.live-block > picture > img {
  width: var(--live-image-width, 100%);
  height: var(--live-image-height, auto);
  object-fit: cover;
}

.custom-live-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.custom-live-block--image img {
  width: var(--live-image-width, 100%);
  height: var(--live-image-height, auto);
  min-height: 220px;
  border-radius: var(--radius);
  background: #f4f1ea;
  object-fit: cover;
}

.plugin-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.plugin-carousel a {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ece7df;
}

.plugin-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugin-carousel span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(21, 21, 21, .78);
  font-weight: 900;
}

.plugin-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ece7df;
}

.plugin-slider__viewport {
  overflow: hidden;
}

.plugin-slider__track {
  display: flex;
  transition: transform .42s ease;
  will-change: transform;
}

.plugin-slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 320px;
  overflow: hidden;
  background: #ece7df;
}

.plugin-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugin-slider__slide span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(21, 21, 21, .78);
  font-weight: 900;
}

.plugin-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  font-size: 22px;
  font-weight: 900;
  transform: translateY(-50%);
  cursor: pointer;
}

.plugin-slider__nav--prev {
  left: 12px;
}

.plugin-slider__nav--next {
  right: 12px;
}

.plugin-slider__dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.plugin-slider__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .62);
  cursor: pointer;
}

.plugin-slider__dots button.is-active {
  background: var(--amber);
}

.plugin-spacer {
  min-height: 80px;
}

.plugin-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.live-block--span-third {
  grid-column: span 4;
}

.live-block--span-half {
  grid-column: span 6;
}

.live-block--span-wide {
  grid-column: span 8;
}

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

.live-layout--page {
  display: grid;
  max-width: 1380px;
  margin: 0 auto;
}

.live-layout--page > .filter-bar,
.live-layout--page > .project-grid,
.live-layout--page > .album-grid,
.live-layout--page > .gallery-grid {
  width: 100%;
  max-width: none;
}

.live-block__handle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 45;
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(21, 21, 21, .22);
  cursor: grab;
}

.live-block__remove {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 46;
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(21, 21, 21, .22);
  cursor: pointer;
}

.live-block__resize {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: 46;
  display: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 10px 22px rgba(21, 21, 21, .24);
  cursor: nwse-resize;
}

.live-block__resize::before {
  position: absolute;
  inset: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  content: "";
}

body.is-live-layout-mode .live-block {
  outline: 2px solid rgba(241, 184, 45, .85);
  outline-offset: 8px;
  cursor: pointer;
}

body.is-live-layout-mode {
  padding-left: 318px;
}

body.is-live-layout-mode .live-block.is-selected {
  outline-color: var(--red);
  box-shadow: 0 0 0 6px rgba(156, 45, 36, .08);
}

body.is-live-layout-mode .live-block__handle {
  display: grid;
}

body.is-live-layout-mode .live-block__remove,
body.is-live-layout-mode .live-block:has(> img) .live-block__resize,
body.is-live-layout-mode .live-block:has(> picture > img) .live-block__resize {
  display: grid;
}

body.is-live-layout-mode .live-block.is-dragging {
  opacity: .45;
}

.live-block.is-live-block-hidden {
  display: none !important;
}

.live-layout-bar {
  position: fixed;
  top: 104px;
  right: auto;
  left: 16px;
  z-index: 92;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 292px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .14);
}

.live-layout-bar__section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 21, .08);
  border-radius: 16px;
  background: #fbfaf7;
}

.live-layout-bar__section > strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.live-layout-bar__section--actions {
  padding: 0;
  border: 0;
  background: transparent;
}

.live-layout-bar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.live-layout-bar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.live-layout-bar select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.live-layout-plugin-value {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.live-layout-gap {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: #f9f7f2;
  font-size: 12px;
  font-weight: 900;
}

.live-layout-gap input[type="range"] {
  width: 92px;
  accent-color: var(--red);
}

.live-layout-gap input[type="number"] {
  width: 52px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font: inherit;
  text-align: center;
}

.live-layout-gap--wide input[type="range"] {
  width: 104px;
}

.editor-number {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.editor-number input {
  width: 64px;
  border: 0;
  outline: 0;
  font: inherit;
}

.editor-number button {
  width: 24px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: #f8f6f1;
  font: inherit;
  cursor: pointer;
}

.live-layout-gap input:disabled {
  opacity: .45;
}

.live-layout-bar button:first-child,
.live-layout-bar.has-unsaved [data-layout-save] {
  color: var(--white);
  background: var(--ink);
}

.live-layout-bar button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.live-layout-bar:not(.is-active) {
  width: auto;
  max-height: none;
  padding: 8px;
  border-radius: 999px;
}

.live-layout-bar:not(.is-active) > :not([data-layout-toggle]) {
  display: none;
}

body.is-live-preview-mode {
  padding-left: 0;
}

body.is-live-preview-mode .inline-editable,
body.is-live-preview-mode .live-block {
  outline: none !important;
  box-shadow: none !important;
  cursor: inherit;
}

body.is-live-preview-mode .live-block__handle,
body.is-live-preview-mode .live-block__remove,
body.is-live-preview-mode .live-block__resize,
body.is-live-preview-mode .inline-edit-status,
body.is-live-preview-mode .footer-admin-actions {
  display: none !important;
}

body.is-live-preview-mode .live-layout-bar {
  width: auto;
  max-height: none;
  padding: 8px;
  border-radius: 999px;
}

body.is-live-preview-mode .live-layout-bar > :not([data-layout-preview]) {
  display: none;
}

.live-editor-panel {
  position: fixed;
  z-index: 160;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(520px, calc(100vw - 24px));
  min-width: min(360px, calc(100vw - 24px));
  min-height: 260px;
  max-height: min(680px, calc(100vh - 24px));
  overflow: hidden;
  resize: both;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.live-editor-panel::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(21, 21, 21, .35);
  border-bottom: 2px solid rgba(21, 21, 21, .35);
  content: "";
  pointer-events: none;
}

.live-editor-panel[hidden],
.live-media-picker[hidden] {
  display: none;
}

.live-editor-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--ink);
  cursor: move;
}

.live-editor-panel__head button,
.live-media-picker header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.live-editor-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8f6f1;
}

.live-editor-panel__toolbar[hidden] {
  display: none;
}

.live-editor-panel__toolbar button,
.live-editor-panel__toolbar select,
.live-link-row button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.editor-color {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.editor-color input {
  width: 28px;
  height: 22px;
  min-height: 0;
  border: 0;
  padding: 0;
}

.live-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.live-editor-panel__body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.live-editor-surface {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  outline: 0;
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
}

.live-editor-surface h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.live-image-editor {
  display: grid;
  gap: 12px;
}

.live-image-editor img {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.live-editor-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.live-editor-panel__history,
.live-editor-panel__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-editor-panel__history button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.live-editor-panel.has-unsaved .live-editor-panel__head {
  background: #3b3322;
}

.live-media-picker {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
}

.live-media-picker__panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(900px, 94vw);
  max-height: 84vh;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.live-media-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: var(--white);
  background: var(--ink);
}

.live-media-picker input {
  border-radius: 0;
  border-width: 0 0 1px;
}

.live-media-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.live-media-choice {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.live-media-choice:hover {
  border-color: var(--red);
}

.live-media-choice img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.live-media-choice span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .admin-sidebar {
  margin-top: 74px;
}

@media (max-width: 900px) {
  .admin-body .admin-sidebar {
    margin-top: 0;
  }

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

.split-section {
  align-items: start;
}

.split-section img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body:not(.admin-body) .rich-text,
body:not(.admin-body) .title-copy,
body:not(.admin-body) .event-detail,
body:not(.admin-body) .project-copy,
body:not(.admin-body) .page-title {
  overflow-wrap: anywhere;
}

body:not(.admin-body) .project-detail,
body:not(.admin-body) .project-copy,
body:not(.admin-body) .project-media {
  align-items: start;
  align-self: start;
}

body:not(.admin-body) .project-detail > [data-live-block="project-copy"],
body:not(.admin-body) .project-detail > [data-live-block="project-media"] {
  margin-top: 0 !important;
}

body:not(.admin-body) .project-detail > .project-copy,
body:not(.admin-body) .project-detail > .project-media {
  align-self: start !important;
  padding-top: 0 !important;
  transform: none !important;
}

body:not(.admin-body) .project-detail > .project-copy {
  position: static !important;
  top: auto !important;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto 76px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.map-section--compact {
  align-items: start;
}

.map-frame {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-frame-wrap {
  position: relative;
  min-width: 0;
}

.map-frame-wrap .map-frame {
  display: block;
  min-height: 360px;
}

.map-frame--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #ece7df;
  font-weight: 900;
}

.map-edit-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  border-radius: var(--radius);
  cursor: pointer;
}

body.inline-admin-active .map-frame-wrap[data-inline-map] .map-edit-cover {
  display: block;
}

body.inline-admin-active .map-frame-wrap[data-inline-map]:hover {
  outline: 1px dashed rgba(156, 45, 36, .45);
  outline-offset: 8px;
}

body.is-live-preview-mode .map-edit-cover {
  display: none !important;
}

.live-map-editor {
  display: grid;
  gap: 12px;
}

.live-map-editor textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.events-layout--archive {
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
}

.events-layout--archive .calendar-panel {
  max-width: 330px;
  padding: 16px;
}

.events-layout--archive .calendar-head {
  gap: 10px;
}

.events-layout--archive .calendar-head h2 {
  font-size: 18px;
}

.events-layout--archive .calendar-head a {
  width: 32px;
  height: 32px;
}

.events-layout--archive .calendar-grid {
  gap: 6px;
  margin-top: 14px;
}

.events-layout--archive .calendar-day,
.events-layout--archive .calendar-weekday {
  min-height: 34px;
  font-size: 13px;
}

.event-archive {
  display: grid;
  gap: 14px;
}

.event-archive__head {
  display: flex;
  justify-content: flex-end;
}

.event-year,
.event-month {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.event-year > summary,
.event-month > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.event-year > summary::-webkit-details-marker,
.event-month > summary::-webkit-details-marker {
  display: none;
}

.event-year > summary {
  padding: 16px 18px;
  color: var(--white);
  background: var(--ink);
}

.event-year > summary span {
  font-size: 26px;
  font-weight: 950;
}

.event-year > summary small,
.event-month > summary small {
  font-weight: 900;
  opacity: .74;
}

.event-year__months {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.event-month > summary {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-weight: 950;
}

.event-list--grouped {
  padding: 12px;
}

.event-detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 4vw, 56px) 80px;
}

.event-detail__header {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 34px;
}

.event-detail__header h1 {
  margin: 0;
}

.event-detail__header p {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.event-detail__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.event-detail__meta-line span {
  display: inline-flex;
  align-items: center;
}

.event-detail__meta-line span + span::before {
  margin-right: 14px;
  color: var(--muted);
  content: "/";
}

.event-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.event-detail__main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.event-detail__image {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.event-detail__aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.event-date-badge--large {
  min-height: 128px;
}

.event-date-badge--large strong {
  font-size: 38px;
}

.event-date-badge--full {
  padding: 20px;
  text-align: center;
  text-transform: none;
}

.event-date-badge--full strong {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
}

.event-info-box,
.location-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}

.event-info-box h2,
.location-box h2 {
  margin: 0 0 8px;
}

.event-info-box dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.event-info-box div {
  display: grid;
  gap: 2px;
}

.event-info-box dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-info-box dd {
  margin: 0;
  font-weight: 850;
}

.location-box p {
  margin: 0 0 12px;
}

body:not(.admin-body) .event-detail > .event-detail__header {
  order: 0 !important;
  grid-column: 1 / -1 !important;
}

body:not(.admin-body) .event-detail > .event-detail__grid {
  order: 1 !important;
  grid-column: 1 / -1 !important;
}

body:not(.admin-body) .event-detail > .map-section {
  order: 2 !important;
  grid-column: 1 / -1 !important;
}

.event-detail > .map-section {
  width: 100%;
  max-width: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
}

body:not(.admin-body) .event-detail > .live-layout--page {
  order: 3 !important;
  grid-column: 1 / -1 !important;
}

.admin-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.form-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body:not(.admin-body) .live-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--live-layout-gap, clamp(18px, 3vw, 36px));
  align-items: start;
}

body:not(.admin-body) .live-layout > :not(.live-block) {
  grid-column: 1 / -1;
}

body:not(.admin-body) .events-layout--archive {
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
}

body:not(.admin-body) .live-block--span-third {
  grid-column: span 4;
}

body:not(.admin-body) .live-block--span-half {
  grid-column: span 6;
}

body:not(.admin-body) .live-block--span-wide {
  grid-column: span 8;
}

body:not(.admin-body) .live-block--span-full {
  grid-column: 1 / -1;
}

.events-layout--archive .live-block--span-third,
.events-layout--archive .live-block--span-wide,
.contact-layout .live-block--span-half {
  grid-column: auto;
}

body:not(.admin-body) .map-section .live-block--span-third {
  grid-column: span 4;
}

body:not(.admin-body) .map-section .live-block--span-wide {
  grid-column: span 8;
}

body:not(.admin-body) .events-layout--archive [data-live-block="calendar"] {
  grid-column: 1;
}

body:not(.admin-body) .events-layout--archive [data-live-block="archive"] {
  grid-column: 2;
}

@media (max-width: 900px) {
  .admin-login-link {
    order: 2;
  }

  .events-layout--archive,
  .event-detail__grid,
  .map-section {
    grid-template-columns: 1fr;
  }

  body:not(.admin-body) .events-layout--archive {
    grid-template-columns: 1fr;
  }

  .live-block--span-third,
  .live-block--span-half,
  .live-block--span-wide,
  .live-block--span-full {
    grid-column: 1 / -1;
  }

  body:not(.admin-body) .live-block--span-third,
  body:not(.admin-body) .live-block--span-half,
  body:not(.admin-body) .live-block--span-wide,
  body:not(.admin-body) .live-block--span-full {
    grid-column: 1 / -1;
  }

  .events-layout--archive .live-block--span-third,
  .events-layout--archive .live-block--span-wide,
  .contact-layout .live-block--span-half,
  .map-section .live-block--span-third,
  .map-section .live-block--span-wide {
    grid-column: 1 / -1;
  }

  body:not(.admin-body) .events-layout--archive [data-live-block="calendar"],
  body:not(.admin-body) .events-layout--archive [data-live-block="archive"] {
    grid-column: 1 / -1;
  }

  .live-layout-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    top: auto;
    width: auto;
    max-height: 42vh;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: var(--radius);
  }

  body.is-live-layout-mode {
    padding-left: 0;
    padding-bottom: 110px;
  }

  .events-layout--archive .calendar-panel {
    position: static;
    width: 100%;
    max-width: 330px;
  }

  .event-detail__aside {
    position: static;
  }
}

/* Mobile public polish */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not(.admin-body) {
    font-size: 16px;
    line-height: 1.55;
  }

  body:not(.admin-body) .site-header {
    top: 0;
    width: 100%;
    min-height: 74px;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 10px 16px;
    box-shadow: 0 10px 24px rgba(21, 21, 21, .08);
  }

  body:not(.admin-body) .brand img {
    width: 58px;
  }

  body:not(.admin-body) .nav-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-color: rgba(21, 21, 21, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(21, 21, 21, .08);
  }

  body:not(.admin-body) .nav-toggle span {
    width: 20px;
    margin: 3px auto;
  }

  body:not(.admin-body) .main-nav {
    right: 14px;
    left: 14px;
    max-height: calc(100vh - 92px);
    overflow: auto;
    padding: 10px;
    border-radius: 14px;
  }

  body:not(.admin-body) .main-nav a,
  body:not(.admin-body) .nav-group__button {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  body:not(.admin-body) main {
    min-height: calc(100vh - 150px);
  }

  body:not(.admin-body) .page-title {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    padding: 34px 18px 24px;
  }

  body:not(.admin-body) .page-title h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1;
    letter-spacing: 0;
  }

  body:not(.admin-body) .gallery-title h1 {
    font-size: clamp(30px, 8.8vw, 38px);
  }

  body:not(.admin-body) .event-detail__header h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1;
    letter-spacing: 0;
  }

  body:not(.admin-body) .page-title p,
  body:not(.admin-body) .page-title blockquote,
  body:not(.admin-body) .title-copy {
    font-size: 16px;
    line-height: 1.55;
  }

  body:not(.admin-body) .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  body:not(.admin-body) .filter-bar {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding: 0 18px 6px;
    scroll-padding-inline: 18px;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.admin-body) .filter-bar::-webkit-scrollbar {
    display: none;
  }

  body:not(.admin-body) .filter-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 13px;
  }

  body:not(.admin-body) .live-layout {
    grid-template-columns: 1fr !important;
    gap: clamp(14px, 5vw, 22px);
  }

  body:not(.admin-body) .live-layout--page,
  body:not(.admin-body) .project-grid,
  body:not(.admin-body) .album-grid,
  body:not(.admin-body) .gallery-grid,
  body:not(.admin-body) .split-section,
  body:not(.admin-body) .contact-layout,
  body:not(.admin-body) .events-layout,
  body:not(.admin-body) .event-detail,
  body:not(.admin-body) .map-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  body:not(.admin-body) .live-block {
    margin-top: min(var(--live-block-margin-top, 0px), 24px);
    margin-bottom: min(var(--live-block-margin-bottom, 0px), 24px);
  }

  body:not(.admin-body) .project-grid,
  body:not(.admin-body) .album-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 44px;
  }

  body:not(.admin-body) .project-card,
  body:not(.admin-body) .album-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  body:not(.admin-body) .project-card__overlay,
  body:not(.admin-body) .album-card__content {
    inset: auto 0 0;
    min-height: auto;
    padding: 42px 16px 16px;
    border-radius: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, .92), rgba(18, 18, 18, .48) 62%, rgba(18, 18, 18, 0));
    transform: none;
  }

  body:not(.admin-body) .project-card:hover,
  body:not(.admin-body) .album-card:hover,
  body:not(.admin-body) .gallery-item:hover,
  body:not(.admin-body) .detail-image:hover {
    transform: none;
  }

  body:not(.admin-body) .project-card strong,
  body:not(.admin-body) .album-card__content strong {
    font-size: clamp(20px, 6vw, 28px);
  }

  body:not(.admin-body) .project-detail {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 52px;
  }

  body:not(.admin-body) .project-copy {
    position: static;
    max-width: none;
  }

  body:not(.admin-body) .project-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.02;
  }

  body:not(.admin-body) .project-media {
    gap: 14px;
  }

  body:not(.admin-body) .detail-image {
    padding: 6px;
    border-radius: 12px;
  }

  body:not(.admin-body) .events-layout--archive {
    gap: 18px;
    padding-bottom: 48px;
  }

  body:not(.admin-body) .events-layout--archive .calendar-panel {
    width: 100%;
    max-width: none;
    padding: 14px;
  }

  body:not(.admin-body) .calendar-head h2 {
    font-size: 18px;
  }

  body:not(.admin-body) .calendar-grid {
    gap: 5px;
  }

  body:not(.admin-body) .calendar-day,
  body:not(.admin-body) .calendar-weekday {
    min-height: 38px;
    font-size: 13px;
  }

  body:not(.admin-body) .event-archive__head {
    justify-content: stretch;
  }

  body:not(.admin-body) .event-archive__head .button {
    width: 100%;
  }

  body:not(.admin-body) .event-year > summary {
    padding: 14px 16px;
  }

  body:not(.admin-body) .event-year > summary span {
    font-size: 24px;
  }

  body:not(.admin-body) .event-year__months,
  body:not(.admin-body) .event-list--grouped {
    padding: 10px;
  }

  body:not(.admin-body) .event-card,
  body:not(.admin-body) .event-card__link {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body:not(.admin-body) .event-date-badge {
    min-height: 88px;
  }

  body:not(.admin-body) .event-date-badge strong {
    font-size: 24px;
  }

  body:not(.admin-body) .event-card h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  body:not(.admin-body) .event-detail {
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 54px;
  }

  body:not(.admin-body) .event-detail__header {
    margin-bottom: 0;
  }

  body:not(.admin-body) .event-detail__meta-line {
    display: grid;
    gap: 6px;
  }

  body:not(.admin-body) .event-detail__meta-line span + span::before {
    content: none;
  }

  body:not(.admin-body) .event-detail__grid {
    gap: 18px;
  }

  body:not(.admin-body) .event-detail__aside {
    order: 0 !important;
  }

  body:not(.admin-body) .event-detail__main {
    order: 1 !important;
  }

  body:not(.admin-body) .event-info-box,
  body:not(.admin-body) .location-box {
    padding: 16px;
  }

  body:not(.admin-body) .event-date-badge--full {
    min-height: 104px;
    padding: 18px;
  }

  body:not(.admin-body) .event-detail__image {
    max-height: none;
    border-radius: 12px;
  }

  body:not(.admin-body) .map-section {
    gap: 16px;
    margin-bottom: 44px;
  }

  body:not(.admin-body) .map-frame-wrap .map-frame,
  body:not(.admin-body) .map-frame {
    min-height: 260px;
    border-radius: 12px;
  }

  body:not(.admin-body) .contact-info,
  body:not(.admin-body) .contact-form {
    padding: 16px;
  }

  body:not(.admin-body) .contact-form {
    gap: 13px;
  }

  body:not(.admin-body) input,
  body:not(.admin-body) textarea,
  body:not(.admin-body) select {
    min-height: 44px;
    font-size: 16px;
  }

  body:not(.admin-body) .gallery-grid {
    columns: 1;
    padding-bottom: 44px;
  }

  body:not(.admin-body) .gallery-grid--detail {
    display: grid;
    grid-template-columns: minmax(0, min(100%, 420px));
    justify-content: center;
    gap: 14px;
  }

  body:not(.admin-body) .gallery-grid--detail .gallery-item img {
    aspect-ratio: 4 / 5;
  }

  body:not(.admin-body) .gallery-detail-title {
    padding-bottom: 18px;
  }

  body:not(.admin-body) .plugin-slider__slide {
    min-height: 240px;
  }

  body:not(.admin-body) .plugin-carousel {
    grid-auto-columns: minmax(240px, 82vw);
  }

  body:not(.admin-body) .site-footer {
    gap: 8px;
    padding: 24px 18px;
  }

  body:not(.admin-body) .site-footer__slot {
    min-width: 0;
  }

  body:not(.admin-body) .footer-admin-actions {
    position: static;
    transform: none;
  }

  body:not(.admin-body) .lightbox {
    padding: 14px;
  }

  body:not(.admin-body) .lightbox img {
    max-width: 94vw;
    max-height: 72vh;
  }

  body:not(.admin-body) .lightbox__nav {
    width: 42px;
    height: 42px;
    background: rgba(21, 21, 21, .72);
  }

  .admin-body .admin-shell,
  .admin-body .admin-grid,
  .admin-body .form-row,
  .admin-body .mail-settings-grid,
  .admin-body .media-link-adder {
    grid-template-columns: 1fr;
  }

  .admin-body .admin-shell {
    padding: 12px;
  }

  .admin-body .admin-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-body .admin-sidebar a {
    flex: 0 0 auto;
  }

  .live-editor-panel {
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    min-width: 0;
    max-height: calc(100vh - 20px);
    resize: vertical;
  }

  .live-editor-panel__actions,
  .live-editor-panel__toolbar {
    gap: 6px;
  }

  .live-editor-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .live-editor-panel__buttons,
  .live-editor-panel__buttons button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body:not(.admin-body) .page-title h1,
  body:not(.admin-body) .event-detail__header h1,
  body:not(.admin-body) .project-copy h1 {
    font-size: clamp(32px, 12vw, 42px);
  }

  body:not(.admin-body) .event-card,
  body:not(.admin-body) .event-card__link {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body:not(.admin-body) .event-date-badge {
    min-height: 78px;
  }

  body:not(.admin-body) .event-date-badge strong {
    font-size: 22px;
  }
}

