#GlobalNavWrapper {
    --hero-image: url(../../assets/images/stories-banner.jpg);
}

/* Cards */

.card-holder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);

    > header {
        flex-basis: 100%;
        padding-inline: 10px;
    }
}

article.center-card {
    display: grid;
    grid-template-rows: 270px 1fr;
    flex-basis: calc(33% - 10px);
    overflow: hidden;
    border-radius: var(--standard-border-radius);
    background-color: var(--bright-bg);
    /* Responsive: (max-width: 900px) */
    @media screen and (max-width: 1200px) {
        flex-basis: calc(100% - 10px);
    }
}

.center-card {
    header {
        height: 270px;

        h2 {
            padding-inline: 10px;
        }
    }

    section {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        padding-inline: 10px;

        p {
            min-height: 140px;
        }

        h3 {
            margin: 5px auto;
        }

        ul {
            margin: 0 auto 10px;
            padding: 0;
            list-style: none;
            text-align: center;
        }
    }
}

/* Story Feed */

.story-holder {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: var(--space-md);

    article {
        display: flex;
        flex-direction: column;
        width: 380px;
        height: 100%;
        overflow: hidden;
        border-radius: var(--standard-border-radius);
        box-shadow: var(--bold-box-shadow);

        &:hover {
            box-shadow: var(--floating-medium-box-shadow);
        }

        > img {
            height: 230px;
        }

        > .thumbnail {
            position: relative;
            width: 100%;
            height: 280px;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                pointer-events: none;
                opacity: 0;
                background: linear-gradient(to top, var(--titan-orange) 0%, transparent 33%);
                transition: opacity 0.2s ease;
            }
        }

        > p,
        > em,
        > h3 {
            padding: 0 10px;
        }

        > h3 {
            margin: 0 10px;
        }

        > em {
            margin: 10px auto;
        }

        > p {
            margin: auto 10px 10px;
            overflow: hidden;
        }

        > a {
            margin-top: auto;
            margin-bottom: var(--space-xs);
            padding-inline: 10px;
        }
    }
}

img {
    &.tall-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 20%;
    }

    &.wide-thumb {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    &.even-thumb {
        object-fit: cover;
        object-position: center;
    }
}

a.story-tile {
    display: block;
    width: 380px;
    height: 400px;
    cursor: pointer;
    background-color: white;
    text-decoration: none;
}

.alternate {
    a.story-tile,
    article.story-tile,
    .story-text {
        background-color: var(--titan-blue);
        color: white;
    }
}

.story-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    align-content: space-around;
    justify-content: space-evenly;
    padding: 10px;
    background-color: var(--titan-blue);
    color: white;
}

article.story-tile {
    &:hover {
        background-color: var(--bright-bg);

        .thumbnail::after {
            opacity: 1;
        }

        h3 {
            color: var(--titan-orange);
            text-decoration: underline;
        }
    }
}

/* Featured Story */

#featured-story {
    padding: clamp(40px, 6vw, 80px) 20px;
    min-height: 445px;
    /* Responsive: (max-width: 800px) */
    @media screen and (max-width: 1200px) {
        padding: 40px 16px;
    }
}

#alumni-story-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
    gap: clamp(32px, 7vw, 100px);
    align-items: center;
    max-width: 1300px;
    margin: 20px auto;

    > div {
        overflow: hidden;
        border-radius: var(--standard-border-radius);
        box-shadow: var(--medium-box-shadow);
    }

    img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: center;
    }

    article {
        max-width: 560px;

        p {
            margin: 0 0 24px;

            &:last-child {
                margin-bottom: 0;

                span::before {
                    content: "•";
                    margin: 0 8px;
                    color: var(--titan-orange);
                }
            }
        }
    }

    .section-label {
        display: inline-block;
        margin-bottom: 24px;

        &:link, &:visited {
            color: white;
            text-decoration: none;
        }

        &:hover, &:active {
            text-decoration: underline;
        }
    }

    h2 {
        margin: 0 0 24px;
        color: var(--titan-orange);
    }
    /* Responsive: (max-width: 800px) */

    @media screen and (max-width: 1200px) {
        grid-template-columns: 1fr;
        gap: var(--space-md);

        article {
            max-width: none;
        }

        .section-label {
            margin-bottom: 16px;
        }

        h2 {
            margin-bottom: 18px;
        }
    }
}


.story-feature-skeleton {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
    gap: clamp(32px, 7vw, 100px);
    align-items: center;
    width: 100%;
    /* Responsive: (max-width: 800px) */
    @media screen and (max-width: 1200px) {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.skeleton-image,
.skeleton-copy span,
.skeleton-copy strong,
.skeleton-copy p {
    display: block;
    border-radius: var(--standard-border-radius);
    background: linear-gradient( 90deg, rgb(0 52 95 / 0.08), rgb(0 52 95 / 0.16), rgb(0 52 95 / 0.08) );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.25s infinite linear;
}

.skeleton-image {
    aspect-ratio: 3 / 2;
    min-height: 280px;
    /* Responsive: (max-width: 800px) */
    @media screen and (max-width: 1200px) {
        min-height: 220px;
    }
}

.skeleton-copy span {
    width: 110px;
    height: 28px;
    margin-bottom: 24px;
    border-radius: var(--max-border-radius);
}

.skeleton-copy strong {
    width: min(100%, 480px);
    height: 52px;
    margin-bottom: 24px;
}

.skeleton-copy p {
    height: 18px;
    margin-bottom: 14px;
}

    .skeleton-copy p:nth-child(4) {
        width: 88%;
    }

    .skeleton-copy p:nth-child(5) {
        width: 64%;
    }

@keyframes skeleton-shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* Filters */

#alumni-stories {
    button[data-action="filterStories"].active {
        background-color: white;
        color: var(--titan-blue);
    }
}

/* Formstack Overrides */

.fsform-container {
    width: 50%;
    margin: 0 auto;
    /* Responsive: (max-width: 900px) */
    @media screen and (max-width: 1200px) {
        width: 100%;
    }
}

.VTYi {
    border-radius: var(--standard-border-radius);
}

#Default {
    .bALRZz {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ihIYnq {
        margin-top: 0;
    }
}
