/*
Theme Name:     Morley Builders
Theme URI:      http://brandastic.com
Description:    Designed by Brandastic
Author:         Brandastic
Author URI:     http://brandastic.com
Template:       kleo
*/

/*SUSTAINABILITY*/

.sustain .green .kleo_text_column{
    margin-bottom: 10px;
}
.sustain .green .kleo_text_column .wpb_wrapper {
    padding:20px;
    color:white;
    margin:auto;
    letter-spacing: .05em;
}
#main .sustain .green h2 {
    color: white;
    margin:auto;
}
.sustain .green p {
    margin: auto;
}
.sustain .green .kleo_text_column:nth-child(1) .wpb_wrapper {
    background-color:#9FCD54;
}
.sustain .green .kleo_text_column:nth-child(2) .wpb_wrapper {
    background-color:#85B24B;
}
.sustain .green .kleo_text_column:nth-child(3) .wpb_wrapper {
    background-color:#69A03F;
}

.sustainable ul li .portfolio-info {
    display: none;
}
.sustainable ul li h3 p {
    margin-top: auto;
}
.sustainable .portfolio-items.overlay-style li:hover .hover-element {
    background: none repeat scroll 0 0 rgba(0, 131, 169, 0.6);
}

.portfolio-back {
	background-color: rgb(25, 143, 177);
}
.portfolio-back  a {
	color: #FFD802;
}

	.contact-icons p img:first-child {
		    margin-bottom: 30px;
	} 
.single-post .container .with-meta .article-content {
	margin-left: 0;
}
.single-post .container .with-meta .article-content iframe {
	width: 100%;
}
.single-post article .article-meta {
	width: 100%;
	text-align: left;
	margin-bottom: 20px;
}
.single-post .page-title {
	margin-bottom: 10px;
}

#main h1.page-title {
    margin: 15px auto;
}

.para .bg .wpb_wrapper,
.single-team_members #main .tag .wpb_wrapper ,
.joincta .bg .wpb_wrapper {
    display: inline-block;
}
.single-job_listing div#comments {
    display: none;
}
h1.CareersHomeTxt {
    padding:35px !important;
}

/*// TEAM*/

.leadership-grid .col-sm-4 {
  padding: 0;
  margin: 0 0px;
}
.leadership-grid .col-sm-4 figure.leadership-member {
  margin: 20px 20px;
}
.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail {
  min-height: 250px;
  width: 100%;
  height: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}
.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail figcaption {
  text-align: center;
  position: absolute;
  /* min-width: 200px; */
  width: calc(100% - 40px);
  bottom: 20px;
  height: 70px;
  background: rgba(25, 143, 177, 0.6);
  color: white;
  font-weight: bold;
  transition: height .5s ease, padding .5s ease;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-top: 15px;
}
.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail figcaption span {
  font-weight: lighter;
  text-transform: none;
  font-style: italic;
  font-family: Roboto;
}
.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail:hover figcaption {
  height: 95px;
  padding-top: 32px;
}
.leadership-grid .content-member-modal {
  display: none;
}

#member-modal-background {
  display: none;
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  left: 0;
  height: 100%;
  z-index: 99999;
}
#member-modal-background #member-modal-wrapper {
  position: relative;
  width: 90%;
  max-width: 1250px;
  min-width: 200px;
  min-height: 350px;
  max-height: 800px;
  margin: 75px auto;
  background: white;
  color: #595959;
  overflow: auto;
  height: auto;
}
#member-modal-background #member-modal-wrapper .close-member-modal {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  color: black !important;
  position: absolute;
  right: 0;
  z-index: 1000;
}
#member-modal-background #member-modal-wrapper .team_nav {
  position: relative;
  width: 100%;
  top: 350px;
}
#member-modal-background #member-modal-wrapper .team_nav .nav_left,
#member-modal-background #member-modal-wrapper .team_nav .nav_right {
  cursor: pointer;
  background:#198fb1;
}
#member-modal-background #member-modal-wrapper .team_nav .nav_right {
  position: absolute;
  right: 0;
  float: right;
  transform: translateY(-50%);
}
#member-modal-background #member-modal-wrapper .team_nav .nav_right:hover:after {
  padding: 55px 14px;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#member-modal-background #member-modal-wrapper .team_nav .nav_right:after {
  content: '\e825';
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  display: block;
  font-family: "revicons";
  padding: 55px 7px;
  color: white;
  font-size: 20px;
}
#member-modal-background #member-modal-wrapper .team_nav .nav_left {
  position: absolute;
  left: 0;
  float: left;
  transform: translateY(-50%);
}
#member-modal-background #member-modal-wrapper .team_nav .nav_left:hover:after {
  padding: 55px 14px;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#member-modal-background #member-modal-wrapper .team_nav .nav_left:after {
  content: '\e824';
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  display: block;
  font-family: "revicons";
  padding: 55px 7px;
  color: white;
  font-size: 20px;
}
#member-modal-background .member-modal-description {
  float: left;
  padding: 10px 45px 40px 0;
  width: 70%;
  box-sizing: border-box;
  overflow: auto;
}
#member-modal-background .head {
	    padding: 20px;
    padding-bottom: 0;
}
#member-modal-background  .member-name,
#member-modal-background  .member-title {
  display: block;
  font-family: "Roboto",sans-serif;
