@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&family=Montserrat:wght@500;600;700&display=swap");

:root {
  --page: #fff;
  --ink: #010101;
  --muted: #6b6862;
  --line: #dedbd3;
  --panel: #ffffff;
  --soft: #eeece5;
  --accent: #8e2d2b;
  --max: 1480px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --logo-size: 1.42rem;
  --work-title-size: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-exhibition-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 56px;
  padding: 34px 52px;
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 14px rgba(0, 0, 0, .06);
  transition: background 700ms var(--ease), color 700ms var(--ease), padding 700ms var(--ease);
}

.site-header[data-state="scrolled"] {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  padding-top: 24px;
  padding-bottom: 24px;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 20, 20, .08);
}

.brand {
  font-family: var(--font-display);
  font-size: var(--logo-size);
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: clamp(28px, 5.5vw, 92px);
  font-family: var(--font-body);
  font-size: var(--work-title-size);
  font-weight: 400;
}

.site-header nav a {
  opacity: .88;
  transition: opacity 250ms ease;
}

.site-header nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  margin-top: 112px;
  min-height: 75vh;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: settle 1600ms var(--ease) forwards;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .02) 46%, rgba(0, 0, 0, .1));
}

.intro-section {
  padding-top: 54px;
  padding-bottom: 70px;
}

.intro-copy {
  width: min(860px, 100%);
}

.intro-copy p {
  margin: 0 0 28px;
  font-size: 1.45rem;
  line-height: 1.5;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  white-space: pre-line;
}

.section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 46px;
  align-items: start;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 118px 42px;
}

.intro-section {
  display: block;
}

.section-heading {
  grid-column: 1;
  align-self: start;
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--logo-size);
  font-weight: 700;
  letter-spacing: .35em;
  line-height: 1.2;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-heading .text-button {
  display: none;
}

.overview-grid,
.bio-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: start;
}

.overview-image,
.bio-layout figure {
  margin: 0;
  background: var(--soft);
}

.overview-image img {
  aspect-ratio: 1;
  object-fit: cover;
}

.bio-layout figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.overview-copy,
.bio-layout > div {
  max-width: 760px;
}

.lead,
blockquote {
  margin: 0 0 32px;
  font-size: clamp(24px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.2;
}

blockquote {
  padding: 0 0 0 28px;
  color: var(--accent);
  border-left: 1px solid var(--accent);
}

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

.work-card {
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 800ms var(--ease) forwards;
}

.work-card:focus,
.work-card:focus-visible {
  outline: 0;
}

.work-card figure {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin: 0 0 18px;
  background: #f1f0eb;
  overflow: hidden;
}

.work-card img {
  max-height: 310px;
  object-fit: contain;
  transition: transform 900ms var(--ease), opacity 900ms var(--ease);
}

.work-card:hover img {
  transform: scale(1.035);
  opacity: .86;
}

.work-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--work-title-size);
  font-weight: 400;
}

.work-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.record {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  min-height: 148px;
}

.record-image {
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--soft);
}

.record h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.record p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.cv-list {
  display: grid;
  gap: 9px;
  max-width: 920px;
  margin-top: 0;
  border-top: 0;
}

.cv-list p {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
}

.cv-break {
  min-height: 14px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 64px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.footer p:last-child {
  text-align: right;
}

.instagram-link {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--muted);
  border-radius: 7px;
}

.instagram-link::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.instagram-link::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
}

.text-button,
.primary-button,
.secondary-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
}

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

.secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.artwork-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.artwork-dialog::backdrop {
  background: #fff;
}

.artwork-dialog.is-visible {
  opacity: 1;
  transform: none;
}

.artwork-dialog.is-closing {
  opacity: 0;
  transform: translateY(12px);
}

[data-dialog-content] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

[data-dialog-content].is-switching {
  opacity: 0;
  transform: translateY(10px);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 33vw minmax(0, 1fr);
  gap: 42px;
  min-height: 100vh;
  padding: 9vh 13.5vw 8vh 7vw;
  align-items: center;
}

.artwork-detail-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: none;
}

.artwork-detail-copy h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.35vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.artwork-detail-copy h3 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .34em;
  line-height: 1.35;
  text-transform: uppercase;
}

