@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville/libre-baskerville-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville/libre-baskerville-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville/libre-baskerville-normal-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville/libre-baskerville-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root[data-draft="renovation"] {
  --gallery-surface: var(--gallery-chrome);
  --gallery-paper: var(--gallery-surface);
  --gallery-chrome: #f8f7f3;
  --gallery-accent: #b6be95;
  --gallery-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --gallery-sans: var(--gallery-serif);
  --gallery-artwork-type: var(--gallery-serif);
  --font-sans: var(--gallery-serif);
  --font-display: var(--gallery-serif);
  background: var(--gallery-surface);
}

:root[data-draft="renovation"] ::selection {
  background: var(--gallery-accent);
  color: var(--gallery-ink);
}

:root[data-draft="renovation"] :is(.bg-white, .bg-warm-white) {
  background-color: var(--gallery-surface);
}

body > nav {
  background: var(--gallery-chrome);
  color: var(--gallery-ink);
  --brand-size: clamp(26px, 8vw, 34px);
  --brand-scale: calc(1 - .19 * var(--gallery-scroll-progress));
  --brand-mark-size: calc(var(--brand-size) * var(--brand-scale) * 2 / 3);
  --brand-gap: calc(var(--gallery-mark-gap) * var(--brand-scale));
}

body > nav > div:first-child > a:first-child {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--brand-gap);
}

body > nav > div:first-child > a:first-child img {
  flex-shrink: 0;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  margin-inline-start: calc(var(--gallery-mark-size) + var(--gallery-mark-gap) - var(--brand-mark-size) - var(--brand-gap));
}

body > nav a[href="/"] > span {
  font-size: calc(var(--brand-size) * var(--brand-scale));
}

@media (min-width: 768px) {
  body > nav {
    --brand-size: 42px;
  }
}

body > nav > div:first-child > button > div { background: var(--gallery-ink); }
body > nav #gallery-menu { background: var(--gallery-chrome); }
body > nav a:is([data-gallery-current], :not([href="/"]):hover) {
  text-decoration-color: var(--gallery-accent);
  text-decoration-thickness: 2px;
}
body > .gallery-compact-footer {
  background: var(--gallery-chrome);
  color: var(--gallery-ink);
  font-weight: 700;
}
body > .gallery-compact-footer .gallery-footer-line a { color: inherit; }
#main + .gallery-newsletter > .gallery-newsletter-content { border-top: 0; }


.renovation-menu-open { overflow: hidden; }

#gallery-menu { overflow: auto; }
body > nav #gallery-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.gallery-blog-menu#gallery-menu { gap: 0; }

.renovation-text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.renovation-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  background: var(--gallery-ink);
  color: var(--gallery-white);
  font: 400 16px/24px var(--gallery-serif);
  cursor: pointer;
}

.renovation-primary:hover { background: #393935; }

body:has(#main[data-gallery-page="home"]) {
  --home-text-type: 400 15px/22px var(--gallery-serif);
}

#main > .gallery-feature > .renovation-home-caption { gap: 12px 32px; }
#main .renovation-home-caption h1 {
  margin: 0;
  font: 400 clamp(26px, 3vw, 32px)/1.25 var(--gallery-serif);
  letter-spacing: normal;
}

.renovation-home-label { margin-bottom: 4px; }
.renovation-home-label,
.renovation-home-actions a,
body:has(#main[data-gallery-page="home"]) #main + .gallery-newsletter summary,
body:has(#main[data-gallery-page="home"]) .gallery-footer-line {
  font: var(--home-text-type);
}

.renovation-about-copy { display: grid; gap: 20px; }
#main .gallery-info-copy .renovation-about-copy p { max-width: 58ch; line-height: 26px; }


.renovation-catalogue {
  grid-template-columns: minmax(0, 1fr);
}

#main[data-current-exhibition] > section:first-child {
  display: grid;
  align-content: center;
  min-block-size: calc(100svh - var(--gallery-header));
  padding-block: 24px;
}
#main[data-current-exhibition] > section:first-child > div {
  width: 100%;
}
#main .renovation-exhibition-intro h1 { margin-bottom: 8px; }
.renovation-exhibition-intro > div:first-child p { margin-bottom: 4px; }
.renovation-exhibition-intro > div:first-child { margin-bottom: 16px; }
.renovation-exhibition-intro > div:first-child:has(.renovation-exhibition-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
}
.renovation-exhibition-intro > div:first-child:has(.renovation-exhibition-portrait) > :is(h1, p) { grid-column: 1; }
.renovation-exhibition-portrait {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  display: block;
  width: clamp(72px, 9vw, 120px);
  height: auto;
}
.renovation-exhibition-intro .mt-10 { margin-top: 16px; }
.renovation-exhibition-copy { display: grid; gap: 8px; font-size: 16px; line-height: 24px; }
.renovation-exhibition-copy p > br:first-child { display: none; }

