/* Cazam three responsive, image-led museum layouts. The paintings are original Cazam image files. */
:root{font-family:Arial,Helvetica,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);transition:background-color .3s,color .3s}button,input{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}img{display:block;max-width:100%}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.skip-link{position:fixed;top:-100px;left:10px;z-index:900;background:#fff;color:#111;padding:12px}.skip-link:focus{top:10px}.eyebrow,.section-index,.collection-number,.room-label,.exhibition-note,.art-focus-caption,.footer,.hero-overline,.section-top>a,.section-top p,.selected-art>span:last-child,.editorial-caption,.text-cta,.design-caption,.design-buttons,.modal-controls,.modal-footer,.article-index{font-family:Arial,Helvetica,sans-serif;font-weight:600;letter-spacing:.17em;text-transform:uppercase}
html[data-theme=nocturne]{--bg:#171314;--panel:#211a1c;--header:#141112;--ink:#f5f0ec;--muted:#c2b2ad;--line:#51403e;--gold:#d7a866;--highlight:#8f2e33;--hero-copy:#231718;--collections-bg:#201b1c;--paper:#282121;--shadow:#000a;--menu:#21191a;--art-frame:#282322;--art-paper:#e8dfd5;--room:url('exhibition_nocturne.jpg');--focus-overlay:linear-gradient(to top,rgba(0,0,0,.6),transparent 42%)}
html[data-theme=atelier]{--bg:#f5efe7;--panel:#fffaf3;--header:#faf7f1;--ink:#2d2420;--muted:#75695f;--line:#dbd0c3;--gold:#a74828;--highlight:#b54423;--hero-copy:#eee0d2;--collections-bg:#fbf7f1;--paper:#fffaf2;--shadow:#56331a20;--menu:#f8f1e7;--art-frame:#594633;--art-paper:#f8f0e6;--room:url('exhibition_atelier.jpg');--focus-overlay:linear-gradient(to top,rgba(33,22,10,.4),transparent 42%)}
html[data-theme=mineral]{--bg:#e8ebed;--panel:#f7f8f8;--header:#f4f6f6;--ink:#25313b;--muted:#68777f;--line:#cbd1d4;--gold:#3e6377;--highlight:#3e6377;--hero-copy:#e0e5e8;--collections-bg:#f2f4f5;--paper:#fff;--shadow:#26313b18;--menu:#f7f8f8;--art-frame:#586470;--art-paper:#f5f5f5;--room:url('exhibition_mineral.jpg');--focus-overlay:linear-gradient(to top,rgba(12,28,41,.48),transparent 42%)}
.header{position:sticky;top:0;z-index:50;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 3.3%;background:var(--header);border-bottom:1px solid var(--line);box-shadow:0 2px 13px var(--shadow)}
.logo{display:flex;align-items:center;gap:13px;flex-shrink:0;min-width:155px}.logo img{width:144px;height:66px;object-fit:contain;object-position:center}.logo-rule{width:1px;height:27px;background:var(--line)}.logo-caption{font-size:8px;line-height:1.55;font-weight:650;letter-spacing:.22em;white-space:nowrap}.logo-caption small{display:block;color:var(--muted);letter-spacing:.3em;font-size:7px}
html[data-theme=nocturne] .logo img,html[data-theme=nocturne] .footer-signature img{filter:invert(1)}
.nav{display:flex;align-items:center;gap:clamp(13px,2vw,35px);margin-left:auto}.nav>a,.nav-collection>button{padding:20px 0;background:none;border:0;color:var(--ink);font-size:10px;line-height:1.1;letter-spacing:.16em;font-weight:650;text-transform:uppercase;white-space:nowrap}.nav>a[aria-current=page]{border-bottom:2px solid var(--gold);color:var(--gold)}.nav a:hover,.nav-collection>button:hover{color:var(--gold)}.nav-collection{position:relative}.nav-collection>button span{font-size:16px;margin-left:4px}.submenu{display:none;position:absolute;top:100%;left:-17px;width:274px;background:var(--menu);border:1px solid var(--line);box-shadow:0 15px 35px var(--shadow);padding:12px;z-index:70}.submenu.is-open,.nav-collection:hover .submenu,.nav-collection:focus-within .submenu{display:grid}.submenu a{font-size:12px;padding:11px 12px;border-bottom:1px solid var(--line)}.submenu a:last-child{border:0}.submenu a:hover{background:var(--panel)}.design-control{display:flex;align-items:center;gap:9px;margin-left:16px;border-left:1px solid var(--line);padding-left:20px}.design-caption{font-size:9px;color:var(--muted)}.design-buttons{display:flex;align-items:center;gap:3px}.design-buttons button{border:1px solid var(--line);background:transparent;color:var(--muted);height:29px;min-width:32px;padding:0 8px;font-size:10px;letter-spacing:.07em}.design-buttons button[aria-pressed=true]{background:var(--highlight);border-color:var(--highlight);color:white}.design-buttons button:hover{border-color:var(--gold)}.menu-toggle{display:none}
/* Complete three-part exhibition layout, matching the design study rather than a boxed card UI. */
.hero{display:grid;grid-template-columns:minmax(250px,27%) minmax(0,51%) minmax(200px,22%);min-height:480px;overflow:hidden;background:var(--hero-copy)}.hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(26px,3.5vw,62px) clamp(25px,3.9vw,69px);background:var(--hero-copy);min-width:0;position:relative;z-index:2}.eyebrow{font-size:10px;line-height:1.5;letter-spacing:.26em;color:var(--gold)}.hero-title{font-family:Georgia,'Iowan Old Style','Baskerville',serif;font-weight:400;font-size:clamp(48px,4.35vw,79px);letter-spacing:-.065em;line-height:1.02;margin:20px 0 14px;max-width:10ch}.hero-title em{font-style:italic;color:var(--gold)}.hero-subtitle{font:italic clamp(17px,1.5vw,23px)/1.4 Georgia,serif;color:var(--muted);margin:0 0 31px;max-width:22ch}.hero-overline{color:var(--muted);font-size:9px;letter-spacing:.24em;margin-bottom:21px}.hero-cta{display:inline-flex;align-items:center;gap:clamp(12px,2vw,35px);border:1px solid var(--gold);color:var(--gold);font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding:15px 17px;transition:background .2s,color .2s}.hero-cta:hover{background:var(--gold);color:var(--header)}.hero-cta span{font-size:18px}
.exhibition{position:relative;min-height:480px;overflow:hidden;background:#261c1a}.room-image{position:absolute;inset:0;background-image:var(--room);background-position:center;background-size:cover}.exhibition:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0001,transparent 30%,#0001);pointer-events:none}.wall-gallery{position:absolute;inset:0;z-index:2}.wall-art{position:absolute;z-index:2;display:block;padding:0;background:transparent;border:0;box-shadow:0 15px 20px #0008,0 2px 3px #0005;transform:perspective(900px) rotateY(-1.7deg);transition:transform .2s,box-shadow .2s}.wall-art:hover{transform:perspective(900px) rotateY(0deg) scale(1.04);box-shadow:0 20px 28px #000b}.wall-art-1{left:20%;top:28%;width:17%;height:32%}.wall-art-2{left:42%;top:23%;width:18%;height:37%}.wall-art-3{left:66%;top:30%;width:16%;height:31%}.art-frame{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:5%;background:var(--art-paper);border:7px solid var(--art-frame);box-shadow:0 0 0 1px #ebe0d0a0 inset,0 0 0 1px #0005}.art-frame img{width:100%;height:100%;object-fit:contain;position:relative;z-index:2}.img-fallback{display:none;align-items:center;justify-content:center;text-align:center;padding:7px;background:var(--paper);color:var(--muted);font:italic 12px/1.25 Georgia,serif;position:absolute;inset:0}.wall-art .img-fallback{font-size:10px}.missing>.img-fallback,.missing .img-fallback{display:flex}.missing>img{display:none}.room-label{position:absolute;right:14px;bottom:15px;z-index:4;color:white;text-shadow:0 1px 5px #000c;font-size:8px;letter-spacing:.17em}.room-label span{color:#fff9}
.art-focus{border:0;padding:0;position:relative;display:block;overflow:hidden;background:var(--paper);min-width:0;text-align:left}.art-focus img{height:100%;width:100%;object-fit:cover;object-position:53% 47%;transform:scale(1.5);transition:transform .6s;position:absolute;inset:0}.art-focus:hover img{transform:scale(1.65)}.art-focus:before{content:'';position:absolute;inset:0;background:var(--focus-overlay);z-index:2}.art-focus-caption{position:absolute;bottom:22px;left:16px;right:16px;color:#fff;z-index:4;display:flex;justify-content:space-between;gap:8px;font-size:9px;line-height:1.6;text-shadow:0 1px 4px #000c}.art-fallback{font-size:19px}.art-focus.missing .art-fallback{z-index:3;background:var(--paper);color:var(--ink)}
.exhibition-note{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 3.5%;color:var(--muted);background:var(--bg);border-bottom:1px solid var(--line);font-size:8px;line-height:1.5;letter-spacing:.13em}.exhibition-note span:nth-child(2){color:var(--gold)}
.collections{padding:50px 3.7% 52px;background:var(--collections-bg);border-bottom:1px solid var(--line)}.collections-heading,.section-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.collections-heading h2,.section-top h2{font:400 clamp(28px,2.7vw,42px)/1.1 Georgia,serif;letter-spacing:-.035em;margin:7px 0 0}.section-index{font-size:9px;color:var(--muted)}.collection-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.collection{display:block;min-width:0}.collection-image{aspect-ratio:1.85;position:relative;overflow:hidden;background:var(--paper);border:1px solid var(--line)}.collection-image img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s;z-index:2}.collection:hover .collection-image img{transform:scale(1.07)}.collection-number{display:block;color:var(--gold);font-size:9px;margin:12px 0 7px}.collection-title{display:flex;justify-content:space-between;gap:6px;align-items:start;font-family:Georgia,serif;font-size:17px;line-height:1.25;font-weight:normal}.collection-title strong{font-weight:400}.collection-title>span{color:var(--gold);font-family:Arial,sans-serif}
.editorial{display:grid;grid-template-columns:1.12fr .88fr;background:var(--bg);min-height:480px}.editorial-figure{position:relative;background:var(--paper);min-height:470px}.editorial-figure>button{display:block;width:100%;height:100%;border:0;background:var(--paper);padding:0;position:absolute;inset:0;overflow:hidden}.editorial-figure img{width:100%;height:100%;object-fit:cover;object-position:center 42%;position:absolute;inset:0;transition:transform .45s}.editorial-figure button:hover img{transform:scale(1.05)}.editorial-caption{position:absolute;left:28px;bottom:22px;color:#fff;z-index:4;background:#0b0a0aa0;padding:9px 13px;letter-spacing:.18em;font-size:9px;pointer-events:none}.editorial-copy{padding:clamp(28px,5vw,85px) clamp(25px,5vw,90px);background:var(--panel);display:flex;flex-direction:column;align-items:start;justify-content:center}.editorial-copy h2{font:400 clamp(32px,3.6vw,58px)/1.12 Georgia,serif;letter-spacing:-.055em;margin:16px 0 19px;max-width:15ch}.editorial-copy h2 em{font-style:italic;color:var(--gold)}.editorial-copy p{font:17px/1.7 Georgia,serif;color:var(--muted);max-width:44ch;margin:0 0 25px}.editorial-copy .small-note{font-size:14px;margin:12px 0 0}.text-cta{font-size:10px;color:var(--gold);padding:0 0 9px;border-bottom:1px solid var(--gold)}.text-cta span{margin-left:16px}.editorial-rule{width:100%;border-bottom:1px solid var(--line);margin:35px 0 22px}
.selected,.gallery-section{padding:70px 3.7%;background:var(--bg)}.section-top>a,.section-top p{font-size:10px;color:var(--gold);margin:0}.section-top p{color:var(--muted)}.section-top>a>span{margin-left:13px}.selected-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.selected-art{padding:0;border:0;background:transparent;color:var(--ink);text-align:left;min-width:0}.selected-img,.artwork-visual{display:block;position:relative;overflow:hidden;background:var(--paper)}.selected-img{aspect-ratio:1}.selected-img img,.artwork-visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;transition:transform .3s;z-index:2}.selected-art:hover .selected-img img,.artwork:hover .artwork-visual img{transform:scale(1.04)}.selected-art strong{display:block;font:400 17px/1.35 Georgia,serif;margin:13px 0 7px}.selected-art>span:last-child{font-size:9px;color:var(--gold)}
.home-note{display:grid;grid-template-columns:1fr 1.5fr;gap:30px;padding:60px 8%;border-top:1px solid var(--line);background:var(--panel)}.home-note h2{font:400 38px Georgia,serif}.legacy-content{line-height:1.9;color:var(--ink);font-family:Georgia,serif;font-size:17px;overflow-wrap:anywhere}.legacy-content a{text-decoration:underline;color:var(--gold)}.legacy-content p{margin:0 0 18px}.legacy-content ul{padding-left:25px}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.artwork{display:flex;flex-direction:column;padding:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);text-align:left;min-width:0}.artwork-visual{aspect-ratio:1.1;background:var(--paper)}.artwork-meta{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:16px 15px 10px}.artwork-meta strong{font:400 19px/1.25 Georgia,serif}.artwork-meta>span{font:9px Arial,sans-serif;color:var(--gold)}.artwork-desc{font:14px/1.5 Georgia,serif;color:var(--muted);padding:0 15px 20px}
.interior-header{min-height:480px;display:grid;grid-template-columns:40% 60%;background:var(--hero-copy)}.interior-header>div:first-child{padding:80px 12%;display:flex;flex-direction:column;justify-content:center}.interior-header h1{font:400 clamp(55px,5.8vw,88px)/1 Georgia,serif;letter-spacing:-.06em;margin:20px 0}.interior-header p{font:italic 20px Georgia,serif;color:var(--muted)}.interior-panel{position:relative;min-height:480px;overflow:hidden}.single-work{position:absolute;left:35%;top:20%;width:31%;height:51%;padding:0;border:0;background:none;box-shadow:0 20px 25px #0009}.article-section{display:grid;grid-template-columns:30% 70%;gap:0;padding:75px 6%;background:var(--bg)}.article-side{display:flex;flex-direction:column;gap:20px}.article-index{font-size:10px;color:var(--muted)}.article-body{max-width:900px;font-size:17px;line-height:1.9}.collections.compact{padding-top:40px}
.footer{padding:36px 3.7% 22px;background:var(--header);border-top:1px solid var(--line);font-size:10px;color:var(--muted);letter-spacing:.12em}.footer-main{display:flex;align-items:center;gap:20px}.footer-signature img{width:160px;max-height:80px;object-fit:contain}.footer-links{display:flex;justify-content:end;gap:24px;margin-top:-35px}.footer-links a:hover{color:var(--gold)}.footer small{display:block;color:var(--muted);font-size:9px;margin-top:46px;line-height:1.6}
.art-modal{position:fixed;inset:0;z-index:150;background:#0b0a0aed;color:#fff;display:flex;flex-direction:column;backdrop-filter:blur(16px)}.modal-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 4%;font-size:10px;border-bottom:1px solid #ffffff30}.modal-controls button{background:transparent;border:1px solid #fff8;color:white;padding:10px 18px;font-size:11px;letter-spacing:.13em}.modal-main{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;gap:2vw;padding:22px 3%}.modal-arrow{background:transparent;border:0;color:white;font:55px Georgia,serif;padding:10px 15px}.modal-image-wrap{position:relative;display:flex;align-items:center;justify-content:center;max-width:calc(100% - 120px);height:100%}.modal-image-wrap img{display:block;max-height:100%;max-width:100%;object-fit:contain}.modal-footer{border-top:1px solid #ffffff30;display:flex;align-items:start;gap:25px;justify-content:space-between;padding:16px 4%;font-size:10px;line-height:1.5}.modal-footer strong{font:400 20px Georgia,serif;text-transform:none;letter-spacing:normal}.modal-footer span{max-width:48%;color:#ccc}.modal-footer a{color:#d9ae78;white-space:nowrap}
/* Site-specific variations, not simply color swaps. */
html[data-theme=atelier] .hero{grid-template-columns:minmax(280px,29%) minmax(0,49%) minmax(170px,22%);min-height:500px}html[data-theme=atelier] .hero-copy{background:linear-gradient(140deg,#f5eadf,#ead8c4);padding-left:10%}html[data-theme=atelier] .hero-title{font-size:clamp(50px,4.7vw,81px)}html[data-theme=atelier] .art-focus img{object-position:50% 45%;transform:scale(1.75)}html[data-theme=atelier] .art-focus:hover img{transform:scale(1.86)}html[data-theme=atelier] .wall-art{border:0}html[data-theme=atelier] .collections{padding-top:58px}html[data-theme=atelier] .collection-image{border:0}html[data-theme=atelier] .collection-title{font-size:18px}html[data-theme=atelier] .hero-cta{background:var(--highlight);color:#fff;border-color:var(--highlight)}
html[data-theme=mineral] .hero{grid-template-columns:minmax(290px,30%) minmax(0,50%) minmax(170px,20%);min-height:500px}html[data-theme=mineral] .hero-copy{background:linear-gradient(150deg,#eff2f3,#dde3e5)}html[data-theme=mineral] .hero-title{font-size:clamp(49px,4.8vw,80px)}html[data-theme=mineral] .hero-title em{color:var(--ink)}html[data-theme=mineral] .art-frame{border-width:5px}html[data-theme=mineral] .collection-image{border:0}html[data-theme=mineral] .collections{padding-top:60px}html[data-theme=mineral] .hero-cta{color:#263a48;border-color:#405869}html[data-theme=mineral] .hero-cta:hover{background:#263a48;color:#fff}html[data-theme=mineral] .art-focus img{object-position:60% 20%;transform:scale(1.75)}html[data-theme=mineral] .art-focus:hover img{transform:scale(1.9)}html[data-theme=mineral] .collection-number{letter-spacing:.12em}
@media(max-width:1330px){.header{padding:0 2.2%}.logo img{width:125px}.logo-caption{display:none}.logo-rule{display:none}.nav{gap:16px}.design-control{padding-left:12px;margin-left:8px}.hero,.html[data-theme=atelier] .hero{grid-template-columns:30% 49% 21%}.hero-title{font-size:58px}.hero-copy{padding:27px}.collection-grid,.selected-grid{gap:12px}.collection-title{font-size:15px}}
@media(max-width:1050px){.header{gap:10px}.nav{gap:11px}.nav>a,.nav-collection>button{font-size:9px}.design-caption{display:none}.hero,html[data-theme=atelier] .hero,html[data-theme=mineral] .hero{grid-template-columns:35% 65%}.hero-copy{padding:45px 8%}.hero-title{font-size:clamp(50px,6vw,68px)}.art-focus{display:none}.wall-art-1{left:21%}.wall-art-2{left:45%}.wall-art-3{left:70%}.collection-grid,.selected-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-image{aspect-ratio:2.1}.editorial{grid-template-columns:1fr 1fr}.editorial-copy{padding:35px}}
@media(max-width:780px){.header{position:sticky;min-height:66px;padding:0 14px}.logo img{width:123px;height:61px}.menu-toggle{display:flex;margin-left:auto;align-items:center;gap:7px;color:var(--ink);border:1px solid var(--line);background:transparent;font-size:10px;text-transform:uppercase;letter-spacing:.12em;padding:9px}.menu-toggle span{font-size:15px}.nav{display:none;position:absolute;top:100%;left:0;right:0;padding:12px 18px 20px;background:var(--menu);border-bottom:1px solid var(--line);box-shadow:0 14px 22px var(--shadow);max-height:70vh;overflow:auto;flex-direction:column;align-items:stretch;gap:0}.nav.is-open{display:flex}.nav>a,.nav-collection>button{display:block;width:100%;text-align:left;font-size:12px;padding:13px 5px;border-bottom:1px solid var(--line)}.submenu,.nav-collection:hover .submenu,.nav-collection:focus-within .submenu{display:none;position:static;box-shadow:none;border:0;padding:0 0 8px 15px;width:100%}.submenu.is-open{display:grid}.design-control{margin-left:0;border:0;padding-left:0}.hero,html[data-theme=atelier] .hero,html[data-theme=mineral] .hero{display:grid;grid-template-columns:1fr;min-height:0}.hero-copy{min-height:315px;padding:48px 5%}.hero-title{max-width:none;font-size:clamp(52px,9vw,78px)}.hero-subtitle{max-width:40ch;margin-bottom:20px}.exhibition{min-height:0;aspect-ratio:1.8}.exhibition-note span:last-child{display:none}.art-focus{display:none}.collection-grid,.selected-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.editorial{grid-template-columns:1fr}.editorial-figure{min-height:330px}.editorial-copy{padding:42px 5%}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.interior-header{grid-template-columns:1fr}.interior-header>div:first-child{padding:45px 5%}.interior-panel{min-height:340px}.article-section{grid-template-columns:1fr;padding:40px 5%}.article-side{margin-bottom:20px}.footer-links{margin:30px 0 0;justify-content:start}.footer small{margin-top:30px}}
@media(max-width:520px){.header{padding:0 10px}.logo img{width:105px;height:52px}.design-buttons button{min-width:29px;padding:0 5px;font-size:9px}.menu-toggle{font-size:0;padding:8px 10px}.menu-toggle span{font-size:19px}.hero-copy{min-height:280px;padding:35px 20px}.hero-title{font-size:50px}.hero-overline{font-size:8px}.hero-cta{padding:12px 15px;font-size:9px}.exhibition{aspect-ratio:1.7}.wall-art-1{left:17%;top:30%;width:20%;height:30%}.wall-art-2{left:42%;top:25%;width:20%;height:34%}.wall-art-3{left:69%;top:31%;width:18%;height:27%}.art-frame{border-width:3px;padding:2px}.room-label{font-size:6px;right:6px;bottom:6px}.exhibition-note{font-size:8px}.collections,.selected,.gallery-section{padding:34px 14px}.collections-heading h2,.section-top h2{font-size:27px}.collection-grid,.selected-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.collection-image{aspect-ratio:1.55}.collection-title{font-size:15px}.collection-number{font-size:8px}.section-index,.section-top p{display:none}.editorial-figure{min-height:270px}.selected-art strong{font-size:15px}.gallery-grid{grid-template-columns:1fr 1fr;gap:10px}.artwork-meta{padding:10px}.artwork-meta strong{font-size:16px}.artwork-desc{font-size:12px;padding:0 10px 14px}.home-note{grid-template-columns:1fr;padding:35px 5%}.modal-controls{padding:14px}.modal-main{gap:1px;padding:8px}.modal-arrow{font-size:32px;padding:8px}.modal-image-wrap{max-width:calc(100% - 80px)}.modal-footer{flex-wrap:wrap;gap:10px}.modal-footer span{max-width:100%}.footer{padding:30px 15px}.footer-main{display:block}.footer-main>span{display:block;margin-top:12px}.footer-signature img{width:140px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Gallery 5 & 6 bespoke presentations — all other galleries use the original museum design unchanged. */
.hero--archive,.hero--textile{background:var(--hero-copy)}
.special-stage{min-width:0;min-height:480px;position:relative;overflow:hidden;display:flex;flex-direction:column;padding:clamp(18px,2vw,32px);border-left:1px solid var(--line);border-right:1px solid var(--line);color:var(--ink)}
.special-stage-heading,.special-stage-foot{position:relative;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:12px;font:600 9px/1.5 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.special-stage-heading{color:var(--gold)}.special-stage-foot{color:var(--muted);font-size:8px}
.archive-stage{background:radial-gradient(ellipse at 48% 55%,rgba(168,133,107,.18),transparent 70%),linear-gradient(145deg,var(--panel),var(--bg))}
.archive-stage:before{content:"";position:absolute;inset:0;opacity:.11;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 40px,var(--muted) 41px,transparent 42px),repeating-linear-gradient(90deg,transparent 0 40px,var(--muted) 41px,transparent 42px)}
.archive-display{position:relative;flex:1;min-height:385px;isolation:isolate;display:block}
.archive-guideline{position:absolute;inset:14% 6%;border:1px solid var(--line);opacity:.6;transform:rotate(-2deg);pointer-events:none}
.archive-print{--tilt:0deg;position:absolute;padding:9px 9px 8px;background:#eee5d9;color:#231e1b;border:1px solid #ddd1c5;box-shadow:0 13px 24px rgba(0,0,0,.28),0 3px 7px #0002;display:flex;flex-direction:column;text-align:left;gap:8px;transform:rotate(var(--tilt));transition:transform .25s,box-shadow .25s;min-width:0;z-index:2}
.archive-print:hover,.archive-print:focus-visible{z-index:7;transform:rotate(0deg) scale(1.05);box-shadow:0 21px 32px #0008}
.archive-print-1{left:4%;top:11%;height:72%;width:32%;--tilt:-6deg;z-index:2}
.archive-print-2{left:34%;top:3%;height:86%;width:35%;--tilt:2deg;z-index:3}
.archive-print-3{left:69%;top:16%;height:70%;width:29%;--tilt:7deg;z-index:1}
.archive-image{position:relative;display:flex;flex:1;min-height:0;align-items:center;justify-content:center;overflow:hidden;background:#e1d6c8;border:1px solid #c4b4a6}
.archive-image img{display:block;width:100%;height:100%;object-fit:contain;position:relative;z-index:2}
.archive-print-caption{display:flex;flex-direction:column;gap:3px;min-height:36px}.archive-print-caption small{font:600 8px Arial,sans-serif;letter-spacing:.16em;color:#8c6a50}.archive-print-caption strong{font:italic 13px/1.1 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.special-detail{position:relative;min-width:0;min-height:480px;background:var(--paper);color:var(--ink);border:0;padding:clamp(18px,2vw,30px);text-align:left;display:flex;flex-direction:column;gap:13px;align-items:stretch;overflow:hidden}
.special-detail-kicker{color:var(--gold);display:flex;justify-content:space-between;align-items:center;gap:8px;font:600 9px/1.5 Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.special-detail-kicker span{font-size:16px}
.special-detail-visual{position:relative;flex:1;min-height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.special-detail-visual img{position:relative;z-index:2;max-width:100%;width:100%;height:100%;object-fit:contain;transition:transform .3s}
.special-detail:hover .special-detail-visual img{transform:scale(1.035)}
.special-detail-title{font:italic clamp(17px,1.6vw,24px)/1.15 Georgia,serif}
.special-detail-subtitle{font:12px/1.4 Georgia,serif;color:var(--muted)}
.archive-detail{background:linear-gradient(135deg,var(--paper),var(--panel))}
.archive-detail .special-detail-visual{background:var(--art-paper);padding:12px;border:1px solid var(--line)}
.textile-stage{background:radial-gradient(ellipse at 60% 45%,rgba(144,106,84,.14),transparent 65%),var(--panel)}
.textile-stage:before{content:"";position:absolute;inset:0;opacity:.07;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 10px,var(--muted) 11px,transparent 12px),repeating-linear-gradient(0deg,transparent 0 10px,var(--muted) 11px,transparent 12px)}
.textile-lookbook{position:relative;z-index:2;flex:1;min-height:385px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;padding:21px 0 23px}
.textile-swatch{position:relative;min-width:0;display:flex;flex-direction:column;gap:9px;padding:10px 10px 14px;background:var(--art-paper);color:#27211d;border:1px solid #9c8c78;text-align:left;box-shadow:0 16px 25px #0004;transition:transform .25s,box-shadow .25s}
.textile-swatch:nth-child(1){transform:translateY(19px)}.textile-swatch:nth-child(2){transform:translateY(-6px)}.textile-swatch:nth-child(3){transform:translateY(16px)}
.textile-swatch:hover,.textile-swatch:focus-visible{transform:translateY(-9px);box-shadow:0 22px 32px #0006;z-index:4}
.textile-swatch-image{position:relative;display:flex;flex:1;min-height:0;align-items:center;justify-content:center;background:#ddd3c6;overflow:hidden}
.textile-swatch-image img{position:relative;z-index:2;display:block;width:100%;height:100%;object-fit:contain}
.textile-swatch-name{display:flex;flex-direction:column;gap:4px;min-height:45px}.textile-swatch-name small{font:600 8px Arial,sans-serif;letter-spacing:.14em;color:#8c6a50}.textile-swatch-name strong{font:italic 13px/1.15 Georgia,serif;overflow-wrap:anywhere}
.textile-detail{background:linear-gradient(160deg,var(--paper),var(--panel))}
.textile-detail .special-detail-visual{padding:14px;background:var(--art-paper)}
html[data-theme=atelier] .archive-stage{background:linear-gradient(135deg,#f3e8dd,#e8d5bf)}
html[data-theme=atelier] .textile-stage{background:linear-gradient(145deg,#f2e6d9,#dbccc0)}
html[data-theme=mineral] .archive-stage{background:linear-gradient(145deg,#edf0f0,#c8d2d5)}
html[data-theme=mineral] .textile-stage{background:linear-gradient(145deg,#e6eaec,#c5cfd2)}
@media(max-width:1050px){.special-detail{display:none}.hero--archive,.hero--textile{grid-template-columns:35% 65%!important}}
@media(max-width:780px){.hero--archive,.hero--textile{grid-template-columns:1fr!important}.special-stage{min-height:390px;padding:20px}.archive-display,.textile-lookbook{min-height:330px}.special-detail{display:flex;min-height:260px;flex-direction:row;gap:20px;align-items:center;padding:18px 5%}.special-detail-kicker{position:absolute;top:12px;left:5%;right:5%}.special-detail-visual{height:200px;min-height:200px;max-width:40%;margin-top:25px}.special-detail-title{max-width:24%;font-size:22px}.special-detail-subtitle{max-width:26%}}
@media(max-width:520px){.special-stage{min-height:350px;padding:14px}.special-stage-heading,.special-stage-foot{font-size:7px}.archive-display,.textile-lookbook{min-height:290px}.archive-print{padding:5px;gap:4px}.archive-print-caption{min-height:28px}.archive-print-caption strong{font-size:10px}.archive-print-caption small{font-size:6px}.textile-lookbook{gap:7px;padding:13px 0 15px}.textile-swatch{padding:5px;gap:4px}.textile-swatch-name{min-height:30px}.textile-swatch-name small{font-size:6px}.textile-swatch-name strong{font-size:10px;line-height:1.2}.special-detail{min-height:190px;padding:14px;gap:11px}.special-detail-kicker{left:14px;right:14px;font-size:8px}.special-detail-visual{height:135px;min-height:135px;max-width:40%;margin-top:24px;padding:6px!important}.special-detail-title{font-size:17px}.special-detail-subtitle{font-size:10px}}


/* 2026-11-14 — Natural-size painting frames.
   The wall photograph contains NO image frames. Each border is drawn by CSS
   directly around the full, uncropped Cazam image. JavaScript fits each frame
   into its original wall slot without changing the source artwork's proportions. */
.wall-art{
  --wall-center-x:50;
  --wall-center-y:45;
  --wall-max-width:18;
  --wall-max-height:37;
  left:calc(var(--wall-center-x) * 1%);
  top:calc(var(--wall-center-y) * 1%);
  width:calc(var(--wall-max-width) * 1%);
  height:auto;
  transform:translate(-50%,-50%) perspective(900px) rotateY(-1.7deg);
  transform-origin:center center;
  box-shadow:none;
  overflow:visible;
}
.wall-art:hover,.wall-art:focus-visible{
  transform:translate(-50%,-50%) perspective(900px) rotateY(0deg) scale(1.04);
  box-shadow:none;
}
.wall-art-1{--wall-center-x:28.5;--wall-center-y:44;--wall-max-width:17;--wall-max-height:32}
.wall-art-2{--wall-center-x:51;--wall-center-y:41.5;--wall-max-width:18;--wall-max-height:37}
.wall-art-3{--wall-center-x:74;--wall-center-y:45.5;--wall-max-width:16;--wall-max-height:31}
.wall-art .art-frame{
  --frame-border:6px;
  display:block;
  position:relative;
  width:100%;
  height:auto;
  padding:0;
  background:transparent;
  border:var(--frame-border) solid var(--art-frame);
  box-shadow:0 0 0 1px rgba(0,0,0,.45), 0 2px 3px rgba(0,0,0,.35), 0 14px 21px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.22);
  border:0px !important;
}
.wall-art .art-frame img{
  display:block;
  position:relative;
  width:100%;
  height:auto;
  max-width:none;
  object-fit:contain;
  /* No clipping, crop, letterboxing, or pre-made mat around the artwork. */
}
.wall-art .art-frame.missing{min-height:85px;background:var(--art-paper)}
html[data-theme=mineral] .wall-art .art-frame{--frame-border:5px}
@media (max-width:1050px){
 .wall-art-1{--wall-center-x:29.5}
 .wall-art-2{--wall-center-x:54}
 .wall-art-3{--wall-center-x:78}
}
@media (max-width:520px){
 .wall-art-1{--wall-center-x:27;--wall-center-y:45;--wall-max-width:20;--wall-max-height:30}
 .wall-art-2{--wall-center-x:52;--wall-center-y:42;--wall-max-width:20;--wall-max-height:34}
 .wall-art-3{--wall-center-x:78;--wall-center-y:44.5;--wall-max-width:18;--wall-max-height:27}
 .wall-art .art-frame{--frame-border:3px}
 html[data-theme=mineral] .wall-art .art-frame{--frame-border:3px}
}

/* Biography: fixed original portrait, no crop or fictional painting overlay. */
.biography-portrait-panel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px clamp(20px,5vw,76px);
  background:radial-gradient(ellipse at 55% 35%,rgba(180,125,94,.14),transparent 65%),var(--panel);
  border-left:1px solid var(--line);
}
.biography-portrait{margin:0;display:flex;align-items:center;flex-direction:column;gap:13px;max-width:100%;}
.biography-portrait img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  box-shadow:0 20px 42px rgba(0,0,0,.25);
}
.biography-portrait figcaption{
  width:100%;display:flex;justify-content:space-between;gap:14px;
  font:600 10px/1.4 Arial,sans-serif;letter-spacing:.18em;color:var(--muted);
}
.biography-portrait figcaption span{color:var(--gold)}
@media(max-width:780px){
  .biography-portrait-panel{padding:25px 14px;min-height:0}
  .biography-portrait img{max-height:min(68vh,450px)}
}

/* Studio v5 - additional gallery states and three genuinely different gallery environments. */
.empty-collection-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;height:100%;min-height:170px;background:radial-gradient(circle at 50% 30%,#8b645333,#342c2a1a 65%),var(--paper);color:var(--gold);font:italic clamp(24px,3vw,45px)/1.2 Georgia,serif;letter-spacing:.12em}
.empty-collection-art small{font:600 10px/1.5 Arial,sans-serif;letter-spacing:.1em;color:var(--muted);text-transform:uppercase}
.empty-gallery-hero{min-height:350px;background:linear-gradient(120deg,var(--hero-copy),var(--paper));color:var(--ink);padding:65px clamp(20px,8vw,125px)}.empty-gallery-hero h1{font:normal clamp(38px,6vw,84px)/1.05 Georgia,serif;max-width:800px;margin:18px 0}.empty-gallery-hero p{color:var(--muted);font:italic 20px/1.5 Georgia,serif;max-width:530px}
.atelier-architecture,.mineral-architecture{display:none;position:absolute;inset:0;pointer-events:none;z-index:1}
/* Style 2: vaulted limestone conservatory - a fresh empty architecture photograph,
   with artwork overlaid as original Cazam JPEGs and CSS-fitted frames. */
html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile){grid-template-columns:minmax(260px,27%) minmax(0,57%) minmax(160px,16%);min-height:535px}
html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition{min-height:535px;background:#e3d5c4}
html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition .room-image{background-image:url('exhibition_atelier_arches.jpg');background-size:cover;background-position:center 49%}
html[data-theme=atelier] .atelier-architecture{display:block}
html[data-theme=atelier] .atelier-wall-inscription{position:absolute;left:6%;top:18%;font:600 10px/1.3 Arial,sans-serif;letter-spacing:.26em;text-transform:uppercase;color:#76645255;transform:rotate(-90deg) translateX(-80%);transform-origin:top left}
html[data-theme=atelier] .wall-art-1{--wall-center-x:36;--wall-center-y:46;--wall-max-width:14;--wall-max-height:27}
html[data-theme=atelier] .wall-art-2{--wall-center-x:55;--wall-center-y:43;--wall-max-width:20;--wall-max-height:33}
html[data-theme=atelier] .wall-art-3{--wall-center-x:75;--wall-center-y:46;--wall-max-width:14;--wall-max-height:27}
html[data-theme=atelier] .wall-art .art-frame{--frame-border:5px;border-color:#7d674e;box-shadow:0 0 0 1px #fff7ef,0 4px 6px #60452666,0 16px 27px #3a24173d}
html[data-theme=atelier] .art-focus{border-left:5px solid #eee2d4}
html[data-theme=atelier] .art-focus-caption{font-size:8px}
/* Style 3: a mineral/graphite walk-through with an architectural projection
   wall and faceted wings. No image frames in the backdrop: paintings are CSS. */
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){grid-template-columns:minmax(245px,26%) minmax(0,74%);min-height:560px;position:relative}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy{grid-column:1;grid-row:1;min-height:560px;z-index:3;border-right:1px solid #aab6bd}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{grid-column:2;grid-row:1;min-height:560px;background:linear-gradient(115deg,#b4c0c7,#eef1f0)}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition .room-image{background-image:linear-gradient(0deg,#43576118,#dbe2e422),url('exhibition_mineral.jpg');background-size:cover;background-position:center 48%}
html[data-theme=mineral] .mineral-architecture{display:block;filter:drop-shadow(0 9px 14px #1023323b)}
html[data-theme=mineral] .mineral-ceiling{position:absolute;left:3%;right:2%;top:0;height:20%;clip-path:polygon(0 0,100% 0,85% 78%,14% 86%);background:linear-gradient(180deg,#3d5966a8,#c8d2d5bd 72%,#ffffff11)}
html[data-theme=mineral] .mineral-left-facet{position:absolute;top:15%;left:-2%;width:32%;height:66%;clip-path:polygon(0 0,100% 12%,99% 88%,0 100%);background:linear-gradient(135deg,#a4b2b8f9,#d2d9d9e6 53%,#7f929dce);border-right:2px solid #5a707b88;box-shadow:inset -22px -4px 33px #34526140}
html[data-theme=mineral] .mineral-centre-facet{position:absolute;top:11%;left:30%;width:45%;height:75%;clip-path:polygon(0 6%,100% 0,100% 100%,0 91%);background:linear-gradient(127deg,#e6ededf9 0%,#c6d1d5f4 48%,#9fafb6ee 100%);box-shadow:inset 26px 6px 28px #fff9,inset -30px 8px 30px #1d3c4840}
html[data-theme=mineral] .mineral-right-facet{position:absolute;top:20%;left:75%;right:-1%;height:61%;clip-path:polygon(0 0,100% 10%,100% 100%,0 86%);background:linear-gradient(115deg,#8ba0aaed,#c8d4d7fa 43%,#90a4abea);border-left:2px solid #516c7c66}
html[data-theme=mineral] .mineral-floor{position:absolute;left:5%;right:4%;bottom:0;height:18%;clip-path:polygon(9% 0,92% 0,100% 100%,0 100%);background:repeating-linear-gradient(90deg,transparent 0,transparent 19%,#647f8f25 19.2%,transparent 19.5%),linear-gradient(180deg,#e1e7e5b5,#a3b3b7d9);border-top:1px solid #f4f8f4ae}
html[data-theme=mineral] .wall-art{transform:translate(-50%,-50%) perspective(700px) rotateY(-3deg)}
html[data-theme=mineral] .wall-art:hover{transform:translate(-50%,-50%) perspective(700px) rotateY(0) scale(1.045)}
html[data-theme=mineral] .wall-art-1{--wall-center-x:15;--wall-center-y:47;--wall-max-width:15;--wall-max-height:30}
html[data-theme=mineral] .wall-art-2{--wall-center-x:51;--wall-center-y:45;--wall-max-width:23;--wall-max-height:39}
html[data-theme=mineral] .wall-art-3{--wall-center-x:88;--wall-center-y:50;--wall-max-width:13;--wall-max-height:27}
html[data-theme=mineral] .wall-art .art-frame{border-color:#405965;box-shadow:0 0 0 1px #f8ffff83,0 4px 10px #203b4a8a,0 18px 35px #1a34496b}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{grid-column:2;grid-row:1;align-self:end;justify-self:end;z-index:7;width:min(27%,210px);height:150px;min-height:0;margin:0 24px 21px 0;border:6px solid var(--panel);box-shadow:0 10px 30px #142d388c}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus img{object-fit:cover;object-position:center;transform:scale(1.4)}
html[data-theme=mineral] .room-label{left:14px;right:auto;color:#253b4b;text-shadow:none;background:#e1e8e4c7;padding:5px 9px;border-radius:3px}
@media(max-width:1050px){
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile){grid-template-columns:32% 68%;min-height:0}
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition{min-height:460px}
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .art-focus{display:none}
 html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){grid-template-columns:31% 69%;min-height:0}
 html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy{min-height:460px}
 html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{min-height:460px}
 html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{display:none}
}
@media(max-width:780px){
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile),html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){display:flex;flex-direction:column}
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition,html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{width:100%;min-height:340px}
 html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy{min-height:0}
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .art-focus,html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{display:none}
 html[data-theme=mineral] .wall-art-1{--wall-center-x:16;--wall-center-y:47;--wall-max-width:14;--wall-max-height:26}
 html[data-theme=mineral] .wall-art-2{--wall-center-x:51;--wall-center-y:45;--wall-max-width:22;--wall-max-height:37}
 html[data-theme=mineral] .wall-art-3{--wall-center-x:87;--wall-center-y:47;--wall-max-width:13;--wall-max-height:25}
}
@media(max-width:520px){
 html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition,html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{min-height:300px}
 html[data-theme=atelier] .wall-art-1{--wall-center-x:34;--wall-center-y:45;--wall-max-width:15;--wall-max-height:24}
 html[data-theme=atelier] .wall-art-2{--wall-center-x:54;--wall-center-y:44;--wall-max-width:22;--wall-max-height:34}
 html[data-theme=atelier] .wall-art-3{--wall-center-x:76;--wall-center-y:45;--wall-max-width:14;--wall-max-height:23}
 html[data-theme=mineral] .wall-art .art-frame,html[data-theme=atelier] .wall-art .art-frame{--frame-border:3px}
}

/* CAZAM v6 — geometry-matched museum exhibits.
   Mineral is a realistic photographed architectural room, not synthetic facets.
   The original paintings are separate live IMG nodes in CSS-only frames. */
html[data-theme=mineral] .mineral-architecture {display:none!important}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition .room-image {
  background-image:url('exhibition_mineral.jpg');
  background-size:cover;
  background-position:center center;
}
html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition .room-image {
  background-size:cover;
  background-position:center center;
}
/* Both walls face the camera: false 3-D rotations would distort the artwork. */
html[data-theme=atelier] .wall-art,
html[data-theme=mineral] .wall-art {
  transform:translate(-50%,-50%);
  transform-origin:center center;
  box-shadow:none;
}
html[data-theme=atelier] .wall-art:hover,
html[data-theme=mineral] .wall-art:hover,
html[data-theme=atelier] .wall-art:focus-visible,
html[data-theme=mineral] .wall-art:focus-visible {
  transform:translate(-50%,-50%) scale(1.035);
  z-index:5;
  box-shadow:none;
}
/* The mineral exhibition is the architecture itself; don't float a fake
   artwork panel over the physical wall or cover the museum's floor. */
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus {display:none!important}
/* The original side-by-side art detail remains in the Atelier design. */
html[data-theme=atelier] .wall-art .art-frame {
  --frame-border:clamp(2px,.38vw,6px);
  border-color:#78654d;
  box-shadow:0 0 0 1px rgba(255,255,255,.25),0 4px 7px #3d2f2247,0 13px 21px #38291d45;
}
html[data-theme=mineral] .wall-art .art-frame {
  --frame-border:clamp(2px,.37vw,6px);
  border-color:#525a60;
  box-shadow:0 0 0 1px rgba(240,244,244,.25),0 4px 8px #18212948,0 14px 22px #121a2057;
}


/* CAZAM v7 -- Restore the separate Mineral Art Focus column. */
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){
  display:grid;
  grid-template-columns:minmax(240px,26%) minmax(0,54%) minmax(170px,20%);
  min-height:540px;
}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy{
  grid-column:1;grid-row:1;min-height:540px;
}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{
  grid-column:2;grid-row:1;min-height:540px;
}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{
  display:block!important;
  grid-column:3;grid-row:1;
  width:100%;height:100%;min-height:540px;
  align-self:stretch;justify-self:stretch;
  margin:0;border:0;box-shadow:none;
  position:relative;z-index:2;
}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus img{
  width:100%;height:100%;object-fit:cover;object-position:50% 50%;
  transform:scale(1.65);
}
html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus:hover img{
  transform:scale(1.8);
}
/* Style 2 -- architectural photo deliberately contains no artwork. */
html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .exhibition .room-image{
  background-image:url('exhibition_atelier_skylight.jpg');
  background-size:cover;background-position:center center;
}
@media (min-width:781px) and (max-width:1050px){
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){
    display:grid;grid-template-columns:31% 51% 18%;min-height:460px;
  }
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy,
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition,
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{min-height:460px;}
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{display:block!important}
}
@media(max-width:780px){
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){display:flex;flex-direction:column;min-height:0}
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .hero-copy{min-height:0}
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .exhibition{min-height:340px}
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{
    display:block!important;min-height:175px;height:175px;width:100%;flex:0 0 auto;
  }
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus img{
    object-position:50% 45%;transform:scale(1.2);
  }
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus:hover img{
    transform:scale(1.3);
  }
}

/* CAZAM v9 — consistent Art Focus columns on all galleries.
   Archive/textile still use their existing non-museum stage in the centre. */
.hero--archive,.hero--textile{
  display:grid;
  grid-template-columns:minmax(240px,27%) minmax(0,51%) minmax(180px,22%);
  align-items:stretch;
}
.hero--archive .art-focus,.hero--textile .art-focus{
  display:block!important;
  min-width:0;min-height:480px;height:auto;
  position:relative;overflow:hidden;padding:0;margin:0;
  border:0;box-shadow:none;background:var(--paper);
}
.hero--archive .art-focus img,.hero--textile .art-focus img{
  position:absolute;inset:0;width:100%;height:100%;max-width:none;
  object-fit:cover;transition:transform .5s ease;
}
/* Image coordinates are in the artwork itself, not a predefined gallery-wall frame.
   Top-left is an actual corner, for portrait and landscape source files alike. */
.hero--archive .art-focus img,
html[data-theme=atelier] .hero--archive .art-focus img,
html[data-theme=mineral] .hero--archive .art-focus img{
  object-position:left top;transform:scale(1.7);transform-origin:left top;
}
.hero--archive .art-focus:hover img,
html[data-theme=atelier] .hero--archive .art-focus:hover img,
html[data-theme=mineral] .hero--archive .art-focus:hover img{
  transform:scale(1.85);
}
.hero--textile .art-focus img,
html[data-theme=atelier] .hero--textile .art-focus img,
html[data-theme=mineral] .hero--textile .art-focus img{
  object-position:center center;transform:scale(1.9);transform-origin:center center;
}
.hero--textile .art-focus:hover img,
html[data-theme=atelier] .hero--textile .art-focus:hover img,
html[data-theme=mineral] .hero--textile .art-focus:hover img{
  transform:scale(2.05);
}
.art-focus-heading{
  position:absolute;top:20px;left:16px;right:16px;z-index:5;
  color:#fff;text-shadow:0 1px 7px #000c;
  font:italic clamp(19px,1.7vw,27px)/1.15 Georgia,serif;
  letter-spacing:0;text-transform:none;pointer-events:none;
}
/* Don't hide the art focus on smaller devices: move below the artwork stage. */
@media (min-width:781px) and (max-width:1050px){
  .hero--archive,.hero--textile{grid-template-columns:35% 65%!important}
  .hero--archive .hero-copy,.hero--textile .hero-copy{grid-column:1;grid-row:1}
  .hero--archive .special-stage,.hero--textile .special-stage{grid-column:2;grid-row:1}
  .hero--archive .art-focus,.hero--textile .art-focus{
    display:block!important;grid-column:1/-1;grid-row:2;
    min-height:230px;height:230px;
  }
  .hero:not(.hero--archive):not(.hero--textile) .art-focus{
    display:block!important;grid-column:1/-1;grid-row:2;
    min-height:230px;height:230px;width:100%;
  }
  html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile),
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile){grid-template-columns:35% 65%}
  html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .art-focus,
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{
    grid-column:1/-1;grid-row:2;display:block!important;
    min-height:230px;height:230px;width:100%;margin:0;border:0;
  }
}
@media (max-width:780px){
  .hero--archive,.hero--textile{display:flex!important;flex-direction:column}
  .hero--archive .art-focus,.hero--textile .art-focus{
    display:block!important;min-height:210px;height:210px;width:100%;flex:0 0 auto;
  }
  .hero:not(.hero--archive):not(.hero--textile) .art-focus,
  html[data-theme=atelier] .hero:not(.hero--archive):not(.hero--textile) .art-focus,
  html[data-theme=mineral] .hero:not(.hero--archive):not(.hero--textile) .art-focus{
    display:block!important;position:relative;
    min-height:210px;height:210px;width:100%;flex:0 0 auto;
    margin:0;border:0;
  }
  .art-focus-heading{top:14px}
}

/* CAZAM v10 — Gallery 5 only. Archival studio backdrop, no Art Focus. */
.hero.hero--archive{
  display:grid!important;
  grid-template-columns:minmax(245px,27%) minmax(0,73%)!important;
  align-items:stretch;
}
.hero.hero--archive .special-stage.archive-stage{
  grid-column:2;
  background-image:
    linear-gradient(90deg,rgba(35,25,21,.42),rgba(35,25,21,.13) 54%,rgba(35,25,21,.30)),
    url('gallery5_archive_studio.jpg')!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
/* Remove the old archive grid-line pattern, keeping natural studio photography. */
.hero.hero--archive .archive-stage::before{content:none!important}
.hero.hero--archive .archive-guideline{opacity:.14}
.hero.hero--archive .special-stage-heading,
.hero.hero--archive .special-stage-foot{
  color:#fff4e5;text-shadow:0 1px 4px rgba(0,0,0,.65);
}
/* This element is absent in v10 markup, but protect stale/cached variants. */
.hero.hero--archive .art-focus{display:none!important}
@media(max-width:780px){
  .hero.hero--archive{display:flex!important;flex-direction:column!important}
  .hero.hero--archive .special-stage.archive-stage{width:100%;min-height:390px}
}
@media(max-width:520px){
  .hero.hero--archive .special-stage.archive-stage{min-height:350px;background-position:45% center!important}
}

/* CAZAM V12 | accurate perspective-matched artwork, original image proportions.
   All room photos in this feature are EMPTY; original art is loaded from galleryN.
   Rooms and overlay share the SAME 1672x941 coordinate system; no cover cropping. */
.perspective-scene {
  position:relative;
  width:100%;
  aspect-ratio:1672 / 941;
  flex:none;
  isolation:isolate;
  overflow:hidden;
  background:#a9a098;
  container-type:inline-size;
}
.perspective-backdrop {
  position:absolute;
  inset:0;
  width:100%;height:100%;
  max-width:none;
  object-fit:fill; /* identical source and container aspect: no cropping or distortion */
  pointer-events:none;
  user-select:none;
}
.perspective-art {
  position:absolute;
  z-index:3;
  left:50%;top:50%;
  width:12%;height:auto;
  display:block;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  box-shadow:none;
  text-align:center;
  transform:translate(-50%,-50%) perspective(1200px) rotateY(var(--wall-angle,0deg));
  transform-origin:center center;
  transition:filter .18s ease,transform .18s ease;
  cursor:zoom-in;
}
.perspective-art:hover,.perspective-art:focus-visible {
  z-index:5;
  filter:brightness(1.06);
  transform:translate(-50%,-50%) perspective(1200px) rotateY(var(--wall-angle,0deg)) scale(1.035);
}
.perspective-art-frame {
  position:relative;
  display:block;
  box-sizing:border-box;
  width:100%;height:auto;
  background:#ede5d8;
  border:clamp(2px,.28vw,5px) solid #544034;
  padding:0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.45),
    1px 3px 2px rgba(24,16,10,.28),
    5px 14px 19px rgba(13,7,4,.38),
    inset 0 0 0 1px rgba(255,255,255,.45);
}
.perspective-art-frame > img {
  display:block;
  width:100%;height:auto;
  max-width:none;
  object-fit:contain;
  transform:none!important;
  filter:none!important;
}
.perspective-art-frame .img-fallback {
  position:absolute;
  inset:0;
  overflow:hidden;
  justify-content:center;
  align-items:center;
  font-size:clamp(8px,1vw,12px);
  background:#e7d7c6;
  color:#33271e;
  overflow-wrap:anywhere;
}
/* GALLERY 5: exactly fitted CSS frames hung in the real studio photograph. */
.hero.hero--archive {
  display:grid!important;
  grid-template-columns:minmax(245px,27%) minmax(0,73%)!important;
  align-items:stretch;
}
.hero.hero--archive .special-stage.archive-stage {
  grid-column:2;
  position:relative;
  padding:0!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden;
  border:0;
  background:#bfa88b!important;
}
.hero--archive .archive-stage::before {content:none!important;}
.archive-studio-viewport,.showcase-viewport {
  position:relative;
  min-width:0;
  overflow-x:hidden;
  overflow-y:hidden;
  scrollbar-width:thin;
}
.archive-studio-scene {background:#cbb495;}
.archive-studio-scene:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(16,10,7,.12),transparent 23%,transparent 74%,rgba(22,13,8,.16));
  pointer-events:none;
  z-index:1;
}
.archive-hung { top:51%; }
.archive-hung-1 {left:42.2%;top:52%;--wall-angle:0deg;}
.archive-hung-3 {left:73.3%;top:51%;--wall-angle:0deg;}
/* Physical frames are already visible inside the original Gallery 5 photos.
   Do not manufacture another frame, stroke, matte, or interior border. */
.archive-hung .perspective-art-frame {
  border:0!important;
  outline:0!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:3px 9px 15px rgba(36,22,14,.25);
}
.archive-hung .perspective-art-frame > img {border:0!important;outline:0!important;}

.archive-studio-label {
  position:absolute;
  z-index:6;
  top:9px;
  left:10px;
  right:10px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#fff6e8;
  font:700 9px/1.3 Arial,Helvetica,sans-serif;
  text-shadow:0 1px 4px #180b06;
  letter-spacing:.17em;
  pointer-events:none;
}
.archive-studio-meta,.showcase-status {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:11px 18px;
  font:700 9px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
  background:var(--paper);
  border-top:1px solid var(--line);
}
.hero.hero--archive .art-focus {display:none!important;}

/* EXHIBITIONS AND EVENTS: a single unique room, two differently staged exhibitions.
   Each page renders five artworks chosen from ONE random real Cazam category. */
.interior-header.interior-header--showcase {
  display:grid!important;
  grid-template-columns:minmax(230px,24%) minmax(0,76%)!important;
  min-height:0;
  align-items:stretch;
  overflow:hidden;
}
.interior-header--showcase > .showcase-intro {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(26px,3.5vw,58px) clamp(20px,3vw,46px)!important;
  background:var(--hero-copy);
  color:var(--ink);
  min-width:0;
}
.interior-header--showcase .showcase-intro h1 {
  font:400 clamp(38px,4.1vw,71px)/1.08 Georgia,serif;
  letter-spacing:-.045em;
  margin:21px 0 12px;
  max-width:100%;
  overflow-wrap:break-word;
}
.interior-header--showcase .showcase-intro p {
  font:italic clamp(15px,1.3vw,19px)/1.55 Georgia,serif;
  margin:8px 0;
  color:var(--muted);
}
.showcase-collection {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.showcase-collection > span {
  color:var(--muted);
  font:700 9px/1.5 Arial,sans-serif;
  letter-spacing:.18em;
}
.showcase-collection a {
  color:var(--ink);
  font:italic clamp(17px,2vw,26px)/1.2 Georgia,serif;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-underline-offset:5px;
}
.showcase-collection a:hover {color:var(--gold);}
.showcase-collection small {color:var(--muted);font:12px/1.55 Arial,sans-serif;}
.showcase-panel {min-width:0;position:relative;background:var(--panel);}
/* V13 — one NEW, shared photographed space with two real wall planes.
   Both pages use the same photo. Positions, sizes and the number of pieces on
   each wall differ, and the sidewall paintings are foreshortened. All values
   are percentages of that SAME 1672x941 scene, including on small screens. */
.showcase-scene--exhibitions,
.showcase-scene--events {background:#354547;}
.showcase-scene .showcase-art {
  transform:translate(-50%,-50%) perspective(var(--wall-camera,1000px)) rotateY(var(--wall-angle,0deg));
  transform-origin:center;
}
/* The sidewall is angled strongly toward the camera. A nearer virtual camera
   creates realistic trapezoidal foreshortening, not merely a smaller picture. */
.showcase-scene .showcase-art[data-wall="side"] {--wall-camera:220px;}
.showcase-scene .showcase-art:hover,
.showcase-scene .showcase-art:focus-visible {
  transform:translate(-50%,-50%) perspective(var(--wall-camera,1000px)) rotateY(var(--wall-angle,0deg)) scale(1.025);
}
/* V16: Exhibitions and Events use identical mounting positions and sizes.
   The right pair is transformed by the SAME wall-plane projection (in JS),
   raised slightly from the v15 installation. These fallback positions are also
   used before the projection runs, avoiding a three-on-the-side flash. */
.showcase-scene--exhibitions .showcase-art-1,
.showcase-scene--events .showcase-art-1 {left:21.5%;top:46.5%;--wall-angle:0deg;}
.showcase-scene--exhibitions .showcase-art-2,
.showcase-scene--events .showcase-art-2 {left:36.3%;top:46%;--wall-angle:0deg;}
.showcase-scene--exhibitions .showcase-art-3,
.showcase-scene--events .showcase-art-3 {left:52%;top:46.5%;--wall-angle:0deg;}
.showcase-scene--exhibitions .showcase-art-4,
.showcase-scene--events .showcase-art-4 {left:77.5%;top:44.8%;--wall-angle:-48deg; display:none;}
.showcase-scene--exhibitions .showcase-art-5,
.showcase-scene--events .showcase-art-5 {left:90.1%;top:46.3%;--wall-angle:-44deg;display:none;}
.showcase-scene .perspective-art-frame {
  border-color:#302d2a;
  border-width:clamp(2px,.22vw,4px);
  box-shadow:1px 3px 4px #090d0e70,5px 12px 17px #11161866;
  border:0 !important;
}
.showcase-room-legend {
  position:absolute;
  z-index:6;
  right:10px;
  bottom:10px;
  padding:5px 8px;
  font:700 8px/1.3 Arial,sans-serif;
  color:#f9f8f3;
  background:#181819aa;
  letter-spacing:.14em;
  pointer-events:none;
}
.showcase-status {font-size:9px;}
.showcase-status span:last-child {color:var(--muted);}

@media (max-width:1100px) {
  .interior-header.interior-header--showcase {grid-template-columns:30% 70%!important;}
  .interior-header--showcase > .showcase-intro {padding:32px 25px!important;}
}
@media (max-width:780px) {
  .hero.hero--archive,
  .interior-header.interior-header--showcase {
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:1fr!important;
  }
  .hero.hero--archive .special-stage.archive-stage {width:100%;}
  .interior-header--showcase > .showcase-intro {padding:35px 5%!important;}
  .showcase-status,.archive-studio-meta {font-size:8px;flex-wrap:wrap;}
  /* Keep the photograph and artwork in the exact same coordinate system;
     a scrollable full-width scene shows the correct wall scale on phones. */
  .archive-studio-viewport,.showcase-viewport {
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .archive-studio-scene {width:max(100%,760px);}
  .showcase-scene {width:max(100%,800px);}
}
@media (prefers-reduced-motion:reduce){.perspective-art{transition:none!important;}}

/* V13 artwork placement patch: shared gallery background / archive frameless works. */

/* CAZAM v14 — Exhibitions / Events image and heading fixes.
   The room photo failing must never trigger all artwork's missing fallbacks.
   A secondary museum background remains visible if the new photo is not uploaded. */
.interior-header.interior-header--showcase {
  grid-template-columns: minmax(305px,30%) minmax(0,1fr)!important;
}
.interior-header--showcase > .showcase-intro {min-width:0;overflow:visible;}
.interior-header--showcase .showcase-intro h1 {
  font-size:clamp(36px,3.15vw,56px);
  line-height:1.14;
  letter-spacing:-.04em;
  overflow:visible;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
  max-width:100%;
}
.showcase-scene {background:#354547 url('cazam_two_wall_gallery.jpg?v=14') center / 100% 100% no-repeat;}
.showcase-scene.backdrop-missing {background:#596568 url('exhibition_mineral.jpg') center / 100% 100% no-repeat;}
/* Render usable images even before JS computes final intrinsic sizing. */
.showcase-scene .showcase-art {min-width:0;visibility:visible;opacity:1;}
.showcase-scene .showcase-art .perspective-art-frame > img {display:block;visibility:visible;}
/* A missing background never changes the artwork wrappers or their placeholders. */
.showcase-scene.backdrop-missing .perspective-art-frame:not(.missing) .img-fallback {display:none;}
@media (min-width:781px) and (max-width:1100px) {
  .interior-header.interior-header--showcase {grid-template-columns:minmax(280px,33%) minmax(0,1fr)!important;}
  .interior-header--showcase .showcase-intro h1 {font-size:clamp(34px,3.25vw,44px);}
}
@media (max-width:780px) {
  .interior-header.interior-header--showcase {display:flex!important;flex-direction:column!important;}
  .interior-header--showcase .showcase-intro h1 {font-size:clamp(36px,8vw,52px);}
}

/* CAZAM v15 — artwork follows the sidewall's real top and floor vanishing lines.
   JS projects all four corners on a single measured wall plane. */
.showcase-scene .showcase-art[data-wall="side"][data-projected="true"] {
  left:0!important;
  top:0!important;
  max-width:none!important;
  margin:0;
  transform-origin:0 0!important;
  transition:filter .16s ease;
  will-change:transform;
}
.showcase-scene .showcase-art[data-wall="side"][data-projected="true"]:hover,
.showcase-scene .showcase-art[data-wall="side"][data-projected="true"]:focus-visible {
  filter:brightness(1.08);
  /* Keep the computed matrix3d in inline style. Never replace with rotateY(). */
}
.showcase-scene .showcase-art[data-wall="side"][data-projected="true"] .perspective-art-frame,
.showcase-scene .showcase-art[data-wall="side"][data-projected="true"] .perspective-art-frame > img {
  display:block;
  width:100%;
  max-width:none;
  height:auto;
  object-fit:contain;
}

/* v17: On touch/mobile, explicitly open Galleries when toggled.
   The old :focus-within hide selector had higher specificity than .submenu.is-open. */
@media (max-width: 780px) {
  .nav-collection .submenu.is-open,
  .nav-collection:hover .submenu.is-open,
  .nav-collection:focus-within .submenu.is-open {
    display: grid;
    position: static;
    visibility: visible;
    width: 100%;
    max-height: min(54vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-collection .submenu.is-open a {
    display: block;
    min-height: 44px;
    padding: 13px 12px;
    touch-action: manipulation;
  }
}
