/* Aiki-Team  
    Styles for new team template 
    by Martin Navarro 
*/
.aiki-team {
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  flex-wrap: wrap;
  -moz-flex-direction: row;
  flex-direction: row;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  margin: 0 0 2em -2.25em;
  width: calc(100% + 2.25em);
}

.aiki-team > .col-4 {
  width: calc(33.3333333333% - 2.25em);
}

.aiki-team > .col-6 {
  width: calc(50% - 2.25em);
}

.aiki-team .member {
  box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px 0;
  box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;  
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 3px 0px;
  background-image: url("background-buetten.png");
  background-repeat: repeat;
  padding: 25px;
  margin: 0 0 2.25em 2.25em;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  flex-wrap: wrap;
  -moz-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
}

.aiki-team .member .text {
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  text-align: center;
}

.aiki-team .member .text .position p {
	text-align: center;
}

.aiki-team .member summary {
	color: #d62d06;
	margin-bottom: 30px;
}

.aiki-team .member details {
	text-align: left;
}


.aiki-team .member .text img {
  height: 125px;
  width: 125px;
  border-radius: 50%;
  margin-bottom: 10px;
/*
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
*/
}

.aiki-team .member .links {
  width: 30%;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
}

.aiki-team .member .links .icon {
  font-size: 1.25em;
  padding-left: 0.75em;
}

.aiki-team .member .links a {
  border: none;
}

.aiki-team .member .links a i {
  color: #f56a6a;
  font-size: 3.75em;
  cursor: pointer;
}

.aiki-team .member .links a i:hover {
  color: rgb(245.9622641509, 120.3377358491, 120.3377358491);
}

@media screen and (max-width: 980px) {
  .aiki-team .member {
    width: calc(50% - 2.25em);
  }
  .aiki-team .member:last-child {
    margin-bottom: 0;
  }
}
@media screen and (max-width: 736px) {
  .aiki-team .member {
    width: 100%;
  }
  .aiki-team .member:last-child {
    margin-bottom: 0;
  }
}




/* Button */
				.overlay {
				  position: absolute;
				  top: 0;
				  bottom: 0;
				  left: 0;
				  right: 0;
				  background: rgba(0, 0, 0, 0.7);
				  transition: opacity 500ms;
				  visibility: hidden;
				  opacity: 0;
				}
				.overlay:target {
				  visibility: visible;
				  opacity: 1;
				}

				.popup {
				  position: static;
				  margin: 70px auto;
				  padding: 20px;
				  background: #eee;
				  border-radius: 5px;
				  width: 80%;
				  overflow: auto;
/*				  transition: all 5s ease-in-out;*/
				}

				.popup .close {
				  top: 20px;
				  right: 30px;
				  transition: all 200ms;
				  font-size: 30px;
				  font-weight: bold;
				  text-decoration: none;
				  color: #333;
				}
				.popup .close:hover {
				  color: #06D85F;
				}
				.popup .content {
				  max-height: 80%;
				  overflow: auto;
				}
				@media screen and (max-width: 700px){
				  .box{
					width: 70%;
				  }
				  .popup{
					width: 70%;
				  }
				}

