/*
Theme Name: SRI Research
Theme URI: https://seeraverse.com/
Author: SEERAVERSE Research Initiative
Description: A Japanese-first research and publishing theme for SRI.
Version: 2.5.45
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sri-research
*/

/* Keep in-page anchor targets visible below the sticky header, with breathing room. */
main [id] {
    scroll-margin-top: 108px;
}

.sri-page-featured,
.sri-featured-image {
    margin-top: clamp(1.25rem, 3vw, 2.5rem);
    margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

.sri-page-featured img,
.sri-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    border-radius: 18px;
}

/* Publication cards use a wide editorial row instead of squeezing copy below a thumbnail. */
.sri-publications-page .sri-related-grid {
    grid-template-columns: minmax(0, 1fr);
}

.sri-publications-page .sri-related-card {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
}

.sri-publications-page .sri-related-card > a:first-child {
    display: block;
    min-width: 0;
    flex: 0 0 32%;
    height: 100%;
    overflow: hidden;
}

.sri-publications-page .sri-related-card > a:first-child > .sri-card-thumb {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
    object-fit: cover;
}

.sri-publications-page .sri-related-card-body {
    min-width: 0;
    flex: 1 1 68%;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.sri-publications-page .sri-related-card-body h3 {
    margin: .45rem 0 .8rem;
}

@media (max-width: 720px) {
    .sri-publications-page .sri-related-card {
        flex-direction: column;
    }

    .sri-publications-page .sri-related-card > a:first-child,
    .sri-publications-page .sri-related-card > a:first-child > .sri-card-thumb {
        flex-basis: auto;
        height: 220px;
        min-height: 220px;
    }
}
