/* Detail layout shared by all research topics. */
.topic-detail {
    margin: clamp(.55rem, 2vw, 1.25rem);
    padding: clamp(.85rem, 2vw, 1.45rem);
    color: #16120e;
    background: #fff;
}
.topic-detail h1 {
    margin: 0 0 .9rem;
    font-size: clamp(1.25rem, 2.7vw, 1.6rem);
    line-height: 1.2;
}
.topic-description { display: flow-root; }
.topic-description-text, .topic-description-text p, .topic-extra, .topic-extra p {
    font-size: .9375rem;
    line-height: 1.55;
}
.topic-description-text > :first-child { margin-top: 0; }
.topic-description-text > :last-child { margin-bottom: 0; }
.topic-main-photo {
    float: right;
    width: clamp(9rem, 29%, 21rem);
    max-width: 34%;
    margin: 0 0 .75rem 1rem;
}
.topic-main-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(12rem, 28vw, 23rem);
    object-fit: contain;
    object-position: right top;
}
.topic-extra { margin-top: 1.25rem; }
.topic-extra h2 { margin: 0 0 .35rem; color: inherit; }
.topic-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .85rem; margin-top: 1rem; }
.topic-gallery a { display: block; }
.topic-gallery img { display: block; width: 100%; max-height: 26rem; object-fit: contain; object-position: left top; }
@media (max-width: 620px) {
    .topic-main-photo {
        float: none;
        display: block;
        width: max-content;
        max-width: 100%;
        margin: 0 auto .9rem;
    }
    .topic-main-photo img { width: auto; max-height: 24rem; object-position: center; }
}
