/* Shared animated thesis artwork, with a still cover for reduced motion. */
.thesis-vinyl-picture{display:block;width:100%;height:100%;background:#d6d5d1;overflow:hidden}
.thesis-vinyl-picture img{display:block;width:100%;height:100%;object-fit:contain}
.thesis-social-card{display:grid;width:100%;aspect-ratio:1;place-items:center;overflow:hidden;background:#252628}
.thesis-social-card img{width:82%;height:auto;object-fit:contain}
.fullbleed-grid .fullbleed-project>.thesis-vinyl-picture{order:1;height:auto;aspect-ratio:1}
.project-gallery-art>.thesis-vinyl-picture{width:100%;height:100%}
@media(max-width:600px){.fullbleed-grid .fullbleed-project>.thesis-vinyl-picture{aspect-ratio:4/3}}

/* Vector scene keeps the rotation centred and lets the browser interpolate every frame. */
.thesis-vinyl-picture{display:grid;place-items:center}
.thesis-vinyl-scene{display:block;width:100%;height:100%;overflow:hidden}
.thesis-vinyl-picture .thesis-vinyl-still{display:none;transform:none}
@media(prefers-reduced-motion:reduce){.thesis-vinyl-scene{display:none}.thesis-vinyl-picture .thesis-vinyl-still{display:block}}

/* Framed gallery cover: zoom the artwork out so the turntable sits comfortably inside the mat.
   Edges are feathered into the matching grey so the smaller picture leaves no visible box. */
.project-gallery-art>.thesis-vinyl-picture{background:#d1d0cc}
.project-gallery-art>.thesis-vinyl-picture .thesis-vinyl-scene,
.project-gallery-art>.thesis-vinyl-picture .thesis-vinyl-still{
  transform:scale(var(--thesis-cover-scale,.86));
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);
  mask-composite:intersect}

/* Center the thesis logo within the featured card at every aspect ratio. */
.thesis-featured .thesis-social-card{height:100%;aspect-ratio:auto}
.thesis-featured .thesis-social-card img{width:82%;height:auto;max-height:82%;object-fit:contain}
