/*
|--------------------------------------------------------------------------
| Aseem Gupta author hero
|--------------------------------------------------------------------------
*/

.aseem-author-hero {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 850px;
    padding: 0;
    overflow: hidden;

    background: #e3cbb3;
    isolation: isolate;
}

/*
 * Soft overlay so the text remains readable while the photograph
 * stays visible on the right.
 */
.aseem-author-hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;

    content: "";
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(251, 245, 234, 1) 0%,
            rgba(251, 245, 234, 0.97) 25%,
            rgba(251, 245, 234, 0.84) 40%,
            rgba(251, 245, 234, 0.38) 55%,
            rgba(251, 245, 234, 0) 70%
        );
}

.aseem-author-hero__image {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

.aseem-author-hero__inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 540px;
}

.aseem-author-hero__content {
    width: min(57%, 780px);
    padding: 76px 0 50px;
}

.aseem-author-hero__content .entity-hero-copy {
    max-width: 730px;
}

.aseem-author-hero__content .entity-byline {
    max-width: 730px;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .aseem-author-hero::after {
        background:
            linear-gradient(
                90deg,
                rgba(251, 245, 234, 1) 0%,
                rgba(251, 245, 234, 0.96) 35%,
                rgba(251, 245, 234, 0.68) 58%,
                rgba(251, 245, 234, 0.08) 82%
            );
    }

    .aseem-author-hero__content {
        width: min(62%, 680px);
    }

    .aseem-author-hero__content .entity-hero-copy {
        font-size: 18px;
        line-height: 1.55;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
|
| On smaller screens the text and photograph are stacked. This prevents
| the author’s face from being covered by the heading.
*/

@media (max-width: 720px) {
    .aseem-author-hero {
        display: flex;
        flex-direction: column;

        min-height: 0;
        padding: 0;
    }

    .aseem-author-hero::after {
        display: none;
    }

    .aseem-author-hero__inner {
        order: 1;

        min-height: 0;
        background: var(--entity-paper);
    }

    .aseem-author-hero__content {
        width: 100%;
        padding: 54px 0 36px;
    }

    .aseem-author-hero__content .entity-hero-copy {
        max-width: none;
        font-size: 17px;
    }

    .aseem-author-hero__image {
        position: relative;
        order: 2;

        width: 100%;
        height: auto;

        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .aseem-author-hero__content {
        padding-top: 44px;
    }

    .aseem-author-hero__content h1 {
        font-size: clamp(48px, 15vw, 66px);
    }
}