/*
Theme Name: Fitzroy Square Garden
Theme URI: https://fitzroysquare.org
Author: Fitzroy Square Frontagers' and Garden Committee
Author URI: https://fitzroysquare.org
Description: A heritage WordPress theme for Fitzroy Square Garden — one of London's finest Georgian squares. Features full Customizer support for colours, fonts, header, footer, images, and layout. Designed to showcase the square's extraordinary history, from Robert Adam's 1794 commission through Virginia Woolf and the Bloomsbury Group to the present day. Compatible with The Events Calendar, WPForms, Members, Rank Math SEO, and Complianz.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitzroy-square
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready
*/

/* ============================================================
   FITZROY SQUARE GARDEN — THEME STYLESHEET
   ============================================================ */

:root {
  --stone:       #F5F0E8;
  --stone-dark:  #EAE3D5;
  --green:       #2D4A3E;
  --green-mid:   #3D6355;
  --green-light: #7A9B8D;
  --gold:        #B8965A;
  --gold-light:  #D4B07A;
  --iron:        #1E1E1E;
  --iron-mid:    #3A3A3A;
  --grey:        #D4CFC6;
  --grey-mid:    #9E9890;
  --white:       #FFFFFF;
  --text-body:   #2C2A25;
  --text-muted:  #6B6760;
  --max-w:       1160px;
  --serif:       'Playfair Display', Georgia, serif;
  --body-serif:  'Source Serif 4', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--stone);
}

/* ── SKIP TO CONTENT ── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--stone);
  padding: .6rem 1.5rem;
  font-family: var(--sans);
  font-size: .85rem;
  z-index: 999;
  border-radius: 0 0 4px 4px;
  transition: top .2s;
}
.skip-to-content:focus {
  top: 0;
  color: var(--stone);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--iron); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

/* ── FOCUS STATES ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--container-padding, 2rem); }
section { position: relative; }

/* ── ORNAMENT DIVIDER ── */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--gold); opacity: .5;
}
.ornament-glyph {
  color: var(--gold); font-family: var(--serif); font-size: 1.2rem; letter-spacing: .15em;
}

/* ── UTILITY ── */
.label-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .2rem .65rem;
  border-radius: 2px;
  margin-bottom: .9rem;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 2rem;
  border-radius: var(--btn-radius, 2px);
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary,
.btn--primary {
  background: var(--green);
  color: var(--stone);
}
.btn-primary:hover,
.btn--primary:hover {
  background: var(--green-mid);
  color: var(--stone);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--stone);
}
.btn-green {
  background: var(--green);
  color: var(--stone);
}
.btn-green:hover {
  background: var(--green-mid);
  color: var(--stone);
}
.btn-outline-light {
  background: transparent;
  color: var(--stone);
  border: 1.5px solid rgba(245,240,232,.3);
}
.btn-outline-light:hover {
  background: rgba(245,240,232,.12);
  border-color: rgba(245,240,232,.5);
  color: var(--stone);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--iron);
}

/* ============================================================
   1. HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg, rgba(45, 74, 62, 0.97));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 150, 90, .3);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled, rgba(30, 30, 30, 0.98));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  text-decoration: none;
}
.site-logo img {
  max-height: 50px;
  width: auto;
}
.logo-main {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: .03em;
  line-height: 1;
}
.logo-sub {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1;
}

/* WordPress nav menu styling */
.site-nav,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .8);
  transition: color .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--gold-light); }
.nav-login,
.site-nav .menu-item-login > a {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(184, 150, 90, .5);
  padding: .4rem .9rem;
  border-radius: 2px;
  transition: all .2s;
}
.nav-login:hover,
.site-nav .menu-item-login > a:hover {
  background: rgba(184, 150, 90, .15);
  color: var(--gold-light);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--stone); border-radius: 1px;
  transition: all .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(4.5px) translateX(4.5px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-4.5px) translateX(4.5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 74, 62, 0.98);
  z-index: 99;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-nav.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.mobile-nav li { margin-bottom: 1.5rem; }
