/* Dv239: restore Dv237, use supplied original reference images. */
/* Gallery artwork matches the desktop reference without distorting its proportions. */
@media (min-width:901px) {
 html body.project-page .modal {
   background: #1e1e1e url('/assets/shop/gallery-background-239.png') center center / cover no-repeat !important;
 }
}
@media(max-width:900px) {
 /* Screenshot-provided mobile backdrop: includes the logo and exact stripes. */
 html body.home-page::before,
 html body.projects-page::before,
 html body.project-page::before {
   background-image: url('/assets/shop/mobile-reference-239.png') !important;
   width:100% !important;
   left:0 !important;
   top:0 !important;
   height:100% !important;
   background-position:center top !important;
   background-size:100% auto !important;
   background-repeat:no-repeat !important;
   transform:none !important;
 }
 /* The screenshot already includes the watermark; avoid drawing it twice. */
 html body.home-page::after,
 html body.projects-page::after,
 html body.project-page::after { display:none !important; content:none !important; }
 /* Do not crop project preview images or sketches on mobile. */
 html body #r-main .project-grid .thumb,
 html body #r-main .project-grid .thumb img,
 html body #r-main .gallery-grid .gallery-image,
 html body #r-main .gallery-grid .gallery-image img,
 html body #r-main .r-project-image,
 html body #r-main .r-project-image img {
   object-fit:contain !important;
 }
 html body #r-main .project-grid .thumb img,
 html body #r-main .gallery-grid .gallery-image img,
 html body #r-main .r-project-image img { width:100% !important; height:100% !important; }
 html body #r-main .gallery-grid .gallery-image {height:auto !important; min-height:0 !important; aspect-ratio:1.55 !important;}
 html body #r-main .project-grid .thumb {height:auto !important; aspect-ratio:1.55 !important;}
 /* When a photo is enlarged, hide the mobile nav/tab completely. */
 html body.modal-open #r-header,
 html body.modal-open .mobile-nav,
 html body.modal-open .mobile-tab,
 html body.modal-open .mobile-menu,
 html body.modal-open .mobile-bottom-nav {display:none !important;visibility:hidden !important;pointer-events:none !important;}
 html body.project-page .modal {background:#1e1e1e url('/assets/shop/gallery-background-239.png') center center / cover no-repeat !important;}
}