.artwork-detail-copy p {
  margin: 0 0 14px;
  color: #5f5f5f;
  font-family: var(--font-body);
  font-size: 1.8rem;
  line-height: 1.45;
}

.artwork-detail-copy .copyright {
  margin-top: 42px;
}

.artwork-description {
  margin-top: 18px;
}

.formatted-text {
  display: grid;
  gap: 24px;
}

.formatted-text p {
  margin: 0;
  white-space: normal;
}

.artwork-media {
  display: grid;
  gap: 0;
  justify-items: center;
}

.zoom-stage {
  --zoom-x: 50%;
  --zoom-y: 50%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}

.zoom-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform 260ms ease;
}

.zoom-stage:hover img {
  transform: scale(1.85);
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb-strip button {
  width: 78px;
  height: 78px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.thumb-strip button.active {
  border-color: var(--ink);
}

.thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enquire-button {
  display: inline-flex;
  margin-top: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #575757;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease;
}

.enquire-button:hover {
  background: transparent;
  color: var(--ink);
}

.further-images {
  margin-top: 42px;
}

.further-images h4 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.close {
  position: absolute;
  top: 42px;
  right: 42px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: transparent;
}

.close:focus,
.close:focus-visible,
.enquire-button:focus,
.enquire-button:focus-visible,
.artwork-nav:focus,
.artwork-nav:focus-visible,
.thumb-strip button:focus,
.thumb-strip button:focus-visible,
.image-button:focus,
.image-button:focus-visible {
  outline: 0;
  box-shadow: none;
}

.close::before,
.close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 4px;
  width: 32px;
  height: 1px;
  background: #555;
}

.close::before {
  transform: rotate(45deg);
}

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

.artwork-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .42;
  transform: translateY(-50%);
  transition: opacity 240ms ease, transform 240ms ease;
}

.artwork-nav:hover {
  opacity: .9;
}

.artwork-nav::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-top: 1px solid #111;
  border-right: 1px solid #111;
}

.artwork-nav-prev {
  left: 28px;
}

.artwork-nav-prev::before {
  transform: rotate(-135deg);
}

.artwork-nav-next {
  right: 28px;
}

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

.contact-section {
  width: min(100%, 1160px);
}

.contact-section h1,
.enquire-dialog h1 {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.contact-form label {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  font-size: 1.45rem;
  line-height: 1.2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfcfcf;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.send-button {
  justify-self: start;
  margin-left: 162px;
  border: 1px solid var(--ink);
  background: #111;
  color: #fff;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
}

.send-button.outline {
  background: #fff;
  color: var(--ink);
}

.form-status {
  margin: 0 0 0 162px;
  color: var(--muted);
  font-size: 1.45rem;
}

.enquire-dialog {
  position: relative;
  width: min(720px, calc(100vw - 44px));
  border: 0;
  padding: 52px 42px;
  background: #fff;
  color: var(--ink);
}

.enquire-dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(0, 0, 0, .78);
}

.enquire-summary {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
}

.enquire-summary img {
  aspect-ratio: 1;
  object-fit: cover;
}

.enquire-summary p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.25;
}

.enquire-form {
  gap: 18px;
}

.enquire-form label {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  font-size: 1.9rem;
}

.enquire-form input {
  min-height: 50px;
}

.enquire-form textarea {
  min-height: 160px;
}

.enquire-form .send-button,
.enquire-form .form-status {
  margin-left: 134px;
}

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

.press-record .record-image {
  pointer-events: none;
}

.press-record .image-button {
  cursor: default;
}

.image-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 70px));
  border: 0;
  padding: 0;
  background: transparent;
}

.image-dialog img {
  max-height: 84vh;
  object-fit: contain;
  background: #fff;
}

.exhibition-page {
  position: fixed;
  z-index: 15;
  inset: 0;
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.exhibition-page.visible {
  opacity: 1;
  transform: none;
}

.exhibition-hero {
  display: grid;
  align-items: end;
  min-height: 78vh;
  margin-top: 112px;
  background: #f4f3ee;
  background-image: var(--cover-image);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.exhibition-hero > div {
  grid-area: 1 / 1;
  padding: 0 52px 52px;
  color: #fff;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .36));
}

.exhibition-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: .35em;
  line-height: 1.45;
  text-transform: uppercase;
}

.exhibition-hero p {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 1.8vw, 2.4rem);
}

