/*
Theme Name: Lori Wakefield
Theme URI: https://loriwakefield.art
Author: Custom build
Author URI: https://loriwakefield.art
Description: Minimal, image-first portfolio theme for fine artist Lori Wakefield. Inspired by jamesjean.com — full-bleed imagery, serif typography, generous whitespace, grid-based gallery archive. Includes custom post types for Artworks, Collections, Exhibitions, and Press.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lori-wakefield
Tags: portfolio, art, custom-menu, custom-logo, featured-images, post-formats, threaded-comments, translation-ready
*/

/* =========================================================
   Lori Wakefield — Fine Artist Portfolio
   Aesthetic: minimal, image-first, serif headlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #f4f1ec;
  --bg-alt: #ebe6dd;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8479;
  --rule: #d8d2c5;
  --accent: #6b5840;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max: 1400px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .6; }

/* WP-required classes */
.alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.95em; margin-top: .5rem;
}
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.sticky, .bypostauthor { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.brand {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 101;
  position: relative;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  z-index: 100;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > ul > li {
  list-style: none;
  position: relative;
}

.nav a {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  position: relative;
}

.nav .current-menu-item > a::after,
.nav .current_page_item > a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink);
}

/* Desktop dropdowns */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 200;
}

.nav > ul > li:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333333;
  white-space: normal;
}

.nav-dropdown li a:hover {
  color: var(--ink);
}

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 22px; position: relative; z-index: 101;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink); transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { bottom: 4px; }

