/* The project hero uses the same height for portrait and landscape footage. */
.single-sf3d_project .case-page .cinema-hero {
    aspect-ratio:16/9!important;
    width:100%;
    height:auto!important;
    min-height:0!important;
    position:relative;
    overflow:hidden;
}
.single-sf3d_project .case-page .cinema-hero > video,
.single-sf3d_project .case-page .cinema-hero > img,
.single-sf3d_project .case-page .cinema-hero .sf3d-hero-preview video,
.single-sf3d_project .case-page .cinema-hero .sf3d-hero-preview img {
    width:100%;
    height:100%;
    object-fit:contain!important;
}
.single-sf3d_project .case-page .cinema-hero > video,
.single-sf3d_project .case-page .cinema-hero > img {position:absolute;inset:0}
.single-sf3d_project .sf3d-project-content video.sf3d-portrait-video {
    display:block;
    width:auto!important;
    height:auto!important;
    max-width:100%;
    max-height:var(--sf3d-video-max-height);
    margin-inline:auto;
    object-fit:contain!important;
}

.single-sf3d_project .sf3d-project-content .sf3d-video-row > .sf3d-video-row-item {flex:1 1 0;min-width:0}
.single-sf3d_project .sf3d-project-content .sf3d-video-row-item .wp-block-video {width:100%}

/* Multiple project videos fill their slots; only standalone portraits are height capped. */
.single-sf3d_project .sf3d-project-content .sf3d-multi-video-row {
 width:100%;gap:clamp(16px,2.4vw,32px);
 margin-bottom:clamp(40px,5vw,80px);
}
.single-sf3d_project .sf3d-project-content .sf3d-multi-video-row > .sf3d-video-row-item {
 flex:1 1 0;min-width:0;margin-block:0;
}
.single-sf3d_project .sf3d-project-content .sf3d-multi-video-row .sf3d-block-video-player {
 width:100%;max-width:100%;
}
.single-sf3d_project .sf3d-project-content .sf3d-multi-video-row video {
 width:100%!important;height:auto!important;max-height:none;display:block;
}
