/* AIMS homepage: two equal About cards and slightly shorter hero video. */
/* Scope strictly to the homepage About section. */
@media (min-width: 901px) {
    body:has(.aims-about-reference) .hero,
    body:has(.aims-about-reference) .hero-shade {
        height: 500px !important;
        min-height: 500px !important;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    body:has(.aims-about-reference) .hero,
    body:has(.aims-about-reference) .hero-shade {
        height: 410px !important;
        min-height: 410px !important;
    }
}
@media (max-width: 600px) {
    body:has(.aims-about-reference) .hero,
    body:has(.aims-about-reference) .hero-shade {
        height: 370px !important;
        min-height: 370px !important;
    }
}
body:has(.aims-about-reference) .hero .hero-bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Match quotation card and logo/photo card: border, radius, height, width. */
.aims-about-reference .aims-about-right {
    gap: 14px !important;
}
.aims-about-reference .aims-about-right .pullquote,
.aims-about-reference .aims-about-right #aims-about-photo-upload .aims-upload-preview {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    border: 1px solid #666 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
.aims-about-reference .aims-about-right .pullquote {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #eee !important;
    padding: 20px 22px !important;
    margin: 0 !important;
    font-size: clamp(16px, 1.4vw, 21px) !important;
    line-height: 1.48 !important;
}
.aims-about-reference .aims-about-right .pullquote::before {
    margin: 0 0 12px !important;
    flex-shrink: 0 !important;
}
.aims-about-reference .aims-about-right #aims-about-photo-upload {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
.aims-about-reference .aims-about-right #aims-about-photo-upload .aims-upload-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
    background: #fff !important;
    padding: 12px 18px !important;
}
.aims-about-reference .aims-about-right #aims-about-photo-upload .aims-upload-preview img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 190px !important;
    object-fit: contain !important;
    object-position: center !important;
}
@media (max-width: 600px) {
    .aims-about-reference .aims-about-right .pullquote {
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
    }
    .aims-about-reference .aims-about-right #aims-about-photo-upload .aims-upload-preview {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}