/* Portfolio case studies only: normalize the homepage-derived project strip. */
body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] > .section {
    margin: 0 !important;
    padding: 52px 0 42px !important;
    background: #050505 !important;
}

body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .section_wrapper {
    width: min(1100px, calc(100% - 40px)) !important;
    max-width: 1100px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] h2 {
    margin: 0 0 38px !important;
    color: #fff !important;
    font-size: clamp(34px, 3.4vw, 48px) !important;
    font-weight: 300 !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
}

body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] h2 strong {
    font-weight: 800 !important;
}

body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .recent-project-video,
body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .recent-project-video > a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .recent-project-video video {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
}

@media (max-width: 767px) {
    body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] > .section {
        padding: 42px 0 28px !important;
    }

    body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .section_wrapper {
        width: min(560px, calc(100% - 30px)) !important;
    }

    body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] h2 {
        margin-bottom: 28px !important;
        font-size: 34px !important;
    }

    body[class*="page-template-template-portfolio-"] #Content [class*="-recent-projects"] .column {
        margin-bottom: 14px !important;
    }
}
