/* A small shared spacing scale; keep the established fonts and composition. */
:root{--ehr-space-sm:24px;--ehr-space-md:40px;--ehr-space-lg:48px;--ehr-ease:cubic-bezier(.2,.65,.3,1)}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card){margin-bottom:var(--ehr-space-lg)!important}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card)>.wp-block-columns{gap:clamp(28px,3vw,48px)!important;align-items:center!important}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card) .artist-profile-copy h2{font-size:28px!important;line-height:1.25!important;margin:0 0 18px!important;overflow-wrap:break-word;text-wrap:balance}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card) .artist-profile-copy p{margin-top:0!important;margin-bottom:18px!important}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card) .artist-profile-copy p:last-child{margin-bottom:0!important}
body.home #atelier-main .ehr-space-bottom>p{max-width:760px!important;flex:0 1 760px!important;text-wrap:balance;overflow-wrap:normal;hyphens:none}
body.home #atelier-main .ehr-space-bottom>.wp-block-buttons{flex-shrink:0!important}
body.home #atelier-main :is(.ehr-space-heading,.ehr-home-visits) h2{font-size:clamp(34px,3vw,46px)!important;line-height:1.12!important;text-wrap:balance}
#atelier-main :is(.atelier-kicker,.ehr-visits-tab-label){line-height:1.5}
#atelier-main :is(.wp-block-button__link,.artist-category-tabs a,.atelier-tabs a){transition:color .2s ease,border-color .2s ease,background-color .2s ease}
#atelier-main :is(input,textarea,button,a):focus-visible,.ehr-artist-dialog :is(button,a):focus-visible{outline:2px solid #24241f;outline-offset:4px}
#atelier-main :is(.artist-category-tabs,.atelier-tabs){scroll-padding-inline:12px}
.ehr-artist-gallery-nav>button,.ehr-artist-close,.atelier-menu-toggle,.atelier-menu-close{min-width:44px!important;min-height:44px!important}
.ehr-artist-thumbnails{min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
#atelier-main :is(.artist-profile,.exhibition-card) .atelier-slider{overflow:hidden}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 #atelier-main :is(.artist-profile,.exhibition-card,.atelier-home-artist,.ehr-home-visits) img{transition:scale .5s var(--ehr-ease)}
 #atelier-main :is(.artist-profile,.exhibition-card,.atelier-home-artist,.ehr-home-visits) :is(figure,.atelier-slide):hover>img{scale:1.015}
}
@media(prefers-reduced-motion:no-preference){
 .ehr-reveal{transition:opacity .42s ease,translate .55s var(--ehr-ease)}
 .ehr-reveal.ehr-reveal-pending:not(:focus-within){opacity:0;translate:0 12px}
 .ehr-artist-dialog[open]{animation:ehr-dialog-in .2s ease-out}
 #atelier-main .atelier-slide.is-active{animation:ehr-image-in .25s ease-out!important}
 @keyframes ehr-image-in{from{opacity:.7}to{opacity:1}}
 @keyframes ehr-dialog-in{from{opacity:.5}to{opacity:1}}
}
@media(max-width:781px){
 :root{--ehr-space-md:30px;--ehr-space-lg:40px}
 body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card)>.wp-block-columns{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card) .artist-profile-copy h2{font-size:24px!important;margin-bottom:16px!important}
 body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile,.exhibition-card) .artist-profile-copy{padding:0!important}
 body.home #atelier-main .ehr-space-bottom>p{flex:0 1 auto!important;width:100%!important;max-width:none!important}
 body.home #atelier-main :is(.ehr-space-heading,.ehr-home-visits) h2{font-size:34px!important}
 #atelier-main :is(input:not([type=hidden]),textarea,select){font-size:16px!important}
 #atelier-main :is(.atelier-visit-form,.ehr-visits-tab-copy,.entry-content){min-width:0}
 .atelier-mobile-menu{padding-bottom:max(28px,env(safe-area-inset-bottom))!important;overscroll-behavior:contain}
 .ehr-artist-dialog{overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){
 .ehr-reveal,.ehr-reveal-pending{opacity:1!important;translate:none!important;transition:none!important}
 #atelier-main .atelier-slide.is-active,.ehr-artist-dialog[open]{animation:none!important}
 #atelier-main img{scale:1!important;transition:none!important}
}