@media (max-width: 639px) {
  #main[data-current-exhibition] > section:first-child { padding: 8px 16px; }
  #main .renovation-exhibition-intro h1 { font-size: 30px; line-height: 36px; }
  .renovation-exhibition-intro > div:first-child p { font-size: 14px; line-height: 20px; }
  .renovation-exhibition-copy { font-size: 13.5px; line-height: 17px; }
}

.renovation-exhibition-intro > div:first-child p:last-child {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 18px;
}

.renovation-catalogue .group:hover :is(h2, h3) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#main > .renovation-exhibition-works { padding-block-start: 32px; }
.renovation-exhibition-slideshow { display: grid; justify-items: center; margin-bottom: 32px; }
.renovation-exhibition-slideshow [data-open-slideshow] { border: 4px solid var(--gallery-accent); }
.renovation-slideshow-open { overflow: hidden; }

.renovation-slideshow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px var(--gallery-gutter);
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--gallery-surface);
  color: var(--gallery-ink);
  font: 700 15px/21px var(--gallery-artwork-type);
}

.renovation-slideshow[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.renovation-slideshow-bar,
.renovation-slideshow-heading,
.renovation-slideshow-controls,
.renovation-slideshow-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.renovation-slideshow-bar { justify-content: space-between; }
#main .renovation-slideshow-heading h2 { font: inherit; letter-spacing: normal; }
.renovation-slideshow-shortcut { display: none; font-style: italic; font-weight: 400; }
.renovation-slideshow-controls { gap: 8px; }
.renovation-slideshow-controls button {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--gallery-ink);
  font: inherit;
  cursor: pointer;
}
.renovation-slideshow-controls button:hover { background: var(--gallery-ink); color: var(--gallery-white); }

.renovation-slideshow-stage { min-height: 0; }
.renovation-slideshow-slide {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  height: 100%;
}
.renovation-slideshow-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.renovation-slideshow-caption { justify-content: center; }
.renovation-slideshow-caption a { color: #9c252b; }
.renovation-slideshow-caption .renovation-price { margin: 0; font: inherit; }

@media (min-width: 640px) and (hover: hover) and (pointer: fine) {
  .renovation-slideshow-shortcut { display: block; }
}

.renovation-catalogue-shortcut { display: none; }

#main[data-gallery-page="artworks"] > section h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#main[data-gallery-page="artworks"] > section:first-child {
  padding-block-start: calc(var(--gallery-section) / 2 + 16px);
}

#main > .renovation-works-section { --catalogue-column-gap: 32px; }

#main .renovation-artist-works h2 {
  margin-inline-start: var(--catalogue-left-inset, 0px);
  margin-block-end: 32px;
}

@media (min-width: 640px) {
  #main:has(> .renovation-works-section) { container-type: inline-size; }
  #main > .renovation-works-section {
    --catalogue-image-height: calc((100cqw - 2 * var(--gallery-gutter) - var(--catalogue-column-gap)) / 2);
    --catalogue-top-line: max(
      calc(var(--gallery-header) + var(--gallery-section) / 2 + 16px),
      calc((100svh + var(--gallery-header-compact) - var(--catalogue-image-height)) / 2)
    );
  }
  #main[data-gallery-page="artworks"] > section:first-child {
    padding-block-start: calc(var(--catalogue-top-line) - var(--gallery-header));
    padding-block-end: max(var(--gallery-section), calc((100svh - var(--gallery-header-compact) - var(--catalogue-image-height)) / 2 - 112px));
  }
}

@media (min-width: 640px) and (hover: hover) and (pointer: fine) {
  #main[data-gallery-page="artworks"] { position: relative; }
  .renovation-catalogue-shortcut {
    display: block;
    position: absolute;
    inset-block-start: calc(var(--gallery-header) + 12px);
    inset-inline-end: var(--gallery-gutter);
    color: var(--gallery-muted);
    font: italic 400 14px/20px var(--gallery-sans);
  }
}

.renovation-card-caption {
  display: grid;
  gap: 4px;
  color: var(--gallery-ink);
  font: 700 15px/21px var(--gallery-artwork-type);
}

#main .group .renovation-card-caption :is(h2, h3, p, .renovation-price) {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

#main .group .renovation-card-caption :is(h2, h3) { color: #9c252b; }

.renovation-price { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; }
.renovation-price > .sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

#main .renovation-works-section .grid.renovation-catalogue {
  --gallery-art-row-gap: 56px;
  column-gap: var(--catalogue-column-gap);
}

#main .renovation-works-section a.group .renovation-card-image img {
  height: auto;
  aspect-ratio: 1;
  object-position: center;
}

#main[data-gallery-page="artworks-detail"] > section:first-child {
  --artwork-detail-padding: calc(var(--gallery-section) / 2);
  --artwork-detail-link-height: 44px;
  padding-block: var(--artwork-detail-padding);
}

