/* A dedicated crop keeps captions, badges and carousel slides stationary. */
.studio-photo-frame { display: block; overflow: hidden; }
.studio-photo-frame > img { display: block; }
.studio-home-editorial__link .studio-photo-frame { border-radius: clamp(15px, 1.7vw, 25px); }
.journal-cards .studio-photo-frame { border-radius: clamp(.8rem, 1.7vw, 1.6rem); }
.studio-article__related .studio-photo-frame { border-radius: .8rem; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .studio-project-gallery__image-link {
        overflow: hidden;
        border-radius: clamp(.6rem, 1.2vw, 1rem);
    }
    .studio-professional-projects figure a:has(> img) {
        display: block;
        overflow: hidden;
    }

    .studio-popular__card { --photo-scale: 1.5; --photo-duration: 20s; }
    .studio-home-editorial__link { --photo-scale: 1.2; --photo-duration: 25s; }
    .studio-project-card { --photo-scale: 1.2; --photo-duration: 5s; }
    .studio-projects-grid--catalogue .studio-project-card { --photo-scale: 1.5; --photo-duration: 20s; }

    :is(.studio-popular__cover, .studio-project-card__photo > img,
        .studio-photo-frame > img, .studio-project-gallery__image-link > img,
        .studio-professional-projects figure a > img,
        .studio-home-method__track > li > img, .studio-home-workshop__panels > li > img),
    .studio-home-project-story .studio-home-projects__feature img {
        transition: transform var(--photo-duration, 5s) linear;
    }

    .studio-popular__card:hover .studio-popular__cover,
    .studio-project-card:hover .studio-project-card__photo > img,
    a:hover > .studio-photo-frame > img,
    .studio-professional-projects figure a:hover > img,
    .studio-project-gallery__image-link:hover > img,
    .studio-home-method__track > li:hover > img,
    .studio-home-workshop__panels > li:hover > img,
    .studio-home-project-story .studio-home-projects__feature:hover img {
        transform: scale(var(--photo-scale, 1.2));
    }
}