/* ----- media nav ------ */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 5rem;
  }

  body.menu-open .nav { transform: translateX(0); }

  .nav > ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav > ul > li {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    position: static;
  }

  .nav > ul > li > a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 15px;
    color: #000000;
    background: #ffffff;
    white-space: normal;
  }

  .nav-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    background: #e0e0e0;
    padding: 0;
    margin: 0;
    min-width: unset;
    width: 100%;
    z-index: auto;
  }

  .nav-dropdown li {
    width: 100%;
  }

  .nav-dropdown li a {
    display: block;
    padding: 0.65rem 2.5rem;
    font-size: 15px;
    color: #000000;
    background: #e0e0e0;
    white-space: normal;
    letter-spacing: 0.15em;
  }

  .nav-dropdown li a:hover {
    color: #000000;
    background: #cccccc;
  }

  .nav-social { display: none; }

  .nav-toggle {
    z-index: 10000;
    position: relative;
  }

  .nav-toggle span {
    background: #000000;
  }

  body.menu-open .nav-toggle span { background: #000000; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  width: 100%; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
}
.hero-caption {
  position: relative; z-index: 2;
  padding: 0 var(--pad) 3rem;
  color: #f4f1ec; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
}
.hero-caption h1 { color: #fff; font-style: italic; font-weight: 300; max-width: 14ch; }
.hero-caption .meta {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.85;
}

/* ---------- Sections ---------- */
section, .section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.container { max-width: var(--max); margin: 0 auto; }
.container.narrow { max-width: 760px; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem;
}
.section-head .right {
  text-align: right; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- Featured Work Grid (Home) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.featured-grid .item { position: relative; overflow: hidden; cursor: pointer; }
.featured-grid .item img,
.featured-grid .item .img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.featured-grid .item:hover .img,
.featured-grid .item:hover img { transform: scale(1.04); }
.featured-grid .item .img {
  background-size: cover; background-position: center;
  aspect-ratio: 4 / 5;
}
.featured-grid .item.lg { grid-column: span 8; }
.featured-grid .item.md { grid-column: span 6; }
.featured-grid .item.sm { grid-column: span 4; }
.featured-grid .item.full { grid-column: span 12; }
.featured-grid .item.full .img { aspect-ratio: 16 / 8; }
.featured-grid .caption {
  margin-top: .9rem;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft);
}
.featured-grid .caption .title {
  font-family: var(--serif);
  font-size: 1.05rem; font-style: italic;
  color: var(--ink); letter-spacing: 0;
}
@media (max-width: 820px) {
  .featured-grid .item.lg,
  .featured-grid .item.md,
  .featured-grid .item.sm { grid-column: span 12; }
}

/* ---------- Archive grid ---------- */
.archive-filter {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.archive-filter a, .archive-filter button {
  background: none; border: none;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer;
  color: var(--ink-mute); padding: .25rem 0;
  transition: color .2s;
}
.archive-filter a.active,
.archive-filter button.active,
.archive-filter a:hover,
.archive-filter button:hover { color: var(--ink); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2vw, 2.25rem);
}
.archive-grid figure { cursor: pointer; }
.archive-grid .img {
  width: 100%; aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.archive-grid figure:hover .img { transform: scale(1.03); }
.archive-grid figcaption {
  margin-top: .8rem;
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em;
}
.archive-grid figcaption .title {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink);
  display: block; margin-bottom: 2px;
}

/* ---------- Single artwork ---------- */
.artwork-single {
  padding: 9rem var(--pad) 6rem;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}
.artwork-single .image img { width: 100%; height: auto; display: block; }
.artwork-single .meta-block { position: sticky; top: 6rem; }
.artwork-single h1 {
  font-style: italic; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem;
}
.artwork-single .meta-row {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem;
  font-size: 14px;
}
.artwork-single .meta-row .label {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
}
.artwork-single .meta-row .value { color: var(--ink); }
.artwork-single .description { margin-top: 2rem; color: var(--ink-soft); }
.artwork-single .back {
  margin-top: 2.5rem;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
@media (max-width: 820px) { .artwork-single { grid-template-columns: 1fr; } .artwork-single .meta-block { position: static; } }

/* ---------- Exhibits ---------- */
.exhibits-list {
  display: grid;
  grid-template-columns: 80px 1fr 1fr auto;
  gap: 1.5rem 2rem; align-items: baseline;
}
.exhibits-list .row { display: contents; }
.exhibits-list .row > * {
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.exhibits-list .year {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink-mute);
}
.exhibits-list .title {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.exhibits-list .venue { color: var(--ink-soft); }
.exhibits-list .tag {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
}
@media (max-width: 720px) {
  .exhibits-list { grid-template-columns: 1fr; gap: 0; }
  .exhibits-list .row > * { padding: .35rem 0; border: none; }
  .exhibits-list .row > *:last-child {
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.about-grid .portrait {
  aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  background-color: var(--bg-alt);
}
.about-grid .copy p { margin-bottom: 1.25rem; }
.about-grid .copy p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.5em; line-height: 0.9;
  float: left; padding: 0.1em 0.12em 0 0;
  font-style: italic; color: var(--accent);
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Press ---------- */
.press-list { display: grid; gap: 0; }
.press-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: baseline;
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
  gap: 1.5rem;
}
.press-item .date { font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 1rem; }
.press-item h3 { font-size: 1.35rem; }
.press-item .pub {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  display: block; margin-bottom: .35rem;
}
.press-item .read {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 720px) {
  .press-item { grid-template-columns: 1fr; }
  .press-item .read { margin-top: .75rem; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-grid h2 { margin-bottom: 1.25rem; }
.contact-info p { margin-bottom: 1.25rem; max-width: 32em; color: var(--ink-soft); }
.contact-info .label {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
  display: block; margin-bottom: .35rem;
}
.contact-info .value {
  font-family: var(--serif); font-size: 1.25rem;
  margin-bottom: 2rem; display: block;
}

/* CF7 / WPForms styling */
.wpcf7 .field, form .field { margin-bottom: 1.5rem; }
.wpcf7 label, form label {
  display: block;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select,
form input, form textarea, form select {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--rule);
  padding: .75rem 0;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink); font-weight: 300; outline: none;
  border-radius: 0;
  transition: border-color .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus,
form input:focus, form textarea:focus { border-bottom-color: var(--ink); }
.wpcf7 textarea, form textarea { min-height: 110px; resize: vertical; }

.btn, .wpcf7 input[type="submit"] {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  border: none;
  padding: 1rem 2.25rem;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
  border-radius: 0;
}
.btn:hover, .wpcf7 input[type="submit"]:hover { background: var(--accent); color: #fff; opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter strip ---------- */
.newsletter { background: var(--bg-alt); padding: clamp(3rem, 6vw, 5rem) var(--pad); }
.newsletter-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.newsletter h2 { font-style: italic; max-width: 14ch; }
.newsletter p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.newsletter form { display: flex; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: .25rem; }
.newsletter input {
  flex: 1; background: transparent; border: none;
  padding: .85rem 0; font-size: 15px; font-family: var(--sans); outline: none;
}
.newsletter button {
  background: none; border: none; font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: pointer;
}
@media (max-width: 820px) { .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem var(--pad) 2rem;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-mute);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-inner .social, .footer-nav {
  display: flex; gap: 1.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  list-style: none; padding: 0; margin: 0;
}
.footer-inner .copyright { letter-spacing: 0.05em; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 9rem var(--pad) 4rem;
  border-bottom: 1px solid var(--rule);
}
.page-head .container {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
}
.page-head h1 { font-style: italic; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.page-head .meta {
  text-align: right; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
  max-width: 28ch; line-height: 1.6;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- WooCommerce overrides (when added later) ---------- */
.woocommerce ul.products li.product .price {
  color: var(--ink); font-family: var(--serif); font-style: italic;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-radius: 0 !important;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}


/* =========================================================
   HOME SLIDER — full-bleed James Jean style
   ========================================================= */

/* Hide body overflow on homepage so nothing scrolls */
body.home {
  overflow: hidden;
}

.home-slider {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111;
}

/* Individual slides */
.home-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.home-slide.is-active {
  opacity: 1;
}

/* Subtle dark gradient at bottom for label legibility */
.home-slider::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Invisible full-slide link — clicking image goes to artwork detail */
.slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* Bottom-left label: TITLE / YEAR */
.slider-label {
  position: absolute;
  bottom: 2.25rem;
  left: 2.5rem;
  z-index: 10;
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.3s ease;
}

.slider-label-title,
.slider-label-year,
.slider-label-sep {
  display: inline;
}

/* Bottom-right counter */
.slider-counter {
  position: absolute;
  bottom: 2.25rem;
  right: 6rem;
  z-index: 10;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Prev / Next arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.65);
}

.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

/* Keep header floating above slider */
.home .site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
  position: fixed;
  z-index: 100;
}

/* On homepage, nav links are white since they float over dark images */
.home .site-header .brand,
.home .site-header .nav a,
.home .site-header .brand span {
  color: #fff !important;
}

.home .nav-toggle span {
  background: #fff !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .slider-label {
    left: 1.25rem;
    bottom: 1.5rem;
    font-size: 10px;
  }
  .slider-counter {
    right: 4.5rem;
    bottom: 1.5rem;
  }
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}


/* =========================================================
   WORK PAGE — horizontal single-painting slider
   ========================================================= */

body.page-template-page-templates-template-work-php {
  overflow: hidden;
}

.work-slider-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: 64px; /* header height */
  box-sizing: border-box;
}

/* Slider stage fills remaining height minus caption */
.work-slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bg);
}

/* Each slide */
.work-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.work-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* The painting image — constrained to viewport, preserves aspect ratio */
.work-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.work-slide-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem 5rem;
  box-sizing: border-box;
}

/* Caption bar below slider */
.work-caption {
  flex-shrink: 0;
  padding: 1rem 2.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--rule);
}

.work-caption a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.work-caption-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}