/* Studio-visit booking uses the same cool surface as the homepage hero. */
#atelier-main .atelier-tab-panel[data-panel="visites"]>.atelier-visit-form,#atelier-main .entry-content:has(>.ehr-visits-tab-intro)>.atelier-visit-form{background:#eff4f4!important}

/* Hero titles match the uppercase artist-name headings; no other typography changes. */
body.home #atelier-main .atelier-hero .atelier-slider:not(.artist-artwork-gallery) .atelier-slide figcaption h2{font-family:Sackers,sans-serif!important;font-weight:400!important;text-transform:uppercase!important}

/* Match artist-name title sizes on both desktop and mobile. */
body.home #atelier-main .atelier-hero .atelier-slider:not(.artist-artwork-gallery) .atelier-slide figcaption h2{font-size:28px!important;line-height:1.25!important}
@media(max-width:781px){body.home #atelier-main .atelier-hero .atelier-slider:not(.artist-artwork-gallery) .atelier-slide figcaption h2{font-size:24px!important}}

/* Mobile catalogue bars retain filters without the adjacent section label. */
@media(max-width:781px){body:is(.ehr-artists-page,.ehr-events-page) #atelier-main .ehr-catalogue-heading>h1{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:0!important;border:0!important}body:is(.ehr-artists-page,.ehr-events-page) #atelier-main .ehr-catalogue-heading{gap:0!important}}

@media(max-width:781px){
 /* A poster's controls sit below it, leaving all printed information visible. */
 body.ehr-events-page #atelier-main .exhibition-card:is(.exhibition-current,.exhibition-upcoming):not(.atelier-hors-entry) .atelier-slider{aspect-ratio:auto!important;height:auto!important}
 body.ehr-events-page #atelier-main .exhibition-card:is(.exhibition-current,.exhibition-upcoming):not(.atelier-hors-entry) .atelier-slide{height:auto!important;min-height:0!important}
 body.ehr-events-page #atelier-main .exhibition-card:is(.exhibition-current,.exhibition-upcoming):not(.atelier-hors-entry) .atelier-slide>img{height:auto!important;width:100%!important;object-fit:contain!important;contain:none!important}
 body.ehr-events-page #atelier-main .exhibition-card:is(.exhibition-current,.exhibition-upcoming):not(.atelier-hors-entry) .atelier-slider-controls{position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;margin:0!important}
 /* Let the Art Menager illustration use its real proportions, rather than a tall box. */
 body.home #atelier-main .entry-content .ehr-home-space>figure{height:auto!important;min-height:0!important}
 body.home #atelier-main .entry-content .ehr-home-space>figure>img{height:auto!important;max-height:none!important;aspect-ratio:1400/987!important;contain:none!important;contain-intrinsic-size:none!important}
 body.home #atelier-main .entry-content .ehr-space-heading{margin-bottom:16px!important}
 body.home #atelier-main .entry-content .ehr-space-bottom{margin-top:16px!important}
 /* Off-site events: heading/date/place, picture, then description. */
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry>.wp-block-columns{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy{display:contents!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry>.wp-block-columns>.wp-block-column:first-child{order:2!important;width:100%!important;margin:0 0 24px!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy>:is(h2,.atelier-exhibition-date,.atelier-kicker){order:0!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy>h2{margin:0 0 14px!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy>.atelier-exhibition-date{margin:0 0 8px!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy>.atelier-kicker{margin:0 0 24px!important}
 body.ehr-events-page #atelier-main .atelier-tab-panel:is([data-panel="culture"],[data-panel="expos"]) .atelier-hors-entry .artist-profile-copy>p:not(.atelier-exhibition-date):not(.atelier-kicker){order:3!important}
}
body.home #atelier-main .atelier-hero .atelier-slider,.ehr-artist-dialog .ehr-artist-gallery{touch-action:pan-y pinch-zoom}

/* Centre the carousel arrows geometrically on mobile, independent of font metrics. */
@media(max-width:781px){
 body.home #atelier-main .atelier-home-artists-controls button:is([data-artists-prev],[data-artists-next]){display:grid!important;place-items:center!important;position:relative!important;box-sizing:border-box!important;line-height:1!important;font-size:0!important;padding:0!important}
 body.home #atelier-main .atelier-home-artists-controls button:is([data-artists-prev],[data-artists-next])::before{content:'';display:block;width:20px;height:20px;margin:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324241f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/20px 20px no-repeat}
 body.home #atelier-main .atelier-home-artists-controls button[data-artists-prev]::before{transform:rotate(180deg)}
}

/* Artist names are genuine keyboard-accessible gallery buttons, retaining the heading style. */
body #atelier-main .artist-profile h2>.ehr-artist-name-open{appearance:none!important;display:inline!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important;font:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important;text-align:inherit!important;color:inherit!important;cursor:pointer}
@media(max-width:781px){
 body:is(.ehr-artists-page,.ehr-events-page) #atelier-main :is(.artist-profile:not([hidden]):has(~.artist-profile:not([hidden])),.exhibition-card:not([hidden]):has(~.exhibition-card:not([hidden]))){border-bottom:1px solid #d9d7d1!important;padding-bottom:32px!important;margin-bottom:32px!important}
}

/* Optical centring of the mobile artist-carousel arrows. */
@media(max-width:781px){
 body.home #atelier-main .atelier-home-artists-controls button:is([data-artists-prev],[data-artists-next])::before{position:absolute!important;left:50%!important;top:calc(50% + 2px)!important;transform:translate(-50%,-50%)!important}
 body.home #atelier-main .atelier-home-artists-controls button[data-artists-prev]::before{transform:translate(-50%,-50%) rotate(180deg)!important}
}

/* Quieter inner-page labels beside the filters, desktop only. */
@media(min-width:782px){body:is(.ehr-artists-page,.ehr-events-page) #atelier-main .ehr-catalogue-heading>h1{font-size:24px!important;line-height:1.25!important}}

/* Keep the authored category sequence, including the new Graphic arts tab. */
body #atelier-main .ehr-catalogue-heading>.artist-category-tabs>a{order:0!important}

/* Match mobile separators between visible artists on desktop. */
@media(min-width:782px){body.ehr-artists-page #atelier-main .artist-profile:not([hidden]):has(~.artist-profile:not([hidden])){border-bottom:1px solid #d9d7d1!important;padding-bottom:32px!important;margin-bottom:32px!important}}

/* Shared separators between visible exhibition and off-site entries. */
body.ehr-events-page #atelier-main :is(.exhibition-card:not([hidden]):has(~.exhibition-card:not([hidden])),.atelier-hors-entry:not([hidden]):has(~.atelier-hors-entry:not([hidden]))){border-bottom:1px solid #d9d7d1!important;padding-bottom:32px!important;margin-bottom:32px!important}

/* Keep category navigation alone; remove the redundant right-hand labels. */
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main .ehr-catalogue-heading>h1{display:none!important}
body:is(.ehr-artists-page,.ehr-events-page) #atelier-main .ehr-catalogue-heading{grid-template-columns:minmax(0,1fr)!important}

/* Horizontal artwork swipes retain vertical page scrolling and pinch zoom. */
#atelier-main :is(.artist-profile,.exhibition-card,.atelier-hors-entry) .artist-artwork-gallery{touch-action:pan-y pinch-zoom}