.mobile-nav a {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .8);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--gold-light); }

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg-gradient {
  background: linear-gradient(
    160deg,
    #1a2e28 0%,
    #2D4A3E 35%,
    #3D5E4F 55%,
    #4A7260 70%,
    #3D5E4F 85%,
    #2D4A3E 100%
  );
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 28, 24, .92) 0%,
    rgba(18, 28, 24, .60) 35%,
    rgba(18, 28, 24, .25) 65%,
    rgba(18, 28, 24, .08) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.7);
}
.hero-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  color: var(--stone);
  font-style: italic;
  margin-bottom: .5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub {
  font-family: var(--body-serif);
  font-size: 1.15rem;
  color: rgba(245, 240, 232, .75);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(184,150,90,.6));
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(184,150,90,.6);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* Heritage factoids strip */
.hero-facts {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(30, 30, 30, .75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(184, 150, 90, .2);
}
.hero-facts-inner {
  display: flex;
  align-items: stretch;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.fact-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(184, 150, 90, .15);
}
.fact-item:last-child { border-right: none; }
.fact-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: .2rem;
}
.fact-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .5);
}

/* ============================================================
   3. WELCOME / INTRO SECTION
   ============================================================ */
.intro {
  padding: 6rem 0;
  background: var(--stone);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-text .label-tag { color: var(--green); border-color: var(--green); }
.intro-text h2 { color: var(--green); margin-bottom: 1.2rem; }
.intro-text p { color: var(--text-muted); font-size: 1.05rem; }
.intro-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: .5rem;
  border-bottom: 1px solid rgba(45,74,62,.3);
  padding-bottom: .1rem;
  transition: gap .2s, border-color .2s;
}
.intro-link:hover { gap: .8rem; border-color: var(--green); color: var(--green); }
.intro-link::after { content: '\2192'; }
.intro-image { position: relative; }
.intro-img-frame {
  aspect-ratio: 4/5;
  background: var(--green-mid);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.intro-img-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.intro-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2D4A3E 0%, #4A7260 50%, #3D6355 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-img-placeholder span {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(245,240,232,.3);
  letter-spacing: .2em;
}
.intro-img-caption {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--stone);
  border: 1px solid var(--grey);
  padding: .9rem 1.2rem;
  width: 200px;
}
.img-cap-year {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.img-cap-text {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: .2rem;
}

/* ============================================================
   4. OPENING TIMES / VISIT BANNER
   ============================================================ */
.visit-banner {
  background: var(--green);
  padding: 3.5rem 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.visit-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.visit-banner h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .04em;
  margin-bottom: .3rem;
}
.visit-banner p {
  color: rgba(245,240,232,.8);
  font-size: .95rem;
  margin: 0;
  font-family: var(--sans);
}
.visit-stat {
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(184,150,90,.25);
}
.visit-stat:last-of-type { border-right: none; }
.visit-stat-val {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.visit-stat-key {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,240,232,.5);
  margin-top: .2rem;
}
.visit-cta { flex-shrink: 0; }

/* ============================================================
   5. HISTORY HIGHLIGHTS
   ============================================================ */
.history {
  padding: 6rem 0;
  background: var(--white);
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-header .label-tag { margin-bottom: .8rem; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p { color: var(--text-muted); }
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--grey);
}
.history-card {
  background: var(--white);
  padding: 2.2rem 2rem;
  position: relative;
  transition: transform .2s;
}
.history-card:hover { transform: translateY(-3px); z-index: 1; box-shadow: 0 8px 30px rgba(30,30,30,.08); }
.history-date {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1;
  margin-bottom: .4rem;
}
.history-card h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: .5rem;
}
.history-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.history-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height .3s;
}
.history-card:hover .history-card-accent { height: 100%; }

/* ============================================================
   6. EVENTS SECTION
   ============================================================ */
