:root {
  --ink: #171411;
  --text: #342f2a;
  --muted: #746b60;
  --paper: #f4efe4;
  --surface: #fffdf6;
  --line: #2c2925;
  --soft-line: #d8cfbf;
  --charcoal: #24211e;
  --clay: #a94332;
  --red: #8f1f28;
  --gold: #d4aa37;
  --blue: #496d84;
  --sage: #8b9273;
  --wash: #e9e4d8;
  --taken: #c9c4ba;
  --shadow: 9px 12px 0 rgba(23, 20, 17, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(90deg, rgba(23, 20, 17, 0.018) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 9px),
    var(--paper);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  border-bottom: 2px solid rgba(23, 20, 17, 0.14);
}

.brand,
.nav-links,
.site-footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(250px, 48vw);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--surface);
  box-shadow: 4px 5px 0 rgba(23, 20, 17, 0.13);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.text-link {
  color: var(--charcoal);
  font-weight: 850;
  text-decoration-color: rgba(143, 31, 40, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-icon-link {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(23, 20, 17, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.7);
  box-shadow: 3px 4px 0 rgba(23, 20, 17, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.nav-icon-link:hover {
  border-color: var(--ink);
  transform: translate(-1px, -1px);
}

.nav-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.calendar-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--surface);
  line-height: 1;
  text-align: center;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--red);
}

.calendar-icon span,
.calendar-icon strong {
  position: relative;
  z-index: 1;
  display: block;
}

.calendar-icon span {
  margin-top: 8px;
  color: var(--red);
  font-size: 0.42rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-icon strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.camera-icon {
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--surface);
}

.camera-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 6px;
  width: 12px;
  height: 7px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: var(--surface);
}

.camera-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.gallery-icon {
  border: 2px solid var(--ink);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(73, 109, 132, 0.28) 48% 60%, transparent 61%),
    linear-gradient(45deg, transparent 0 48%, rgba(139, 146, 115, 0.36) 49% 62%, transparent 63%),
    var(--surface);
  box-shadow: -5px 5px 0 -2px var(--surface), -5px 5px 0 0 var(--ink);
}

.gallery-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.gallery-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 9px;
  border-top: 2px solid var(--ink);
  transform: skewX(-18deg);
}

.gear-icon {
  opacity: 0.45;
}

.gear-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px solid var(--muted);
  border-radius: 50%;
  box-shadow:
    0 -9px 0 -4px var(--muted),
    0 9px 0 -4px var(--muted),
    9px 0 0 -4px var(--muted),
    -9px 0 0 -4px var(--muted);
}

.gear-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--paper);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.hero {
  padding: 42px 0 50px;
}

.home-hero {
  min-height: auto;
}

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

.home-hero .hero-copy {
  max-width: 980px;
}

.page-intro {
  padding: 56px 0 30px;
}

.page-intro.compact {
  padding-bottom: 16px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.25vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1rem;
}

.lede {
  max-width: 650px;
  color: var(--text);
  font-size: 1.15rem;
}

.hero-actions,
.flow-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero .hero-actions {
  justify-content: center;
  max-width: 980px;
  margin-top: 24px;
}

.home-hero .hero-actions .button {
  min-height: 62px;
  min-width: min(100%, 240px);
  padding: 17px 26px;
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 5px 0 rgba(23, 20, 17, 0.13);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 7px 0 rgba(23, 20, 17, 0.15);
}

.button.is-loading {
  gap: 10px;
  cursor: progress;
  opacity: 0.88;
}

.button.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button:disabled {
  cursor: not-allowed;
}

.button.primary {
  background: var(--charcoal);
  color: #fff;
}

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

.button.full {
  width: 100%;
}

.button.compact-button {
  width: fit-content;
  min-height: 42px;
  margin-top: 6px;
  padding: 9px 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.home-feature-image {
  display: block;
  width: 100%;
  max-width: 980px;
  margin-top: 28px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  transform: rotate(-0.5deg);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 36px;
}

.gallery-section {
  padding: 18px 0 58px;
}

.gallery-heading {
  align-items: end;
  margin-bottom: 18px;
}

.gallery-heading p:last-child {
  max-width: 420px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 0.78;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 8px;
}

.gallery-item:nth-child(3n + 1) {
  transform: rotate(-0.7deg);
}

.gallery-item:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}