.renovation-back {
  display: inline-flex;
  align-items: center;
  min-height: var(--artwork-detail-link-height);
  color: var(--gallery-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.renovation-object { display: grid; gap: 12px var(--gallery-gap); align-items: start; }
.renovation-object-media img {
  display: block;
  width: 100%;
  max-height: min(44svh, 420px);
  object-fit: contain;
}

.renovation-object-media figcaption { text-align: center; }
.renovation-image-link {
  display: inline-flex;
  min-height: var(--artwork-detail-link-height);
  color: var(--gallery-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-items: center;
}

#main[data-gallery-page="artworks-detail"] { font: 700 15px/21px var(--gallery-artwork-type); }

.renovation-enquiry-work {
  font-family: var(--gallery-artwork-type);
  font-weight: 700;
}
#main .renovation-object-info h1 {
  margin: 0;
  font: 700 28px/36px var(--gallery-artwork-type);
  letter-spacing: normal;
}
.renovation-object-info { display: grid; justify-items: start; gap: 8px; }
.renovation-object-info .renovation-price { font: inherit; }
.renovation-object-info .renovation-primary { margin-top: 8px; font: inherit; }
.renovation-object-specs {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.renovation-object-specs :is(.renovation-price, .gallery-sold, .gallery-on-hold) { margin-top: 10px; }
#main .renovation-related > div > h2 {
  margin-bottom: 24px;
  font: 700 20px/28px var(--gallery-artwork-type);
  letter-spacing: normal;
}

.renovation-image-viewer {
  position: fixed;
  width: min(calc(100vw - 24px), 1280px);
  max-width: none;
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 16px;
  overflow: auto;
  background: var(--gallery-surface);
  color: var(--gallery-ink);
}

.renovation-image-viewer::backdrop { background: rgb(15 15 13 / 78%); }
.renovation-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.renovation-viewer-bar button {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--gallery-ink);
  cursor: pointer;
}
.renovation-image-viewer img { display: block; width: 100%; height: min(70svh, 800px); object-fit: contain; margin-block: 8px; }
.renovation-image-viewer > a { display: inline-flex; align-items: center; min-height: 44px; }

.renovation-contact { display: grid; align-items: start; gap: 24px var(--gallery-gap); }
.renovation-enquiry-work { display: flex; align-items: flex-start; gap: 16px; }
.renovation-enquiry-work img { width: 88px; max-height: 104px; object-fit: contain; object-position: top; }
.renovation-enquiry-work p { color: var(--gallery-muted); font-size: 14px; }
.renovation-contact-email { margin-top: 20px; }
.renovation-enquiry-form { display: grid; justify-items: start; gap: 12px; }
.renovation-enquiry-form label { display: grid; width: 100%; gap: 4px; color: var(--gallery-muted); font-size: 14px; }
#main .renovation-enquiry-form :is(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  border: 1px solid #8b8b83;
  padding: 8px 12px;
  color: var(--gallery-ink);
}

.renovation-form-status:empty { display: none; }

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

@media (min-width: 768px) {
  #main[data-gallery-page="artworks-detail"] > section:first-child {
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--gallery-header));
  }
  #main[data-gallery-page="artworks-detail"] > section:first-child > div { width: 100%; }
  .renovation-object { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .renovation-object-media { align-self: center; }
  .renovation-object-media img {
    max-height: min(720px, max(200px, calc(100svh - var(--gallery-header) - 2 * (var(--artwork-detail-padding) + var(--artwork-detail-link-height)))));
  }
  .renovation-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .renovation-image-viewer { padding: 24px; }
}

@media (min-width: 1100px) {
  .renovation-catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #main > .renovation-works-section {
    --catalogue-left-inset: calc(var(--gallery-mark-size) + var(--gallery-mark-gap));
    --catalogue-column-gap: 56px;
    --catalogue-image-height: min(51svh, calc(
      (min(100cqw, var(--gallery-max)) - 2 * var(--gallery-gutter) - var(--catalogue-left-inset) - 2 * var(--catalogue-column-gap)) / 3
    ));
  }
  #main .renovation-works-section .grid.renovation-catalogue {
    --gallery-art-row-gap: max(64px, calc(100svh - var(--catalogue-top-line) - var(--catalogue-image-height) - 96px));
    padding-inline-start: var(--catalogue-left-inset);
  }
  #main .renovation-works-section a.group .renovation-card-image img {
    max-height: var(--catalogue-image-height);
    aspect-ratio: var(--artwork-ratio, 1);
    object-position: left top;
  }
}

@media (max-width: 959px) {
  #main > .gallery-feature > .renovation-home-caption {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 16px;
  }
  .renovation-home-actions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, .75fr);
    gap: 8px;
    width: 100%;
    max-width: 392px;
  }
  .renovation-home-actions a {
    min-width: 0;
    padding-inline: 8px;
  }
}