.events {
  padding: 6rem 0;
  background: var(--stone-dark);
}
.events-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.events-list { display: flex; flex-direction: column; gap: 1px; background: var(--grey); }
.event-card {
  background: var(--stone);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 1.6rem;
  transition: background .2s;
  cursor: pointer;
  text-decoration: none;
}
.event-card:hover { background: var(--white); }
.event-date-block {
  text-align: center;
  background: var(--green);
  padding: .5rem .3rem;
  border-radius: 2px;
}
.event-day {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1;
}
.event-month {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .1rem;
}
.event-info h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--iron);
  margin-bottom: .2rem;
}
.event-info p {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}
.event-arrow {
  color: var(--grey-mid);
  font-size: 1.1rem;
  transition: color .2s, transform .2s;
}
.event-card:hover .event-arrow { color: var(--gold); transform: translateX(3px); }
.events-sidebar h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: .5rem;
}
.events-sidebar p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  font-family: var(--body-serif);
  font-size: .95rem;
  padding: .75rem 1rem;
  border: 1px solid var(--grey);
  background: var(--white);
  color: var(--text-body);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--green); }
.newsletter-form input::placeholder { color: var(--grey-mid); }

/* ============================================================
   7. GALLERY STRIP
   ============================================================ */
.gallery-strip {
  padding: 5rem 0;
  background: var(--iron);
  overflow: hidden;
}
.gallery-strip .section-header { margin-bottom: 2.5rem; }
.gallery-strip .section-header h2 { color: var(--stone); }
.gallery-strip .section-header p { color: rgba(245,240,232,.5); }
.gallery-strip .label-tag,
.label-tag--light { color: var(--gold-light); border-color: var(--gold-light); }
.section-header--gallery { text-align: left; max-width: none; margin-bottom: 2.5rem; }
.gc-6 { background: linear-gradient(135deg, #4A6355 0%, #2D4A3E 100%); }
.gc-7 { background: linear-gradient(135deg, #6A8A7A 0%, #4A6355 100%); }
.gc-8 { background: linear-gradient(135deg, #3A5A4A 0%, #2D4A3E 100%); }
.gallery-page-content {
  padding: 3rem 0;
  background: var(--iron);
  color: rgba(245,240,232,.8);
}
.gallery-grid {
  display: grid;
  gap: 3px;
  /* Default: uniform 3-column grid */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
}
/* Bento hero variant (default 3-col) — first cell spans 2 rows */
.gallery-grid--cols-3 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
}
.gallery-grid--cols-3 .gallery-cell:first-child { grid-row: 1 / 3; }
/* Equal-column variants */
.gallery-grid--cols-1 { grid-template-columns: 1fr; grid-auto-rows: 360px; }
.gallery-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-cell {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-cell-bg {
  width: 100%; height: 100%;
  transition: transform .5s ease;
  background-size: cover;
  background-position: center;
}
.gallery-cell:hover .gallery-cell-bg { transform: scale(1.04); }
.gc-1 { background: linear-gradient(135deg, #3D6355 0%, #2D4A3E 100%); }
.gc-2 { background: linear-gradient(135deg, #4A7260 0%, #3D5E4F 100%); }
.gc-3 { background: linear-gradient(135deg, #B8965A 0%, #8A6D3A 100%); }
.gc-4 { background: linear-gradient(135deg, #5A7E70 0%, #3D6355 100%); }
.gc-5 { background: linear-gradient(135deg, #2D4A3E 0%, #1a2e28 100%); }
.gallery-cell-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(18,28,24,.4);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }
.gallery-cell-overlay span {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid rgba(245,240,232,.5);
  padding: .4rem .8rem;
}
.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   8. FAMOUS RESIDENTS
   ============================================================ */
.residents {
  padding: 6rem 0;
  background: var(--stone);
}
.residents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.resident-card {
  border-top: 2px solid var(--grey);
  padding-top: 1.4rem;
  transition: border-color .25s;
}
.resident-card:hover { border-color: var(--gold); }
.resident-num {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: .6rem;
}
.resident-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .15rem;
  line-height: 1.2;
}
.resident-dates {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.resident-desc {
  font-family: var(--body-serif);
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   9. COMMITTEE / FRONTAGERS CTA
   ============================================================ */
.committee-cta {
  background: var(--green);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.committee-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(184,150,90,.1);
  pointer-events: none;
}
.committee-cta::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(184,150,90,.08);
  pointer-events: none;
}
.committee-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}
.committee-text .label-tag {
  color: var(--gold-light);
  border-color: rgba(184,150,90,.4);
}
.committee-text h2 {
  color: var(--stone);
  margin-bottom: .8rem;
}
.committee-text p {
  color: rgba(245,240,232,.7);
  font-size: 1rem;
  margin: 0;
  max-width: 520px;
}
.committee-actions { display: flex; gap: 1rem; flex-direction: column; align-items: flex-end; }

/* ============================================================
   10. FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg, var(--iron));
  color: var(--footer-text, rgba(245,240,232,.65));
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: var(--footer-grid-cols, 2fr 1fr 1fr 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-main { color: var(--stone); font-size: 1.3rem; }
.footer-brand .logo-sub { color: var(--gold-light); margin-bottom: 1rem; display: block; }
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(245,240,232,.5);
  margin-bottom: 1.2rem;
}
.footer-heading {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-links,
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.footer-links a,
.footer-links li a {
  font-family: var(--sans);
  font-size: .85rem;
  color: rgba(245,240,232,.5);
  transition: color .2s;
}
.footer-links a:hover,
.footer-links li a:hover { color: var(--gold-light); }
.footer-address {
  font-family: var(--sans);
  font-size: .85rem;
  line-height: 1.8;
  color: rgba(245,240,232,.5);
  font-style: normal;
}
.footer-social {
  display: flex;
  gap: .8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.footer-social a {
  font-family: var(--sans);
  font-size: .8rem;
  color: rgba(245,240,232,.5);
  transition: color .2s;
}
.footer-social a:hover { color: var(--gold-light); }

.footer-social-btn {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .05em;
  color: rgba(245,240,232,.4);
  border: 1px solid rgba(245,240,232,.18);
  padding: .3rem .8rem;
  border-radius: var(--btn-radius, 2px);
  transition: color .2s, border-color .2s;
  text-decoration: none;
  display: inline-block;
}
.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  color: var(--gold-light);
  border-color: rgba(184,150,90,.4);
}
.footer-social-btn--static {
  pointer-events: none;
  cursor: default;
}
.footer-address a {
  color: rgba(245,240,232,.5);
  transition: color .2s;
}
.footer-address a:hover { color: var(--gold-light); }
.footer-tube p {
  font-family: var(--sans);
  font-size: .82rem;
  color: rgba(245,240,232,.5);
  line-height: 1.8;
  margin: 0;
}
.footer-logo-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--sans);
  font-size: .75rem;
  color: rgba(245,240,232,.3);
  letter-spacing: .05em;
}
.footer-legal {
  display: flex; gap: 1.5rem; list-style: none;
  margin: 0; padding: 0;
}
.footer-legal a {
  font-family: var(--sans);
  font-size: .72rem;
  color: rgba(245,240,232,.3);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 1rem 0;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.breadcrumbs-item { display: flex; align-items: center; }
.breadcrumbs-item--current { color: var(--text-muted); }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .separator,
.breadcrumbs-list .separator { color: var(--gold); margin: 0 .4rem; }

/* ── GALLERY LIGHTBOX BUTTON ── */
.gallery-lightbox-btn {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

/* ── LIGHTBOX ── */
#fitzroy-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#fitzroy-lightbox.lb-active {
  opacity: 1;
  pointer-events: all;
}
.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid rgba(184,150,90,.3);
}
.lb-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: transparent;
  border: none;
  color: rgba(245,240,232,.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
  padding: 0;
}
.lb-close:hover { color: var(--gold-light); }
.lb-caption {
  font-family: var(--sans);
  font-size: .85rem;
  color: rgba(245,240,232,.6);
  text-align: center;
  margin: 0;
}

/* ============================================================
   PAGE TEMPLATES — INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--green);
  padding: 8rem 0 4rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--stone);
  margin-bottom: .5rem;
}
.page-hero p {
  color: rgba(245,240,232,.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-content {
  padding: 4rem 0;
  background: var(--stone);
}
.page-content .container {
  max-width: var(--content-max-w, 800px);
}
/* Wide variant for post-list/search pages that need full container width */
.page-content--wide .container {
  max-width: var(--max-w, 1160px);
}
.page-content h2 {
  color: var(--green);
  margin: 2.5rem 0 1rem;
}
.page-content h3 {
  color: var(--green);
  margin: 2rem 0 .8rem;
}
.page-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.page-content ul,
.page-content ol {
  color: var(--text-muted);
  margin: 0 0 1.5rem 1.5rem;
  font-size: 1.05rem;
}
.page-content li { margin-bottom: .5rem; }
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.page-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Content cards for inner pages */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.content-card {
  background: var(--white);
  border: 1px solid var(--grey);
  padding: 2rem;
  border-radius: 2px;
  transition: box-shadow .2s;
}
.content-card:hover {
  box-shadow: 0 4px 20px rgba(30,30,30,.06);
}
.content-card h3 { color: var(--green); margin-bottom: .5rem; }
.content-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Info grid for visit page */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}
.info-block h3 {
  color: var(--green);
  margin-bottom: .8rem;
  font-size: 1.2rem;
}

/* Map embed */
.map-embed {
  width: 100%;
  height: 400px;
  border: 1px solid var(--grey);
  border-radius: 2px;
  margin: 2rem 0;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery page */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-page-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.gallery-page-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-page-item:hover img { transform: scale(1.05); }

/* Contact form wrapper */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--grey);
  padding: 2.5rem;
  border-radius: 2px;
  margin: 2rem 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: .3;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.45rem;
  top: .4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .3rem;
}
.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: .3rem;
}
.timeline-item p {
  font-size: .95rem;
  margin: 0;
}

/* Partner links */
.partner-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--green);
  border: 1px solid var(--grey);
  padding: .6rem 1.2rem;
  border-radius: 2px;
  transition: all .2s;
}
.partner-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   BLOG / POST STYLES
   ============================================================ */
.post-list { margin: 2rem 0; }
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey);
  align-items: start;
}
.post-card:first-child { padding-top: 0; }
.post-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--grey);
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-card-meta {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.post-card h3 { margin-bottom: .5rem; }
.post-card h3 a { color: var(--green); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: .95rem; color: var(--text-muted); margin: 0; }
/* When no thumbnail is present, content spans the full card width */
.post-card-content:only-child { grid-column: 1 / -1; }

/* Single post */
.single-post-header { text-align: center; margin-bottom: 2rem; }
.single-post-meta {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  margin-top: .5rem;
}

/* Search results */
.search-header {
  background: var(--green);
  padding: 8rem 0 3rem;
  text-align: center;
}
.search-header h1 { color: var(--stone); }
.search-form-large {
  max-width: 500px;
  margin: 1.5rem auto 0;
  display: flex;
  gap: .5rem;
}
.search-form-large input[type="search"] {
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid rgba(245,240,232,.3);
  background: rgba(245,240,232,.1);
  color: var(--stone);
  font-family: var(--body-serif);
  font-size: .95rem;
  border-radius: 2px;
}
.search-form-large input[type="search"]::placeholder { color: rgba(245,240,232,.4); }

/* 404 page */
.error-404 {
  text-align: center;
  padding: 10rem 0 6rem;
  background: var(--stone);
}
.error-404 h1 {
  font-size: 6rem;
  color: var(--grey);
  margin-bottom: 1rem;
}
.error-404 h2 {
  color: var(--green);
  margin-bottom: 1rem;
}
.error-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey);
}
.comment-list {
  list-style: none;
  margin: 0; padding: 0;
}
.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey);
}
.comment-meta {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.comment-author { font-weight: 500; color: var(--green); }
.comment-content p { font-size: .95rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text-body);
  display: block;
  margin-bottom: .3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--grey);
  background: var(--white);
  font-family: var(--body-serif);
  font-size: .95rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .submit { margin-top: .5rem; }

/* Sidebar / Widgets */
.widget-area { margin-top: 2rem; }
.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 2px;
}
.widget-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--grey);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(212,207,198,.5);
}
.widget li:last-child { border-bottom: none; }
.widget a {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text-muted);
}
.widget a:hover { color: var(--gold); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 3rem 0;
  font-family: var(--sans);
  font-size: .85rem;
}
.pagination .page-numbers {
  padding: .4rem .8rem;
  border: 1px solid var(--grey);
  border-radius: 2px;
  color: var(--text-muted);
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--green);
  color: var(--stone);
  border-color: var(--green);
}