.exhibition-content-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 88px 96px;
}

.exhibition-copy .formatted-text {
  width: min(780px, 100%);
}

.exhibition-copy .formatted-text p {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.back-link {
  margin: 0 0 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
}

.back-link span {
  display: inline-block;
  margin-right: 10px;
  letter-spacing: 0;
}

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

.exhibition-mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.works-grid.compact {
  gap: 54px 34px;
}

.video-frame {
  width: min(980px, 100%);
}

.video-frame .external-link-button {
  margin-top: 0;
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.instagram-embed {
  width: min(540px, 100%);
}

.instagram-embed iframe,
.instagram-embed blockquote {
  max-width: 100% !important;
}

.external-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.admin-body {
  background: #f3f2ed;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  background: rgba(248, 247, 243, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.admin-topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 42px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 36px 32px 72px;
}

.admin-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.admin-nav button {
  border: 0;
  border-left: 2px solid transparent;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.admin-nav button.active {
  border-left-color: var(--accent);
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
}

.admin-panel {
  display: none;
}

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

.admin-panel h1 {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 300;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

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

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  color: var(--ink);
}

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

.cv-text-field textarea {
  min-height: 560px;
  font-family: var(--font-body);
  font-size: 1.7rem;
  line-height: 1.55;
}

.media-field {
  gap: 10px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 126px;
  padding: 22px;
  border: 1px dashed #b9b5aa;
  background: rgba(255, 255, 255, .56);
  color: var(--muted);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.card-preview-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .34);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.card-preview-dropzone span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.card-preview-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.card-preview-media img,
.card-preview-media .empty-preview {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  object-fit: cover;
}

.card-preview-dropzone.is-dragging,
.card-preview-dropzone.is-uploading {
  border-color: var(--accent);
  background: #fff;
}

.dropzone strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
}

.dropzone span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone.is-dragging,
.images-field.is-uploading .dropzone,
.single-image-field.is-uploading .dropzone {
  border-color: var(--accent);
  background: #fff;
  color: var(--ink);
}

.single-image-preview img,
.single-image-preview .empty-preview {
  width: 140px;
  min-height: 140px;
  aspect-ratio: 1;
  object-fit: cover;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.media-row input[type="file"] {
  max-width: 260px;
  padding: 9px;
}

.image-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-pill {
  position: relative;
  display: grid;
  grid-template-columns: 24px 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 440px);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.image-pill img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: var(--soft);
}

.image-pill button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.image-drag-handle {
  position: relative;
  width: 22px;
  height: 44px;
  padding: 0;
  cursor: grab;
}

.image-drag-handle::before,
.image-drag-handle::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 10px 0 var(--muted), 0 20px 0 var(--muted);
}

.image-drag-handle::before {
  top: 8px;
}

.image-drag-handle::after {
  top: 8px;
  left: 16px;
}

.image-pill.is-dragging-image {
  opacity: .45;
}

.image-pill.is-image-drop-target.drop-before {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.image-pill.is-image-drop-target.drop-after {
  border-right-color: var(--accent);
  transform: translateX(-4px);
}

.exhibitions-images-field .image-stack {
  align-items: flex-start;
}

.exhibitions-images-field .image-pill {
  grid-template-columns: 24px 1fr;
  align-items: stretch;
  width: 164px;
}

.exhibitions-images-field .image-pill img {
  grid-column: 2;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.exhibitions-images-field .image-pill input,
.exhibitions-images-field .image-pill [data-remove-image] {
  grid-column: 1 / -1;
}

.empty-preview {
  display: grid;
  place-items: center;
  width: 120px;
  min-height: 120px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, .42);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.artwork-picker {
  border: 0;
}

.artwork-picker summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  padding: 14px 18px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.artwork-picker summary::-webkit-details-marker {
  display: none;
}

.artwork-picker summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.artwork-picker[open] summary::after {
  content: "-";
}

.artwork-picker summary span {
  margin-left: auto;
  margin-right: 18px;
  color: var(--muted);
  font-size: 12px;
}

.artwork-picker-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(255, 255, 255, .62);
}

.artwork-option {
  display: grid;
  grid-template-columns: 28px 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.artwork-option input {
  width: 22px;
  height: 22px;
  accent-color: #111;
}

.artwork-option img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: var(--soft);
}

.collection-editor {
  display: grid;
  gap: 18px;
}

.collection-tools {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto;
  gap: 16px;
  align-items: center;
}

.collection-tools input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  color: var(--ink);
}

.collection-tools span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collection-list {
  display: grid;
  gap: 10px;
}

.edit-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
}