.work-caption-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.work-caption-counter {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Prev / Next arrows */
.work-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.2s;
  padding: 0;
}

.work-arrow:hover { opacity: 1; }
.work-prev { left: 0.5rem; }
.work-next { right: 0.5rem; }

/* Mobile */
@media (max-width: 600px) {
  .work-slide-img-link {
    padding: 1rem 3rem;
  }
  .work-caption {
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}


/* =========================================================
   NAV — Work dropdown (collection list)
   ========================================================= */

.nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-item-work {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--ink);
}

.nav-dropdown li {
  display: block !important;
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg) !important;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.12);
  opacity: 1;
}

/* Show on hover */
.nav-item-work:hover .nav-dropdown,
.nav-item-work:focus-within .nav-dropdown {
  display: flex;
}

/* On homepage (white nav), dropdown arrow pointer flips color */
.home .nav-dropdown::before {
  border-bottom-color: var(--ink);
}

/* Mobile: show dropdown inline */
@media (max-width: 820px) {
  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    color: var(--ink) !important;
    font-size: 12px;
    padding: 0.4rem 0;
  }
  .home .nav-dropdown a { color: #fff !important; }
}


/* =========================================================
   FIXES — v3.1
   ========================================================= */

/* 1. Remove vignette from homepage slider */
.home-slider::after {
  display: none;
}