margin: auto;

}
#member-modal-background  .member-title {
  /*font-style: italic;*/
  /*font-size: 16px;*/
  color: #198fb1 !important;
  letter-spacing: 1px;
  font-weight: normal;
  font-family: "Roboto",sans-serif;
  text-transform: none;
  margin-bottom: 10px;
}
#member-modal-background  .member-name {
  /*text-transform: uppercase;*/
  /*font-size: 18px;*/
	color: #595959;

  letter-spacing: 2px;
}
#member-modal-background .member-modal-image .desktop {
		display: block;
	}
	#member-modal-background .member-modal-image .mobile {
		display: none;
	}
#member-modal-background .member-modal-image {
  padding: 20px;
  box-sizing: border-box;
  width: 30%;
  float: left;
  color: #fff;
  padding-top: 15px;
}
#member-modal-background .member-modal-image img {
  margin-bottom: 20px;
}
#member-modal-background .member-modal-image .meta {
	color: #595959;
}
#member-modal-background .member-modal-image .meta a {
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#member-modal-background .member-modal-image .meta a * {
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#member-modal-background .member-modal-image .meta a:hover * {
  background-color: transparent;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#member-modal-background  .meta h3, #member-modal-background  .meta p {
	display: inline-block;
	margin: auto;

}
#member-modal-background  .meta h3 {
	text-transform: uppercase;
	font-family: Montserrat;
	margin: auto;
	    margin-right: 7px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: normal;
}
#member-modal-background  .meta .meta-item {
	margin-bottom: 5px;
}
#member-modal-background  .meta .meta-item ul {
	        list-style: none;
    padding-left: 0;
}
#member-modal-background  .meta .meta-list h3, #member-modal-background  .meta .meta-list p {
	display: block;
}
#member-modal-background .member-modal-image .meta 
#member-modal-background .member-modal-image .vcard {
  display: block !important;
  text-align: center;
}
#member-modal-background .member-modal-image .vcard span {
  text-transform: uppercase;
}
#member-modal-background .member-modal-image .member-email {
  /*margin-right: 5px;*/
  /*margin-bottom: 10px;*/
  display: inline-block;
      padding: 8px 10px;
      font-family: Roboto;
  color: white;
  background-color: #198fb1;
}
#member-modal-background .member-modal-image .member-email:hover {
	background-color: transparent;
  color: #198fb1;
}
#member-modal-background .member-modal-image .member-email i {
  color: white;
  padding: 5px;
  font-size: 20px;
  display: block;
}
#member-modal-background .member-modal-image .linkedin {
  margin-right: 5px;
  margin-bottom: 10px;
  display: inline-block;
}
#member-modal-background .member-modal-image .linkedin i {
  color: white;
  display: block;
  padding: 5px;
  font-size: 20px;
}
#member-modal-background .member-modal-image .member-phone,
#member-modal-background .member-modal-image .vcard {
  display: inline-block;
  position: relative;
  top: -2px;
  margin-bottom: 8px;
}
#member-modal-background .member-modal-image .member-phone span,
#member-modal-background .member-modal-image .vcard span {
  color: white;
  padding: 5px;
  font-size: 14px;
  display: block;
}
#member-modal-background .member-about {
  color: #595959;
  padding: 5px 35px;
  /* position: absolute; */
  /* top: 28%; */
  overflow: auto;
}
#member-modal-background .member-quote {
	color: #198fb1;
	    font-size: 18px;
    font-family: Roboto;
    line-height: normal;
}

@media screen and (max-width: 1200px) {
	.leadership-grid .col-sm-4 {
		width: 50%;
	}
}


    @media screen and (max-width: 767px) {

	.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail figcaption {
		bottom: 0;
	}
	.leadership-grid .col-sm-4 {
	    /*padding: 0;*/
	    margin: 0 auto;
	    width: 100%;
	}
	#member-modal-background .member-modal-image {
		    width: 100%;
    text-align: center;
    margin: auto;
    float: none;
     padding-right: 10px;
    padding-left: 10px;
	}
	#member-modal-background .member-modal-image .mobile {
		display: block;
	}
	#member-modal-background .member-modal-image .desktop {
		display: none;
	}
	#member-modal-background .member-modal-description {
		    width: 100%;
        padding-right: 10px;
    padding-left: 10px;
	} 
	#member-modal-background .member-modal-image img {
		margin-bottom: 0;
	}
	#member-modal-background .member-modal-image .member-email {
		margin-top: 20px;
	}
	#member-modal-background .head {
		    padding-right: 10px;
    padding-left: 10px;
	}

}
@media screen and (max-width: 480px) {
	.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail figcaption span {
		/*display: none;*/
	}
	.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail figcaption {
		padding-top: 5px;
		height: auto;

		    padding-bottom: 5px;
	}
	.leadership-grid .col-sm-4 figure.leadership-member .member-thumbnail:hover figcaption {
		    padding-top: 15px;
		height: auto;

    padding-bottom: 15px;
	}
	#member-modal-background #member-modal-wrapper {
		    /*max-height: 500px;*/
	}
	
	
}
@media screen and (max-height:  750px) {
	#member-modal-background #member-modal-wrapper {
		    max-height: 600px;
	}
}
@media screen and (max-height:  675px) {
	#member-modal-background #member-modal-wrapper {
		    max-height: 500px;
	}
}
@media screen and (max-height:  575px) {
	#member-modal-background #member-modal-wrapper {
		    max-height: 450px;
	}
}
@media screen and (max-height:  500px) {
	#member-modal-background #member-modal-wrapper {
		    max-height: 400px;
	}
}

