.hero-card .hero-3d{position:absolute;inset:0;width:100%;height:100%;z-index:0;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hero-card .hero-3d:active{cursor:grabbing}
.hero-card.has-3d>img{display:none}
.hero-card.has-3d{border:0;background:none;box-shadow:none;border-radius:0;transform:none;overflow:visible}
.hero-card.has-3d:before,.hero-card.has-3d .hero-label{display:none}
/* Home gallery: uniform compact grid */
.gallery-wrap .gallery{grid-template-columns:repeat(4,1fr);grid-auto-rows:auto;gap:14px}
.gallery-wrap .work-card,.gallery-wrap .work-card:nth-child(3n+1){grid-row:auto;min-height:0;aspect-ratio:4/3;border-radius:14px}
.gallery-wrap .work-card img{position:absolute;inset:0}
.gallery-wrap .work-card:after{background:linear-gradient(0deg,rgba(2,5,11,.82),transparent 55%)}
.gallery-wrap .work-info{bottom:10px;inset-inline:12px}
.gallery-wrap .work-info b{font-size:.86rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-wrap .work-info span{font-size:.7rem}
.gallery-wrap .play-badge{transform:scale(.8)}
.gallery-wrap .work-card:hover img{transform:scale(1.05)}
@media(max-width:1100px){.gallery-wrap .gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.gallery-wrap .gallery{grid-template-columns:repeat(2,1fr);gap:10px}.gallery-wrap .work-info b{font-size:.78rem}}
