/*
Theme Name: Anitta Jonas Gallery
Theme URI: https://new.anittajonas.com/
Author: OpenAI for Anitta Jonas
Description: Custom portfolio theme for visual artist Anitta Jonas, built from the approved gallery-style mockup.
Version: 20.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: anitta-jonas-gallery
*/

:root{
  --aj-ivory:#f4f1eb;
  --aj-ink:#1c1b19;
  --aj-muted:#5d5a55;
  --aj-line:#aaa49b;
  --aj-max:1536px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--aj-ivory);color:var(--aj-ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.aj-site{min-height:100vh;background:var(--aj-ivory)}
.aj-header{height:182px;display:flex;align-items:center;justify-content:space-between;padding:34px 6.3%;background:var(--aj-ivory);position:relative;z-index:20}
.aj-brand{width:330px;text-decoration:none;color:var(--aj-ink)}
.aj-brand-name{font-size:27px;letter-spacing:11px;font-weight:400;white-space:nowrap;line-height:1.1}
.aj-brush{width:315px;height:38px;margin:10px 0 0;display:flex;align-items:center;overflow:visible}
.aj-brush img{display:block;width:100%;height:34px;object-fit:fill}
.aj-brand-sub{font-size:11px;letter-spacing:6px;text-align:center;margin-top:4px}
.aj-menu-toggle{display:none;background:transparent;border:0;font-size:24px;padding:8px;cursor:pointer}
.aj-nav ul{list-style:none;display:flex;align-items:center;gap:63px;margin:0;padding:0}
.aj-nav a{text-decoration:none;font-size:12px;letter-spacing:4px;position:relative;padding-bottom:18px}
.aj-nav a:hover{opacity:.55}
.aj-nav .current-menu-item>a:after,.aj-nav .current_page_item>a:after,.aj-nav a[aria-current="page"]:after{content:"";position:absolute;left:50%;bottom:6px;width:46px;height:1px;background:var(--aj-ink);transform:translateX(-50%)}

.aj-hero{min-height:calc(100vh - 182px);position:relative;overflow:hidden;background:#d8d0c0}
.aj-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center}
.aj-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,241,235,1) 0%,rgba(244,241,235,.97) 8%,rgba(244,241,235,.78) 17%,rgba(244,241,235,.38) 28%,rgba(244,241,235,0) 44%);pointer-events:none}
.aj-hero-copy{position:relative;z-index:2;min-height:calc(100vh - 182px);padding:0 6.3%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.aj-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(46px,4vw,64px);line-height:1.18;font-style:italic;font-weight:400;margin:0;max-width:470px;color:#25231f}
.aj-rule{width:59px;height:1px;background:var(--aj-ink);margin:38px 0 37px}
.aj-cta{font-size:11px;letter-spacing:4px;text-decoration:none;display:inline-flex;gap:16px;align-items:center;margin-top:42px}
.aj-cta span{font-size:22px;letter-spacing:0;line-height:1}
.aj-scroll{position:absolute;z-index:3;left:6.3%;bottom:42px;font-size:10px;letter-spacing:3px}.aj-scroll b{font-size:18px;margin-left:8px;font-weight:400}

.aj-page-hero{padding:72px 6.3% 38px;max-width:var(--aj-max);margin:0 auto}
.aj-kicker{font-size:11px;letter-spacing:5px;text-transform:uppercase;margin-bottom:18px;color:var(--aj-muted)}
.aj-page-title{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(45px,6vw,82px);line-height:1;margin:0 0 20px}
.aj-page-intro{max-width:720px;font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1.6;color:#494640}

.aj-artworks{max-width:var(--aj-max);margin:0 auto;padding:10px 6.3% 100px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:58px 46px}
.aj-artwork-card{text-decoration:none;display:block}
.aj-artwork-card figure{margin:0;aspect-ratio:1.22/1;overflow:hidden;background:#e8e3da}
.aj-artwork-card img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.aj-artwork-card:hover img{transform:scale(1.015)}
.aj-artwork-meta{padding-top:15px;display:flex;justify-content:space-between;gap:15px;align-items:baseline}
.aj-artwork-title{font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:400;margin:0}
.aj-artwork-size{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--aj-muted)}

.aj-prose-wrap{max-width:var(--aj-max);margin:0 auto;padding:10px 6.3% 110px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:72px;align-items:start}
.aj-prose{font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.78;color:#37342f}
.aj-prose p:first-child{margin-top:0}
.aj-prose-media{position:sticky;top:24px}
.aj-prose-media img{width:100%;background:#e6e1d8}
.aj-placeholder{aspect-ratio:4/5;background:linear-gradient(135deg,#ded8cd,#f4f1eb);display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;font-size:11px;letter-spacing:3px;color:#6c675f;text-transform:uppercase}

.aj-contact{max-width:var(--aj-max);margin:0 auto;padding:25px 6.3% 120px;display:grid;grid-template-columns:1fr 1fr;gap:70px}
.aj-contact-card{border-top:1px solid var(--aj-line);padding-top:22px}
.aj-contact-label{font-size:10px;letter-spacing:4px;text-transform:uppercase;color:var(--aj-muted);margin-bottom:14px}
.aj-contact-value{font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.35}
.aj-contact-value a{text-decoration:none}.aj-contact-value a:hover{opacity:.6}

.aj-single{max-width:1180px;margin:0 auto;padding:50px 6.3% 100px}.aj-single img{width:100%;margin-bottom:28px}.aj-single h1{font-family:Georgia,"Times New Roman",serif;font-size:52px;font-weight:400;margin:0 0 12px}.aj-single .entry-content{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.65}

.aj-footer{padding:34px 6.3% 42px;border-top:1px solid rgba(28,27,25,.15);display:flex;justify-content:space-between;gap:30px;align-items:center;font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#5a5650}
.aj-footer a{text-decoration:none}

@media(max-width:900px){
  .aj-header{height:auto;min-height:145px;padding:24px 24px 20px;align-items:flex-start;gap:20px;flex-wrap:wrap}
  .aj-brand{width:270px}.aj-brand-name{font-size:20px;letter-spacing:7px}.aj-brush{width:260px}.aj-brand-sub{text-align:left;padding-left:45px}
  .aj-menu-toggle{display:block;margin-left:auto}
  .aj-nav{width:100%;display:none}.aj-nav.is-open{display:block}.aj-nav ul{gap:0;justify-content:space-between;width:100%}.aj-nav a{font-size:9px;letter-spacing:2px}
  .aj-hero{min-height:690px}.aj-hero-copy{min-height:690px;padding:0 24px}.aj-hero h1{font-size:44px;max-width:290px}.aj-scroll{left:24px}.aj-hero-image{object-position:58% center}.aj-hero:after{background:linear-gradient(90deg,rgba(244,241,235,.98) 0%,rgba(244,241,235,.88) 24%,rgba(244,241,235,.18) 70%,rgba(244,241,235,0) 100%)}
  .aj-page-hero{padding:52px 24px 25px}.aj-page-title{font-size:54px}.aj-page-intro{font-size:19px}
  .aj-artworks{padding:10px 24px 75px;grid-template-columns:1fr;gap:42px}.aj-prose-wrap{padding:10px 24px 80px;grid-template-columns:1fr;gap:34px}.aj-prose-media{position:static}.aj-contact{padding:15px 24px 80px;grid-template-columns:1fr;gap:38px}.aj-footer{padding:28px 24px 34px;flex-direction:column;align-items:flex-start}
}

/* v2: editable fixed-design slots */
.aj-artwork-card figure img{width:100%;height:100%;object-fit:cover;display:block}
.aj-studio{max-width:1200px;margin:20px auto 110px;padding:0 48px;display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}
.aj-studio h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-style:italic;font-size:42px;line-height:1.15;margin:12px 0 20px}
.aj-studio p{line-height:1.8;color:#4b4945}
.aj-video-slot{aspect-ratio:16/9;background:#e9e4dc;display:grid;place-items:center;letter-spacing:4px;font-size:11px;color:#77716a}
.aj-placeholder small{display:block;margin-top:12px;letter-spacing:0;font-size:12px;line-height:1.5}
.aj-contact-custom{grid-column:1/-1}
@media(max-width:800px){.aj-studio{grid-template-columns:1fr;padding:0 25px;gap:30px}.aj-studio h2{font-size:34px}}


/* v3 — final editable portfolio structure */
.aj-artworks-hero{padding-bottom:30px}
.aj-artworks{grid-template-columns:repeat(3,minmax(0,1fr));gap:54px 34px;padding-top:8px}
.aj-artwork-card figure{position:relative;aspect-ratio:1.15/1;background:#e9e4dc}
.aj-artwork-view{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(244,241,235,.82);font-size:10px;letter-spacing:3px;opacity:0;transition:opacity .28s ease}
.aj-artwork-view b{font-size:18px;font-weight:400;margin-left:10px;letter-spacing:0}
.aj-artwork-card:hover .aj-artwork-view{opacity:1}
.aj-artwork-card:hover img{transform:none}
.aj-artwork-meta{padding-top:13px;border-top:1px solid rgba(28,27,25,.15);margin-top:11px}
.aj-artwork-title{font-size:19px}
.aj-gallery-empty{grid-column:1/-1;border-top:1px solid rgba(28,27,25,.2);padding:35px 0 70px;max-width:720px;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.65}
.aj-artwork-placeholder{aspect-ratio:auto;height:100%}

.aj-about-wrap{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:78px;align-items:start}
.aj-about-portrait{grid-column:1;position:sticky;top:24px}
.aj-about-copy{grid-column:2}
.aj-about-portrait .aj-placeholder{min-height:580px}
.aj-about-portrait img{width:100%;height:auto;max-height:720px;object-fit:cover}

.aj-video-slot{overflow:hidden;position:relative}
.aj-video-slot iframe,.aj-video-slot video{position:absolute;inset:0;width:100%;height:100%;border:0}
.aj-video-slot a{text-decoration:none;letter-spacing:3px;font-size:11px}

.aj-back-link{display:inline-block;margin-bottom:28px;text-decoration:none;font-size:10px;letter-spacing:3px}
.aj-single{max-width:1320px}
.aj-single-image{margin:0 0 42px}.aj-single-image img{width:100%;max-height:82vh;object-fit:contain;background:#ebe6de}
.aj-single-grid{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:70px;align-items:start}
.aj-single-grid h1{font-size:48px;line-height:1.08}
.aj-single .entry-content{font-size:19px;line-height:1.75}
.aj-single .entry-content img:first-child{margin-top:0}

.aj-footer-links{display:flex;gap:28px;align-items:center;flex-wrap:wrap}.aj-footer-links a:hover{opacity:.55}

@media(max-width:1100px){.aj-artworks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 .aj-artworks{grid-template-columns:1fr;gap:40px}
 .aj-about-wrap{grid-template-columns:1fr;gap:34px}.aj-about-portrait,.aj-about-copy{grid-column:auto}.aj-about-portrait{position:static;order:1}.aj-about-copy{order:2}
 .aj-single-grid{grid-template-columns:1fr;gap:18px}.aj-single-grid h1{font-size:38px}
 .aj-footer-links{gap:18px}
}

/* v4: visual empty gallery slots; these disappear automatically when artworks are added. */
.aj-empty-card{opacity:.48;pointer-events:none}
.aj-empty-card figure{background:#f3f0e9;aspect-ratio:4/3;overflow:hidden}
.aj-empty-card .aj-artwork-placeholder{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;border:1px solid rgba(28,27,25,.12);font:10px/1.2 Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase}

/* v7 FINAL — artwork zoom/lightbox */
.aj-zoomable{position:relative;cursor:zoom-in}.aj-zoom-button{position:absolute;right:18px;bottom:18px;border:0;background:rgba(244,241,235,.92);color:var(--aj-ink);padding:11px 14px;font-size:20px;cursor:zoom-in}.aj-zoom-button span{font:9px Arial,sans-serif;letter-spacing:2px;margin-left:6px;vertical-align:2px}.aj-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(18,17,15,.96);display:none;align-items:center;justify-content:center;padding:36px}.aj-lightbox.is-open{display:flex}.aj-lightbox img{max-width:96vw;max-height:94vh;width:auto;height:auto;object-fit:contain}.aj-lightbox-close{position:fixed;right:22px;top:14px;border:0;background:transparent;color:#fff;font-size:44px;font-weight:200;line-height:1;cursor:pointer}.aj-no-scroll{overflow:hidden}.aj-video-slot video{object-fit:cover;background:#111}
@media(max-width:800px){.aj-lightbox{padding:16px}.aj-zoom-button{right:10px;bottom:10px}}


/* v8 FINAL FINAL — approved 24 Aug 2026 */
.aj-rule,.aj-scroll{display:none!important}
.aj-hero-copy{padding-top:2vh}
.aj-hero h1{max-width:520px}

/* Smaller, quiet ABOUT portrait: roughly one third of the content width, never clickable. */
.aj-about-wrap{grid-template-columns:minmax(220px,.42fr) minmax(0,1.58fr);gap:82px;max-width:1320px}
.aj-about-portrait{position:static;max-width:330px}
.aj-about-portrait img{width:100%;height:auto;max-height:none;object-fit:contain;pointer-events:none;user-select:none}
.aj-about-portrait .aj-placeholder{min-height:390px}

/* Approved contact card: one elegant box, image left, form right. */
.aj-contact-final{max-width:1320px;margin:0 auto 110px;padding:0 6.3%}
.aj-contact-box{border:1px solid rgba(28,27,25,.20);border-radius:10px;padding:34px;display:grid;grid-template-columns:minmax(260px,.88fr) minmax(360px,1.12fr);gap:44px;background:rgba(255,255,255,.12)}
.aj-contact-left{padding-right:42px;border-right:1px solid rgba(28,27,25,.16)}
.aj-contact-image{aspect-ratio:4/3;overflow:hidden;background:#e8e3da;margin-bottom:25px}
.aj-contact-image img{width:100%;height:100%;object-fit:cover}
.aj-contact-placeholder{height:100%;display:grid;place-items:center;text-align:center;padding:24px;font-size:10px;letter-spacing:3px;color:var(--aj-muted)}
.aj-contact-name{font:400 24px/1.2 Georgia,"Times New Roman",serif;margin-bottom:7px}.aj-contact-role{font-size:10px;letter-spacing:2px;text-transform:uppercase;margin-bottom:28px}
.aj-contact-details{font:400 17px/1.8 Georgia,"Times New Roman",serif}.aj-contact-details a{text-decoration:none}.aj-contact-details a:hover{opacity:.55}
.aj-form-row{margin:0 0 27px}.aj-form-row label{display:block;font-size:10px;letter-spacing:3px;text-transform:uppercase;margin-bottom:10px}
.aj-form-row input,.aj-form-row textarea{width:100%;border:0;border-bottom:1px solid rgba(28,27,25,.35);background:transparent;border-radius:0;padding:10px 0;font:17px/1.5 Georgia,"Times New Roman",serif;color:var(--aj-ink);outline:none}
.aj-form-row textarea{min-height:120px;resize:vertical}.aj-form-row input:focus,.aj-form-row textarea:focus{border-bottom-color:var(--aj-ink)}
.aj-send{width:100%;border:0;background:var(--aj-ink);color:var(--aj-ivory);padding:18px 20px;font-size:10px;letter-spacing:4px;text-transform:uppercase;cursor:pointer}.aj-send:hover{opacity:.86}
.aj-form-note{font-size:11px;line-height:1.6;color:var(--aj-muted);margin-top:14px}.aj-form-status{font:15px/1.5 Georgia,"Times New Roman",serif;margin-bottom:22px;padding:12px 14px;border:1px solid rgba(28,27,25,.2)}

/* Footer copyright + Instagram */
.aj-footer{align-items:flex-start}.aj-footer-copy{max-width:520px;line-height:1.8}.aj-footer-links{justify-content:flex-end}

/* True detail magnifier on artwork pages (desktop cursor lens). */
.aj-zoomable{overflow:hidden}.aj-zoom-lens{position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid rgba(244,241,235,.8);box-shadow:0 10px 34px rgba(0,0,0,.28);background-repeat:no-repeat;pointer-events:none;display:none;z-index:3}.aj-zoomable.is-magnifying .aj-zoom-lens{display:block}.aj-zoomable.is-magnifying .aj-zoom-button{opacity:0}

/* WooCommerce-ready: intentionally invisible until WooCommerce is installed. */
.woocommerce .button,.woocommerce button.button,.woocommerce input.button{border-radius:0!important;background:var(--aj-ink)!important;color:var(--aj-ivory)!important;font-size:11px!important;letter-spacing:2px!important;text-transform:uppercase!important;font-weight:400!important}
.woocommerce div.product .product_title,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Georgia,"Times New Roman",serif;font-weight:400}.woocommerce ul.products li.product a img{background:#e8e3da}

@media(max-width:800px){
 .aj-about-wrap{grid-template-columns:1fr;gap:28px}.aj-about-portrait{max-width:240px;margin:0 auto 10px}.aj-about-copy{font-size:18px}
 .aj-contact-final{padding:0 24px;margin-bottom:75px}.aj-contact-box{grid-template-columns:1fr;padding:22px;gap:28px}.aj-contact-left{padding-right:0;border-right:0;border-bottom:1px solid rgba(28,27,25,.16);padding-bottom:28px}.aj-contact-image{max-width:330px}.aj-zoom-lens{display:none!important}
}


/* v10 FINAL FOUR — cache-safe approved contact layout */
body .aj-contact-final{max-width:1320px;margin:0 auto 110px;padding:0 6.3%;width:100%;}
body .aj-contact-final .aj-contact-box{width:100%;border:1px solid rgba(28,27,25,.20);border-radius:10px;padding:34px;display:grid!important;grid-template-columns:minmax(260px,.88fr) minmax(360px,1.12fr)!important;gap:44px;background:rgba(255,255,255,.12);align-items:start;}
body .aj-contact-final .aj-contact-left{min-width:0;padding-right:42px;border-right:1px solid rgba(28,27,25,.16);}
body .aj-contact-final .aj-contact-right{min-width:0;}
body .aj-contact-final .aj-contact-image{aspect-ratio:4/3;overflow:hidden;background:#e8e3da;margin-bottom:25px;}
body .aj-contact-final .aj-contact-image img{width:100%;height:100%;object-fit:cover;}
body .aj-contact-final .aj-form-row{display:block;margin:0 0 27px;}
body .aj-contact-final .aj-form-row label{display:block;font-size:10px;letter-spacing:3px;text-transform:uppercase;margin-bottom:10px;}
body .aj-contact-final .aj-form-row input,body .aj-contact-final .aj-form-row textarea{display:block;width:100%!important;max-width:none!important;border:0!important;border-bottom:1px solid rgba(28,27,25,.35)!important;background:transparent!important;border-radius:0!important;padding:10px 0!important;font:17px/1.5 Georgia,"Times New Roman",serif!important;color:var(--aj-ink)!important;outline:none!important;box-shadow:none!important;}
body .aj-contact-final .aj-form-row textarea{min-height:120px!important;resize:vertical;}
body .aj-contact-final .aj-send{display:block;width:100%!important;border:0!important;background:var(--aj-ink)!important;color:var(--aj-ivory)!important;padding:18px 20px!important;font-size:10px!important;letter-spacing:4px!important;text-transform:uppercase!important;cursor:pointer!important;border-radius:0!important;}
@media(max-width:800px){body .aj-contact-final{padding:0 24px;margin-bottom:75px}body .aj-contact-final .aj-contact-box{grid-template-columns:1fr!important;padding:22px;gap:28px}body .aj-contact-final .aj-contact-left{padding-right:0;border-right:0;border-bottom:1px solid rgba(28,27,25,.16);padding-bottom:28px}}

/* Final minimalist page-heading system */
.aj-single-heading{margin:0 0 20px;font-weight:400}
.aj-page-hero:has(.aj-single-heading){padding-bottom:32px}

/* FINAL SIX — show the complete HOME artwork without cropping */
.aj-hero{min-height:0!important;position:relative;overflow:hidden;background:#d8d0c0}
.aj-hero-image{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;object-fit:contain!important;object-position:center center!important}
.aj-hero-copy{position:absolute!important;inset:0!important;min-height:0!important;height:100%!important;padding-top:0!important}
@media(max-width:800px){
  .aj-hero{min-height:0!important}
  .aj-hero-image{position:relative!important;width:100%!important;height:auto!important;object-fit:contain!important}
  .aj-hero-copy{position:absolute!important;inset:0!important;min-height:0!important;height:100%!important}
}

/* FINAL SEVEN — clean sans-serif About typography, no serifs */
body .aj-about-hero .aj-page-intro,
body .aj-about-copy{
  font-family:Arial,Helvetica,sans-serif!important;
  font-style:normal!important;
  font-weight:300!important;
  color:#37342f;
}
body .aj-about-hero .aj-page-intro{
  max-width:680px;
  font-size:18px!important;
  line-height:1.65!important;
}
body .aj-about-copy{
  max-width:680px;
  font-size:18px!important;
  line-height:1.75!important;
  letter-spacing:.01em;
}
body .aj-about-copy p{margin:0 0 1.55em;}
@media(max-width:800px){
  body .aj-about-hero .aj-page-intro,
  body .aj-about-copy{font-size:17px!important;line-height:1.7!important;max-width:100%;}
}

/* FINAL EIGHT — subtle legal link beneath contact form */
.aj-form-note a{
    color:inherit;
    text-decoration:underline;
    text-underline-offset:3px;
}
.aj-form-note a:hover{opacity:.65;}

/* FINAL NINE — consistent clean sans-serif typography across all inner pages */
body .aj-artworks-hero .aj-page-intro,
body .aj-artwork-title,
body .aj-gallery-empty,
body .aj-contact-hero .aj-page-intro,
body .aj-contact-name,
body .aj-contact-details,
body .aj-contact-final .aj-form-row input,
body .aj-contact-final .aj-form-row textarea,
body .aj-prose,
body .aj-prose h1,
body .aj-prose h2,
body .aj-prose h3,
body .aj-prose h4,
body .aj-prose h5,
body .aj-prose h6,
body .aj-page-hero .aj-page-title{
  font-family:Arial,Helvetica,sans-serif!important;
  font-style:normal!important;
  color:#37342f;
}
body .aj-artworks-hero .aj-page-intro,
body .aj-contact-hero .aj-page-intro,
body .aj-prose{
  font-size:18px!important;
  line-height:1.75!important;
  font-weight:300!important;
  letter-spacing:.01em;
}
body .aj-page-hero .aj-page-title,
body .aj-prose h1{
  font-weight:300!important;
  font-size:clamp(34px,4vw,52px)!important;
  line-height:1.12!important;
  letter-spacing:-.02em;
}
body .aj-prose h2,
body .aj-prose h3,
body .aj-prose h4,
body .aj-prose h5,
body .aj-prose h6{
  font-weight:400!important;
  line-height:1.3!important;
}
@media(max-width:800px){
  body .aj-artworks-hero .aj-page-intro,
  body .aj-contact-hero .aj-page-intro,
  body .aj-prose{font-size:17px!important;line-height:1.7!important;}
}

/* FINAL TEN — approved typography: Contact matches About and legal pages */
body.page-template-page-contact .aj-page-hero .aj-page-intro,
body.page-template-page-contact .aj-contact-final,
body.page-template-page-contact .aj-contact-name,
body.page-template-page-contact .aj-contact-details,
body.page-template-page-contact .aj-form-note,
body.page-template-page-contact .aj-contact-final .aj-form-row input,
body.page-template-page-contact .aj-contact-final .aj-form-row textarea{
  font-family:Arial,Helvetica,sans-serif!important;
  font-style:normal!important;
  color:#37342f;
}
body.page-template-page-contact .aj-page-hero .aj-page-intro,
body.page-template-page-contact .aj-form-note{
  font-weight:300!important;
}
body.page-template-page-contact .aj-page-hero .aj-page-intro{
  font-size:18px!important;
  line-height:1.75!important;
  letter-spacing:.01em;
}
@media(max-width:800px){body.page-template-page-contact .aj-page-hero .aj-page-intro{font-size:17px!important;line-height:1.7!important;}}


/* FINAL TEN CORRECTED — definitive typography lock
   Keep the artistic HOME headline unchanged. Inner-page copy is clean sans-serif. */

/* CONTACT: all visible text in the contact content uses the approved sans-serif. */
body .aj-contact-hero,
body .aj-contact-hero *,
body .aj-contact-final,
body .aj-contact-final * {
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
}

body .aj-contact-hero .aj-page-intro {
    font-size: 18px !important;
    line-height: 1.75 !important;
    font-weight: 300 !important;
    letter-spacing: .01em !important;
    color: #37342f !important;
}

/* Artwork names: same clean type family as SELECTED ARTWORKS, but readable as captions. */
body .aj-artwork-title {
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    letter-spacing: .02em !important;
    color: #37342f !important;
}

/* Keep dimensions quiet and coordinated with the captions. */
body .aj-artwork-size {
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
}

@media (max-width:800px) {
    body .aj-contact-hero .aj-page-intro {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }
    body .aj-artwork-title {
        font-size: 15px !important;
    }
}


/* FINAL ELEVEN — editable About photo gallery */
.aj-about-gallery{max-width:1320px;margin:-55px auto 105px;padding:0 6.3%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.aj-about-gallery-item{margin:0;overflow:hidden;background:#e9e5dd}
.aj-about-gallery-item img{display:block;width:100%;height:320px;object-fit:cover;object-position:center}
@media(max-width:900px){.aj-about-gallery{margin:-35px auto 75px;padding:0 24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aj-about-gallery-item img{height:260px}}
@media(max-width:560px){.aj-about-gallery{grid-template-columns:1fr}.aj-about-gallery-item img{height:auto;object-fit:contain}}


/* FINAL TWELVE — reusable editable page content and galleries */
.aj-optional-page-copy{
    max-width:1180px;
    margin:0 auto 54px;
    padding:0 6.3%;
}
.aj-optional-page-copy .aj-prose{
    max-width:760px;
    font-family:Arial,Helvetica,sans-serif;
    font-size:17px;
    line-height:1.75;
    font-weight:300;
}
.aj-page-gallery{
    max-width:1320px;
    margin:0 auto 82px;
    padding:0 6.3%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}
.aj-page-gallery-item{
    margin:0;
    overflow:hidden;
    background:#e9e5dd;
}
.aj-page-gallery-item img{
    display:block;
    width:100%;
    height:320px;
    object-fit:cover;
    object-position:center;
}
.aj-generic-featured-image{
    max-width:1180px;
    margin:0 auto 48px;
    padding:0 6.3%;
}
.aj-generic-featured-image img{
    display:block;
    max-width:100%;
    height:auto;
}
.aj-generic-page-copy{
    padding-top:0;
}
.aj-contact-extra-copy{
    margin-bottom:30px;
}
.aj-home-extra-gallery{
    margin-top:70px;
}
@media(max-width:900px){
    .aj-page-gallery{
        padding:0 24px;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
        margin-bottom:64px;
    }
    .aj-page-gallery-item img{height:260px;}
    .aj-optional-page-copy,.aj-generic-featured-image{padding-left:24px;padding-right:24px;}
}
@media(max-width:560px){
    .aj-page-gallery{grid-template-columns:1fr;}
    .aj-page-gallery-item img{height:auto;object-fit:contain;}
}


/* FINAL FOURTEEN — native editable page images */
.about-editor-content,
.contact-editor-content{
    max-width:1180px;
    margin:0 auto;
}
.about-editor-content .wp-block-image,
.contact-editor-content .wp-block-image{
    margin:32px 0;
}
.about-editor-content .wp-block-image img,
.contact-editor-content .wp-block-image img,
.about-editor-content .wp-block-gallery img,
.contact-editor-content .wp-block-gallery img{
    max-width:100%;
    height:auto;
}
.about-editor-content .alignleft{float:left;margin:0 36px 24px 0;}
.about-editor-content .alignright{float:right;margin:0 0 24px 36px;}
.about-editor-content:after,.contact-editor-content:after{content:"";display:block;clear:both;}


/* FINAL FIFTEEN — About is real Gutenberg content */
.aj-about-native-content{
    max-width:1320px;
    margin:0 auto 110px;
    padding:0 6.3%;
    font-family:Arial,Helvetica,sans-serif;
    font-size:16px;
    line-height:1.8;
    color:#37342f;
}
.aj-about-native-content .aj-v15-about-portrait{
    width:min(300px,32%);
    float:left;
    margin:0 58px 28px 0;
}
.aj-about-native-content .aj-v15-about-portrait img{
    width:100%;
    height:auto;
    display:block;
}
.aj-about-native-content:after{content:"";display:block;clear:both;}
.aj-about-native-content .wp-block-image:not(.aj-v15-about-portrait),
.aj-about-native-content .wp-block-gallery{
    clear:both;
    margin:40px 0;
}
.aj-about-native-content p{margin:0 0 1.45em;}

@media(max-width:760px){
    .aj-about-native-content{padding:0 24px;font-size:15px;}
    .aj-about-native-content .aj-v15-about-portrait{
        width:100%;
        max-width:360px;
        float:none;
        margin:0 0 30px;
    }
}


/* FINAL SIXTEEN: native editable CONTACT and ARTWORKS blocks */
.aj-contact-native-content,
.aj-artworks-native-content{max-width:1180px;margin:0 auto;padding:0 28px 80px}
.aj-v16-contact-layout{gap:70px;align-items:flex-start}
.aj-v16-contact-layout .wp-block-column{min-width:0}
.aj-v16-contact-image img{width:100%;height:auto;display:block}
.aj-contact-form-native form{width:100%}
.aj-artworks-native-content .wp-block-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:54px 46px!important;align-items:start}
.aj-artworks-native-content .wp-block-gallery>.wp-block-image{width:100%!important;margin:0!important;display:block!important}
.aj-artworks-native-content .wp-block-gallery>.wp-block-image img{width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;display:block}
.aj-artworks-native-content .wp-block-gallery figcaption{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.4;text-align:left;background:none!important;color:#222!important;position:static!important;padding:12px 0 0!important}
@media(max-width:760px){
  .aj-contact-native-content,.aj-artworks-native-content{padding-left:20px;padding-right:20px}
  .aj-v16-contact-layout{gap:34px}
  .aj-artworks-native-content .wp-block-gallery{grid-template-columns:1fr;gap:38px}
}


/* FINAL SEVENTEEN — restore the elegant uniform ARTWORKS gallery.
   The gallery remains fully editable in WordPress, but every artwork tile
   has the same visual size, as in the approved gallery design. */
body .aj-artworks-native-content .wp-block-gallery{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:46px 30px !important;
    align-items:start !important;
}
body .aj-artworks-native-content .wp-block-gallery > .wp-block-image{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    display:block !important;
}
body .aj-artworks-native-content .wp-block-gallery > .wp-block-image img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    object-fit:cover !important;
    object-position:center !important;
}
body .aj-artworks-native-content .wp-block-gallery figcaption{
    position:static !important;
    margin:10px 0 0 !important;
    padding:0 !important;
    background:none !important;
    color:#37342f !important;
    text-align:left !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:14px !important;
    line-height:1.45 !important;
    font-weight:400 !important;
}
@media(max-width:900px){
    body .aj-artworks-native-content .wp-block-gallery{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media(max-width:560px){
    body .aj-artworks-native-content .wp-block-gallery{
        grid-template-columns:1fr !important;
        gap:34px !important;
    }
}

/* FINAL EIGHTEEN — visitor lightbox for the editable ARTWORKS gallery. */
body .aj-artworks-native-content .wp-block-gallery > .wp-block-image{position:relative;cursor:zoom-in;overflow:hidden}
body .aj-artworks-native-content .wp-block-gallery > .wp-block-image::after{content:'⌕';position:absolute;right:12px;bottom:12px;width:34px;height:34px;display:grid;place-items:center;background:rgba(244,241,235,.92);color:#1c1b19;font:22px/1 Arial,sans-serif;opacity:0;transition:opacity .2s ease;pointer-events:none}
body .aj-artworks-native-content .wp-block-gallery > .wp-block-image:hover::after{opacity:1}
.aj-gallery-lightbox{position:fixed;inset:0;z-index:100000;background:rgba(18,17,15,.96);display:none;align-items:center;justify-content:center;padding:34px;cursor:zoom-out}
.aj-gallery-lightbox.is-open{display:flex}
.aj-gallery-lightbox img{display:block;max-width:96vw;max-height:94vh;width:auto;height:auto;object-fit:contain;cursor:default}
.aj-gallery-lightbox-close{position:fixed;top:14px;right:22px;border:0;background:transparent;color:#fff;font:200 44px/1 Arial,sans-serif;cursor:pointer;z-index:2}
@media(max-width:800px){.aj-gallery-lightbox{padding:16px}body .aj-artworks-native-content .wp-block-gallery > .wp-block-image::after{opacity:.85}}


/* FINAL TWENTY — WordPress image alignment without touching the fixed Contact layout. */
.aj-about-native-content figure.wp-block-image.alignleft,
.aj-generic-page-copy figure.wp-block-image.alignleft,
.aj-optional-page-copy figure.wp-block-image.alignleft,
.aj-prose figure.wp-block-image.alignleft{
    float:left !important;
    clear:none !important;
    max-width:48% !important;
    margin:8px 38px 28px 0 !important;
}
.aj-about-native-content figure.wp-block-image.alignright,
.aj-generic-page-copy figure.wp-block-image.alignright,
.aj-optional-page-copy figure.wp-block-image.alignright,
.aj-prose figure.wp-block-image.alignright{
    float:right !important;
    clear:none !important;
    max-width:48% !important;
    margin:8px 0 28px 38px !important;
}
.aj-about-native-content figure.wp-block-image.aligncenter,
.aj-generic-page-copy figure.wp-block-image.aligncenter,
.aj-optional-page-copy figure.wp-block-image.aligncenter,
.aj-prose figure.wp-block-image.aligncenter{
    float:none !important;
    clear:both !important;
    display:block !important;
    width:fit-content !important;
    max-width:100% !important;
    margin:34px auto !important;
}

/* About portrait: chosen alignment in WordPress wins. */
.aj-about-native-content figure.wp-block-image.aj-v15-about-portrait.alignleft{
    float:left !important;
    margin:8px 48px 28px 0 !important;
}
.aj-about-native-content figure.wp-block-image.aj-v15-about-portrait.alignright{
    float:right !important;
    margin:8px 0 28px 48px !important;
}
.aj-about-native-content figure.wp-block-image.aj-v15-about-portrait.aligncenter{
    float:none !important;
    margin:34px auto !important;
}

@media(max-width:700px){
  .aj-about-native-content figure.wp-block-image.alignleft,
  .aj-about-native-content figure.wp-block-image.alignright,
  .aj-generic-page-copy figure.wp-block-image.alignleft,
  .aj-generic-page-copy figure.wp-block-image.alignright,
  .aj-optional-page-copy figure.wp-block-image.alignleft,
  .aj-optional-page-copy figure.wp-block-image.alignright,
  .aj-prose figure.wp-block-image.alignleft,
  .aj-prose figure.wp-block-image.alignright{
      float:none !important;
      clear:both !important;
      max-width:100% !important;
      margin:28px auto !important;
  }
}


/* FINAL — detail magnifier inside the opened ARTWORKS painting only. */
.aj-gallery-image-wrap{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:96vw;
    max-height:94vh;
}
.aj-gallery-image-wrap > img{
    display:block;
    max-width:96vw;
    max-height:94vh;
    width:auto;
    height:auto;
    object-fit:contain;
    cursor:crosshair;
}
.aj-gallery-detail-lens{
    position:absolute;
    width:250px;
    height:250px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.92);
    box-shadow:0 12px 38px rgba(0,0,0,.48);
    background-repeat:no-repeat;
    background-color:#111;
    pointer-events:none;
    display:none;
    z-index:4;
}
.aj-gallery-lightbox.is-magnifying .aj-gallery-detail-lens{display:block}
.aj-gallery-zoom-hint{
    position:fixed;
    left:50%;
    bottom:13px;
    transform:translateX(-50%);
    color:rgba(255,255,255,.72);
    font:10px/1.3 Arial,sans-serif;
    letter-spacing:1.5px;
    text-transform:uppercase;
    pointer-events:none;
    white-space:nowrap;
}
@media(max-width:800px){
    .aj-gallery-detail-lens,.aj-gallery-zoom-hint{display:none!important}
    .aj-gallery-lightbox{overflow:auto}
    .aj-gallery-lightbox.is-touch-zoomed{align-items:flex-start;justify-content:flex-start;padding:0}
    .aj-gallery-lightbox.is-touch-zoomed .aj-gallery-image-wrap{
        display:block;
        width:125vw;
        max-width:none;
        max-height:none;
    }
    .aj-gallery-lightbox.is-touch-zoomed .aj-gallery-image-wrap > img{
        width:125vw;
        max-width:none;
        max-height:none;
        height:auto;
        cursor:zoom-out;
    }
}
