/*
Theme Name: Gary Christian — Twenty Twenty-Three Child
Theme URI: https://www.garychristian.com.au/
Description: Editorial, block-based portfolio for Gary Christian, built as a child theme of Twenty Twenty-Three.
Author: Gary Christian Website
Template: twentytwentythree
Version: 1.0.4
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: gary-christian-tt3-child
License: GPL-2.0-or-later
*/

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Tones
   -------------------------------------------------------------------------- */

:root {
  /* Core palette & typography */
  --gc-paper: #f4f3ee;
  --gc-ink: #20211e;
  --gc-muted: #77796f;
  --gc-moss: #596247;
  --gc-line: rgba(32, 33, 30, 0.16);
  --gc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Swatch palette tokens */
  --gc-swatch-crimson-dark: #970b0b;
  --gc-swatch-crimson: #cd1642;
  --gc-swatch-coral: #f05c5c;
  --gc-swatch-blush: #f5eeee;
  --gc-swatch-mauve: #c2a5af;

  /* Default hero/overlay tokens (light ground) */
  --gc-hero-ink: #20211e;
  --gc-hero-muted: rgba(32, 33, 30, 0.72);
  --gc-hero-surface: rgba(244, 243, 238, 0.82);
  --gc-hero-outline: rgba(32, 33, 30, 0.28);
  --gc-hero-shadow: rgba(244, 243, 238, 0.3);
}

/* Dark hero tone override (toggled via data attribute on :root) */
:root[data-gc-hero-tone="dark"] {
  --gc-hero-ink: #faf9f3;
  --gc-hero-muted: rgba(250, 249, 243, 0.78);
  --gc-hero-surface: rgba(23, 24, 21, 0.68);
  --gc-hero-outline: rgba(250, 249, 243, 0.42);
  --gc-hero-shadow: rgba(18, 19, 17, 0.24);
}

/* --------------------------------------------------------------------------
   2. Base & Document Reset
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Lock document height on front-page / hero views */
html:has(.gc-front-page-content),
html:has(.gc-home-hero) {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--gc-paper);
  color: var(--gc-ink);
  font-family: var(--gc-sans);
  -webkit-font-smoothing: antialiased;
}

body a {
  color: inherit;
}

body a:hover {
  color: var(--gc-moss);
}

/* Prevent horizontal overflow from full-bleed WP blocks */
.wp-site-blocks {
  overflow: clip;
}

