/* Images have intrinsic dimensions; framed photos never stretch to fill a box. */
img{object-fit:contain}
img[width][height]{height:auto}
img[src^="/assets/guide/photo-"]{width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto}
.vg-compact>img[src^="/assets/guide/photo-"]{width:110px;align-self:center}
.vg-mini-site img,.vg-screen-image,.vg-tile>img,.vg-step-detailed>img{width:100%;height:auto!important;max-height:none!important;object-fit:contain!important}
.vg-admin-card>img{width:100%;height:190px!important;object-fit:contain;background:#f4f5f7}
.vg-browser>img,.vg-panel>img,#apply-photo-preview,.sf2-request>img,.feature-large img,.site-visual img{height:auto!important;max-height:440px!important;object-fit:contain!important}
.review-content img,#review-image,.journal-card img,.request-photo img,.de-image-preview,.sb-preview-photo{object-fit:contain!important;background:#f3f5f8}
.review-content img,#review-image{width:100%;height:auto;max-height:500px}
.brand-logo-preview img{width:auto;height:auto;object-fit:contain}
.brand-card-visual img{object-fit:contain}
.demo-news-card img,.demo-news-card.is-event img{width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;align-self:start}
.demo-cast-card img,.sf2-live-cast img{height:auto!important;aspect-ratio:3/4;object-fit:contain!important;background:#faf3f5}
.sb-person img,.sb-daily img,.sf2-person>img,.spe-photo-note>img,.demo-shift-row img{flex-shrink:0;object-fit:contain!important;background:#f3edf0}
.shift-product-entry{align-items:center}
.spe-photo,.sf2-hero-photo{min-height:0!important;align-self:center}
.spe-photo>img,.sf2-hero-photo>img{position:static!important;display:block;width:100%;height:auto!important;object-fit:contain!important}
.spe-photo-note,.sf2-photo-badge{position:static;margin:16px;box-shadow:none}
.sf2-flow img{height:auto;object-fit:contain;aspect-ratio:auto}
.sc-photo,.c-hero-photo,.e-photo,.s-photo,.d-photo,.f-photo{height:auto!important;min-height:0;overflow:visible;border-radius:10px}
.sc-photo>img,.sc-image-button>img,.c-hero-photo>img,.e-photo>img,.s-photo>img,.d-photo>img,.f-photo>img{width:100%;height:auto!important;max-height:620px;object-fit:contain!important;border-radius:10px;transform:none!important;animation:none!important}
.sc-image-button,.a-project .sc-image-button{height:auto!important}
.sc-slideshow.a-photo{height:auto!important;aspect-ratio:3/2}
.sc-slideshow>.slide{height:100%!important;object-fit:contain!important}
.dg-visual img,.premium-project img{height:auto!important;object-fit:contain;transform:none!important}
.collection-visual{min-height:0!important;height:auto!important;background:#112440}
.collection-visual>img{position:static;display:block;height:auto;width:100%;object-fit:contain;transform:none!important}
.collection-visual:after{display:none}
.collection-visual>div{position:static;padding:22px 24px;color:white;background:#112440}
.collection-visual strong{font-size:30px!important;line-height:1.35}
.collection-visual>b{position:static;display:block;padding:0 24px 20px;color:#cfdef9;background:#112440}
@media(max-width:760px){
 .vg-compact>img[src^="/assets/guide/photo-"]{width:90px}
 .vg-compact{grid-template-columns:90px minmax(0,1fr);gap:14px}
 .vg-compact>div{min-width:0}
 .vg-admin-card>img{height:150px!important}
 .sf2-hero h1{font-size:clamp(28px,7vw,38px)!important;line-height:1.55!important;letter-spacing:-.025em!important}
 .sf2-hero-copy,.spe-copy{min-width:0}
 .sf2-hero h1 br,.spe-copy h2 br,.vg-section h1 br,.vg-section h2 br{display:none}
 .spe-photo-note,.sf2-photo-badge{margin:14px}
 .demo-news-card.is-event{grid-template-columns:1fr}
 .demo-news-card.is-event img{max-height:460px}
 .collection-visual>div{padding:18px}
 .collection-visual>b{padding-inline:18px}
}
.demo-cast-strip{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:4px 3px 18px;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.demo-cast-photo{border:0;padding:0;background:#f7eef2;border-radius:12px;flex:0 0 150px;overflow:hidden;cursor:pointer;scroll-snap-align:start}
.demo-cast-photo>img{display:block;width:150px;height:180px;object-fit:contain!important;background:#f9f1f4;transition:filter .18s}
.demo-cast-photo:hover>img{filter:brightness(1.08)}.demo-cast-photo:focus-visible{outline:3px solid #aa4477;outline-offset:3px}
.cast-photo-dialog{border:0;border-radius:16px;padding:22px;width:min(390px,calc(100% - 32px));max-height:90svh;overflow:auto;color:#3b2331;background:#fff}
.cast-photo-dialog::backdrop{background:#24172188}.cast-photo-dialog>img{display:block;width:100%;height:auto;max-height:50svh;object-fit:contain;margin-top:15px}.cast-photo-dialog h2{margin:18px 0 6px;font-size:23px}.cast-photo-dialog p{font-size:18px}.cast-photo-dialog small{font-size:12px;color:#665665}
@media(max-width:760px){.demo-cast-strip{gap:10px}.demo-cast-photo{flex-basis:110px}.demo-cast-photo>img{width:110px;height:132px}}

/* Keep daily work close to the controls; photos belong to content and examples. */
.vg-compact.vg-block{grid-template-columns:minmax(0,1fr);padding:20px 24px;max-width:1200px}
.vg-inline-help{margin:12px 0 20px;border:1px solid #d7e1ed;border-radius:9px;background:#f7faff}
.vg-inline-help>summary{padding:13px 18px;cursor:pointer;font-size:14px;font-weight:650;color:#254871}
.vg-inline-help .vg-compact{border:0;box-shadow:none;margin:0;background:transparent}
.vg-step-detailed.vg-step-plain{grid-template-columns:1fr;max-width:860px;margin-inline:auto}
.sf2-flow article{padding:24px}.sf2-flow article>span{margin-top:0}
.vg-admin-card>[data-vg-icon]{height:100px;display:flex;align-items:center;padding:24px;background:#eef4fc}
@media(max-width:700px){.vg-compact.vg-block{padding:16px}.vg-compact h2{font-size:18px}.vg-inline-help .vg-compact-steps{gap:8px}.sf2-flow article{padding:18px}}

.demo-cast-time{display:block;padding:9px 4px;background:#fff;color:#59243b;font:700 13px/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center}