/* ============================================================
   THE EVENTS CALENDAR OVERRIDES
   ============================================================ */
.tribe-events {
  font-family: var(--body-serif) !important;
}
.tribe-events .tribe-events-calendar-month__header-column h3,
.tribe-events .tribe-events-header__title {
  font-family: var(--serif) !important;
  color: var(--green) !important;
}
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date {
  background: var(--green) !important;
  color: var(--stone) !important;
}
.tribe-events .tribe-events-c-small-cta__link {
  color: var(--gold) !important;
}
.tribe-events .tribe-events-c-small-cta__link:hover {
  color: var(--green) !important;
}
.tribe-events .tribe-events-calendar-list__event-title a {
  color: var(--green) !important;
  font-family: var(--serif) !important;
}
.tribe-events .tribe-events-calendar-list__event-title a:hover {
  color: var(--gold) !important;
}
.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__prev {
  color: var(--green) !important;
}
.tribe-common .tribe-common-c-btn-border,
.tribe-common a.tribe-common-c-btn-border {
  border-color: var(--green) !important;
  color: var(--green) !important;
}
.tribe-common .tribe-common-c-btn-border:hover,
.tribe-common a.tribe-common-c-btn-border:hover {
  background: var(--green) !important;
  color: var(--stone) !important;
}

