/* Restore the original image-card composition and keep page spacing controlled. */
body main .home-role-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:1000px; margin:0 auto; gap:1.4rem; }
body main .home-role-card { position:relative; display:block; aspect-ratio:4/5; overflow:hidden; isolation:isolate; background:#13110f; border:1px solid rgba(224,199,155,.35); color:#fff; }
body main .home-role-card > img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center 35%; transition:transform .45s ease; }
body main .home-role-overlay { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:clamp(1.2rem,2.3vw,2rem); background:linear-gradient(180deg,transparent 10%,rgba(0,0,0,.45) 40%,rgba(0,0,0,.96) 100%); }
body main .home-role-card .home-role-overlay h3 { margin:0 0 1rem; font:400 clamp(1.8rem,3.2vw,3rem)/1.08 var(--serif); color:#fff!important; text-shadow:0 2px 12px #000; }
body main .home-role-title-link { color:inherit; text-decoration:none; }
body main .home-role-title-link:focus-visible,body main .home-role-action-link:focus-visible { outline:3px solid #f0dec0; outline-offset:5px; }
body main .home-role-card .home-role-overlay p { margin:0 0 1rem; max-width:34ch; color:#fff!important; font-size:clamp(.95rem,1.3vw,1.1rem); line-height:1.5; }
body main .home-role-action { color:#f0dec0; font-size:.82rem; letter-spacing:.07em; text-transform:uppercase; }
body main .home-role-overlay small { color:#ddd; font-size:.69rem; margin-top:1rem; }
body main .home-role-card .home-role-action-link { color:#f0dec0; font-size:.82rem; letter-spacing:.07em; text-transform:uppercase; text-decoration:none; }
body main .home-role-card:hover > img { transform:scale(1.025); }
.portfolio-album { scroll-margin-top:calc(var(--site-header-height,150px) + 20px); }
.portfolio-album > .series-intro { max-width:760px; margin-inline:auto; }
.portfolio-album-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.5rem auto .8rem; max-width:1100px; }
.portfolio-album-toolbar p { margin:0; font-size:.85rem; color:var(--paper-dim); }
.portfolio-album-buttons { display:flex; gap:.5rem; }
.portfolio-album-buttons[hidden] { display:none; }
.portfolio-album-buttons button { min-height:44px; min-width:44px; border:1px solid var(--gold); background:var(--ink); color:var(--gold-light); font:1.3rem var(--sans); cursor:pointer; border-radius:50%; }
.portfolio-album-buttons button:disabled { opacity:.35; cursor:default; }
body main .portfolio-album-track[data-gallery-carousel="true"] { --gallery-card-width:clamp(230px,35vw,400px); position:relative; display:block; box-sizing:border-box; width:100%; max-width:1100px; height:calc(var(--gallery-card-width) * 1.42 + 7.5rem); margin-inline:auto; padding:0; overflow:hidden; perspective:1100px; touch-action:pan-y; }
body main .portfolio-album-track[data-gallery-carousel="true"].is-dragging { user-select:none; }
body main .portfolio-album-track[data-gallery-carousel="true"].is-dragging .gallery-card { cursor:grabbing; }
body main .portfolio-album-track[data-gallery-carousel="true"] > .gallery-card { position:absolute; top:.5rem; left:50%; box-sizing:border-box; width:var(--gallery-card-width); min-width:0; margin:0; opacity:0; pointer-events:none; transform:translateX(85%) translateZ(-150px) rotateY(-30deg) rotate(5deg) scale(.82); transition:transform 1500ms cubic-bezier(.22,.61,.36,1),opacity 1500ms ease,box-shadow 1500ms ease; will-change:transform,opacity; box-shadow:0 16px 38px rgba(0,0,0,.24); }
body main .portfolio-album-track[data-gallery-carousel="true"] > .gallery-card[data-gallery-position="left"] { z-index:1; opacity:.58; transform:translateX(-108%) translateZ(-135px) rotateY(28deg) rotate(-5deg) scale(.88); }
body main .portfolio-album-track[data-gallery-carousel="true"] > .gallery-card[data-gallery-position="right"] { z-index:1; opacity:.58; transform:translateX(8%) translateZ(-135px) rotateY(-28deg) rotate(5deg) scale(.88); }
body main .portfolio-album-track[data-gallery-carousel="true"] > .gallery-card[data-gallery-position="center"] { z-index:3; opacity:1; pointer-events:auto; transform:translateX(-50%) translateZ(0) rotateY(0) rotate(0) scale(1); box-shadow:0 30px 68px rgba(0,0,0,.5),0 0 34px rgba(199,167,109,.22); }
body main .portfolio-album-track .gallery-image { aspect-ratio:3/4; height:auto; background:var(--ink-soft); }
body main .portfolio-album-track img { display:block; width:100%; height:auto; aspect-ratio:3/4; max-height:none; object-fit:contain; background:var(--ink-soft); }
body main .portfolio-album-track figcaption { text-align:left; padding:1rem .25rem; }
body main .portfolio-album-track figcaption h3 { font-size:1.2rem; margin:.4rem 0; }
body main .portfolio-album-track :is(.photo-credit,.photo-rights,.image-description) { font-size:.78rem; line-height:1.55; margin:.4rem 0; }
body .site-header { transition:translate .24s ease; }
body .site-header.desktop-scroll-hidden { translate:0 -105%; pointer-events:none; }
@media(min-width:1024px) {
 body .site-header .quick-contact { display:none!important; }
 body .site-header .header-actions { min-height:0; padding:0; height:0; }
 body .site-header { min-height:var(--brand-banner-height); --site-header-height:var(--brand-banner-height); }
}
@media(max-width:650px) {
 body main .home-role-grid { max-width:360px; }
 body main .home-role-grid { grid-template-columns:1fr; gap:1rem; }
 body main .home-role-card { aspect-ratio:4/5; }
 body main .home-role-card .home-role-overlay h3 { font-size:2.15rem; }
 body main .portfolio-album-track[data-gallery-carousel="true"] { --gallery-card-width:min(68vw,320px); height:calc(var(--gallery-card-width) * 1.42 + 7.5rem); }
}
body.reduce-motion .site-header { transition:none; }
@media(prefers-reduced-motion:reduce) { body .site-header,.home-role-card > img { transition:none; } .home-role-card:hover > img { transform:none; } body main .portfolio-album-track[data-gallery-carousel="true"] > .gallery-card { transition:none; } }
