/* Larger detail photographs reuse the exact approved landing-page cabinet framing. */
.refresh .refresh-content-body figure.machine-real-photo.machine-cabinet-photo{width:min(100%,480px);max-width:480px;aspect-ratio:3/5;margin:32px auto;overflow:hidden;border-radius:22px;background:#e4e9db}
.refresh .refresh-content-body .machine-cabinet-photo picture[data-machine-frame]{position:relative;display:block;width:100%;height:100%;aspect-ratio:3/5;overflow:hidden}
/* Whole original photograph remains a proportionate fallback until the existing framing script succeeds. */
.refresh .refresh-content-body .machine-cabinet-photo picture[data-machine-frame]>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;transform:none;transform-origin:0 0;margin:0;border-radius:0}
.refresh .refresh-content-body .machine-cabinet-photo picture[data-machine-frame]>img[style*="matrix3d"]{object-fit:fill}
@media(max-width:760px){.refresh .refresh-content-body figure.machine-real-photo.machine-cabinet-photo{width:min(100%,480px);margin-block:26px;border-radius:18px}}

/* Whitecliffe keeps its existing three-column gallery; only cabinet framing changes. */
.refresh .refresh-content-body .machine-portrait-gallery figure.machine-real-photo.machine-cabinet-photo{width:100%;max-width:none;margin:0;border-radius:18px}
@media(max-width:760px){.refresh .refresh-content-body .machine-portrait-gallery figure.machine-real-photo.machine-cabinet-photo{border-radius:13px}}

/* Roomy phone gallery; the existing three-column desktop layout is retained. */
@media(max-width:600px){.refresh .refresh-content-body .machine-portrait-gallery.machine-cabinet-gallery{grid-template-columns:minmax(0,1fr);width:min(100%,480px);margin-inline:auto;gap:18px}}

/* One accessible photo link per gallery item; captions stay outside the3:5 image frame. */
.refresh .machine-cabinet-gallery .machine-gallery-link{display:block;min-width:0;color:var(--forest);text-decoration:none;border-radius:18px}
.refresh .machine-cabinet-gallery .machine-gallery-caption{display:block;padding:12px 2px 0;font-size:.8125rem;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.refresh .machine-cabinet-gallery .machine-gallery-link:hover .machine-gallery-caption{text-decoration:underline;text-underline-offset:4px}
.refresh .machine-cabinet-gallery .machine-gallery-link:focus-visible{outline:3px solid var(--forest);outline-offset:4px}