.gallery-item:nth-child(3n) {
  transform: rotate(-0.25deg);
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 0.55;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 1.52;
}

.gallery-item img,
.image-preview-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: contain;
  background:
    repeating-linear-gradient(90deg, rgba(23, 20, 17, 0.018) 0 1px, transparent 1px 8px),
    var(--surface);
}

.image-preview-button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.public-gallery {
  padding-top: 8px;
}

.flow-card,
.schedule-panel,
.booking-form,
.admin-login,
.admin-table-wrap,
.notice {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 6px 8px 0 rgba(23, 20, 17, 0.09);
}

.flow-card {
  padding: 26px;
  position: relative;
}

.flow-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 54px;
  height: 10px;
  border: 1px solid rgba(23, 20, 17, 0.12);
  background: rgba(212, 170, 55, 0.28);
  transform: rotate(2deg);
}

.flow-card.muted {
  background: #f7f1e7;
}

.flow-card.unavailable-flow {
  border-color: #a5a5a5;
  background: #e6e6e6;
  color: #6a6a6a;
  box-shadow: 6px 8px 0 rgba(90, 90, 90, 0.12);
  filter: grayscale(1);
}

.flow-card.unavailable-flow::before {
  border-color: rgba(90, 90, 90, 0.18);
  background: rgba(120, 120, 120, 0.18);
}

.flow-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 48%;
  background: #ead06b;
  color: var(--ink);
  font-weight: 900;
}

.unavailable-flow .flow-number {
  position: relative;
  border-color: #8f8f8f;
  background: #d0d0d0;
  color: #6a6a6a;
}

.unavailable-flow .flow-number::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.notice {
  display: grid;
  gap: 6px;
  margin: 14px 0 20px;
  padding: 18px 20px;
}

.notice.success {
  border-color: var(--sage);
  background: #edf2e5;
}

.notice.error {
  border-color: rgba(143, 31, 40, 0.65);
  background: #fff1ea;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 22px;
  align-items: start;
}

.photo-layout {
  max-width: 620px;
}

.choice-field {
  display: grid;
  gap: 10px;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px 13px;
}

.choice-field legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.radio-label,
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

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

.address-grid label:first-child {
  grid-column: 1 / -1;
}

.radio-label input,
.check-label input {
  width: auto;
}

.schedule-panel,
.booking-form,
.admin-login {
  padding: 22px;
}

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

.section-heading.stacked {
  display: block;
}

