:root {
  --background: #ffffff;
  --text: #1c1c1c;
  --muted: #666666;
  --line: #d7d7d7;
  --dashboard-background: #f4f4f1;
  --font: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
}

img {
  max-width: 100%;
}

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

a:hover,
a:focus-visible {
  opacity: 0.62;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  transition: opacity 150ms ease, outline-color 150ms ease;
}

.type-h1,
.type-h2,
.type-h3,
.type-p1,
.type-p2,
.type-p3 {
  margin-top: 0;
  font-family: var(--font);
  font-style: normal;
  letter-spacing: 0;
}

.type-h1 {
  font-size: 1.8rem;
  font-weight: 380;
  line-height: 1.5;
}

.type-h2 {
  font-size: 1.6rem;
  font-weight: 380;
  line-height: 1.5;
}

.type-h3 {
  font-size: 1.4rem;
  font-weight: 380;
  line-height: 1.5;
}

.type-p1 {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
}

.type-p2 {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.type-p3 {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
}

.container {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.site-name {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
}

.header-right {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.instagram-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.instagram-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.instagram-dot {
  fill: currentColor;
  stroke: none;
}

main {
  width: 100%;
}

.page-main {
  padding-top: 70px;
  padding-bottom: 70px;
}

.artwork-section {
  width: 100%;
}

.artwork-block {
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.artwork-block:first-child {
  margin-top: 0;
}

.artwork-before-image,
.artwork-after-image {
  line-height: 1.5;
}

.artwork-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 700px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.artwork-caption {
  width: min(600px, 100%);
  margin: 0;
  text-align: left;
  white-space: pre-line;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  align-items: start;
}

.about-text {
  width: min(600px, 100%);
  margin: 0;
  white-space: pre-line;
}

.about-image,
.contact-image {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.contact-heading {
  margin-bottom: 32px;
  text-align: left;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: start;
}

.contact-introduction {
  display: grid;
  gap: 38px;
  justify-items: start;
}

.contact-text {
  width: min(300px, 100%);
  margin: 0;
  white-space: pre-line;
}

.contact-form {
  width: min(520px, 100%);
  display: grid;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-form-field label {
  margin: 0;
}

.required-note {
  color: var(--muted);
  font-weight: 300;
}

.public-form-field input,
.public-form-field textarea {
  width: 100%;
  border: 1px solid var(--text);
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  padding: 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.public-form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.public-form-field input:focus,
.public-form-field textarea:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.send-button {
  width: fit-content;
  min-width: 104px;
  padding: 11px 22px;
  border: 1px solid #1c1c1c;
  border-radius: 0;
  background: #1c1c1c;
  color: #ffffff;
  cursor: pointer;
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.contact-status {
  min-height: 1.5em;
  margin: 0;
}

.site-footer {
  width: 100%;
  margin-top: 80px;
  padding-top: 30px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

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

.footer-social {
  line-height: 0;
}

.footer-bottom {
  margin-top: 24px;
  text-align: left;
}

.system-message {
  width: min(700px, calc(100% - 40px));
  margin: 40px auto;
  padding: 16px;
}

.error-message {
  color: #8d2828;
  font-weight: 400;
}

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

/* --- Mobile / Small Tablet View (480px and up) --- */
@media (min-width: 480px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }


  .type-p1 {
    font-size: 1.1rem;
  }

  .type-p2 {
    font-size: 1.05rem;
  }

  .type-p3 {
    font-size: 1rem;
  }

  .site-header {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .artwork-block {
    max-width: calc(100% - 56px);
  }
}

/* --- Tablet / Medium Screen View (768px and up) --- */
@media (min-width: 768px) {
  .container {
    padding-left: 42px;
    padding-right: 42px;
  }


  .site-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }

  .header-right {
    width: auto;
    justify-content: flex-end;
    gap: 24px;
  }

  .header-nav {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .page-main {
    padding-top: 110px;
    padding-bottom: 100px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 600px) 200px;
    gap: 60px;
  }

  .contact-layout {
    grid-template-columns: minmax(240px, 360px) minmax(360px, 520px);
    justify-content: space-between;
    gap: 70px;
  }

  .footer-top {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .footer-copyright {
    justify-self: start;
    text-align: left;
  }

  .footer-nav {
    justify-self: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .footer-social {
    justify-self: end;
  }
}

/* --- Small Desktop / Landscape View (1024px and up) --- */
@media (min-width: 1024px) {
  .container {
    padding-left: 56px;
    padding-right: 56px;
  }


  .type-p1 {
    font-size: 1.2rem;
  }

  .type-p2 {
    font-size: 1.1rem;
  }

  .site-header {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .header-nav {
    gap: 30px;
  }

  .header-right {
    gap: 30px;
  }

  .instagram-icon {
    width: 30px;
    height: 30px;
  }

  .page-main {
    padding-top: 140px;
  }
}

/* --- Large Desktop View (1200px and up) --- */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }


  .type-p1 {
    font-size: 1.3rem;
  }

  .type-p2 {
    font-size: 1.1rem;
  }

  .type-p3 {
    font-size: 1rem;
  }

  .header-nav {
    gap: 28px;
  }

  .header-right {
    gap: 32px;
  }

  .site-footer {
    margin-top: 110px;
  }
}

/* Dashboard */
.dashboard-body {
  background: var(--dashboard-background);
  color: #202020;
}

.dashboard-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 380;
  line-height: 1.5;
}

.dashboard-header p,
.dashboard-note,
.dashboard-status,
.image-status,
.editor-card p {
  line-height: 1.5;
}

.dashboard-header p {
  max-width: 800px;
  margin: 0;
  font-size: 1rem;
}

.editor-card {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 36px);
  background: #ffffff;
  border: 1px solid #d3d3cf;
}

.editor-card h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 380;
  line-height: 1.5;
}

.editor-card h3 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 380;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 24px;
  margin-top: 22px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 1rem;
  font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #999999;
  border-radius: 0;
  background: #ffffff;
  color: #202020;
  font-size: 1rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

.form-field input[readonly] {
  background: #eeeeeb;
  color: #555555;
}

.dashboard-section-heading,
.artwork-card-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.dashboard-section-heading {
  margin: 38px 0 18px;
}

.dashboard-section-heading h2 {
  margin: 0 0 7px;
  font-size: 1.6rem;
  font-weight: 380;
  line-height: 1.5;
}

.dashboard-section-heading p {
  margin: 0;
}

.artwork-card-heading {
  margin-bottom: 24px;
}

.artwork-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button,
.dashboard-button {
  border-radius: 5px;
  cursor: pointer;
}

.small-button {
  padding: 8px 12px;
  border: 1px solid #383838;
  background: #ffffff;
  color: #383838;
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.danger-button {
  border-color: #8d2828;
  color: #8d2828;
}

.image-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

#about-image-editor,
#contact-image-editor {
  margin-top: 30px;
}

.image-preview {
  display: block;
  width: 100%;
  min-height: 160px;
  max-height: 340px;
  object-fit: contain;
  border: 1px solid #d3d3cf;
  background: #fafafa;
}

.image-controls {
  display: grid;
  gap: 18px;
}

.dashboard-note,
.image-status,
.empty-artwork-message {
  color: #5d5d5d;
  font-size: 0.9rem;
}

.image-status {
  min-height: 1.4em;
  margin: 0;
}

.empty-artwork-message {
  padding: 30px;
  background: #ffffff;
  border: 1px dashed #a6a6a2;
  text-align: center;
}

.fixed-footer-note {
  margin-top: 24px;
}

.dashboard-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(244, 244, 241, 0.96);
  border-top: 1px solid #c8c8c4;
}

.dashboard-actions-primary,
.dashboard-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #383838;
  background: #383838;
  color: #ffffff;
  font-size: 1rem;
}

.dashboard-button.secondary {
  background: #ffffff;
  color: #383838;
}

.dashboard-button.compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.dashboard-button:hover,
.dashboard-button:focus-visible,
.small-button:hover:not(:disabled),
.small-button:focus-visible {
  opacity: 0.8;
}

.dashboard-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.email-setup-text {
  margin: 0;
  font-size: 0.9rem;
}

.email-setup-text a {
  color: inherit;
}

.dashboard-status {
  width: 100%;
  min-height: 1.4em;
  margin: 0;
  font-size: 0.95rem;
}

.dashboard-access-panel {
  max-width: 620px;
}

.login-field {
  max-width: 420px;
  margin: 22px 0 16px;
}

.inline-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

@media (min-width: 680px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-editor {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  }

  .dashboard-section-heading,
  .artwork-card-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .artwork-card-actions {
    justify-content: flex-end;
  }
}

/* 2026-06-27 navigation, typography, and dashboard refinements */
h1,
h2,
h3 {
  font-family: var(--font);
  font-style: normal;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.header-right {
  width: auto;
  justify-content: flex-end;
}

.desktop-nav,
.desktop-instagram {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}

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

.mobile-menu a {
  width: fit-content;
}

.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-bottom a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.form-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #999999;
  border-radius: 0;
  background: #ffffff;
  color: #202020;
  font: inherit;
}

.form-field select:focus {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

.field-label,
.form-field > label {
  font-size: 1rem;
  font-weight: 600;
}

.field-help {
  color: #777777;
  font-weight: 400;
}

.file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.file-select-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #777777;
  border-radius: 5px;
  background: #f2f2f2;
  color: #202020;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
}

.file-select-button:hover,
.file-select-button:focus-within {
  opacity: 0.8;
}

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

.selected-file-name {
  color: #555555;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.dashboard-button,
.small-button,
.file-select-button {
  border-radius: 5px;
}

@media (min-width: 768px) {
  .site-header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }

  .desktop-nav {
    display: flex;
  }

  .desktop-instagram {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  body[data-page="home"] .desktop-nav a[data-nav-page="home"] {
    display: none;
  }

}

.form-field .file-select-button {
  font-size: 0.92rem;
  font-weight: 400;
}

.file-picker:focus-within .file-select-button {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

/* 2026-06-27 layout, typography, About, and Contact refinements */
.type-h1,
h1 {
  font-size: 1.5rem;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

.type-h2,
h2 {
  font-size: 1.4rem;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

.type-h3,
h3 {
  font-size: 1.3rem;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

.type-p1 {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.type-p2 {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.type-p3 {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.dashboard-header h1 {
  font-size: 1.5rem;
}

.editor-card h2,
.dashboard-section-heading h2 {
  font-size: 1.4rem;
}

.editor-card h3 {
  font-size: 1.3rem;
}

/* On mobile, the header, footer, and page content keep the same side margins. */
.container {
  padding-left: 20px;
  padding-right: 20px;
}

.artwork-block {
  max-width: calc(100% - 40px);
}

.about-text {
  width: min(880px, 100%);
}

.about-image,
.contact-image {
  width: 300px;
}

.contact-text {
  width: min(500px, 100%);
}

.public-form-field > label {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
}

.public-form-field input,
.public-form-field textarea {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
}

.send-button {
  border-radius: 5px;
  font-size: 1.3rem;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

@media (min-width: 480px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-header .container,
  .site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .artwork-block {
    max-width: calc(100% - 64px);
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 56px;
    padding-right: 56px;
  }

  .site-header .container,
  .site-footer .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .artwork-block {
    max-width: calc(100% - 112px);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 500px) minmax(340px, 520px);
    gap: clamp(48px, 6vw, 80px);
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 72px;
    padding-right: 72px;
  }

  .site-header .container,
  .site-footer .container {
    padding-left: 36px;
    padding-right: 36px;
  }

  .artwork-block {
    max-width: calc(100% - 144px);
  }

  .about-layout {
    grid-template-columns: minmax(0, 880px) 300px;
    gap: 60px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-header .container,
  .site-footer .container {
    max-width: 1440px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* 2026-06-27 SEO, footer, gallery editor, and contact refinements */
.type-h3,
h3 {
  font-size: 1.2rem;
  font-weight: 380;
  line-height: 1.5;
  letter-spacing: 0;
}

.editor-card h3 {
  font-size: 1.2rem;
}

.about-image {
  width: 300px;
}

.contact-image {
  width: 200px;
}

.contact-form {
  width: min(700px, 100%);
}

.mobile-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mobile-instagram .instagram-icon {
  width: 25px;
  height: 25px;
}

.dashboard-body .form-field label,
.dashboard-body .field-label,
.dashboard-body .form-field > label {
  font-weight: 400;
}

.dashboard-body .editor-card h2,
.dashboard-body .editor-card h3,
.dashboard-body .dashboard-section-heading h2 {
  font-weight: 400;
}

.gallery-editor-group {
  margin: 38px 0 30px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #aaa9a4;
  background: #e9e9e5;
}

.gallery-editor-group .dashboard-section-heading {
  margin: 0 0 24px;
}

.gallery-editor-group .dashboard-note {
  margin: 0;
}

.gallery-editor-group .editor-card:last-child {
  margin-bottom: 22px;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 500px) minmax(0, 700px);
    gap: clamp(40px, 5vw, 70px);
  }
}

@media (min-width: 1200px) {
  .contact-page > .container {
    max-width: 1440px;
  }
}

/* 2026-06-27 dashboard photo controls and final refinements */
#about-text-field {
  width: min(966px, 100%);
  height: 500px;
  min-height: 500px;
}

.photo-option-field {
  margin-top: 28px;
}

.photo-option-field select {
  width: min(220px, 100%);
}

#publish-button,
#reload-button {
  width: 150px;
}

.about-layout.without-photo {
  grid-template-columns: minmax(0, 966px);
}

.contact-introduction.without-photo .contact-text {
  margin-bottom: 0;
}

/* 2026-06-27 multiple gallery page editor */
.additional-galleries-group {
  margin: 30px 0;
}

.additional-gallery-prompt {
  border-color: #aaa9a4;
}

.additional-gallery-question {
  width: min(460px, 100%);
  margin-top: 22px;
}

.additional-gallery-question select {
  width: min(220px, 100%);
}

.gallery-page-editor {
  margin: 28px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #aaa9a4;
  background: #e9e9e5;
}

.gallery-page-heading,
.gallery-artwork-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.gallery-page-heading {
  margin-bottom: 24px;
}

.gallery-page-heading h2,
.gallery-artwork-heading h3 {
  margin: 0;
  font-weight: 400;
}

.gallery-page-filename {
  margin: 4px 0 0;
  color: #666666;
  font-size: 0.9rem;
}

.gallery-name-field {
  width: min(460px, 100%);
  margin-bottom: 28px;
}

.gallery-artwork-heading {
  margin: 0 0 20px;
}

.gallery-page-editor .gallery-artwork-list > .editor-card:last-child {
  margin-bottom: 0;
}

@media (min-width: 680px) {
  .gallery-page-heading,
  .gallery-artwork-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .header-nav,
  .footer-nav {
    flex-wrap: wrap;
    white-space: normal;
  }

  .header-nav {
    justify-content: flex-end;
    row-gap: 8px;
  }
}

/* Multiple galleries use the same complete navigation order on every page. */
@media (min-width: 768px) {
  body[data-page="home"] .desktop-nav a[data-nav-page="home"] {
    display: inline;
  }
}

@media (min-width: 768px) {
  .header-nav {
    max-width: 65vw;
  }

  .footer-nav {
    max-width: 55vw;
  }
}

@media (min-width: 1200px) {
  .header-nav,
  .footer-nav {
    max-width: 700px;
  }
}

/* 2026-06-27 gallery filenames and dashboard field refinements */
#about-text-field {
  height: 350px;
  min-height: 350px;
}

.gallery-name-field {
  width: auto;
  max-width: 100%;
}

.gallery-name-input {
  width: 18ch !important;
  max-width: 100%;
}

.instagram-setting-field select {
  width: min(150px, 100%);
}

@media (min-width: 768px) {
  .instagram-setting-field,
  .instagram-link-field {
    align-self: end;
  }
}

/* Keep the public site header visible while the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
}

/* 2026-07-03 collapsible, reorderable gallery editor */
#gallery-editor-list {
  display: grid;
  gap: 20px;
}

.gallery-page-editor {
  margin: 0;
}

.gallery-page-editor.is-home-gallery {
  border-width: 2px;
}

.gallery-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.gallery-page-title-block {
  min-width: 0;
}

.gallery-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gallery-page-actions .small-button {
  border-radius: 6px;
}

.gallery-page-body {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #c5c5c0;
}

.gallery-page-body[hidden] {
  display: none !important;
}

.gallery-collapse-button {
  min-width: 86px;
}

.make-home-button:disabled {
  opacity: 1;
  cursor: default;
  font-weight: 400;
}

.gallery-page-editor .gallery-name-field {
  margin-top: 0;
}

.gallery-editor-group > .additional-gallery-prompt {
  margin: 24px 0;
}

@media (min-width: 900px) {
  .gallery-page-heading {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
  }

  .gallery-page-actions {
    justify-content: flex-end;
  }
}
