/* V12: one bounded page grid, a catalogue scale for works, and clear reading order. */
:root{--content-width:1240px;--ink:#514b41;--ink-light:#71695c;--ink-lighter:#80796d}
#gallery,#artists,#about,#venue,#contact{padding:72px 48px}
#gallery .section-head,#artists .section-head,.about-grid,.venue-grid,.contact-grid,.footer-inner{max-width:var(--content-width);width:100%;margin-inline:auto}
#gallery .section-head,#artists .section-head{display:flex;justify-content:space-between;align-items:end;gap:40px;text-align:left;margin-bottom:30px}
#gallery .section-head .lead,#artists .section-head .lead{max-width:380px;font-size:.82rem;line-height:1.85;margin:0;color:var(--ink-light);letter-spacing:.01em}
#gallery .section-head h2,#artists .section-head h2{font-size:1.9rem;line-height:1.5;letter-spacing:.06em}
#gallery .section-label,#artists .section-label{font-size:.62rem;margin-bottom:10px;letter-spacing:.18em}
#gallery .gallery-toolbar,#gallery .gallery-grid,#gallery .gallery-bottom,#artistsGrid,.artist-brand-tabs{max-width:var(--content-width);width:100%;margin-inline:auto}
#gallery .gallery-toolbar{margin-top:0;margin-bottom:10px}
.collection-brand-tabs{justify-content:flex-start;gap:38px;margin:0;padding:0;border-bottom:1px solid var(--line)}
.collection-brand-tabs button{min-width:0;display:flex;align-items:baseline;gap:12px;padding:14px 0 17px;text-align:left}
.collection-brand-tabs span{font-size:.92rem;letter-spacing:.06em;line-height:1.6}
.collection-brand-tabs small{font-size:.52rem;margin:0;letter-spacing:.1em;line-height:1.6}
.collection-price{justify-content:flex-start;gap:20px;padding:16px 0;border-top:0}
.collection-price>label{font-size:.72rem}
.price-inputs input{width:125px;height:32px;font-size:.78rem}
.collection-price button{font-size:.72rem;min-height:34px}
.collection-results{margin-top:12px;min-height:32px}
.collection-results .gallery-count{font-size:.71rem}
.collection-results #savedView{height:34px}
#gallery .gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 46px}
#gallery .artwork{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;padding:24px 0;border-bottom:1px solid var(--line);min-width:0;background:transparent;align-items:center}
#gallery .artwork-frame{margin:0;width:180px;max-width:100%}
#gallery .artwork-frame .artwork-image-button{aspect-ratio:4/5;min-height:0;height:225px;width:100%;overflow:hidden;background:var(--bg-warm)}
#gallery .artwork-image-button>.artwork-main{object-fit:contain;padding:14px;height:100%;width:100%;transform:none;opacity:1}
#gallery .artwork:hover .artwork-main,#gallery .artwork:focus-within .artwork-main{transform:none;opacity:1}
#gallery .artwork-info{min-width:0;padding:0}
#gallery .work-title-row{display:block}
#gallery .work-title-row h3{font-size:1.02rem;margin:0;line-height:1.6}
#gallery .work-title-button{font-size:inherit;letter-spacing:.02em}
.work-meta{font-size:.78rem;line-height:1.8;margin-top:12px}
.work-card-brand{font-size:.64rem;color:var(--ink-lighter);line-height:1.9;margin-top:8px;overflow-wrap:anywhere}
.work-card-brand>span{margin:0 4px;color:var(--line-dark)}
.work-card-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:20px}
.work-card-price{font-size:.88rem;line-height:1.6;color:var(--ink);white-space:normal}
.sold-caption{font-size:.61rem;color:var(--ink-light);margin-left:10px}
#gallery .artwork-actions{width:auto;gap:10px;min-height:36px;margin-left:-8px}
#gallery .action-btn{width:36px;height:36px;padding:8px}
#gallery .action-btn svg{width:20px;height:20px}
#gallery .single-result{grid-template-columns:repeat(2,minmax(0,1fr));max-width:var(--content-width)}
#gallery .single-result .work-card-bottom{flex-direction:column;align-items:flex-start}
#gallery .gallery-bottom{margin-top:22px;padding-top:0;border:0}
#gallery .gallery-empty{padding:44px 24px;border-bottom:1px solid var(--line)}
.artist-brand-tabs{display:flex;gap:38px;margin-bottom:26px;border-bottom:1px solid var(--line)}
.artist-brand-tabs button{display:flex;align-items:baseline;gap:12px;padding:0 0 16px;font-size:.92rem;letter-spacing:.06em;color:var(--ink-lighter);border-bottom:1px solid transparent}
.artist-brand-tabs small{font-size:.52rem;letter-spacing:.1em}
.artist-brand-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--ink)}
#artistsGrid.artists-by-brand{margin-inline:auto;max-width:var(--content-width)}
.artist-brand-group[hidden]{display:none!important}
.artist-brand-group+.artist-brand-group{margin-top:0}
.brand-artists-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 46px}
.brand-artists-grid .artist-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:24px;align-items:start;border-bottom:1px solid var(--line);padding:24px 0;overflow:visible}
.brand-artists-grid .artist-card .portrait{width:112px;height:140px;aspect-ratio:4/5;background:transparent}
.brand-artists-grid .artist-card .portrait img{height:100%;width:100%;object-fit:cover;transform:none}
.brand-artists-grid .artist-card:hover .portrait img{transform:none}
.brand-artists-grid .artist-card .info{padding:0}
.brand-artists-grid .artist-card h3{font-size:1.03rem;line-height:1.6;letter-spacing:.04em;margin:0}
.brand-artists-grid .artist-card .role{font-size:.65rem;line-height:1.8;margin:4px 0 11px;color:var(--ink-light)}
.brand-artists-grid .artist-card .brief{font-size:.77rem;line-height:1.8;-webkit-line-clamp:3;color:var(--ink-light)}
.artist-links{margin-top:14px;gap:20px}
.artist-links button,.artist-links .artist-profile-link{font-size:.7rem;min-height:28px;line-height:1.8;padding-bottom:3px}
header .nav-panel-inner,header .brand-menu{max-width:var(--content-width);margin-inline:auto;padding-inline:0}
header .brand-menu{grid-template-columns:180px repeat(2,minmax(150px,1fr));gap:70px}
.contact-grid{gap:80px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.contact-info h2{font-size:2rem;line-height:1.55;margin-bottom:26px;letter-spacing:.06em}
.contact-info p{font-size:.86rem;line-height:1.9;max-width:400px}
.inquiry-form{border:0;background:var(--bg);padding:28px 32px}
.form-row{margin-bottom:18px}
.form-row label{font-size:.76rem;line-height:1.7;margin-bottom:7px}
.form-row input,.form-row textarea{font-size:.83rem;padding:12px 14px;background:transparent;border:1px solid var(--line-dark)}
.form-row textarea{min-height:105px}
.submit-btn{min-height:46px;padding:12px 20px;font-size:.81rem;letter-spacing:.04em}
.submit-btn:disabled{opacity:.65;cursor:progress}
.form-feedback{font-size:.76rem;line-height:1.85;margin:0 0 16px;overflow-wrap:anywhere;color:var(--ink)}
.form-feedback[data-state=error]{color:#9c4034}
.form-feedback[data-state=success]{border-top:1px solid var(--line);padding-top:15px}
.form-feedback[hidden]{display:none}
.form-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0;pointer-events:none}
@media(min-width:1800px){header .header-inner{max-width:1580px;margin-inline:auto;padding-inline:40px}.hero-copy{left:max(48px,calc((100vw - 1240px)/2))}.hero-controls{right:max(48px,calc((100vw - 1240px)/2))}}
@media(max-width:1350px){header .nav-panel-inner,header .brand-menu{padding-inline:28px}}
@media(max-width:1100px){#gallery,#artists,#about,#venue,#contact{padding:62px 32px}#gallery .gallery-grid,.brand-artists-grid{gap:0 30px}#gallery .artwork{grid-template-columns:145px minmax(0,1fr);gap:20px}#gallery .artwork-frame{width:145px}#gallery .artwork-frame .artwork-image-button{height:182px}.brand-artists-grid .artist-card{grid-template-columns:90px minmax(0,1fr);gap:18px}.brand-artists-grid .artist-card .portrait{width:90px;height:113px}.contact-grid{gap:40px}}
@media(max-width:768px){#gallery,#artists,#about,#venue,#contact{padding:48px 20px}#gallery .section-head,#artists .section-head{display:block;gap:0;margin-bottom:23px}#gallery .section-head h2,#artists .section-head h2{font-size:1.55rem}#gallery .section-head .lead,#artists .section-head .lead{margin:11px 0 0;font-size:.75rem;max-width:none}#gallery .gallery-toolbar{margin-top:0;margin-bottom:6px}.collection-brand-tabs,.artist-brand-tabs{gap:30px;justify-content:flex-start}.collection-brand-tabs button,.artist-brand-tabs button{display:block;text-align:left;padding:8px 0 12px;min-width:0}.collection-brand-tabs span,.artist-brand-tabs button{font-size:.89rem}.collection-brand-tabs small,.artist-brand-tabs small{display:block;font-size:.49rem;line-height:1.7;margin-top:5px}.collection-price{padding:15px 0;gap:10px 14px}.collection-price>label{font-size:.69rem;width:100%}.price-inputs input{font-size:16px;height:35px;width:100%}.collection-price button{font-size:.69rem}.collection-results{margin-top:10px}.collection-results .gallery-count{font-size:.66rem}#gallery .gallery-grid,#gallery .single-result{grid-template-columns:1fr;max-width:var(--content-width);margin:0;gap:0}#gallery .artwork{grid-template-columns:118px minmax(0,1fr);gap:20px;padding:20px 0}#gallery .artwork-frame{width:118px;margin:0}#gallery .artwork-frame .artwork-image-button{height:148px}#gallery .artwork-image-button>.artwork-main{padding:10px}#gallery .work-title-row h3{font-size:.96rem}#gallery .work-title-row{display:block}.work-meta{font-size:.7rem;margin-top:6px}.work-card-brand{font-size:.58rem;line-height:1.8;margin-top:5px}.work-card-bottom,#gallery .single-result .work-card-bottom{flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 12px;margin-top:11px}.work-card-price{font-size:.8rem}#gallery .artwork-actions{width:auto;gap:4px;margin-left:-6px;min-height:34px}#gallery .action-btn{width:32px;height:34px;padding:7px}#gallery .action-btn svg{width:18px;height:18px}#gallery .gallery-bottom{gap:12px;margin-top:23px}.artist-brand-tabs{margin-bottom:7px}.brand-artists-grid{grid-template-columns:1fr;gap:0}.brand-artists-grid .artist-card{grid-template-columns:86px minmax(0,1fr);gap:20px;padding:22px 0}.brand-artists-grid .artist-card .portrait{width:86px;height:108px}.brand-artists-grid .artist-card .info{padding:0}.brand-artists-grid .artist-card h3{font-size:.98rem}.brand-artists-grid .artist-card .role{font-size:.61rem;line-height:1.7;margin-bottom:8px}.brand-artists-grid .artist-card .brief{font-size:.71rem;line-height:1.85;-webkit-line-clamp:3}.artist-links{gap:18px;margin-top:10px}.artist-links button,.artist-links .artist-profile-link{font-size:.67rem}.contact-grid{display:block}.contact-info h2{font-size:1.65rem;margin-bottom:20px}.contact-info p{font-size:.77rem}.inquiry-form{padding:24px 20px;margin-top:28px}.form-row input,.form-row textarea{font-size:16px}.form-row label{font-size:.73rem}.submit-btn{font-size:.78rem}.form-feedback{font-size:.72rem}}
@media(max-width:360px){#gallery .artwork{grid-template-columns:98px minmax(0,1fr);gap:15px}#gallery .artwork-frame{width:98px}#gallery .artwork-frame .artwork-image-button{height:123px}#gallery .work-title-row h3{font-size:.88rem}.work-meta{font-size:.64rem}.work-card-price{font-size:.76rem}.work-card-bottom{gap:3px}.work-card-brand{font-size:.54rem}.brand-artists-grid .artist-card{grid-template-columns:74px minmax(0,1fr);gap:16px}.brand-artists-grid .artist-card .portrait{width:74px;height:93px}.artist-links{gap:15px}}

/* Operational details follow the existing restrained visual system. */
[hidden]{display:none!important}
.form-privacy{font-size:.72rem;line-height:1.8;color:var(--ink-light);margin:0 0 18px}
#contactBrand{width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;font:inherit;color:var(--ink);border-radius:0}
.viewer-share,.viewer-wecom,.contact-map{display:inline-block;border:0;border-bottom:1px solid var(--line);background:none;padding:12px 0;font:inherit;font-size:.76rem;color:var(--ink);cursor:pointer;margin:12px 18px 0 0;text-decoration:none}
.share-link{width:100%;padding:10px;border:1px solid var(--line);font:inherit;font-size:.7rem}
.contact-wecom{margin-top:20px}

/* Mobile repairs: comfortable touch areas and facts before repeated detail photos. */
@media(max-width:768px){
  header .header-inner{padding-inline:16px;gap:6px}
  header .brand{left:16px}
  header .header-search{flex:1;min-width:0;max-width:none;width:auto!important;margin:0 0 0 62px!important;height:44px}
  header .header-search input{font-size:16px!important}
  header .header-search button,header .menu-toggle,header .mobile-menu{width:44px;min-width:44px!important;height:44px;min-height:44px;flex:none}
  .hero{min-height:min(560px,100svh);height:100svh;max-height:none}
  .hero-copy{bottom:108px;padding-right:0}
  .hero-controls{bottom:max(22px,env(safe-area-inset-bottom));gap:10px}
  .hero-controls button{width:44px;min-width:44px;height:44px;padding:0}
  .hero-controls #heroPause{font-size:15px;letter-spacing:0}
  .hero .tagline{font-size:clamp(.9rem,3.8vw,1rem)}
  #gallery .action-btn{width:44px;height:44px;padding:12px}
  #gallery .artwork-actions{gap:0;min-height:44px;margin-left:-8px}
  .collection-price{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px 8px}
  .collection-price>label{grid-column:1/-1}
  .collection-price .price-inputs{width:100%;min-width:0}
  .collection-price .price-inputs input{height:44px}
  .collection-price button{min-width:44px;min-height:44px;padding:0 8px}
  .artist-links button,.artist-links .artist-profile-link{min-height:44px;display:inline-flex;align-items:center;padding:0}
  .gallery-controls button,.viewer-browse button{min-height:44px;min-width:44px}
  .viewer-info{display:flex;flex-direction:column;overflow:visible;padding-top:22px}
  .viewer-catalog{order:-1;padding-top:0}
  .viewer-visual{height:44svh;min-height:250px;padding-top:48px}
  .viewer-close,.modal-close{width:44px;min-width:44px;height:44px}
  .artwork-viewer{height:100dvh;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
  .modal-overlay,.modal-overlay .modal{max-height:100dvh;overscroll-behavior:contain}
  .form-row select,.form-row input,.form-row textarea{font-size:16px}
  .mobile-nav{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  #gallery .artwork{grid-template-columns:88px minmax(0,1fr);gap:14px}
  #gallery .artwork-frame{width:88px}
  #gallery .artwork-frame .artwork-image-button{height:120px}
  .hero-copy{left:20px;right:20px}
}
@media(max-height:500px) and (orientation:landscape){
  .hero{min-height:420px;height:100svh}
  .hero-copy{bottom:84px}
  .hero-controls{bottom:15px}
}
header .header-search button{border:0;background:none;padding:0;color:inherit}
@media(max-width:768px){
  header .mobile-menu{align-items:center;justify-content:center;background:none;border:0;font-size:22px;line-height:1}
  .modal-overlay .modal{max-height:calc(100dvh - 24px - env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (max-height:500px){
  .artwork-viewer{height:100dvh;overflow-y:auto}
  .viewer-layout{display:block;height:auto}
  .viewer-visual{height:55svh;min-height:210px}
  .viewer-info{display:flex;flex-direction:column;overflow:visible;padding:24px}
  .viewer-catalog{order:-1;padding-top:0}
}