/* 2. Restore subtle bottom gradient only (for label legibility) */
.home-slider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* 3. Nav dropdown — hidden by default, show only on hover */
.nav-dropdown {
  display: none !important;
}

.nav-item-work:hover .nav-dropdown,
.nav-item-work:focus-within .nav-dropdown {
  display: flex !important;
}

/* Mobile — show inline when menu is open */
@media (max-width: 820px) {
  .nav-item-work .nav-dropdown {
    display: flex !important;
    position: static;
    transform: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    flex-direction: column;
    gap: 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    color: var(--ink) !important;
    padding: 0.4rem 0;
  }
  .home .nav-dropdown a { color: #fff !important; }
}


/* =========================================================
   FIX — dropdown hover gap (v4.1)
   ========================================================= */

/* Add padding-bottom to the Work li so the hover zone
   extends down to cover the gap between link and dropdown */
.nav-item-work {
  padding-bottom: 16px;
  margin-bottom: -16px;
}

/* Move dropdown up to close the visual gap */
.nav-dropdown {
  top: calc(100% + 2px) !important;
}

/* Small delay before hiding so mouse can travel to dropdown */
.nav-item-work .nav-dropdown {
  transition: opacity 0.15s ease;
  opacity: 0;
  pointer-events: none;
  display: flex !important;
}

.nav-item-work:hover .nav-dropdown,
.nav-item-work:focus-within .nav-dropdown {
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* =========================================================
   HORIZONTAL GALLERY — James Jean style (v9)
   One row of images, scroll right, caption below each
   ========================================================= */

body.page-template-page-templates-template-work-php,
body.tax-collection,
body.post-type-archive-artwork {
  overflow: hidden;
}

.hgallery-page {
  position: relative;
  height: 100vh;
  padding-top: 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Scrollable row */
.hgallery {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem 2.5rem 0;
  box-sizing: border-box;
  /* Hide scrollbar visually */
  scrollbar-width: none;
}
.hgallery::-webkit-scrollbar { display: none; }

/* Each artwork item */
.hgallery-item {
  flex-shrink: 0;
  margin-right: 2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.hgallery-item img {
  display: block;
  height: calc(100vh - 64px - 90px); /* viewport minus header minus caption */
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.hgallery-item:hover img {
  opacity: 0.85;
}

.hgallery-item a {
  display: block;
}

/* Caption below image */
.hgallery-item figcaption {
  margin-top: 0.85rem;
  padding-bottom: 1.5rem;
}

.hgallery-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.hgallery-meta {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* Scroll-right arrow button */
.hgallery-next {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(255,255,255,0.85);
  border: none;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
}

.hgallery-next:hover { opacity: 1; }


/* =========================================================
   HORIZONTAL GALLERY — image size fix (v9.1)
   Match James Jean proportions: ~62% viewport height
   ========================================================= */

.hgallery {
  padding: 3rem 3rem 0 !important;
  align-items: flex-start !important;
}

.hgallery-item img {
  height: calc(100vh * 0.62) !important;
  width: auto !important;
}


/* =========================================================
   HORIZONTAL GALLERY — image size fix v9.2
   More whitespace top and bottom, closer to James Jean
   ========================================================= */

.hgallery {
  padding: 4rem 4rem 0 !important;
  align-items: flex-start !important;
}

.hgallery-item img {
  height: calc(100vh * 0.72) !important;
  width: auto !important;
  max-height: 600px !important;
}


/* =========================================================
   HORIZONTAL GALLERY — heading + spacing fix (v10)
   ========================================================= */

.hgallery-page {
  padding-top: 64px;
}

/* Collection heading above gallery */
.hgallery-heading {
  padding: 2rem 3rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.hgallery-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hgallery-heading h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  line-height: 1;
}

/* Gallery row — push down from heading */
.hgallery {
  padding: 2.5rem 3rem 0 !important;
}

/* Image size */
.hgallery-item img {
  height: calc(100vh * 0.62) !important;
  max-height: 560px !important;
  width: auto !important;
}


/* =========================================================
   HORIZONTAL GALLERY — left arrow (v11.1)
   ========================================================= */

.hgallery-prev {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(255,255,255,0.85);
  border: none;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
}

.hgallery-prev:hover { opacity: 1; }


/* =========================================================
   SOCIAL ICONS in nav (v16)
   ========================================================= */

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.social-icon {
  display: flex;
  align-items: center;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 1;
}

/* White icons on homepage where nav floats over image */
.home .social-icon {
  color: #ffffff;
}


/* =========================================================
   CONTACT PAGE (v18)
   ========================================================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}

.contact-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.contact-social a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 1.5rem;
}

/* Form fields */
.cf-field {
  margin-bottom: 1.75rem;
}

.cf-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.cf-req { color: var(--accent); }
.cf-opt { color: var(--ink-mute); font-size: 10px; letter-spacing: 0.1em; }

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-bottom-color: var(--ink);
}

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

.cf-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    gap: 3rem;
  }
}


/* =========================================================
   WPFORMS — match site typography and style (v20)
   ========================================================= */

.wpforms-container {
  max-width: 100% !important;
}

.wpforms-field-label {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--ink-mute) !important;
  font-weight: 400 !important;
  margin-bottom: 0.5rem !important;
}

.wpforms-field input,
.wpforms-field select,
.wpforms-field textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  font-weight: 300 !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
}

.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  border-bottom-color: var(--ink) !important;
  box-shadow: none !important;
}

