/* -------------------------------- 

Primary style

-------------------------------- */


body {

  /* prevent ie from showing the horizontal scrollbar */
  overflow-x: hidden;
}
body.overflow-hidden {
  /* when author bio is visible, the out-of-focus content won't scroll */
  overflow: hidden;
}



/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.apt-container {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  width: 99% /*90%*/;
  max-width: 1240px !important;
  margin: 0 auto;
}
.apt-container::after {
  /* clearfix */
  content: '';
  display: table;
  clear: both;
}

/* -------------------------------- 

.team-wrapper components 

-------------------------------- */
.team-wrapper {
  position: relative;
  z-index: 2;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.team-wrapper.slide-out {
  /* the .team-wrapper element slides to the left when the author bio is visible */
  -webkit-transform: translateX(-270px);
  -moz-transform: translateX(-270px);
  -ms-transform: translateX(-270px);
  -o-transform: translateX(-270px);
  transform: translateX(-270px);
}
.team-wrapper.slide-out .apt-overlay {
  /* the overlay layer gets visible when the author bio slides in */
  display: block;
  -webkit-animation: apt-fade-in 0.3s;
  -moz-animation: apt-fade-in 0.3s;
  animation: apt-fade-in 0.3s;
}
@media only screen and (min-width: 768px) {
  .team-wrapper.slide-out {
    /* change in size of the author bio section */
    -webkit-transform: translateX(-600px);
    -moz-transform: translateX(-600px);
    -ms-transform: translateX(-600px);
    -o-transform: translateX(-600px);
    transform: translateX(-600px);
  }
}
@media only screen and (min-width: 1200px) {
  .team-wrapper.slide-out {
    -webkit-transform: translateX(-800px);
    -moz-transform: translateX(-800px);
    -ms-transform: translateX(-800px);
    -o-transform: translateX(-800px);
    transform: translateX(-800px);
  }
}

.apt-section {
  padding: 2em 0;
  text-align: center;
}
.apt-section .apt-container {
  /* this modifies the .apt-container default max-width */
  max-width: 768px;
}
.apt-section h2 {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1em;
  font-size: 20px;
  font-size: 1.25rem;
}
.apt-section p {
  line-height: 1.4;
}
@media only screen and (min-width: 768px) {
  .apt-section {
    padding: 0em;
  }
  .apt-section p {
    line-height: 1.6;
  }
}
@media only screen and (min-width: 1200px) {
  .apt-section {
    padding: 0;
  }
  .apt-section h2 {
    margin-bottom: 2em;
  }
  .apt-section p {
    line-height: 1.8;
    font-size: 18px;
    font-size: 1.125rem;
  }
}

header {
  background: #f2ecbd;
}
header h1 {
  font-size: 30px;
  font-size: 1.875rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: .4em;
  color: #3e380c;
}
header p {
  font-size: 13px;
  font-size: 0.8125rem;
  color: #93861d;
}

.apt-placeholder-1 {
  background: #f25f5c;
  color: #fdeaea;
}

.apt-placeholder-2 {
  background: #FFF;
}

#apt-team {
  background: #ffffff;
}
#apt-team .apt-container {
  max-width: 1240px;
}
#apt-team h2 {
  color: #1a2f2a;
}
#apt-team li {
  margin-bottom: 0em;
  border-radius: 0em;
  box-shadow: 0 0 0px rgba(92, 75, 81, 0);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.no-touch #apt-team li:hover {
  box-shadow: 0 0 0px rgba(92, 75, 81, 0.3);
}
.no-touch #apt-team li:hover .apt-img-overlay {
  opacity: 1;
}
#apt-team figure {
  position: relative;
  margin-bottom:0;
}
#apt-team img {
  display: block;
  width: 100%;
  border-radius: 0em 0em 0 0;
}
#apt-team .apt-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(54, 92, 169,  0.9);
  opacity: 0;
  border-radius: 0em 0em 0 0;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
#apt-team .apt-img-overlay.overlay-disabled {
	/*background:transparent;*/
}

#apt-team .apt-img-overlay span {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  color: #FFF;
}

#apt-team .apt-img-overlay.overlay-disabled span {
	/*display:none;*/
}
#apt-team .apt-member-info {
  position:relative;
  height: 150px;
  background: #FFF;
  text-align: center;
  font-weight: bold;
  padding: 10px 0 0;
  border-radius: 0 0 0em 0em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#apt-team .apt-member-info p {
  font-family:'Rajdhani', sans-serif;
  font-size:20px;
  margin-bottom:0;
  line-height:1.2;
}

#apt-team .apt-member-info p.mjff {
	line-height:1;
}
#apt-team .apt-member-info span {
  display: block;
  font-family:'Sen', sans-serif;
  font-weight: normal;
  color: #365ca9;
  font-size: 14px;
  margin-top: 0;
}

#apt-team .apt-member-info span.position {
  display:block;
  color:#333333;
  font-size:12px;
}

#apt-team .apt-member-info span.position.mj {
	line-height:normal;
	font-size:12px;
}

.apt-container .email-booking-btns .email-btn {
	background:#88bd41;
    color:#ffffff !important;
	text-transform:uppercase;
	font-family: 'Rajdhani', sans-serif !important;
	padding:2px 30px;
	border-radius:50px;
	font-weight:600 !important;
    font-size:14px !important;
	margin-right:15px;
	-webkit-transition: all .5s ease;
  	-moz-transition: all .5s ease;
  	-o-transition: all .5s ease;
  	transition: all .5s ease
}


.apt-container .email-booking-btns .email-btn:hover {
	background:#6f9b33 !important;
	color:#ffffff;
}