/* ============================================================
   WPFORMS OVERRIDES
   ============================================================ */
.wpforms-container .wpforms-form .wpforms-field-label {
  font-family: var(--sans);
  color: var(--text-body);
}
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form textarea,
.wpforms-container .wpforms-form select {
  border: 1px solid var(--grey);
  border-radius: 2px;
  font-family: var(--body-serif);
}
.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--green);
}
.wpforms-container .wpforms-form .wpforms-submit {
  background: var(--green) !important;
  color: var(--stone) !important;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none !important;
  padding: .8rem 2rem;
  border-radius: 2px;
}
.wpforms-container .wpforms-form .wpforms-submit:hover {
  background: var(--green-mid) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .history-grid { grid-template-columns: 1fr 1fr; }
  .residents-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .events-layout { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 160px 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image { display: none; }
  .history-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-cell:first-child { grid-row: auto; }
  .residents-grid { grid-template-columns: 1fr 1fr; }
  .committee-inner { grid-template-columns: 1fr; }
  .committee-actions { flex-direction: row; align-items: flex-start; }
  .visit-banner-inner { flex-direction: column; text-align: center; }
  .hero-facts-inner { flex-wrap: wrap; }
  .fact-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(184,150,90,.1); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { max-height: 200px; }
  .gallery-page-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 480px) {
  .hero-content { padding: 0 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .fact-item { flex: 0 0 100%; }
  .residents-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .committee-actions { flex-direction: column; gap: .75rem; }
  .committee-actions .btn { width: 100%; text-align: center; }
  .newsletter-form { flex-direction: column; }
}

/* ── SCREEN READER TEXT ── */
.screen-reader-text,
.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--stone);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--green);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WordPress defaults */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .4rem;
}
.sticky .post-card { border-left: 3px solid var(--gold); padding-left: 1rem; }
.gallery-caption { font-size: .85rem; }
.bypostauthor { /* Required by WordPress */ }

