.leadership-container {
    overflow: hidden;
    position: relative;
}

.profile-photo {
    z-index: 1;
    padding-bottom: 40px;
}

.profile-photo .image-on{
    opacity: 1;
}

/* clear fix */
.grid:after {
    content: '';
    display: block;
    clear: both;
}

a.grid-item:hover, a.grid-item:focus {
    border: 0 !important;
}

.grid-item {
    width: 100%;
    display: inline-block;
    vertical-align: top;
    outline: none !important;
}

.grid-item img {
    display: inline-block;
    vertical-align: top;
    max-width: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    height: auto;
    max-height: 225px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.grid-item.on img {
    border-bottom: 0px solid #717C7E;
}

.grid-item .close-icon {
    position: absolute;
    top: 150px;
}

.grid-item .close-icon span:last-child {
    display: none;
}

.grid-item.on .close-icon span:last-child {
    display: inline;
}

.grid-item.on .close-icon span:first-child {
    display: none;
}

body div.ccm-page .grid-item h2 {
    font-size: 16px;
    padding-bottom: 15px;
}

body div.ccm-page .grid-item h2:after {
    width: 50px;
}


.leadership-item {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
    width: calc((100% / 3) - 48px);
    min-width: 180px;
    margin-right: 0;
    text-align: center;
}

.leadership-item h4 {
    transition: all 0.3s ease-in-out;
}

.leadership-item:hover h4 {
    color: #f55c33 !important;
    transition: all 0.3s ease-in-out;
}

.leadership-item + .leadership-item {
    margin-left: 67px;
}

.leadership-image-container {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    position: relative;
    margin-bottom: 0px;
    border-bottom: 0px solid #717C7E;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    z-index: 1;
    height: 225px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-image-container img {
    position: absolute;
    max-width: 225px !important;
}

@media (min-width: 1200px) {
    .leadership-item:nth-of-type(3n + 1) {
        margin-left: 0;
    }
    .leadership-image-container{
        height: 225px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .leadership-item{
        width: calc((100% / 3) - 17px);
    }
    .leadership-item + .leadership-item {
        margin-left: 21px;
    }

    .leadership-item:nth-of-type(3n + 1) {
        margin-left: 0;
    }

    .profile-content {
        width: 970px !important;
    }
    .leadership-image-container{
        height: 296px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .leadership-item{
        width: calc((100% / 3) - 48px);
    }
    .leadership-item + .leadership-item {
        margin-left: 67px;
    }

    .leadership-item:nth-of-type(3n + 1) {
        margin-left: 0;
    }

    .profile-content {
        width: 750px !important;
    }
    .leadership-image-container {
        height: 191px;
    }
}

@media (max-width: 767px) {
    .profile-content {
        width: calc(100vw - 50px) !important;
    }
    .leadership-image-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .leadership-item{
        margin: 0 20px 20px !important;
    }
}

@media (max-width: 698px){
    .profile-content{
        max-width: 435px !important;
    }
}
@media (max-width: 511px){
    .leadership-item{
        width: 100%;
        margin: 0 0 20px !important;
    }
    .profile-content{
        max-width: unset !important;
        left: 0px !important;
        width: calc(100vw - 30px) !important
    }
    .leadership-image-container {
        height: 225px;
    }
}

.grid-item::after {
    position: absolute;
    content: '';
    display: block;
    left: 50%;
    margin-left: -35px;
    margin-top: 10px;
    z-index: 9;
    height: 30px;
    width: 70px;
    background-image: url('../../../../../application/blocks/accordion/templates/leadership/on-arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0;
    transition: opacity 0.2s 0.3s ease;
}
.grid-item.on::after{
    opacity: 1;
    transition-delay: 0s;
}

.grid-item .leadership-image-container .image-off {
    z-index: 1;
    transition: all 0.3s ease-in-out;
}
.grid-item .leadership-image-container .image-on {
    z-index: 0;
}
 .grid-item:hover .leadership-image-container .image-off{
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
/*
.grid-item:hover .leadership-image-container .image-on{
    display: block;
    opacity: 1;
} */
.profile-content.shadow-ct {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.1);
    -o-box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-content, .grid .panel-collapse {
    height: auto;
    display: none;
    z-index: 0;
    position: absolute;
    left: -15px;
    /* margin-top: -30px!important; */
    bottom: 0;
    text-align: left;
    width: 1170px;
    max-width: 96vw;
    background-color: #fff;
}

.profile-content .container {
    width: 100%;
    padding: 40px;
}

.profile-content p:last-of-type {
    margin-bottom: 0;
}

.ccm-block-accordion-heading-container {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding-top: 15px;
}

.ccm-block-accordion-heading-container h4{
    color: #0d87a8 !important;
    margin-bottom: 0;
}

.grid-item.profile-photo.on .ccm-block-accordion-heading-container h4{
    color: #f55c33 !important;
}

body div.ccm-page .centered .ccm-block-accordion-heading-container h2:after {
    margin-left: 0;
    left: 0;
}

.ccm-page .panel-title {
    margin: 0;
}

.ccm-page .ccm-block-accordion-heading {
    font-size: 1em !important;
}

.ccm-page .ccm-block-accordion-subheading {
    font-weight: 400;
    color: #686968 !important;
}

.ccm-page div.close-container {
    text-align: right;
    position: absolute;
    top: -20px;
    right: 0px;
}

.ccm-page a.close-link {
    padding: 0;
    line-height: 1;
    color: #0086a7;
    font-size: 1em!important;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    font-weight: normal;
    text-decoration: none!important;
}

.ccm-page a.close-link:hover, .ccm-page a.close-link:focus {
    opacity: 0.6;
}
