.gallery-item {
    display: inline-block;
    -webkit-transition: height 500ms ease;
    -o-transition: height 500ms ease;
    transition: height 500ms ease;
    padding:1rem;
}
.gallery-expander {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    max-height: 0;
    -webkit-transition: max-height 500ms ease;
    -o-transition: max-height 500ms ease;
    transition: max-height 500ms ease;
        margin-bottom: 2rem;
}
.gallery-contents {
    position: relative;
}
.gallery-contents:after {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -1rem;
    width: 0;
    height: 0;
    content: '';
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-bottom-style: solid;
    border-bottom-width: 0px;
    -webkit-transition: border-bottom-width 500ms ease;
    -o-transition: border-bottom-width 500ms ease;
    transition: border-bottom-width 500ms ease;
    border-bottom-color: #eee;
}
.gallery-item.active .gallery-contents:after {
    border-bottom-width: 1rem;
}
.gallery-item .thumbnail {
    position: relative;
    cursor: pointer;
}
.gallery-item .name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    margin-bottom: 0;
    font-size: 1.75rem;
    font-weight: 300;
    font-family: "Oswald";
}
.gallery-item .position {
/*    color: #0a9dbc;*/
    padding: 0.5rem 0 1rem 0;
    font-weight: 300;
/*    font-style: italic;*/
    font-size: 1.125rem;
    text-align: center;
    line-height: 1.25rem;
}

.gallery-expander {
    background: #eee;
    padding: 0 1.5rem;
}
.gallery-expander-contents {
    margin: 0 auto;
    width: 100%;
    position:relative;
}
.gallery-expander-contents .name {
    display: none;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 2rem;
    font-family: "Oswald";
}
.gallery-expander-contents .position {
/*    color: #0a9dbc;*/
    font-weight: 300;
    font-style: italic;
    font-size: 1.25rem;
    padding: 0.5rem 0;
}
.gallery-expander-contents .bg {
    width: 100%;
    display: none;
    flex-grow: 1;
    height: 100%;
    min-height: 20rem;
}
.gallery-expander-contents .bio {
    padding:4rem 1rem;
}

.gallery-expander-contents div.close {
    position: absolute;
    top: 1rem;
    right: -0.5rem;
}
.gallery-trigger-close .icon {
    width: 1.5rem;
    height: 1.5rem;
}

        .bio .icon {
            fill: #0a9dbc;
            display: inline-block;
            width: 1rem;
            height: 1rem;
            margin-right: 0.5rem;
        }

        .bio .btn {
            margin: 0;
            padding: 0;
            color: #0a9dbc;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            border: 0;
        }

        .bio .icon:hover {
            fill: #ff7400;
        }
        .bio h2 {
            margin-bottom: 0.5rem;
        }


.team .section-title h2 { 
    width:100%;
    text-align:center;
    border-bottom: 1px solid #0d0d0d;
    line-height:0.1em;
    margin:2rem 0;
    color: #0a9dbc;
} 
.team .section-title h2 span {
    background:#fff;
    padding:0 2rem;
}


/* Extra Small. Above 32rem (512px) */
@media only screen and (min-width : 32rem) {

}

/* Medium. Above 48rem (768px) */
@media only screen and (min-width: 48rem) {
    .gallery-expander-contents .name {
        display: flex;
    }
    .gallery-expander-contents .bio {
        padding:2rem 3rem;
    }

    .gallery-expander-contents div.close {
        right: 0;
    }
}

/* Large. Above 64rem (1024px) */
@media only screen and (min-width: 64rem) {
    .gallery-expander-contents .bg {
        display: flex;
    }
}

/* Extra large. Above 80rem (1280px) */
@media only screen and (min-width: 80rem) {
    .gallery-trigger-close .icon {
        width: 2rem;
        height: 2rem;
    }
    .gallery-expander {
        padding: 0 11rem;
    }
}









/*

@media (min-width: 640px) and (max-width: 999px) {

    .gallery-expander-contents {
        width: 640px;
    }
    .gallery-expander-contents .image {
        display:block;
    }
}

@media (max-width: 639px) {

    .gallery-expander-contents {
        width: 100%;
    }
}

.gallery-expander-contents:after {
    clear: both;
    display: table;
    content: '';
}

.gallery-expander-contents > div.col {
    float: left;
    width: 25%;
}

@media (min-width: 640px) and (max-width: 999px) {

    .gallery-expander-contents > div.col {
        width: 200px;
    }
}

@media (max-width: 639px) {

    .gallery-expander-contents > div.col {
        float: none;
        padding: 25px 20px 0;
        width: auto;
    }
}

.gallery-expander-contents > div.col + div.col {
    margin-left: 40px;
}

@media (min-width: 640px) and (max-width: 999px) {

    .gallery-expander-contents > div.col + div.col {
        margin-left: 20px;
    }
}

@media (max-width: 639px) {

    .gallery-expander-contents > div.col + div.col {
        margin-left: 0px;
    }
}



.gallery-expander-contents div.title {
    font-weight: 500;
    color: #D28A3C;
}

.gallery-expander-contents div.contents {
    margin-top: 10px;
    border-top: 1px solid #BCB098;
    border-bottom: 1px solid #BCB098;
    padding: 10px 0;
    font-size: 14px;
    line-height: 24px;
    color: #797262;
}


.gallery-expander-contents div.image > img {
    width: 100%;
    display: block;
}
*/
