/* Project photos are never cropped (Mr T 2026-10-06) — see inc/project-hotspots.php */
.tof-gal a { background: #f1f1f1 !important; }
.tof-gal img, .tof-gal a:hover img { object-fit: contain !important; }
.tof-gal a:hover img { transform: scale(1.03); }
.single-project .project-card__image, .project-card__image { background: #f1f1f1; }
.single-project .project-card__image img, .project-card__image img { object-fit: contain !important; }
/* photo viewer (assets/js/project-lightbox.js) */
#tof-lb{position:fixed;inset:0;background:rgba(0,0,0,.92);display:none;z-index:99999;align-items:center;justify-content:center}
#tof-lb.on{display:flex}
#tof-lb img{max-width:94vw;max-height:90vh;object-fit:contain}
#tof-lb .x,#tof-lb .p,#tof-lb .n{position:absolute;color:#fff;font:300 40px/1 system-ui,sans-serif;cursor:pointer;user-select:none;padding:14px}
#tof-lb .x{top:6px;right:12px}
#tof-lb .p{left:8px;top:50%;transform:translateY(-50%)}
#tof-lb .n{right:8px;top:50%;transform:translateY(-50%)}
#tof-lb .c{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#bbb;font:13px system-ui,sans-serif}