/* --------------------------------------------------------------------------
   3. Front-Page Viewport Lock & Floating Chrome
   Locks the home view to a single viewport with header/footer overlaid.
   -------------------------------------------------------------------------- */

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  --gc-home-footer-height: 38px;
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks,
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-front-page-content {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.admin-bar:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)),
body.admin-bar:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks,
body.admin-bar:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-front-page-content,
body.admin-bar .gc-home-hero {
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks {
  position: relative;
  isolation: isolate;
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-front-page-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide below-the-fold home sections when locked to single-viewport hero */
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-home-intro,
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-home-featured {
  display: none !important;
}

/* Float header and frosted footer above the hero canvas */
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks > header.wp-block-template-part {
  position: absolute;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  color: var(--gc-hero-ink);
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks > footer.wp-block-template-part,
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) footer.wp-block-template-part {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--gc-hero-surface);
  color: var(--gc-hero-ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* --------------------------------------------------------------------------
   4. Header, Brand Wordmark & Navigation
   -------------------------------------------------------------------------- */

.gc-site-header-inner {
  width: 100%;
  min-height: 98px;
  margin: 0 !important;
  padding: 18px clamp(22px, 3vw, 40px);
  color: var(--gc-ink);
}

.gc-site-header-inner .gc-brand {
  gap: 14px;
  flex-shrink: 0;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.gc-site-header-inner .gc-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 2px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

.gc-site-header-inner .gc-brand-copy > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
}

/* Stepped vertical bar mark */
.gc-wordmark-mark {
  display: flex;
  align-items: stretch;
  gap: 3px;
  width: 26px;
  height: 31px;
  color: var(--gc-moss);
}

.gc-wordmark-mark .gc-wordmark-bar {
  display: block;
  width: 4px;
  height: 100%;
  margin: 0;
  padding: 0;
  background: currentColor;
  font-size: 0;
  line-height: 0;
}

.gc-wordmark-mark .gc-wordmark-bar--two {
  opacity: 0.62;
  transform: translateY(5px);
}

.gc-wordmark-mark .gc-wordmark-bar--three {
  opacity: 0.34;
  transform: translateY(10px);
}

.gc-site-title,
.wp-block-site-title.gc-site-title {
  margin: 0 !important;
  padding-left: 0 !important;
  line-height: 1;
  text-align: left !important;
}

.gc-site-title a,
.wp-block-site-title.gc-site-title a {
  display: inline-block;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: currentColor;
  transition: color 180ms ease;
}

.gc-site-title:hover a,
.gc-site-title a:hover,
.gc-site-title a:focus-visible,
.wp-block-site-title.gc-site-title a:hover,
.wp-block-site-title.gc-site-title a:focus-visible {
  color: var(--gc-swatch-crimson, #cd1642) !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.gc-tagline {
  margin: 5px 0 0 0 !important;
  padding-left: 0 !important;
  color: var(--gc-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-align: left !important;
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner .gc-tagline {
  color: var(--gc-hero-muted);
}

/* Primary navigation & mobile drawer */
.gc-primary-navigation {
  color: inherit;
}

.gc-primary-navigation .wp-block-navigation__container {
  gap: clamp(13px, 2vw, 31px);
}

.gc-primary-navigation .wp-block-navigation-item__content {
  padding: 8px 0;
  color: currentColor;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.gc-primary-navigation .wp-block-navigation-item__content:hover {
  opacity: 0.62;
}

.gc-primary-navigation .wp-block-navigation__responsive-container-open {
  color: currentColor;
}

.gc-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--gc-paper);
  color: var(--gc-ink);
}

.gc-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--gc-ink);
}

/* Sync header text with explicit light/dark hero tone */
:root[data-gc-hero-tone="light"] body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner,
:root[data-gc-hero-tone="light"] body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner .gc-tagline,
:root[data-gc-hero-tone="dark"] body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner,
:root[data-gc-hero-tone="dark"] body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner .gc-tagline {
  color: var(--gc-hero-ink);
}

/* --------------------------------------------------------------------------
   5. Homepage Hero Slideshow
   Paintings are intentionally shown without a wash or gray overlay.
   -------------------------------------------------------------------------- */

.gc-home-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  margin: 0 !important;
  overflow: hidden;
  background: var(--gc-paper);
  color: var(--gc-hero-ink);
  isolation: isolate;
}

.gc-home-hero[data-tone="light"] {
  --gc-hero-ink: #20211e;
  --gc-hero-muted: rgba(32, 33, 30, 0.72);
  --gc-hero-surface: rgba(244, 243, 238, 0.84);
  --gc-hero-outline: rgba(32, 33, 30, 0.28);
  --gc-hero-shadow: rgba(244, 243, 238, 0.3);
}

.gc-home-hero[data-tone="dark"] {
  --gc-hero-ink: #faf9f3;
  --gc-hero-muted: rgba(250, 249, 243, 0.78);
  --gc-hero-surface: rgba(23, 24, 21, 0.68);
  --gc-hero-outline: rgba(250, 249, 243, 0.42);
  --gc-hero-shadow: rgba(18, 19, 17, 0.24);
}

.gc-slide-stack,
.gc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.gc-slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.gc-slide.gc-slide--active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gc-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.gc-slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Slide typography & call to action */
.gc-slide-copy {
  position: absolute;
  z-index: 3;
  bottom: clamp(112px, 15vh, 176px);
  left: clamp(26px, 9.4vw, 150px);
  width: min(710px, 72vw);
  margin: 0 !important;
  color: var(--gc-hero-ink);
  text-shadow: 0 1px 13px var(--gc-hero-shadow);
}

.gc-slide-eyebrow,
.gc-eyebrow {
  margin: 0 0 16px;
  color: var(--gc-hero-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gc-slide-title {
  max-width: 720px;
  margin: 0;
  color: var(--gc-hero-ink);
  font-family: var(--gc-serif);
  font-size: clamp(44px, 6.1vw, 94px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.gc-slide-credit {
  margin: 17px 0 20px;
  color: var(--gc-hero-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Shared button styling across hero CTA and enquiry/contact buttons */
.gc-slide-cta .wp-block-button__link,
.gc-enquiry-button .wp-block-button__link,
.gc-contact-button .wp-block-button__link {
  border: 1px solid var(--gc-hero-outline);
  border-radius: 0;
  padding: 12px 16px;
  background: var(--gc-hero-surface);
  color: var(--gc-hero-ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gc-slide-cta .wp-block-button__link:hover,
.gc-enquiry-button .wp-block-button__link:hover,
.gc-contact-button .wp-block-button__link:hover {
  border-color: var(--gc-hero-ink);
  background: var(--gc-hero-ink);
  color: var(--gc-paper);
}

.gc-enquiry-button .wp-block-button__link,
.gc-contact-button .wp-block-button__link {
  border-color: var(--gc-ink);
  background: var(--gc-ink);
  color: var(--gc-paper);
}

.gc-enquiry-button .wp-block-button__link:hover,
.gc-contact-button .wp-block-button__link:hover {
  border-color: var(--gc-moss);
  background: var(--gc-moss);
  color: #fff;
}

/* Slideshow prev/next controls, dot indicators & counter */
.gc-slide-controls,
.gc-slide-dots,
.gc-slide-counter {
  position: absolute;
  z-index: 5;
  color: var(--gc-hero-ink);
}

.gc-slide-controls {
  right: clamp(24px, 5vw, 76px);
  bottom: calc(var(--gc-home-footer-height, 38px) + 14px);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.gc-slide-controls .wp-block-button__link {
  min-width: 40px;
  border: 1px solid var(--gc-hero-outline);
  border-radius: 0;
  padding: 9px 12px;
  background: var(--gc-hero-surface);
  color: var(--gc-hero-ink);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.gc-slide-controls .wp-block-button__link:hover {
  border-color: var(--gc-hero-ink);
}

.gc-slide-dots {
  left: clamp(26px, 9.4vw, 150px);
  bottom: calc(var(--gc-home-footer-height, 38px) + 20px);
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0 !important;
}

.gc-slide-dots .wp-block-button__link {
  min-width: 26px;
  border: 0;
  border-bottom: 1px solid var(--gc-hero-outline);
  border-radius: 0;
  padding: 6px 2px;
  background: transparent;
  color: var(--gc-hero-muted);
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.gc-slide-dots .gc-slide-dot.is-current .wp-block-button__link,
.gc-slide-dots .gc-slide-dot[aria-current="true"] .wp-block-button__link {
  border-color: var(--gc-hero-ink);
  color: var(--gc-hero-ink);
}

.gc-slide-counter {
  right: clamp(24px, 5vw, 76px);
  bottom: 90px;
  margin: 0;
  color: var(--gc-hero-muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   6. Homepage Editorial Sections (Intro & Featured Grid)
   -------------------------------------------------------------------------- */

.gc-home-intro,
.gc-home-featured {
  width: min(100% - 48px, 1440px);
  margin: 0 auto !important;
}

.gc-home-intro {
  padding: clamp(84px, 11vw, 160px) 0 clamp(74px, 9vw, 130px);
}

.gc-home-intro-copy-wrap {
  max-width: 710px;
  margin-left: 9vw;
}

.gc-home-intro .gc-eyebrow {
  color: var(--gc-moss);
}

.gc-home-intro-title,
.gc-section-title,
.gc-about-title,
.gc-contact-title,
.gc-works-title {
  margin: 0;
  color: var(--gc-ink);
  font-family: var(--gc-serif);
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.gc-home-intro-copy {
  max-width: 590px;
  margin-top: 24px;
  color: #5e6058;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.8;
}

.gc-home-featured {
  padding: 0 0 clamp(100px, 13vw, 180px);
}

.gc-home-featured .gc-eyebrow {
  margin-bottom: 12px;
  color: var(--gc-moss);
}

.gc-home-featured .gc-section-title {
  margin-bottom: 36px;
}

/* 3-column card grids (shared between featured home & archive stories) */
.gc-featured-grid,
.gc-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-featured-card,
.gc-story-card {
  margin: 0 !important;
}

.gc-featured-image,
.gc-story-card-image {
  margin: 0 0 17px !important;
}

.gc-featured-image img,
.gc-story-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: cover;
  background: #e6e3d9;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.gc-featured-card:hover img,
.gc-story-card:hover img {
  transform: scale(1.015);
}

.gc-featured-category,
.gc-story-card-category,
.gc-entry-categories {
  margin: 0 0 8px;
  color: var(--gc-moss);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gc-featured-title,
.gc-story-card-title {
  margin: 0;
  font-family: var(--gc-serif);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.gc-featured-title a,
.gc-story-card-title a {
  text-decoration: none;
}

.gc-featured-excerpt,
.gc-story-card-excerpt {
  margin-top: 10px;
  color: #686a62;
  font-size: 13px;
  line-height: 1.7;
}

.gc-featured-excerpt .wp-block-post-excerpt__more-link,
.gc-story-card-excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gc-ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Gallery Archives & Single Exhibition / Story Views
   -------------------------------------------------------------------------- */

.gc-archive-main {
  width: min(100% - 48px, 1440px);
  margin: 0 auto !important;
  padding: clamp(132px, 14vw, 205px) 0 130px;
}

.gc-archive-intro {
  margin: 0 0 clamp(42px, 6vw, 82px) !important;
}

.gc-archive-intro .gc-eyebrow {
  color: var(--gc-moss);
}

.gc-archive-title,
.gc-entry-title,
.gc-error-title {
  margin: 0;
  color: var(--gc-ink);
  font-family: var(--gc-serif);
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.gc-archive-dek,
.gc-entry-dek {
  max-width: 630px;
  margin: 22px 0 0;
  color: #65675f;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

.gc-story-grid {
  row-gap: 58px;
}

.gc-story-card-image img {
  aspect-ratio: 1.12;
}

.gc-story-card-category {
  margin-top: 2px;
}

.gc-story-card-title {
  max-width: 460px;
}

.gc-story-card-excerpt {
  max-width: 440px;
}

.gc-query-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--gc-line);
  font-size: 11px;
}

.gc-query-pagination a {
  text-decoration: none;
}

/* Single gallery / story post */
.gc-gallery-single {
  width: min(100% - 48px, 1180px);
  margin: 0 auto !important;
  padding: clamp(130px, 14vw, 205px) 0 110px;
}

.gc-entry-header {
  margin: 0 auto 48px !important;
  text-align: center;
}

.gc-entry-categories {
  justify-content: center;
  margin-bottom: 18px;
}

.gc-entry-title {
  font-size: clamp(48px, 7vw, 98px);
}

.gc-entry-dek {
  max-width: 680px;
  margin: 22px auto 0;
}

.gc-entry-featured {
  margin: 0 auto 68px !important;
}

.gc-entry-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gc-gallery-single > .wp-block-post-content {
  max-width: none;
}

.gc-entry-navigation {
  margin-top: 74px !important;
  padding-top: 24px;
  border-top: 1px solid var(--gc-line);
  font-size: 11px;
}

.gc-entry-navigation a {
  text-decoration: none;
}

/* Hairline fact grid on story/event pages */
.gc-event-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 70px !important;
  background: var(--gc-line);
  border: 1px solid var(--gc-line);
}

.gc-event-fact {
  min-height: 110px;
  margin: 0 !important;
  padding: 20px;
  background: var(--gc-paper);
}

.gc-event-fact-label,
.gc-artwork-number {
  margin: 0 0 9px;
  color: var(--gc-moss);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gc-event-fact-value {
  margin: 0;
  color: var(--gc-ink);
  font-size: 12px;
  line-height: 1.55;
}

/* Story narrative & callout */
.gc-story-copy {
  max-width: 760px;
  margin: 0 auto 54px !important;
}

.gc-story-paragraph {
  margin: 0 0 22px;
  color: #474941;
  font-size: 16px;
  line-height: 1.9;
}

.gc-story-invitation {
  margin: 30px 0 0;
  padding: 22px 0 22px 22px;
  border-left: 2px solid var(--gc-moss);
  color: var(--gc-ink);
  font-family: var(--gc-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
}

/* Poem card block */
.gc-poem-card {
  max-width: 740px;
  margin: 70px auto 100px !important;
  padding: clamp(30px, 5vw, 62px);
  border-left: 1px solid var(--gc-moss);
  background: #eeede6;
}

.gc-poem-card .gc-eyebrow {
  color: var(--gc-moss);
}

.gc-poem-title {
  margin: 0 0 22px;
  font-family: var(--gc-serif);
  font-size: clamp(31px, 4vw, 49px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.gc-poem-stanza {
  margin: 0 0 20px;
  color: #3b3d36;
  font-family: var(--gc-serif);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
  white-space: pre-line;
}

.gc-poem-byline {
  margin: 28px 0 0;
  color: var(--gc-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gc-poem-credit {
  margin: 7px 0 0;
  color: #77796f;
  font-size: 11px;
  line-height: 1.65;
}

/* Artwork catalog grid inside a story/exhibition */
.gc-story-artworks {
  margin: 0 auto !important;
}

.gc-story-artworks > .gc-eyebrow {
  color: var(--gc-moss);
}

.gc-works-title {
  margin-bottom: 32px;
  font-size: clamp(38px, 5vw, 64px);
}

.gc-post-artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 52px) clamp(16px, 2vw, 28px);
}

.gc-artwork-card {
  min-width: 0;
  margin: 0 !important;
}

.gc-artwork-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 15px !important;
  overflow: hidden;
  background: #eeede6;
  cursor: zoom-in;
}

.gc-artwork-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms ease;
}

.gc-artwork-card:hover .gc-artwork-image img {
  transform: scale(1.035);
}

.gc-artwork-title {
  margin: 0 0 7px;
  font-family: var(--gc-serif);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.gc-artwork-dimensions,
.gc-artwork-medium,
.gc-artwork-status {
  margin: 4px 0 0;
  color: #66685f;
  font-size: 10px;
  line-height: 1.55;
}

.gc-artwork-status {
  margin-top: 10px;
  color: var(--gc-moss);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Endnote & enquiry block */
.gc-story-endnote {
  margin: 78px 0 0 !important;
  padding-top: 28px;
  border-top: 1px solid var(--gc-line);
}

.gc-archive-note {
  max-width: 680px;
  margin: 0;
  color: #77796f;
  font-size: 11px;
  line-height: 1.6;
}

.gc-enquiry-title {
  margin: 28px 0 6px;
  font-family: var(--gc-serif);
  font-size: 32px;
  font-weight: 400;
}

.gc-enquiry-copy {
  margin: 0 0 16px;
  color: #55574f;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. Fullscreen Artwork Lightbox Viewer
   -------------------------------------------------------------------------- */

.gc-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px clamp(14px, 3vw, 44px) 22px;
  background: #171815;
  color: #f7f6f0;
}

.gc-lightbox-header,
.gc-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gc-lightbox-header {
  min-height: 44px;
}

.gc-lightbox-brand {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gc-lightbox-count {
  color: rgba(247, 246, 240, 0.64);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.gc-lightbox-close,
.gc-lightbox-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 246, 240, 0.34);
  border-radius: 50%;
  background: transparent;
  color: #f7f6f0;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.gc-lightbox-close:hover,
.gc-lightbox-arrow:hover {
  background: #f7f6f0;
  color: #171815;
}

.gc-lightbox-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  touch-action: pan-y;
}

.gc-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.gc-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 165px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gc-lightbox-caption {
  align-self: end;
  padding: 10px 0 0;
  color: rgba(247, 246, 240, 0.72);
  font-family: var(--gc-serif);
  font-size: clamp(17px, 2vw, 25px);
  text-align: center;
}

.gc-lightbox-footer {
  min-height: 38px;
  color: rgba(247, 246, 240, 0.55);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.gc-lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Standard Pages (About, Contact, 404) & Footer
   -------------------------------------------------------------------------- */

.gc-page-main {
  min-height: 65vh;
  margin: 0 auto !important;
  padding: clamp(130px, 14vw, 205px) 24px 120px;
}

.gc-page-title {
  margin: 0 0 42px;
  font-family: var(--gc-serif);
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.gc-about-block,
.gc-contact-block {
  max-width: 760px;
  margin: 0 auto !important;
  padding: clamp(35px, 7vw, 86px);
  background: #eeede6;
}

.gc-about-block .gc-eyebrow,
.gc-contact-block .gc-eyebrow {
  color: var(--gc-moss);
}

.gc-about-copy,
.gc-contact-copy {
  color: #53554d;
  font-size: 16px;
  line-height: 1.9;
}

.gc-error-page {
  min-height: 60vh;
  margin: 0 auto !important;
  padding: 170px 24px 120px;
}

.gc-error-title {
  margin: 0 0 25px;
  font-size: clamp(46px, 7vw, 86px);
}

/* Site footer (standard & compact front-page bar) */
.gc-site-footer-inner {
  display: flex;
  align-items: center;
  gap: 15px 28px;
  width: 100%;
  margin: 0 !important;
  padding: 31px clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--gc-line);
}

.gc-footer-brand {
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gc-footer-note,
.gc-footer-contact,
.gc-footer-copyright {
  margin: 0 !important;
  color: #73756d;
  font-size: 10px;
}

.gc-footer-contact a {
  text-decoration: none;
}

.gc-footer-copyright {
  margin-left: auto !important;
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-footer-inner {
  min-height: var(--gc-home-footer-height);
  flex-wrap: nowrap !important;
  gap: 12px 24px;
  padding: 10px clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--gc-hero-outline);
  color: var(--gc-hero-ink);
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-note {
  display: none;
}

body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-contact,
body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-copyright {
  color: var(--gc-hero-muted);
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints & Accessibility
   -------------------------------------------------------------------------- */

/* Tablet & smaller desktop (<= 900px) */
@media (max-width: 900px) {
  .gc-site-header-inner {
    min-height: 84px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .gc-primary-navigation .wp-block-navigation__container {
    gap: 14px;
  }

  .gc-primary-navigation .wp-block-navigation-item__content {
    font-size: 9px;
  }

  .gc-slide-copy {
    width: min(700px, 82vw);
  }

  .gc-slide-dots {
    gap: 3px;
  }

  .gc-slide-dots .wp-block-button__link {
    min-width: 22px;
  }

  .gc-event-facts,
  .gc-post-artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  /* Header & brand */
  .gc-site-header-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 78px;
    padding: 13px 14px !important;
  }

  .gc-brand {
    gap: 8px;
    flex-shrink: 0;
  }

  .gc-brand-copy {
    flex-shrink: 0;
    min-width: 0;
  }

  .gc-site-title,
  .wp-block-site-title.gc-site-title {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .gc-wordmark-mark {
    width: 20px;
    height: 25px;
  }

  .gc-wordmark-mark .gc-wordmark-bar {
    width: 3px;
  }

  .gc-tagline {
    margin: 3px 0 0 0 !important;
    font-size: clamp(6px, 1.75vw, 7.2px) !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

 .gc-primary-navigation,
  .wp-block-navigation.gc-primary-navigation {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gc-primary-navigation .wp-block-navigation__responsive-container,
  .gc-primary-navigation .wp-block-navigation__responsive-container-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .gc-primary-navigation .wp-block-navigation__container,
  .gc-primary-navigation.items-justified-right .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  .gc-primary-navigation .wp-block-navigation-item {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gc-primary-navigation .wp-block-navigation-item__content {
    display: block;
    padding: 4px 0 !important;
    font-size: clamp(7.5px, 2.15vw, 9px) !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks > header.wp-block-template-part {
    position: absolute;
  }

  .gc-site-title,
  .wp-block-site-title.gc-site-title {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .gc-wordmark-mark {
    width: 20px;
    height: 25px;
  }

  .gc-wordmark-mark .gc-wordmark-bar {
    width: 3px;
  }

  .gc-tagline {
    margin: 3px 0 0 0 !important;
    font-size: clamp(6px, 1.75vw, 7.2px) !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .gc-primary-navigation {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
  }

  .gc-primary-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(5px, 1.5vw, 10px) !important;
  }

  .gc-primary-navigation .wp-block-navigation-item {
    flex-shrink: 0;
  }

  .gc-primary-navigation .wp-block-navigation-item__content {
    padding: 6px 2px !important;
    font-size: clamp(6.5px, 1.85vw, 8px) !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
  }

  .gc-primary-navigation .wp-block-navigation__responsive-container-open {
    padding: 9px;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .wp-site-blocks > header.wp-block-template-part {
    position: absolute;
  }

  /* Stacked mobile hero: artwork in top band, caption below */
  .gc-home-hero {
    min-height: 0;
    height: 100vh;
    height: 100svh;
    background: var(--gc-paper);
  }

  .gc-slide-image {
    top: 80px;
    right: 0;
    bottom: auto;
    left: 0;
    height: 43svh;
    background: var(--gc-paper);
  }

  .gc-slide-image img {
    object-fit: contain;
  }

  .gc-slide-copy {
    top: calc(80px + 43svh + 12px);
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    color: var(--gc-ink);
    text-shadow: none;
  }

  .gc-home-hero .gc-slide-eyebrow,
  .gc-home-hero .gc-slide-credit {
    color: #707269;
  }

  .gc-slide-eyebrow {
    margin-bottom: 9px;
    font-size: 8px;
  }

  .gc-slide-title {
    max-width: 520px;
    color: var(--gc-ink);
    font-size: clamp(37px, 10vw, 58px);
  }

  .gc-slide-credit {
    margin: 9px 0 12px;
    font-size: 8px;
  }

  .gc-slide-cta .wp-block-button__link {
    padding: 10px 12px;
    border-color: rgba(32, 33, 30, 0.28);
    background: transparent;
    color: var(--gc-ink);
    font-size: 8px;
  }

  .gc-slide-controls {
    right: 20px;
    bottom: calc(var(--gc-home-footer-height, 38px) + 8px);
    gap: 5px;
  }

  .gc-slide-controls .wp-block-button__link {
    min-width: 34px;
    padding: 8px 9px;
    background: rgba(244, 243, 238, 0.92);
    color: var(--gc-ink);
    font-size: 8px;
  }

  .gc-slide-dots {
    right: 152px;
    bottom: calc(var(--gc-home-footer-height, 38px) + 16px);
    left: 20px;
    gap: 2px;
    overflow: hidden;
  }

  .gc-slide-dots .wp-block-button__link {
    min-width: 18px;
    padding: 5px 0;
    color: #65675f;
    font-size: 7px;
  }

  .gc-slide-counter {
    right: 20px;
    bottom: 63px;
    color: #77796f;
    font-size: 8px;
  }

  /* Editorial, archive & single views */
  .gc-home-intro,
  .gc-home-featured,
  .gc-archive-main,
  .gc-gallery-single {
    width: min(100% - 36px, 1440px);
  }

  .gc-home-intro {
    padding: 77px 0 70px;
  }

  .gc-home-intro-copy-wrap {
    margin-left: 0;
  }

  .gc-home-intro-title,
  .gc-section-title {
    font-size: clamp(37px, 10vw, 55px);
  }

  .gc-home-intro-copy {
    margin-top: 17px;
    font-size: 15px;
  }

  .gc-home-featured {
    padding-bottom: 90px;
  }

  .gc-featured-grid,
  .gc-story-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .gc-archive-main {
    padding: 116px 0 88px;
  }

  .gc-archive-intro {
    margin-bottom: 42px !important;
  }

  .gc-archive-title,
  .gc-entry-title {
    font-size: clamp(46px, 13vw, 72px);
  }

  .gc-story-grid {
    row-gap: 36px;
  }

  .gc-gallery-single {
    padding: 118px 0 78px;
  }

  .gc-entry-header {
    margin-bottom: 31px !important;
  }

  .gc-entry-featured {
    margin-bottom: 38px !important;
  }

  .gc-event-facts {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 48px !important;
  }

  .gc-event-fact {
    min-height: 96px;
    padding: 14px;
  }

  .gc-event-fact-value {
    font-size: 11px;
  }

  .gc-story-paragraph {
    font-size: 14px;
  }

  .gc-poem-card {
    margin: 45px auto 64px !important;
    padding: 26px 23px;
  }

  .gc-post-artwork-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gc-artwork-image {
    aspect-ratio: 1.1;
  }

  .gc-artwork-title {
    font-size: 23px;
  }

  .gc-story-endnote {
    margin-top: 54px !important;
  }

  /* Footer */
  .gc-site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 27px 21px;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-footer-inner {
    align-items: center;
    flex-direction: row;
    gap: 4px;
    padding: 8px 10px;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-brand {
    font-size: 7px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-contact {
    font-size: 7px;
    white-space: nowrap;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-footer-copyright {
    margin-left: auto;
    font-size: 7px;
    white-space: nowrap;
  }

  .gc-footer-copyright {
    margin-left: 0;
  }

  /* Lightbox */
  .gc-lightbox {
    padding: 11px 10px 14px;
  }

  .gc-lightbox-stage {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 4px;
  }

  .gc-lightbox-arrow,
  .gc-lightbox-close {
    width: 36px;
    height: 36px;
  }

  .gc-lightbox-figure img {
    max-height: calc(100vh - 165px);
  }

  .gc-lightbox-caption {
    font-size: 18px;
  }
}

/* Short landscape viewports (<= 520px height) */
@media (max-height: 520px) and (orientation: landscape) {
  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-home-hero {
    min-height: 0;
  }

  body:is(.home, :has(.gc-front-page-content), :has(.gc-home-hero)) .gc-site-header-inner {
    min-height: 64px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .gc-slide-copy {
    bottom: 74px;
    width: min(700px, 68vw);
  }

  .gc-slide-title {
    font-size: clamp(30px, 5vw, 52px);
  }

  .gc-slide-credit {
    margin: 8px 0 10px;
  }

  .gc-slide-controls {
    bottom: calc(var(--gc-home-footer-height, 38px) + 8px);
  }

  .gc-slide-dots {
    bottom: calc(var(--gc-home-footer-height, 38px) + 10px);
  }

  .gc-slide-counter {
    bottom: 58px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}