/* Local overrides for the hugo-profile trial. */

/* Every project thumbnail is the same size: a 16:9 frame, image cropped to fill it. */
#projects .card-head {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

#projects .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Keep it simple: no zoom on hover. */
#projects .card:hover .card-img-top {
    transform: none;
}

/* Certificate thumbnails: same frame size, whole certificate visible. */
#achievements .card-head {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .5rem;
}

#achievements .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Olist "Data analysis process": six steps in a row (stacked on phones), ported from the site's identity.css. */
.page-content ol.process {
    list-style: none;
    padding: 0;
    margin: 1.4em 0 2em;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6em;
    border-top: 4px solid var(--text-color);
}

.page-content ol.process li {
    margin: 0;
    text-align: center;
    position: relative;
    padding: 1.6em .5em .9em;
    background: var(--secondary-background-color);
    border-radius: 0 0 8px 8px;
}

.page-content ol.process li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 1em;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.page-content ol.process a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.page-content ol.process b {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
}

.page-content ol.process span {
    display: block;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text-secondary-color);
    margin-top: .35em;
}

.page-content ol.process a:hover b {
    color: var(--primary-color);
}

@media (max-width: 720px) {
    .page-content ol.process {
        grid-template-columns: 1fr;
        gap: .3em;
        border-top: 0;
        border-left: 4px solid var(--text-color);
    }

    .page-content ol.process li {
        text-align: left;
        padding: .6em .8em .6em 1.6em;
        border-radius: 0 8px 8px 0;
    }

    .page-content ol.process li::before {
        top: 50%;
        left: 0;
        width: 1em;
        height: 4px;
        transform: translateY(-50%);
    }
}

/* Dark mode: white section headings (theme default is grey). */
.dark #about h3, .dark #experience h3, .dark #education .container > h3,
.dark #projects h3, .dark #achievements h3, .dark #contact h3 {
    color: #fff !important;
}

/* Hero: no big subtitle; the tagline is the hero paragraph (params.hero.content). */
#hero h2 {
    display: none;
}
