/* Card Based Layout - Base styles */
.cpt-card {
    /*background: white;*/
    margin-bottom: 2em;
    padding: 1em;
}

.cpt-card a {
    /*color: black;*/
    text-decoration: none;
    /*flex: 1;*/
}

.cpt-card a:hover {
    text-decoration: none;
}


/*.cpt-card a:hover {*/
    /*box-shadow: 3px 3px 8px hsl(0, 0%, 70%);*/
/*}*/

.cpt-card img {
    max-width: 100%;
    height: auto;
}


.cpt-card-content h2 {
    margin-top: 0;
    margin-bottom: .5em;
    font-weight: normal;
    font-size: 1.5em;
}

.cpt-card-content p {
    font-size: 95%;
}

/* Flexbox stuff */

@media screen and (min-width: 40em) {

    .cpt-cards {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: flex-start;
        margin-top: -1em;
    }

    .cpt-card {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex: 0 1 calc(50% - .5em);
        -ms-flex: 0 1 calc(50% - .5em);
        flex: 0 1 calc(50% - .5em);
        margin-bottom: 1em;
        flex-direction: column;
    }
}

@media screen and (min-width: 60em) {

    .cpt-cards {
        margin-top: inherit;
    }


    .column-three .cpt-card {
        -webkit-flex: 0 1 calc(33% - 1em);
        -ms-flex: 0 1 calc(33% - 1em);
        flex: 0 1 calc(33% - 1em);
        margin-bottom: 2em;
    }

    .column-two .cpt-card {
        -webkit-flex: 0 1 calc(50% - 1em);
        -ms-flex: 0 1 calc(50% - 1em);
        flex: 0 1 calc(50% - 1em);
        margin-bottom: 2em;
    }


    .column-four .cpt-card {
        -webkit-flex: 0 1 calc(25% - 1em);
        -ms-flex: 0 1 calc(25% - 1em);
        flex: 0 1 calc(25% - 1em);
        margin-bottom: 2em;
    }

    .column-five .cpt-card {
        -webkit-flex: 0 1 calc(20% - 1em);
        -ms-flex: 0 1 calc(20% - 1em);
        flex: 0 1 calc(20% - 1em);
        margin-bottom: 2em;
    }


}

.cpt-card.employee-card {
    text-align: center;
    border:none;
}


.employee-card img {
    border-radius: 50%;
    max-width: 100%;
    height: auto;
}



ul.mk-employeee-networks {
    margin: 1em 0 0.5em !important;
    padding: 0 !important;
    list-style: none;
    display: flex;
    text-align: center;
    justify-content: center;
}

.mk-employeee-networks a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin: 0 0.2em;
}


.employee-card .cpt-card-content {
    padding: 0.5em 1.4em;
}


/**********************************
*** News Cards CSS ***
***********************************/

.news-filter-buttons {
    text-align: center;
    padding: 20px 10px 40px;
}

.news-filter-buttons button{
    background: transparent;
    border: 1px solid #777777;
    box-shadow: none;
    border-radius: 3px;
    margin: 5px;
	padding: 3px 7px;
	transition: background ease-in-out .3s;
	position: relative;
}

.news-filter-buttons button:hover {
    background: #222222;
    color: #ffffff;
	cursor: pointer;
}

.news-filter-buttons button.is-checked {
    background: #151515;
    color: #ffffff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    width: 100%;
    margin: 0px;
    max-width: 100%;
    position: unset !important;
    height: unset !important;
    max-height: unset !important;
    grid-gap: 20px 20px;
	overflow: hidden;
}

.cards-grid article {
	position: unset !important;
    background: #d7d7d7;
    padding-bottom: 12px;
    border: 1px solid #cccccc;
    transition: all ease .5s;
}


.cards-grid article:hover {
    box-shadow: box-shadow: 1px 3px 4px 0px #aaaaaa;
    transform: translateY(-5px);
	background-color: #00121F;
}


.cards-grid article a.card-link{
	display: block;
}

.cards-grid article a.card-link picture{
display: grid;
    grid-template-columns: 1fr;
	overflow: hidden;
	background: #f7f7f7;
}

.cards-grid article a.card-link picture img {
    height: 150px;
    min-width: 100%;
    max-width: 125%;
	width: auto;
	filter: saturate(0.95);
    -webkit-filter: saturate(0.95);
}

.cards-grid .card-title {
	font-size: 14px;
    padding: 7px;
    margin-bottom: 0px;
    color: #111111;
    line-height: 18px;
    font-weight: 700;
}

.cards-grid article:hover .card-title,
.cards-grid article:hover .news-date{
    color : #ffffff;
}

.cards-grid article a.card-link:hover img{
    filter: saturate(1.05);
    -webkit-filter: saturate(1.05);
}


.cards-grid .news-date {
    font-size: .65em;
    padding-left: 7px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-style: italic;
    color: #444444;
}

@media only screen and (min-width: 481px){
	.cards-grid {
    grid-template-columns: repeat(2, 1fr);
	}
	
	.cards-grid article a.card-link picture{
    grid-template-rows: auto;
	}
}


@media only screen and (min-width: 768px){
	.cards-grid {
    grid-template-columns: repeat(3, 1fr);
	}
	
	.cards-grid article a.card-link picture{
    grid-template-rows: minmax(150px , 150px);
	}
}

@media only screen and (min-width: 1025px){
	.cards-grid {
    grid-template-columns: repeat(4, 1fr);
	}
}




/**********************************
*** Partners Cards CSS ***
***********************************/

.partners-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr !important;
   grid-template-rows:180px !important; 
   gap: 0px !important;
   
   background: none !important;
}
.partners-grid article a.card-link picture img{
    height: auto !important;
    min-width: 150px !important;
    max-width:150px
    !important;
    margin: auto;

}
.partners-grid article{
    padding-top:12px; 
    background:#f6f6f6 !important;
    border: 0px !important;
      /*  border-right: 1px solid #ccc !important;
    border-bottom:  1px solid #ccc !important; */
    outline: 1px solid #cccccc;
    filter: saturate(0.9);
-webkit-filter: saturate(0.9);
}


.partners-grid article:nth-child(3n){
    /*   border-right:0px solid #ccc !important;*/
}
.partners-grid article:nth-last-child(-n+3) {
    /*declarations*/
    /*   border-bottom:  0px solid #ccc !important;*/
}
.partners-grid .news-title{
    display: none
}

.partners-grid article:hover{
    background:#f6f6f6 !important;
    transform:none !important;
}
.partners-filter-buttons{
        text-align: center;
    padding: 20px 10px 40px;
}
.partners-filter-buttons button.is-checked{
    background: #151515;
    color: #ffffff;
}
.partners-filter-buttons button{
     background: transparent;
    border: 1px solid #777777;
    box-shadow: none;
    border-radius: 3px;
    margin: 5px;
    padding: 3px 7px !important;
    transition: background ease-in-out .3s;
    position: relative;
    font-size: 14px;
    line-height: 24px;
    
}

.partners-grid article a picture{
    background: transparent !important;
}

.partners-grid article:hover{
filter: saturate(1.1);
-webkit-filter: saturate(1.1);
background-color: #ffffff !important;   
}

.partners-grid article a div {
    display: none;
}



@media only screen and (max-width: 800px){
.partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}
}
@media only screen and (max-width: 500px){
.partners-grid {
    grid-template-columns: repeat(1, 1fr) !important;
}
.partners-grid article { 
   min-height:150px !important;
  
   display: flex;
  justify-content: center;
  flex-direction: column;
  border:1px solid #cccccc !important;
}
}
