/* Unified image geometry for public content. The surrounding card clips its cover. */
:is(.course-stage3 .course-photo-frame, .course-stage3 .course-location-photo,
    .about-page-intro .about-intro-frame, body.is-home .home-about-frame, .campus-activity .activity-photo-card,
    .teacher-card-v2, .dev-card, .coop-card, .partner-card, .advantage-card,
    .hsk-certificate-card, .certificate-card, .silk-road-featured,
    .silk-road-card) { border-radius: var(--radius-image); overflow: hidden; }
body.is-home .home-about-frame img,
.course-stage3 .course-photo-frame > img,
.course-stage3 .course-location-photo > img,
.campus-activity .activity-photo,
.campus-lightbox-image,
.silk-road-preview-image img { border-radius: var(--radius-image); }
/* Full-bleed covers: preserve the square edge next to card copy. */
:is(.advantage-image-frame, .partner-photo-frame, .dev-card .dev-img,
    .coop-photo-frame, .hsk-certificate-frame, .certificate-window,
    .silk-road-card-cover) { border-radius: var(--radius-image) var(--radius-image) 0 0; overflow: hidden; }
.silk-road-featured-cover { border-radius: var(--radius-image) 0 0 var(--radius-image); overflow: hidden; }
@media (max-width: 700px) { .silk-road-featured-cover { border-radius: var(--radius-image) var(--radius-image) 0 0; } }
/* Original K3 practical image has rounded transparent corners baked into the asset;
   crop inside the frame so its visible edge follows the shared radius. */
.course-stage3 .course-photo-frame img[src*="k3-practical-training.webp"] { transform: scale(1.35); }

/* The same image frames are shared by the homepage and About page. */
body :is(.home-about-section, .about-page-intro) .about-intro-frame{
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    align-self: center;
    overflow: hidden;
    border-radius: var(--radius-image);
}
body :is(.home-about-section, .about-page-intro) .about-intro-frame img{
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
}
body :is(.home-about-section, .about-page-intro) .about-intro-frame img { object-position: center 58%; }
body :is(.home-about-layout, .about-intro-layout) { align-items: center; }