.wpforms-field textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

.wpforms-field {
  margin-bottom: 1.75rem !important;
  padding: 0 !important;
}

.wpforms-submit-container {
  padding: 0 !important;
}

.wpforms-submit {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border: none !important;
  padding: 1rem 2.25rem !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  transition: background 0.2s !important;
}

.wpforms-submit:hover {
  background: var(--accent) !important;
}

/* Error messages */
.wpforms-error {
  font-size: 11px !important;
  color: var(--accent) !important;
  letter-spacing: 0.05em !important;
  margin-top: 0.35rem !important;
}

/* Success message */
.wpforms-confirmation-container-full {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 1.1rem !important;
  color: var(--ink-soft) !important;
  border: none !important;
  background: transparent !important;
  padding: 2rem 0 !important;
}


/* =========================================================
   ABOUT PAGE (v24)
   ========================================================= */

/* Full-width header image */
.about-header-img {
  width: 100%;
  height: 55vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  margin-top: 64px; /* header height */
  background-color: var(--bg-alt);
}

/* Bio layout */
.about-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  box-sizing: border-box;
}

.about-bio-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about-bio-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.5em;
  line-height: 0.9;
  float: left;
  padding: 0.1em 0.12em 0 0;
  font-style: italic;
  color: var(--accent);
}

/* Portrait */
.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-portrait-placeholder span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* About nav dropdown */
.nav-item-about {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.nav-dropdown-about {
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 820px) {
  .about-wrap {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 4rem;
  }
  .about-portrait-col {
    order: -1;
  }
}


/* About dropdown hover — same pattern as Work */
.nav-item-about .nav-dropdown {
  opacity: 0;
  pointer-events: none;
  display: flex !important;
  transition: opacity 0.15s ease;
}

.nav-item-about:hover .nav-dropdown,
.nav-item-about:focus-within .nav-dropdown {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 820px) {
  .nav-item-about .nav-dropdown {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static;
    transform: none;
    background: transparent;
    flex-direction: column;
    padding: 0.5rem 0 0 1rem;
  }
  .nav-item-about .nav-dropdown a {
    color: var(--ink) !important;
    padding: 0.4rem 0;
  }
  .home .nav-item-about .nav-dropdown a { color: #fff !important; }
}


/* =========================================================
   FIX — Smush lazy load interference with slider (v28)
   ========================================================= */

/* Force background images to always show on slides */
.home-slide[style*="background-image"] {
  background-image: inherit !important;
}

/* Ensure lazyloaded slides still show their background */
.home-slide.lazyloaded {
  background-size: cover !important;
  background-position: center !important;
}
