/* Render-blocking, high priority stylesheet for attorney bios */
/* This file should be SMALL; delete CSS of bio templates you are not using */

/*
ATTORNEY BANNER TEMPLATE A
ATTORNEY BANNER TEMPLATE B
ATTORNEY TEMPLATE C
ATTORNEY BANNER TEMPLATE D
*/

.single-attorneys .banner {
    padding: 120px 0 25px;
    height: auto;
}

.single-attorneys .banner-inner {
    align-items: center;
}

/* Below 1025px: the scene shows behind the photo only, then solid pink from where the photo
   cuts off (120px padding + 300px photo = 420px). The image is drawn 760px tall and clipped
   at 420px so its built-in fade lands below the cut instead of behind the attorney. */
.single-attorneys .banner {
    background-color: #F0E8E9;
}

.single-attorneys .banner:after {
    display: none;
}

.single-attorneys .banner-image {
    height: 760px;
    object-position: 50% 0;
    clip-path: inset(0 0 340px 0);
}

.single-attorneys main {
    padding-top: 40px;
}

.attorney-banner-name {
    margin-bottom: 15px;
}

@media screen and (min-width:1025px){
    .attorney-banner-name {
        margin-bottom: 35px;
    }
}

.attorney-banner-name h1 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.attorney-banner-left {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.attorney-banner-left img {
    max-width: 300px;
}

.attorney-banner-right {
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.attorney-banner-phone-fax,
.attorney-banner-info p {
    margin-bottom: 15px;
}

.attorney-banner-info p,
.attorney-banner-info a {
    font-size: 1.1rem;
    line-height: 1;
}

.attorney-banner-info > p:last-child {
    margin: 0;
}

.attorney-banner-info .divider-span {
    display: none;
}

.attorney-banner-position {
    text-transform: uppercase;
    color: var(--color-black);
}

@media screen and (min-width: 1025px) {
    .attorney-banner-flex-row {
        display: flex;
        align-items: center;
    }

    .attorney-banner-flex-row p {
        margin: 0 24px 0 0;
    }

    .attorney-banner-name h1 {
        font-size: 2.8rem;
    }

    .attorney-banner-left {
        margin-bottom: 0;
        order: 2;
    }

    /* Cap the bio photo so it doesn't set the banner height (photos are uploaded ~675px tall) */
    .attorney-banner-left img {
        width: auto;
        max-width: none;
        max-height: 480px;
    }

    .attorney-banner-right {
        margin-right: auto;
        min-width: 50%;
        text-align: left;
    }

    /* Desktop: photo sits on the banner's bottom edge, and the bottom of the banner fades
       to white so the pink never runs into the body content */
    .single-attorneys .banner {
        padding: 125px 0 0;
        height: auto;
        background-color: transparent;
    }

    .single-attorneys .banner:after {
        display: block;
        top: 0;
        height: 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #F0E8E9 100%);
    }

    .single-attorneys .banner-image {
        height: 100%;
        object-position: 50% 50%;
        clip-path: none;
    }

    .single-attorneys main {
        padding-top: 50px;
    }

    .single-attorneys .banner-inner {
        flex-wrap: nowrap;
    }
}