/* Homepage only: existing type, margins and gallery interaction remain shared. */
.home-slide-caption{margin:0 auto 0 0;padding-right:20px;font:11px/1.45 var(--sans);color:var(--muted);max-width:62%}
.home-section{padding:0 var(--margin);margin:90px 0 105px}
.home-section .section-heading{margin-bottom:42px}
.home-section .section-heading .text-link{margin-left:auto;flex-shrink:0}
.home-about-layout{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,660px);gap:clamp(50px,8vw,160px);align-items:start}
.home-about-portrait{max-width:240px}
.home-about-portrait img{display:block;width:100%;height:auto}
.home-about-layout>p{font:normal 20px/1.65 var(--serif);margin:0;max-width:660px}
.home-section .home-gallery{margin-inline:calc(-1 * var(--margin));--home-image-height:250px;--home-caption-height:76px;--gallery-height:calc(var(--home-image-height) + var(--home-caption-height) + 18px)}
.home-section .horizontal-gallery{gap:clamp(24px,3vw,52px);align-items:start}
.home-section .home-gallery-item{flex:0 0 auto;width:calc(var(--home-image-height) * var(--home-ratio));min-width:0;height:auto;display:grid;grid-template-rows:var(--home-image-height) auto;align-items:start}
.home-gallery-link{display:block;width:100%;height:var(--home-image-height)}
.home-gallery-link img{display:block;width:100%;height:100%;object-fit:contain;object-position:left bottom}
.home-gallery-caption{font:13px/1.5 var(--sans);padding-top:14px;max-width:100%;overflow-wrap:break-word}
.home-gallery-caption span,.home-gallery-caption small{display:block}
.home-gallery-caption em{display:block;font-weight:400}
.home-gallery-caption small{font:12px/1.6 var(--sans);color:var(--muted);margin-top:4px}
.home-periods .home-gallery{--home-image-height:240px;--home-caption-height:52px}
.home-periods .home-gallery-caption{font:20px/1.4 var(--serif)}
.home-selected-works .home-gallery{--home-image-height:350px;--home-caption-height:72px}
.home-exhibitions .home-gallery{--home-image-height:250px}
.home-archive .home-gallery{--home-image-height:230px;--home-caption-height:80px}
.home-press .home-gallery{--home-image-height:200px;--home-caption-height:112px}
.home-press .home-gallery-item{width:max(260px,calc(var(--home-image-height) * var(--home-ratio)))}
.home-press .home-gallery-caption>span{font:20px/1.2 var(--serif);max-width:340px}
.home-press .home-gallery-link{display:flex;align-items:flex-end}
.home-press .home-gallery-link img{width:auto;height:auto;max-width:100%;max-height:100%}
@media(min-width:1800px){
 .home-periods .home-gallery{--home-image-height:280px}
 .home-selected-works .home-gallery{--home-image-height:400px}
 .home-exhibitions .home-gallery{--home-image-height:290px}
 .home-archive .home-gallery{--home-image-height:260px}
 .home-press .home-gallery{--home-image-height:220px}
}
@media(max-width:900px){
 .home-section{margin:65px 0 80px}
 .home-about-layout{grid-template-columns:180px minmax(0,1fr);gap:40px}
 .home-about-layout>p{font-size:18px}
 .home-selected-works .home-gallery{--home-image-height:280px}
}
@media(max-width:700px){
 .home-slide-caption{font-size:10px;max-width:50%;padding-right:10px}
 .home-section{margin:56px 0 68px}
 .home-section .section-heading{gap:14px;margin-bottom:28px;flex-wrap:wrap}
 .home-section .section-heading h2{font-size:29px}
 .home-section .section-heading .text-link{font-size:12px;gap:14px}
 .home-about-layout{grid-template-columns:minmax(0,1fr);gap:27px}
 .home-about-portrait{max-width:170px}
 .home-about-layout>p{font-size:18px;line-height:1.6}
 .home-periods .home-gallery{--home-image-height:190px}
 .home-selected-works .home-gallery{--home-image-height:260px}
 .home-exhibitions .home-gallery{--home-image-height:205px}
 .home-archive .home-gallery{--home-image-height:210px;--home-caption-height:110px}
 .home-press .home-gallery{--home-image-height:180px;--home-caption-height:120px}
 .home-gallery-caption{font-size:12px}
 .home-press .home-gallery-item{width:max(240px,calc(var(--home-image-height) * var(--home-ratio)))}
 .home-section .home-gallery-item{width:min(calc(var(--home-image-height) * var(--home-ratio)),calc(100vw - 48px))}
 .home-press .home-gallery-item{width:min(max(240px,calc(var(--home-image-height) * var(--home-ratio))),calc(100vw - 48px))}
 .home-press .home-gallery-caption>span{font-size:19px}
}
