/* One photo treatment across cards, archives, product views and case studies.
   Frame dimensions remain fixed; captions, marks and reading surfaces stay still. */
:root{--photo-zoom:1.045;--photo-duration:1.1s;--photo-easing:cubic-bezier(.2,.65,.3,1)}
body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.photo-motion,.case-hero:has(>img),.work-image,.collection-preview-image,.thrive55-bike-photo,.thrive-collection-card>div,.foundation-image,.milestone-image,.profile-portrait,.film-play){overflow:hidden}
.photo-motion{display:block;position:relative;width:100%;min-width:0}
body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.photo-motion,.case-hero,.work-image,.collection-preview-image,.thrive55-bike-photo,.thrive-collection-card>div,.foundation-image,.milestone-image,.profile-portrait,.film-play)>img{
  transform:scale(1)!important;
  transition:transform var(--photo-duration) var(--photo-easing),filter .65s ease!important;
  transform-origin:center;
}
/* Product cutouts are positioned within a cropped source image; zoom the viewport. */
.soca-product-object .soca-product-viewport{transform:scale(1);transition:transform var(--photo-duration) var(--photo-easing)}
.press-feature-media{margin-bottom:30px}
.press-feature-media .press-feature-photo{margin-bottom:0}
@media(hover:hover) and (pointer:fine){
  body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.photo-motion,.case-hero,.work-image,.collection-preview-image,.thrive55-bike-photo,.thrive-collection-card>div,.foundation-image,.milestone-image,.profile-portrait,.film-play):hover>img,
  body :is(.thrive55-bike-card,.thrive-collection-card,.collection-preview>a,.work-card>a,.press-highlight):hover :is(.thrive55-bike-photo,.thrive-collection-card>div,.collection-preview-image,.work-image,.press-feature-media)>img{transform:scale(var(--photo-zoom))!important}
  .soca-product-object .image-open:hover .soca-product-viewport{transform:scale(var(--photo-zoom))}
}
body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.foundation-image,.film-play):focus-visible>img,
body a:focus-visible :is(.thrive55-bike-photo,.thrive-collection-card>div,.collection-preview-image,.work-image,.press-feature-media)>img{transform:scale(var(--photo-zoom))!important}
.soca-product-object .image-open:focus-visible .soca-product-viewport{transform:scale(var(--photo-zoom))}
/* A touch tap opens the image immediately; it must not leave a sticky hover crop. */
@media(hover:none),(pointer:coarse){
  :root{--photo-zoom:1}
  body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.photo-motion,.case-hero,.work-image,.collection-preview-image,.thrive55-bike-photo,.thrive-collection-card>div,.foundation-image,.milestone-image,.profile-portrait,.film-play)>img{transform:scale(1)!important}
  .soca-product-object .soca-product-viewport{transform:none!important}
  .thrive55-bike-card img{filter:none}
}
@media(prefers-reduced-motion:reduce){
  :root{--photo-zoom:1}
  body :is(.image-open:not(.strategy-preview):not(.thrive-logo-archive),.photo-motion,.case-hero,.work-image,.collection-preview-image,.thrive55-bike-photo,.thrive-collection-card>div,.foundation-image,.milestone-image,.profile-portrait,.film-play)>img{transform:none!important;transition:none!important}
  .soca-product-object .soca-product-viewport{transform:none!important;transition:none}
}
