/* Museum display: scene labels are intentionally small. The reading title follows. */
.project-gallery{--art-x:9.5%;--art-y:25.3%;--art-w:34.9%;--art-h:40.5%;--card-x:56.8%;--card-w:7.2%;--title-y:40.7%;--title-h:5.5%;--description-y:49%;--description-h:20.5%;position:relative;isolation:isolate;container-type:inline-size;aspect-ratio:16/9;background:#fff;overflow:hidden;margin-inline:calc(-1 * var(--gutter))}
.gallery-frame-scene{position:absolute;inset:0;isolation:isolate}.project-gallery-wall{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-1}.gallery-frame-scene:after{content:'';position:absolute;inset:0 0 auto;height:18%;background:linear-gradient(#fff,rgba(255,255,255,0));pointer-events:none}
.project-gallery-art{position:absolute;left:var(--art-x);top:var(--art-y);width:var(--art-w);height:var(--art-h);overflow:hidden;isolation:isolate}.project-gallery-art .case-cover-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.project-gallery-art .case-cover-device{position:absolute;inset:0;width:96%;height:94%;object-fit:contain;margin:auto;filter:var(--shadow-device)}.gallery-thesis-cover{display:block;width:100%;height:100%;object-fit:cover}

.gallery-labels{position:absolute;inset:0;pointer-events:none}.gallery-placard-wall{display:none}
.gallery-title-card,.gallery-description-card{position:absolute;left:var(--card-x);width:var(--card-w);padding:1cqw 1.3cqw;display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--color-ink)}.gallery-title-card{top:var(--title-y);height:var(--title-h)}.gallery-description-card{top:var(--description-y);height:var(--description-h);justify-content:flex-start}
.gallery-kicker{font-family:var(--font-sans);font-size:.45cqw;letter-spacing:.04em;line-height:1.5;color:var(--color-text-muted)}.gallery-art-title{font-family:var(--font-sans);font-size:1.2cqw;line-height:1.18;letter-spacing:-.025em;margin:.2cqw 0 0}.gallery-description{font-size:.62cqw;line-height:1.75;color:#7b7872;text-align:justify;text-align-last:left;hyphens:auto;max-width:none}.gallery-description+.gallery-description{margin-top:.8cqw}
.gallery-scroll{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);font-size:clamp(7px,.6cqw,10px);letter-spacing:.06em;color:var(--color-text-muted)}.gallery-scroll span{margin-left:12px}
.gallery-readable-intro{padding:var(--space-16) 0 var(--space-12);scroll-margin-top:var(--header-height);border-bottom:1px solid var(--color-line)}.gallery-intro-kicker{font-size:var(--text-caption);letter-spacing:var(--tracking-caps);color:var(--color-text-muted);margin-bottom:var(--space-5)}.gallery-readable-intro h1{font-family:var(--font-sans);font-size:var(--text-page);font-weight:400;line-height:var(--leading-title);letter-spacing:var(--tracking-heading);max-width:1000px}.gallery-intro-bottom{display:flex;justify-content:space-between;align-items:end;gap:var(--space-8);margin-top:var(--space-6)}.gallery-intro-bottom>p{font-size:var(--text-body-lg);line-height:var(--leading-body);color:var(--color-text-muted)}.gallery-continue{display:inline-block;flex-shrink:0;font-size:var(--text-xs);padding-bottom:var(--space-2);border-bottom:1px solid var(--color-line-strong)}.gallery-continue span{margin-left:var(--space-5)}.gallery-continue:hover{color:var(--red)}
.model-main .project-gallery{margin-block:0;margin-inline:calc(-1 * var(--gutter))}.thesis-intro h2{font-size:var(--text-page);line-height:var(--leading-title);max-width:1100px;margin:var(--space-5) 0}#thesis-experience{scroll-margin-top:var(--header-height)}
@media(max-width:600px){.gallery-readable-intro{padding:var(--space-10) 0}.gallery-intro-bottom{display:block}.gallery-intro-bottom>p{font-size:var(--text-body)}.gallery-continue{margin-top:var(--space-5)}}

/* Camera pulled back: use the measured aperture and object-label faces. */
.gallery-museum{--art-x:29.05%;--art-y:28.8%;--art-w:24.6%;--art-h:30.2%;--card-x:59.15%;--card-w:6.34%;--title-y:36.35%;--title-h:5.4%;--description-y:44.1%;--description-h:14.8%}
.gallery-museum .gallery-title-card,.gallery-museum .gallery-description-card{padding:.35cqw .42cqw}
.gallery-museum .gallery-kicker{font-size:.17cqw;letter-spacing:.02em}
.gallery-museum .gallery-art-title{font-size:.46cqw;line-height:1.2;margin:.12cqw 0 0}
.gallery-museum .gallery-description{font-size:.23cqw;line-height:1.65;color:#85817b}
.gallery-museum .gallery-description+.gallery-description{margin-top:.35cqw}

/* Phone gallery: frame and adjacent placard share one larger, uncropped scene.
   Reserve a full opening screen without stretching the original artwork. */
@media(max-width:600px){
  .project-gallery.gallery-museum{height:calc(100svh - 60px);min-height:460px;aspect-ratio:auto;background:linear-gradient(#fff 0%,#fff 35%,#e5e5e3 85%)}
  .gallery-museum .gallery-frame-scene,.gallery-museum .gallery-labels{inset:auto;left:-63.2%;top:42%;width:240%;height:auto;aspect-ratio:16/9;transform:translateY(-50%)}
  .gallery-museum .gallery-frame-scene{container-type:inline-size}
  .gallery-museum .gallery-frame-scene:before{content:'';position:absolute;inset:auto 0 -1px;height:15%;z-index:1;pointer-events:none;background:linear-gradient(transparent,#e5e5e3)}
  .gallery-museum .gallery-labels{container-type:inline-size}
  .gallery-museum .gallery-kicker{font-size:.42cqw}
  .gallery-museum .gallery-art-title{font-size:.85cqw}
  .gallery-museum .gallery-description{font-size:.45cqw;line-height:1.5}
  .gallery-museum .gallery-scroll{bottom:7%;font-size:10px}
}