/* ============================================================
   HEADER STICKY TOGGLE — Customizer: fitzroy_header_sticky
   When disabled, header scrolls with the page instead of staying fixed.
   ============================================================ */
.header-static .site-header {
  position: relative;
  top: auto;
}
body.header-static {
  padding-top: 0 !important;
}

/* ============================================================
   SIDEBAR LAYOUT — Customizer: fitzroy_layout_sidebar (left|right|none)
   ============================================================ */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.layout-with-sidebar.layout-sidebar-left {
  grid-template-columns: 300px 1fr;
}
.layout-with-sidebar.layout-sidebar-left .layout-sidebar {
  order: -1;
}
.layout-sidebar {
  position: sticky;
  top: 90px;
}
.layout-sidebar .widget {
  margin-bottom: 2.5rem;
}
.layout-sidebar .widget-title,
.layout-sidebar .widgettitle {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--grey);
  margin-bottom: 1rem;
}
.layout-fullwidth { display: block; }

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .layout-sidebar {
    position: static;
    order: 1;
  }
}

/* ============================================================
   SEARCH RESULTS GRID — Customizer: fitzroy_search_layout = grid
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.post-grid .post-card {
  display: block;
  padding: 0;
  border-bottom: none;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.post-grid .post-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
}
.post-grid .post-card-content {
  padding: 1.25rem;
}

.no-results {
  text-align: center;
  padding: 4rem 0;
}
.no-results h2 {
  margin-bottom: 1rem;
}
.no-results .search-form {
  max-width: 480px;
  margin: 1.5rem auto 0;
}

/* ============================================================
   SINGLE POST — additional structural classes
   ============================================================ */
