/* ========================== Story Card ========================== */

.story-card {
    position: relative;
    height: clamp(360px, 28vw, 400px);
    border-radius: 20px;
    overflow: hidden;
}

.story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.story-card__overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, .05) 58%,
            rgba(0, 0, 0, .18) 74%,
            rgba(0, 0, 0, .55) 100%);
    backdrop-filter: blur(64px);
    -webkit-backdrop-filter: blur(64px);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            transparent 42%,
            rgba(0, 0, 0, .25) 60%,
            rgba(0, 0, 0, .7) 82%,
            #000 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            transparent 42%,
            rgba(0, 0, 0, .25) 60%,
            rgba(0, 0, 0, .7) 82%,
            #000 100%);
    pointer-events: none;
}

.story-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: clamp(165px, 15vw, 185px);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
}

.story-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card__author {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    line-height: var(--leading-body);
}

.story-card__quote {
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    color: var(--color-white);
    font-family: var(--font-family-display);
    font-size: var(--text-h6);
    font-style: italic;
    font-weight: var(--font-regular);
    line-height: var(--leading-h6);
}

.story-card__link {
    color: var(--pink-500);
    font-family: var(--font-family-primary);
    font-size: var(--text-body);
    font-weight: var(--font-bold);
    line-height: var(--leading-body);
    text-decoration: none;
    transition: color 0.25s ease;
}

.story-card__link:hover {
    color: var(--color-white);
}


/* ========================== Landscape Tablets ========================== */

@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {

    .story-card {
        height: 360px;
        border-radius: 18px;
    }

    .story-card__content {
        min-height: 170px;
        padding: 24px;
        gap: 16px;
    }

    .story-card__body {
        gap: 14px;
    }

    .story-card__author,
    .story-card__link {
        font-size: var(--text-body);
        line-height: var(--leading-body);
    }

    .story-card__quote {
        font-size: var(--text-h6);
        line-height: var(--leading-h6);
    }
}


/* ========================== iPad Mini Landscape ========================== */

@media (min-width: 768px) and (max-width: 900px) and (orientation: landscape) {

    .story-card {
        height: 330px;
    }

    .story-card__content {
        min-height: 150px;
        padding: 20px;
        gap: 12px;
    }

    .story-card__body {
        gap: 12px;
    }
}