.section-heading.stacked p:last-child {
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.86rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.legend-open {
  background: var(--surface);
  border: 2px solid var(--sage);
}

.legend-taken {
  background: var(--taken);
}

.legend-break {
  background: var(--gold);
}

.slot-groups {
  display: grid;
  gap: 24px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.slot {
  display: grid;
  gap: 3px;
  min-height: 64px;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  padding: 9px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.slot span {
  font-weight: 850;
}

.slot small {
  color: var(--muted);
  font-weight: 750;
}

.slot.open {
  border-color: rgba(73, 109, 132, 0.42);
  cursor: pointer;
}

.slot.open:hover,
.slot.open.selected {
  border-color: var(--red);
  background: #fff3df;
}

.slot.taken {
  background: var(--taken);
  color: #65615b;
}

.slot.taken small::after {
  content: "";
}

.slot.break {
  background: #f7e5ad;
  color: #6b5420;
}

.slot:disabled {
  cursor: not-allowed;
}

.payment-note {
  margin: 0;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #f7f1e7;
  color: var(--muted);
  font-weight: 750;
}

.disabled-button {
  cursor: not-allowed;
}

.button.disabled-button {
  gap: 9px;
  border-color: #9a9a9a;
  background: #dedede;
  color: #6b6b6b;
  box-shadow: 4px 5px 0 rgba(90, 90, 90, 0.16);
  pointer-events: none;
  filter: grayscale(1);
}

.button.disabled-button:hover {
  transform: none;
  box-shadow: 4px 5px 0 rgba(90, 90, 90, 0.16);
}

.unavailable-icon {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.unavailable-icon::before,
.unavailable-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.unavailable-icon::before {
  display: none;
}

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

.inline-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.booking-form {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.photo-form {
  position: static;
}

.admin-login,
.admin-upload-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.admin-upload-form {
  max-width: 680px;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 6px 8px 0 rgba(23, 20, 17, 0.09);
}

.event-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.event-admin-form {
  max-width: none;
  margin-bottom: 0;
}

.event-admin-form h3 {
  margin: 0;
  font-size: 1.15rem;
}

.event-admin-meta {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.event-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.event-pill {
  display: grid;
  gap: 3px;
  min-width: 190px;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.event-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.event-pill.selected {
  border-color: var(--ink);
  box-shadow: 4px 5px 0 rgba(23, 20, 17, 0.1);
}

.event-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7f1e7;
}

.event-summary span {
  color: var(--muted);
}

.nested-choice-list {
  display: grid;
  gap: 8px;
  margin: -4px 0 2px 26px;
  border-left: 2px solid var(--soft-line);
  padding-left: 12px;
}

.nested-choice-list[hidden] {
  display: none;
}

.compact-radio {
  align-items: flex-start;
}

.compact-radio span {
  display: grid;
  gap: 2px;
}

.compact-radio small {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 18px;
}

.stacked-admin-heading {
  margin-top: 34px;
}

.cancelled-admin-heading {
  margin-top: 48px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1240px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td:first-child {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.cancelled-records {
  margin-bottom: 18px;
  background: #eee8dc;
  opacity: 0.78;
}

.cancelled-records .admin-table td {
  color: #756e64;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.cancelled-records .admin-table td:first-child {
  color: #756e64;
}

.cancelled-records .admin-thumb {
  filter: grayscale(1);
  opacity: 0.72;
}

.muted-notice {
  background: #eee8dc;
  color: var(--muted);
}

.admin-logout-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.muted-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: normal;
}

.admin-thumb-link {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  text-decoration-color: rgba(183, 85, 50, 0.45);
  text-underline-offset: 4px;
}

.admin-thumb {
  width: 86px;
  height: 104px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.status-form {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.mini-button {
  min-height: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.mini-button.danger {
  border-color: rgba(143, 31, 40, 0.8);
  color: var(--red);
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.admin-gallery-card {
  display: grid;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  box-shadow: 5px 7px 0 rgba(23, 20, 17, 0.09);
}

.admin-gallery-card img {
  width: 100%;
  aspect-ratio: 0.78;
  border-radius: 6px;
  object-fit: cover;
}

.admin-gallery-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.slot:focus-visible,
.button:focus-visible,
.nav-icon-link:focus-visible,
.footer-admin-link:focus-visible,
.mini-button:focus-visible,
.image-preview-button:focus-visible {
  outline: 3px solid rgba(232, 184, 83, 0.7);
  outline-offset: 2px;
}

.image-dialog {
  width: min(92vw, 1040px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.image-dialog::backdrop {
  background: rgba(33, 31, 28, 0.72);
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.dialog-close {
  display: block;
  margin: 0 0 10px auto;
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--charcoal);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.site-footer {
  border-top: 2px solid rgba(23, 20, 17, 0.14);
}

.footer-admin-link {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  opacity: 0.55;
  text-decoration: none;
}

.footer-admin-link .nav-icon {
  width: 24px;
  height: 24px;
}

.footer-admin-link:hover {
  opacity: 0.9;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-layout,
  .flow-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .booking-form {
    position: static;
  }

  .event-admin-grid,
  .form-row-two {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: auto;
    max-width: min(250px, calc(78vw - 64px));
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .section-heading {
    display: block;
  }

  .legend {
    justify-content: flex-start;
    margin-top: 10px;
  }

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

  .gallery-item,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 0.78;
    transform: none;
  }
}
