/* About page. The grid, type, and buttons come from styles.css. */

.about-overview {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-overview-body {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.about-portrait {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.about-overview-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.about-links a,
.about-outside a,
.about-row dd a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.about-links a:hover,
.about-outside a:hover,
.about-row dd a:hover {
    color: var(--color-accent);
}

/* Research interests: three questions side by side, each over its projects. */
.about-research-intro {
    margin-bottom: 40px;
}

.about-research {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.about-research-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 4px solid var(--color-primary);
}

.about-research-item h3 {
    margin: 0;
    font-weight: 700;
}

.about-research-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.about-research-links a {
    font-weight: 700;
}

.about-research-links a::after {
    content: ' →';
}

.about-research-links a:hover {
    color: var(--color-accent);
}

/* Label/value rows: education, community, skills. */
.about-rows {
    margin: 0;
    border-top: 1px solid var(--color-line);
}

.about-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 32px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
}

.about-row dt {
    font-weight: 700;
}

.about-row dd {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-row dd span {
    color: var(--color-gray);
}

/* Outside Design: a full-bleed image strip that scrolls sideways while its
   panel is pinned under the header (driven by about.vue). */
.interests-wrapper {
    position: relative;
    /* height set by about.vue; --bleed is the column's left offset */
    margin-left: calc(-1 * var(--bleed, 0px));
    width: 100vw;
}

.interests-panel {
    position: sticky;
    top: var(--header-height);
    width: 100vw;
    height: calc(100vh - var(--header-height));
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--bleed, var(--margin-x));
    background-color: var(--color-background);
}

.interests-panel .section-heading {
    flex-shrink: 0;
    margin-bottom: 30px;
}

.interests-container {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
}

.interest-item-scroll {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    padding-right: 10vw;
    will-change: transform;
}

.interest-item-scroll img {
    flex-shrink: 0;
    height: 40vh;
    width: auto;
    object-fit: cover;
    border-radius: 6px;
}

.interest-item-scroll img[alt="leaf"] {
    width: 20vh;
    height: auto;
    object-fit: contain;
}

.interest-item-scroll img[alt="flower"] {
    width: 16vh;
    height: auto;
    object-fit: contain;
}

/* Scattered vertical offsets and gaps, so the strip reads as a collage. */
.interest-item-scroll img:nth-child(1) {
    margin-top: -8vh;
    margin-right: 4vh;
}

.interest-item-scroll img:nth-child(2) {
    margin-top: 12vh;
    margin-right: 10vh;
}

.interest-item-scroll img:nth-child(3) {
    margin-top: -4vh;
    margin-right: 2vh;
}

.interest-item-scroll img:nth-child(4) {
    margin-top: 40vh;
    margin-right: 2vh;
}

.interest-item-scroll img:nth-child(5) {
    margin-top: 22vh;
    margin-right: 15vh;
}

.interest-item-scroll img:nth-child(6) {
    margin-top: 0vh;
    margin-right: 6vh;
}

.interest-item-scroll img:nth-child(7) {
    margin-top: -12vh;
    margin-right: 0vh;
}

.interest-item-scroll img:nth-child(8) {
    margin-top: 5vh;
    margin-right: 6vh;
}

.interest-item-scroll img:nth-child(9) {
    width: 18vh;
    margin-top: 18vh;
    margin-right: 9vh;
}

.interest-item-scroll img:nth-child(10) {
    margin-top: 14vh;
    margin-right: 2vh;
}

.interest-item-scroll img:nth-child(11) {
    margin-top: -6vh;
    margin-right: 0vh;
}

.interest-item-scroll img:nth-child(12) {
    margin-top: 14vh;
    margin-right: 4vh;
}

.interest-item-scroll img:nth-child(13) {
    margin-top: -5vh;
    margin-right: 10vh;
}

.interest-item-scroll img:nth-child(14) {
    margin-top: 30vh;
    margin-right: 6vh;
}

@media (max-width: 768px) {
    .interest-item-scroll img[alt="leaf"],
    .interest-item-scroll img[alt="flower"] {
        display: none;
    }
}

@media (max-width: 1024px) {
    .about-research {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .about-overview-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