.apt-container .email-booking-btns .booking-btn {
	background:#365ca9;
	text-transform:uppercase;
	font-family: 'Rajdhani',sans-serif !important;
	padding:2px 15px;
	border-radius:50px;
	color:#ffffff !important;
	font-weight:600 !important;
    font-size:14px !important ;
	-webkit-transition: all .5s ease;
  	-moz-transition: all .5s ease;
  	-o-transition: all .5s ease;
  	transition: all .5s ease;
}
.apt-container .email-booking-btns .booking-btn:hover {
	background:#869dcb;
	color: #ffffff;
}

.apt-container .email-booking-btns {
	margin:30px 0 0;
    display:flex;
    position:absolute;
	bottom:10px;
}

@media only screen and (min-width: 768px) {
  #apt-team li {
    width: 22.75%;
    float: left;
    margin-right: 2%;
  }
  #apt-team li:nth-child(n+5) {
		margin-top:100px;
  }
  #apt-team li:nth-child(4n) {
    margin-right: 0;
  }
}

.apt-member-bio {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  height: 100%;
  overflow-y: auto;
  /* smooth scrolling on mobile phones and tablets */
  -webkit-overflow-scrolling: touch;
  background: #365ca9;
  z-index: 2;
  /* this how we move the author bio section off the canvas */
  -webkit-transform: translateX(270px);
  -moz-transform: translateX(270px);
  -ms-transform: translateX(270px);
  -o-transform: translateX(270px);
  transform: translateX(270px);
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.apt-member-bio.slide-in {
  /* the author bio section slides in when the user clicks on the team member picture */
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}
.apt-member-bio .apt-member-bio-pict {
  position: relative;
}
.apt-member-bio .apt-member-bio-pict::after {
  /* gradient at the bottom of the image - same color of the background of the section */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /*background: -webkit-linear-gradient( bottom , #5c4b51, rgba(92, 75, 81, 0));
  background: linear-gradient(to top, #5c4b51, rgba(92, 75, 81, 0));*/
}
.no-cssgradients .apt-member-bio .apt-member-bio-pict::after {
  display: none;
}
.apt-member-bio-pict img {
  width: 250px;
  height:250px;
  border-radius:50%;
  margin:50px auto;
  display: block;
}
.apt-member-bio .apt-bio-content {
  padding: 1em;
  color: #FFF;
}
.apt-member-bio .apt-bio-content h1 {
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  font-size: 20px;
  font-size: 1.25rem;
  color:#ffffff;
}

.apt-member-bio .apt-bio-content span {
	text-align:center;
	display:block
}
.apt-member-bio .apt-bio-content p {
  font-size: 14px;
  font-size: 0.875rem;
  margin: 1em 0;
  line-height: 1.4;
  color: #ffffff;
}

.apt-bio-content a {
	color:#c4ac5a;
}
@media only screen and (min-width: 768px) {
  .apt-member-bio {
    width: 600px;
    -webkit-transform: translateX(600px);
    -moz-transform: translateX(600px);
    -ms-transform: translateX(600px);
    -o-transform: translateX(600px);
    transform: translateX(600px);
  }
  .apt-member-bio .apt-bio-content {
    padding: 2em;
  }
  .apt-member-bio .apt-bio-content p {
    line-height: 1.6;
    margin: 2em 0;
  }
}
@media only screen and (min-width: 1200px) {
  .apt-member-bio {
    width: 800px;
    -webkit-transform: translateX(800px);
    -moz-transform: translateX(800px);
    -ms-transform: translateX(800px);
    -o-transform: translateX(800px);
    transform: translateX(800px);
  }
  .apt-member-bio .apt-member-bio-pict::after {
    height: 150px;
  }
  .apt-member-bio .apt-bio-content {
    padding: 4em;
    /* we move the content up so the title is over the color gradient */
    -webkit-transform: translateY(-80px);
    -moz-transform: translateY(-80px);
    -ms-transform: translateY(-80px);
    -o-transform: translateY(-80px);
    transform: translateY(-80px);
  }
  
  
  .apt-member-bio .apt-bio-content h1 {
    font-size: 30px;
	color:#ffffff;
	font-family:'Rajdhani', sans-serif;
	margin-bottom:0;
	line-height:normal;
  }

  .apt-member-bio .apt-bio-content span {
		display:block;
		text-align:center;
		font-size:14px;
		line-height:1.5;
  }
  .apt-member-bio .apt-bio-content p {
    font-size: 18px;
  }
  .no-cssgradients .apt-member-bio .apt-bio-content {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}

.apt-member-bio-close {
  width: 42px;
  height: 42px;
  overflow: hidden;
  position: fixed;
  top: 10px;
  right: 10px;
  background: url("https://activphysio.ca/activpt/images/team/apt-icon-close.svg") no-repeat center center;
  text-indent: 100%;
  white-space: nowrap;
  z-index: 3;
  display: none;
}
.apt-member-bio-close.is-visible {
  display: block;
  -webkit-animation: apt-move-in 0.8s;
  -moz-animation: apt-move-in 0.8s;
  animation: apt-move-in 0.8s;
}
@media only screen and (min-width: 1200px) {
  .apt-member-bio-close {
    right: 20px;
    top: 10px;
  }
}

.apt-overlay {
  /*position: absolute;
  top: 0;*/
  left: 0;
  position:fixed;
  top:-10000px;
  width: 100%;
  height:10000vh;
  /*height: 100%;*/
  background: rgba(134, 157, 203, 0.75);
  cursor: pointer;
  display: none;
}

/* -------------------------------- 

xkeyframes 

-------------------------------- */
@-webkit-keyframes apt-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@-moz-keyframes apt-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@keyframes apt-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@-webkit-keyframes apt-move-in {
  0% {
    -webkit-transform: translateX(100px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes apt-move-in {
  0% {
    -moz-transform: translateX(100px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes apt-move-in {
  0% {
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}
