@charset "UTF-8";

/* Editorial photo spread: two large images and four quieter moments. */
.yaan-family-topic {
    --family-line: #c6d0b8;
    position: relative;
    min-width: 0;
    margin-top: 8px;
    padding-top: 40px;
    scroll-margin-top: 40px;
}
.yaan-family-copy { max-width: 1000px; margin: 0 auto 28px; text-align: center; }
.yaan-family-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.yaan-family-label > img { flex: 0 0 22px; width: 22px; height: 37px; object-fit: contain; }
.yaan-family-label > div { min-width: 0; text-align: left; }
.yaan-family-label span { display: block; color: #59683f; font: 600 15px/1.5 var(--script); letter-spacing: .16em; }
.yaan-family-label p { margin: 2px 0 0; color: var(--green); font: 500 14px/1.5 var(--serif); letter-spacing: .12em; }
.yaan-family-copy h3 {
    margin: 0 0 16px;
    color: var(--green);
    font: 600 clamp(28px, 3vw, 40px)/1.5 var(--serif);
    letter-spacing: .025em;
    line-break: strict;
    text-wrap: balance;
}
.yaan-family-copy h3 > span { white-space: nowrap; }
.yaan-family-copy h3 > br { display: none; }
.yaan-family-copy > p {
    margin: 0 auto;
    max-width: 950px;
    color: var(--reading-ink, #343e36);
    font: 400 17px/1.9 var(--serif);
    letter-spacing: .01em;
    line-break: strict;
    text-wrap: pretty;
}
.yaan-family-copy > p + p { margin-top: 3px; }
.yaan-family-portraits { min-width: 0; }
.yaan-family-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas: "a a b c" "a a d d" "e f d d";
    gap: 14px;
    aspect-ratio: 2 / 1;
}
.yaan-family-panda {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: #e9eee4;
}
.family-photo-a { grid-area: a; }
.family-photo-b { grid-area: b; }
.family-photo-c { grid-area: c; }
.family-photo-d { grid-area: d; }
.family-photo-e { grid-area: e; }
.family-photo-f { grid-area: f; }
.yaan-family-panda > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.family-photo-a > img { object-position: 45% center; }
.family-photo-b > img { object-position: 52% center; }
.family-photo-f > img { object-position: 54% center; }
.yaan-family-panda::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 76px;
    background: linear-gradient(transparent, rgba(13, 29, 18, .72));
    pointer-events: none;
}
.yaan-family-panda figcaption {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 9px;
    max-width: calc(100% - 28px);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.yaan-family-panda figcaption strong { font: 500 15px/1.6 var(--serif); letter-spacing: .05em; white-space: nowrap; }
.yaan-family-panda figcaption span { font: 500 10px/1.6 var(--script); letter-spacing: .13em; white-space: nowrap; }
.family-photo-a figcaption,
.family-photo-d figcaption { left: 20px; bottom: 15px; }
.family-photo-a figcaption strong,
.family-photo-d figcaption strong { font-size: 19px; }
.family-photo-a figcaption span,
.family-photo-d figcaption span { font-size: 12px; }
.yaan-family-credit { margin: 10px 0 0; color: #53604d; font: 400 12px/1.7 var(--sans); text-align: right; }
.yaan-family-topic + .status-note { margin-top: 28px; }

@media (min-width: 641px) and (max-width: 920px) {
    .yaan-family-copy h3 > br { display: initial; }
    .yaan-family-grid { gap: 10px; }
    .yaan-family-panda figcaption { left: 9px; bottom: 7px; max-width: calc(100% - 18px); gap: 0 6px; }
    .yaan-family-panda figcaption strong { font-size: 13px; }
    .yaan-family-panda figcaption span { font-size: 9px; }
    .family-photo-a figcaption strong,
    .family-photo-d figcaption strong { font-size: 17px; }
}
@media (max-width: 640px) {
    .yaan-family-topic { margin-top: 32px; padding-top: 28px; }
    .yaan-family-copy { margin-bottom: 22px; text-align: left; }
    .yaan-family-label { justify-content: flex-start; margin-bottom: 16px; }
    .yaan-family-label span { font-size: 14px; letter-spacing: .12em; }
    .yaan-family-copy h3 { margin-bottom: 16px; font-size: clamp(25px, 6.5vw, 32px); line-height: 1.55; letter-spacing: 0; }
    .yaan-family-copy h3 > br { display: initial; }
    .yaan-family-copy > p { font-size: 17px; line-height: 1.9; }
    .yaan-family-copy > p + p { margin-top: 8px; }
    .yaan-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-template-areas: "a a" "b c" "e f" "d d";
        gap: 10px;
        aspect-ratio: auto;
    }
    .yaan-family-panda { aspect-ratio: 4 / 5; }
    .family-photo-a,
    .family-photo-d { aspect-ratio: 3 / 2; }
    .family-photo-b > img { object-position: 52% center; }
    .family-photo-c > img { object-position: 48% center; }
    .family-photo-e > img { object-position: 59% center; }
    .family-photo-f > img { object-position: 58% center; }
    .yaan-family-panda figcaption { left: 10px; bottom: 9px; display: block; max-width: calc(100% - 20px); }
    .yaan-family-panda figcaption strong { display: block; font-size: 14px; letter-spacing: .02em; }
    .yaan-family-panda figcaption span { display: block; font-size: 9px; }
    .family-photo-a figcaption,
    .family-photo-d figcaption { left: 16px; bottom: 12px; }
    .family-photo-a figcaption strong,
    .family-photo-d figcaption strong { font-size: 18px; }
    .family-photo-a figcaption span,
    .family-photo-d figcaption span { font-size: 11px; }
    .yaan-family-credit { font-size: 11px; }
    .yaan-family-topic + .status-note { margin-top: 24px; }
}
@media (max-width: 360px) {
    .yaan-family-grid { gap: 8px; }
    .yaan-family-panda figcaption { left: 8px; max-width: calc(100% - 16px); }
    .yaan-family-panda figcaption strong { font-size: 13px; }
}