.collapsible-edit-card {
  display: block;
  padding: 0;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.collapsible-edit-card.is-open {
  background: rgba(255, 255, 255, .9);
}

.collapsible-edit-card.is-dragging-record {
  opacity: .44;
}

.collapsible-edit-card.is-drop-target {
  border-color: var(--accent);
  background: #fff;
}

.record-summary {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 10px 14px;
  cursor: pointer;
}

.drag-handle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: grab;
}

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

.collapsible-edit-card[draggable="false"] .drag-handle {
  cursor: default;
  opacity: .36;
}

.drag-handle span,
.drag-handle span::before,
.drag-handle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--muted);
}

.drag-handle span {
  position: relative;
}

.drag-handle span::before,
.drag-handle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.drag-handle span::before {
  top: -6px;
}

.drag-handle span::after {
  top: 6px;
}

.record-summary-preview {
  width: 76px;
}

.record-summary-preview .card-preview-dropzone {
  gap: 5px;
  padding: 0;
  background: transparent;
}

.record-summary-preview .card-preview-dropzone span {
  font-size: 8px;
}

.static-card-preview img,
.static-card-preview .empty-preview,
.record-summary-preview .card-preview-media img,
.record-summary-preview .card-preview-media .empty-preview {
  width: 76px;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.record-summary-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.record-summary-text strong {
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-summary-text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.record-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}

.record-actions .delete-button {
  border-color: transparent;
  color: var(--accent);
}

.record-details {
  padding: 0 16px 16px 144px;
}

.edit-card > img {
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--soft);
}

.edit-card .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delete-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 16px;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section,
  .footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .overview-grid,
  .bio-layout,
  .dialog-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .record-list,
  .artwork-picker-panel,
  .exhibition-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .record-summary {
    grid-template-columns: 36px 70px minmax(0, 1fr);
  }

  .record-actions {
    grid-column: 2 / -1;
    flex-wrap: wrap;
  }

  .record-summary-preview,
  .static-card-preview img,
  .static-card-preview .empty-preview,
  .record-summary-preview .card-preview-media img,
  .record-summary-preview .card-preview-media .empty-preview {
    width: 64px;
  }

  .record-details {
    padding-left: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .hero {
    min-height: 66vh;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .form-grid,
  .edit-card,
  .edit-card .form-grid,
  .media-row,
  .image-pill,
  .artwork-picker-panel,
  .contact-form label,
  .enquire-form label {
    grid-template-columns: 1fr;
  }

  .collection-tools {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .record-list,
  .exhibition-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 16px;
  }

  .work-card figure,
  .record-image {
    aspect-ratio: 1;
  }

  .exhibition-mosaic img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .work-card figure {
    min-height: 0;
    margin-bottom: 10px;
  }

  .work-card img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .work-card h3,
  .record h3 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .work-card p,
  .record p {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .exhibition-hero {
    min-height: auto;
    margin-top: 118px;
    padding-top: 72vw;
    background-attachment: scroll;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .exhibition-hero > div {
    padding: 24px 22px 34px;
    color: var(--ink);
    background: #fff;
  }

  .exhibition-content-section {
    padding: 54px 22px;
  }

  .contact-form label,
  .enquire-form label {
    gap: 10px;
  }

  .send-button,
  .form-status,
  .enquire-form .send-button,
  .enquire-form .form-status {
    margin-left: 0;
  }

  .cv-row {
    grid-template-columns: 64px 1fr;
  }

  .cv-row p {
    grid-column: 2;
  }

  .footer,
  .admin-topbar,
  .panel-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
