﻿/*-- -------------------------- -->
<---        Meet the Team       -->
<--- -------------------------- -*/


/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    .cs-extra {
        display: none !important;
    }

    #pnlTheBoys {
        background:var(--secondary);
    }

    #meet-team-1788 {
        padding: var(--sectionPadding);
    }

    #attorneysHeading2 {
        position: relative;
    }

    #meet-team-1788 .cs-container {
        width: 100%;
        max-width: 80rem;
        max-width: 68rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
    }

    #meet-team-1788 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }

    #meet-team-1788 .h2White {
        padding: 1rem;
    }

    #meet-team-1788 .cs-gallery {
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(19.0625rem, 1fr));
        grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        /* 16px - 20px */
        gap: clamp(1rem, 1.5vw, 1.25rem);
        position: relative;
    }

    #meet-team-1788 .cs-item {
        overflow: hidden;
        position: relative;
        max-height: 375px;
    }

    #pnlTheBoys #meet-team-1788 .cs-item {
        overflow: hidden;
        position: relative;
        max-height: 600px;
    }

    #meet-team-1788 .cs-image {
        /* 400px - 440px */
        min-height: clamp(25rem, 60vw, 27.5rem);
        display: block;
        position: relative;
    }

    #meet-team-1788 .cs-image img {
        width: 100%;
        height: 100%;
        /* makes it act like a background image */
        object-fit: cover;
        /* sends top of the image to the top of the parent container */
        object-position: top;
        position: absolute;
        top: 0;
        left: 0;
        /**/
        -webkit-filter: grayscale(0);
        filter: grayscale(0);
        filter: none;
        opacity: 1;
        transition: all .25s ease-in-out;
    }

    #meet-team-1788 .cs-item:hover .cs-image img {
        -webkit-filter: grayscale(1);
        filter: grayscale(1);
        filter: gray; /* IE6-9 */
        opacity: .75;
    }

    #pnlTheBoys #meet-team-1788 .cs-item:hover .cs-image img {
        -webkit-filter: grayscale(1);
        filter: grayscale(0);
        filter: none; /* IE6-9 */
        opacity: 1;
    }

    #meet-team-1788 .cs-info {
        min-width: 15rem;
        padding: 1rem 1.25rem;
        background: rgba(var(--primaryRGB), 0.85);
        border-left: 4px solid var(--accentOne);
        position: absolute;
        right: 0;
        bottom: 1rem;
        /* for the hover effects on tablet+. delayed for a better effect on hover */
        transition: right 0.4s cubic-bezier(0.55, 0.21, 0.64, 0.98);
        backdrop-filter: blur(8px);
    }

    #meet-team-1788 .cs-h3 {
        font-family: var(--primaryFont);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        margin: 0 0 0.25rem;
        color: var(--background);
    }

    #meet-team-1788 .cs-job {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2em;
        color: var(--primary);
    }

    #meet-team-1788 .lineLeft {
        position: absolute;
        left: 1rem;
        top: 4rem;
        background: var(--primary);
        width: 2px;
        height: 2px;
        transition: all 2s ease-in-out;
        display: inline-block;
    }
    #meet-team-1788 .lineLeft.active {
        height: 200px;
    }

    #meet-team-1788 .topLineLeft {
        position: absolute;
        left: 1rem;
        top: 4rem;
        background: var(--primary);
        width: 2px;
        height: 2px;
        transition: all 2s ease-in-out;
        display: inline-block;
    }

    #meet-team-1788 .topLineLeft.active {
        width: 100px;
    }
    
    #attorneysBottomLines {
        position:relative;
    }
    #meet-team-1788 .lineRight {
        position: absolute;
        right: 1rem;
        bottom: -2rem;
        top:initial;
        background: var(--primary);
        width: 2px;
        height: 2px;
        transition: all 2s ease-in-out;
        display: inline-block;
    }
    #meet-team-1788 .lineRight.active {
        height: 200px;
    }
    #meet-team-1788 .bottomLineRight {
        position: absolute;
        right: 1rem;
        top: 2rem;
        background: var(--primary);
        width: 2px;
        height: 2px;
        transition: all 2s ease-in-out;
        display: inline-block;
    }
    #meet-team-1788 .bottomLineRight.active {
        width: 100px;
    }
}

/* gallery extra item*/
@media only screen and (max-width:1310px) {
    .cs-extra {
        display: flex !important;
    }
}

@media only screen and (min-width:0) {
    #meet-team-1788 .lineLeft, #meet-team-1788 .topLineLeft, #meet-team-1788 .lineRight, #meet-team-1788 .bottomLineRight {
        display: none;
    }
}

@media only screen and (max-width:978px) {
    .cs-extra {
        display: none !important;
    }
}

@media only screen and (max-width:657px) {
    #meet-team-1788 .cs-gallery {
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    }
}

@media only screen and (max-width:639px) {
    #meet-team-1788 {
        display: none;
    }

    #meet-team-1788 .cs-item {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Tablet - 658px */
@media only screen and (min-width: 41.125rem) {
    #meet-team-1788 .cs-content {
        text-align: left;
        align-items: flex-start;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 34.1875rem) {
    #meet-team-1788 .cs-info {
        right: -105%;
    }

    #pnlTheBoys #meet-team-1788 .cs-info {
        right: 0;
    }

    #meet-team-1788 .cs-item:hover .cs-info {
        right: 0;
    }
}