.single-post-thumb {
  margin-bottom: 2rem;
  border-radius: 4px;
  overflow: hidden;
}
.single-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey);
}
.post-tags {
  margin-bottom: 1rem;
}

/* ============================================================
   CONTACT PAGE — address and map
   ============================================================ */
.contact-address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.tube-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.tube-list li {
  padding: .3rem 0;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: .9rem;
}
.map-embed {
  margin-top: 2rem;
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 4px;
  display: block;
}
.map-credit {
  margin-top: .5rem;
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--text-muted);
}
.map-credit a {
  color: var(--text-muted);
  text-decoration: underline;
}
.map-credit a:hover { color: var(--green); }

/* ============================================================
   SOCIAL ICONS — SVG icon buttons in footer
   ============================================================ */
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  transition: border-color .2s, color .2s, background-color .2s;
  text-decoration: none;
}
.footer-social-btn:hover {
  border-color: var(--gold, #B8965A);
  color: var(--gold, #B8965A);
  background-color: rgba(255,255,255,0.05);
}
.footer-social-btn--static {
  cursor: default;
  pointer-events: none;
  opacity: .45;
}

/* ============================================================
   NEWSLETTER SECTION — News & Events page
   ============================================================ */
.newsletter-section {
  background: var(--green, #2D4A3E);
  padding: 4rem 0;
  margin-top: 3rem;
}
.newsletter-section .container {
  max-width: var(--max-w, 1160px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 2rem);
}
.newsletter-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-heading {
  font-family: var(--serif);
  color: var(--stone, #F5F0E8);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.newsletter-desc {
  color: rgba(245, 240, 232, 0.8);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.newsletter-fields {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-input {
  flex: 1 1 260px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--btn-radius, 2px);
  background: rgba(255,255,255,0.1);
  color: var(--stone, #F5F0E8);
  font-family: var(--sans);
  font-size: .95rem;
}
.newsletter-input::placeholder { color: rgba(245,240,232,0.5); }
.newsletter-input:focus {
  outline: 2px solid var(--gold, #B8965A);
  outline-offset: 2px;
  background: rgba(255,255,255,0.15);
}
.newsletter-submit {
  flex-shrink: 0;
  padding: .65rem 1.75rem;
  background: var(--gold, #B8965A);
  color: var(--iron, #1E1E1E);
  border: none;
  border-radius: var(--btn-radius, 2px);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color .2s;
}
.newsletter-submit:hover { background: var(--gold-light, #D4B07A); }
.newsletter-privacy {
  margin-top: 1rem;
  color: rgba(245,240,232,0.5);
}

/* ============================================================
   MOBILE SEARCH FORM — in mobile nav drawer
   ============================================================ */
.mobile-search-form {
  display: flex;
  gap: .5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: .5rem;
}
.mobile-search-input {
  flex: 1;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  color: var(--stone, #F5F0E8);
  font-family: var(--sans);
  font-size: .9rem;
}
.mobile-search-input::placeholder { color: rgba(245,240,232,0.5); }
.mobile-search-submit {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  padding: .55rem .7rem;
  cursor: pointer;
  color: var(--stone, #F5F0E8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-search-submit svg {
  width: 16px;
  height: 16px;
}
.mobile-search-submit:hover { border-color: var(--gold, #B8965A); color: var(--gold, #B8965A); }

/* ============================================================
   GALLERY FILTER TABS
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.gallery-filter-btn {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border: 1px solid var(--grey, #D4CFC6);
  border-radius: 2px;
  background: transparent;
  color: var(--iron, #1E1E1E);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.gallery-filter-btn:hover {
  border-color: var(--green, #2D4A3E);
  color: var(--green, #2D4A3E);
}
.gallery-filter-btn.active,
.gallery-filter-btn[aria-pressed="true"] {
  background: var(--green, #2D4A3E);
  border-color: var(--green, #2D4A3E);
  color: var(--stone, #F5F0E8);
}

/* ============================================================
   HEADER NAVIGATION STYLE VARIANTS
   ============================================================ */
/* Minimal: hide the tagline */
.nav-style-minimal .logo-sub {
  display: none;
}

/* Centred: logo block above nav, centred */
@media (min-width: 901px) {
  .nav-style-centered .header-inner {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
  }
  .nav-style-centered .site-logo {
    text-align: center;
  }
  .nav-style-centered .site-nav {
    justify-content: center;
  }
}

/* ============================================================
   GUTENBERG / BLOCK EDITOR — FRONTEND BLOCK STYLES
   Matches theme aesthetic for all key block types
   ============================================================ */

/* Buttons */
.wp-block-button__link {
  background-color: var(--green, #2D4A3E);
  color: var(--stone, #F5F0E8);
  border-radius: var(--btn-radius, 2px);
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border: none;
  transition: background-color .25s;
}
.wp-block-button__link:hover {
  background-color: var(--green-mid, #3D6355);
  color: var(--stone, #F5F0E8);
}
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--green, #2D4A3E);
  border: 1.5px solid var(--green, #2D4A3E);
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--green, #2D4A3E);
  color: var(--stone, #F5F0E8);
}

/* Blockquote / Pullquote */
.wp-block-quote {
  border-left: 3px solid var(--gold, #B8965A);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}
.wp-block-quote p {
  font-family: var(--body-serif, 'Source Serif 4', Georgia, serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--iron, #1E1E1E);
  margin-bottom: .5rem;
}
.wp-block-quote cite {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text-muted, #6C6C6C);
  font-style: normal;
}
.wp-block-pullquote {
  border-top: 2px solid var(--gold, #B8965A);
  border-bottom: 2px solid var(--gold, #B8965A);
  padding: 1.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.wp-block-pullquote blockquote {
  margin: 0;
}
.wp-block-pullquote p {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--green, #2D4A3E);
}

/* Lists */
.wp-block-list,
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.wp-block-list li,
.entry-content li {
  margin-bottom: .4rem;
  line-height: 1.7;
}
.entry-content ul > li::marker { color: var(--gold, #B8965A); }

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--grey, #D4CFC6);
  margin: 2rem 0;
}
.wp-block-separator.is-style-wide {
  border-top-color: var(--gold, #B8965A);
  border-top-width: 2px;
}

/* Heading blocks */
.wp-block-heading {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--green, #2D4A3E);
}

/* Cover block */
.wp-block-cover {
  min-height: 300px;
  border-radius: 4px;
  overflow: hidden;
}
.wp-block-cover__inner-container {
  font-family: var(--serif);
}

/* Table */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .9rem;
}
.wp-block-table td,
.wp-block-table th {
  padding: .6rem .9rem;
  border: 1px solid var(--grey, #D4CFC6);
  text-align: left;
}
.wp-block-table thead th {
  background: var(--green, #2D4A3E);
  color: var(--stone, #F5F0E8);
  font-weight: 500;
}
.wp-block-table tr:nth-child(even) td { background: rgba(212,207,198,0.25); }

/* Image captions */
.wp-block-image figcaption,
.wp-element-caption {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--text-muted, #6C6C6C);
  text-align: center;
  margin-top: .5rem;
}

/* Columns block */
.wp-block-columns {
  gap: 2rem;
}
