@charset "UTF-8";

/* Ya'an: a base photograph above the three latest, individually named pandas. */
.destination-card.destination-yaan {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 48px;
}
.destination-yaan .destination-copy { grid-column: 1; grid-row: 1; padding-top: 16px; }
.destination-yaan .yaan-collage { grid-column: 2; grid-row: 1; }
.destination-yaan .destination-number { gap: 20px; margin-bottom: 4px; }
.destination-yaan .destination-number b {
    color: var(--green);
    font: 400 56px/1 var(--serif);
    letter-spacing: -.05em;
}
.destination-yaan .destination-number i { width: 54px; background: #7d9686; }
.destination-yaan .destination-en {
    margin-bottom: 16px;
    color: #718c7b;
    font: 500 12px/1.5 Georgia, "Times New Roman", serif;
    letter-spacing: .16em;
}
.destination-yaan .destination-copy h3 {
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}
.destination-yaan .destination-highlight {
    margin: 12px 0 20px;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.65;
}
.destination-yaan .destination-tags { margin-top: 24px; }
.yaan-collage { min-width: 0; }
.yaan-photo { position: relative; margin: 0; overflow: hidden; }
.yaan-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yaan-collage-top {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.yaan-photo-base { aspect-ratio: 1.9 / 1; }
.yaan-photo-note {
    margin: 0;
    padding: 16px 0 16px 12px;
    border-left: 1px solid #8d9c91;
    color: #545e56;
    font: 400 clamp(12px, 1vw, 15px)/1.85 var(--serif);
}
.yaan-photo-base img { object-position: center 48%; }
.yaan-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.yaan-photo-pair .yaan-photo { aspect-ratio: 1.5 / 1; }
.yaan-photo-pandas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yaan-panda-card { min-width: 0; margin: 0; }
.yaan-photo-pandas .yaan-photo { aspect-ratio: 7 / 8; }
.yaan-photo-pandas .yaan-photo img { object-position: center; }
.yaan-photo-pandas .yaan-photo-xiaoxiao img { object-position: center 60%; }
.yaan-photo-pandas .yaan-photo-leilei img { object-position: 60% center; }
.yaan-panda-card > figcaption {
    margin-top: 7px;
    color: var(--green);
    font: 600 15px/1.6 var(--serif);
    text-align: center;
    white-space: nowrap;
}
.yaan-panda-credit { margin: 7px 0 0; color: #53604d; font: 400 11px/1.7 var(--sans); text-align: right; }
.yaan-photo-twins img { object-position: center 42%; }
.yaan-photo-shan img { object-position: 40% center; }
.yaan-photo figcaption {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 7px;
    color: #fff;
    background: rgba(27, 42, 31, .5);
    font: 400 9px/1.6 var(--sans);
}
@media (min-width: 641px) and (max-width: 920px) {
    .destination-card.destination-yaan {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .destination-yaan .destination-copy { padding-top: 0; }
    .destination-yaan .yaan-collage { grid-column: 1; grid-row: 2; }
    .destination-yaan .destination-number b { font-size: 44px; }
    .destination-yaan .destination-copy h3 { font-size: 26px; }
    .destination-yaan .destination-highlight { margin-bottom: 16px; font-size: 17px; }
}
@media (max-width: 640px) {
    .destination-card.destination-yaan { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .destination-yaan .destination-copy { grid-column: 1; grid-row: 1; padding-top: 0; }
    .destination-yaan .yaan-collage { grid-column: 1; grid-row: 2; }
    .destination-yaan .destination-number b { font-size: 44px; }
    .destination-yaan .destination-en { margin-bottom: 12px; font-size: 11px; }
    .destination-yaan .destination-copy h3 { font-size: clamp(25px, 6.5vw, 30px); }
    .destination-yaan .destination-highlight { margin: 10px 0 16px; font-size: 18px; }
    .destination-yaan .destination-tags { margin-top: 20px; }
    .yaan-collage-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
    .yaan-photo-note { padding: 8px 0 8px 10px; font-size: 12px; }
    .yaan-note-break { display: block; }
    .yaan-note-break + br { display: none; }
    .yaan-photo figcaption { right: 4px; bottom: 4px; padding: 2px 4px; font-size: 8px; }
    .yaan-photo-pandas { gap: 7px; }
    .yaan-panda-card > figcaption { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 360px) {
    .yaan-photo-pandas { gap: 5px; }
    .yaan-panda-card > figcaption { font-size: 12px; }
}
