* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
}

body:not(.home) .site-inner {
	background-image: url(../images/page-bg-top.jpg), url(../images/page-bg-main.jpg);
  	background-position: top center, center 50px;
  	background-repeat: no-repeat, repeat-y;
  	background-size: auto;
}


/* home page */
#home-banner img {
    line-height:1;
    display: block;
}

#home-banner-text-box {
    left:auto;
right:50%;
}

#home-banner {
    margin-bottom:20px;
}
.caption {
    background-color:#a1ab8c;
    color:#fff;
    text-transform:uppercase;
    position:absolute;
    right: 0;
    bottom: 0;
    padding: 20px 60px;
    text-align:center;
    width:40%;
    letter-spacing:2px;
}
#home-reviews .wrap {
	min-height: auto;
}
.owl-stage {
	display: flex;
	align-items: stretch;
	padding: 10px;
}
.owl-item {
	display: flex;
	flex: 1 0 auto;
	background-color:	#fff;
	padding: 6em 2em 2em;
	box-shadow: 0px 0px 12px rgba(0,0,0,.1);
}

.item {
	padding-bottom: 7em;
}

.item:before {
	content: "\201D";
	position: absolute;
	color: #a1ab8c;
	font-size: 5em;
	top: .5em;
	left: 50%;
	transform: translateX(-50%);
	font-weight: bold;
	font-family: Georgia, serif;
}

.item blockquote:before {
	content: "\201C";
}
.item blockquote:after {
	content: "\201D";
}

.item blockquote {
	padding: 0 10px;
	font-style: italic;
	margin: 2em 0 0;
	color: #515151;
}

.item cite {
	font-family: "Lato", sans-serif;
	font-weight: 300;
	letter-spacing: 4px;
	font-size: 1.6em;
	line-height: 1.4em;
	position: absolute;
	bottom: 3em;
	left: 50%;
	transform: translateX(-50%);
}

.item span {
	display: block;
	color: #a1ab8c;
	font-size: .8em;
	font-style: italic;
	position: absolute;
	bottom: 4em;
	left: 50%;
	transform: translateX(-50%);
}

#footer-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
   flex-wrap: wrap;
}

#footer-columns div {
  width: auto;
  margin:0;
  float: none;
  text-align: left;
}

#top-section p {
  padding: 10px 0;
  font-size: 1.1em;
}

#top-section a {
  margin: 0 0 0 .5em;
}

#home-banner-text-box p {
  margin: 2em auto;
}

.home-section-header {
    letter-spacing: 10px;
    line-height: 55px;
}

.next:hover img, .prev:hover img, .sidebar-next:hover img, .sidebar-prev:hover img    {
  background-color:rgba(0,0,0,.1);
}
    

/* inner page */
.entry-content ul {
	margin-left: 20px;
}

body:not('.page-id-803') article li:before {
	content: "•";
	color: #94a985;
  	display: inline-block;
  	width: 1em;
  	margin-left: -2em;
  	position: absolute;
}

.sidebar-reviews .owl-item {
  padding-top:0;
}

.sidebar-reviews .item:before {
  top:-40px;
}

.sidebar-reviews .item {
  padding-bottom: 2em;
}

.sidebar-reviews .item blockquote {
  margin-top: 3em;
}

.sidebar-reviews .item cite {
  bottom: 0;
}

.sidebar ul li a, .sidebar ul li a:visited {
  color: #a1ab8c;
}

.sidebar ul li a:hover {
  color: #333333;
}

#interior-banner-text-box span {
   	font-size: 40px;
 	letter-spacing: 14px;
 	line-height: 45px;
  display: block;
  margin-bottom: 1em;
}

#interior-banner-text-box button {
  font-size: 1.1em;
}


/* smile gallery */
#smile-gallery {
	text-align: center;
	padding: 10px 40px 40px;
}

#smile-gallery h1 {
	text-transform: uppercase;
	font-family: "Lato", sans-serif;
	letter-spacing: 5px;
	font-weight: 400;
	text-align: left;
	font-size: 3.2rem;
	margin-bottom: 2rem;

}

#smile-gallery h4 {
	text-transform: uppercase;
    text-align: left;
    letter-spacing: 2px;
    line-height: 1.6em;
    font-size: .9em;
    font-weight: 900;
}

#smile-gallery > a {
	transition: all .5s;
}

#smile-gallery > a > div {
	background-color: #fff;
	margin: 30px 0 10px;
	border: 9px solid #fff;
	box-shadow: 0px 0px 12px rgba(0,0,0,.3);

}

#smile-gallery > a > div > div {
	-moz-box-shadow:    inset 0 0 10px rgba(0,0,0,.3);
	-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,.3);
	box-shadow:         inset 0 0 10px rgba(0,0,0,.3);
	display:flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
}

#smile-gallery a > div > div img {
	width: 48%;
	margin: 0;
	/* -webkit-filter: grayscale(100%); Safari 6.0 - 9.0
	filter: grayscale(100%); */
	transition: all .5s;
}

#smile-gallery img.full-img {
	width: 100%!important;
}

#smile-gallery a:hover > div > div img {
	filter: grayscale(100%)!important; 
	/* -webkit-filter:	none;
	filter: none; */
	border: none;
	text-decoration: none;
	}

#smile-gallery a div div img:nth-child(2) {
	display: block;
}

#smile-gallery > a {
	color: #a1ab8c;
	border-bottom: 1px solid #a1ab8c;
	padding: 3px;
	text-align: center;
	margin: 0 auto;
	font-family: "Lato", sans-serif;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: .9em;
}

#smile-gallery > a:hover {
	color: #2b2b2b;
	border-bottom: 1px solid #2b2b2b;
}

	/* modal */
	.smile-overlay {
		position: fixed;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,.6);
		top: 0;
		left: 0;
		z-index: 99991;
		display: none;
	}

	#smile-gallery .modal {
		position: fixed;
		width: 1000px;
		max-width: 100%;
		background-color: #fff;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 99992;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		padding: 1em 5em;
		margin: 0!important;
		box-shadow: none;
		display: none;
    overflow-y: auto;
    max-height: calc(100vh - 20px);
	}


	.modal-close {
		position: absolute;
		right: .5em;
		top: 0;
		font-size: 2em;
		cursor: pointer;
	}

	#smile-gallery .modal h3 {
		text-transform: uppercase;
		font-weight: 300;
		text-align: center;
		width: 100%;
		display: block;
		letter-spacing: 4px;
		font-family: "Lato Light","Lato", sans-serif;
	}

	#smile-gallery .modal h4 {
		text-transform: uppercase;
		font-weight: bold;
		text-align: center;
		width: 100%;
		display: block;
		letter-spacing: 4px;
		font-family: "Lato",sans-serif;
		font-size: 1em;
		margin-top: 20px;
	}

	.modal div span {
		width: 48%;
		margin: 1px;
	}

	.modal div .portrait img{
		display: block;
		margin-bottom: 2px;
	}


	

	.modal div span {
		width: 100%;
		text-align: center;
		text-transform: uppercase;
		font-size: .8em;
		font-family: "Lato", sans-serif;
		font-weight: 900;
		display: block;
	}

  .modal div:nth-child(3), .modal div:nth-child(4){
  width:46%;
  }
	/* end modal */

	/* homepage services */
	#home-services, #home-services .wrap {
		min-height: auto;
	}
	.services-switcher {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		margin-top: 2em;
	}

	.services-switcher > ul, .services-switcher > div {
		width: 100%;
	}

	.services-switcher > ul {
		padding:0 2em 0 0;
	}

	.services-switcher > ul li {
		text-align: right;
	}

	.services-switcher > ul li a {
		text-transform: uppercase;
		color: #fff;
		font-size: 1.5em;
		text-decoration: underline;
		letter-spacing: 4px;
		font-weight: 300;
	}

	.services-switcher > ul li a:hover, services-switcher > ul li.active a{
		color: #383838;
	}

	.services-switcher > div {
		background-color: #fff;
	}

	.service-text {
		position: relative;
    height: 280px;
	}

	.service-text > div {
		text-align: left;
		display: none;
		padding: 3em 3em 2em 3em;
	}

	.services-switcher h3 {
		text-transform: uppercase;
		font-size: 1em;
		font-weight: 600;
	}

	.service-text > div.active {
		display: block;
	}

	.service-text > div > a {
		position: absolute;
	    bottom: -30px;
	    left: 50%;
	    transform: translateX(-50%)
	}

	#home-reviews .one-third a {
		
		margin: 2em;
	}

	#home-reviews .two-thirds > a {
		display: none;
	}

	.services-switcher > ul, .services-switcher > div {
		width: 50%;
	}

	.smile-filter {
		display: flex;
	    flex-wrap: wrap;
	    flex-direction: row;
	    align-items: stretch;
	    justify-content: flex-start;
	    margin-top: 2.5em;
	}

	.smile-filter li {
		background-color: #f1f1f1;
		padding: 0;
		margin: .5em 1em .5em 0;
		box-shadow: 0 0 20px rgba(10,10,10,.3);
		max-width: 200px;
		align-items: stretch;
		display: flex;
		
	}

	.smile-filter li a {
		text-transform: uppercase;
		font-size: .8em;
		letter-spacing: 1px;
		color: #383838;
		display: block;
		padding: 14px 18px;
		line-height: 1.3em;
		align-items: center;
		display: flex;
		border: 1px solid #fff;
	}

	.smile-filter li a:hover {
		color: #fff;
		background: #a1ab8c;
		border-color: #a1ab8c;
	}

	.smile-filter li.active a {
		color: #a1ab8c;
	}

	.smile-filter li.active a:hover {
		color: #fff;
	}


.gallery-popup .wpcf-field-image {
  width:48%!important;
}

.gallery-popup .wpcf-field-image-value, .gallery-popup .wpcf-field-image-value img {
  width:100%!important;
}

/**
 * Media Queries
 *
 */


@media screen and (max-width:1440px){
  #home-banner-text-box {
    top: 40px;
  }
	#interior-banner-text-box {
		top: 80px;
		left: 120px;
	}
  
  .service-text {
    height: 320px;
  }
  
}

@media screen and (max-width:1280px){
	.home-section-header {
		line-height:30px;
	}

}

/* mobile over ~600 */
@media screen and (max-width:1024px){
  
  #home-banner-text-box p {
    margin: 1em auto;
  }
   
  #footer-columns {
    justify-content: space-between;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  #footer-columns .one-fourth {
    width: 35%;
    margin: 30px 0;
  }
  
	#headerMenu {
		display: none;
	}

	.site-container {
		padding-top: 123px;
	}
	.home .site-container {
		padding-top: 140px;
	}

	body:not(.home) .site-inner {
		    background-image: url(../images/page-bg-main.jpg); 
		    background-position: left top;
		    max-width: 100%;
		    background-size: 200% 100%;
	}

	.site-header .wrap {
		background-color: #2a2a2a;
		padding-bottom: 0;
	}

	.sidebar .widget {
		padding: 2em;
	}
  
  .service-text {
    height: 350px;
  }
	

	/* mobile menu */
	#mobile-menu, #mobile-phone {
		flex-direction: row;
	}
	#mobile-phone {
		justify-content: right;
	}
	.toggle, #mobile-phone {
		top: 40px;
	}

	.toggle {
		left: 40px;
	}

	#mobile-phone {
		right: 40px;
	}

	#mobile-phone svg {
		width:40px;
	}

	.icon-color {
		fill:#fff;
	}
	.slidebar-left, .slidebar-right {
		top: 145px;
	}
	#mobile-menu-tag, #mobile-phone-tag {
		text-transform: uppercase;
		font-size: 16px;
	}

	#mobile-menu-tag {
		margin-left: 20px;
	}
	#mobile-phone-tag {
		margin-right: 5px;
		padding-top: 10px;
		color: #fff;
	}

	#interior-header {
		background: none;
		padding: 0;
	}

	#interior-banner img {
		display: block;
	}

	#interior-banner-text-box {
		top: 1em;
		left: 1em;
		font-size: 2em;
    letter-spacing: 10px;
	}

	.title-area {
		display: none;
	}



	#smile-gallery a > div > div img {
		-webkit-filter: none; /* Safari 6.0 - 9.0 */
		filter: none;
	}

	.smile-filter {
		justify-content: space-between;
	}
	.smile-filter li {
		margin: .5em 0;
		max-width: inherit;
	}

	#smile-gallery .modal {
		top: 0;
		transform: translate(-50%,0);
	}

	

	.service-text {
		position: relative;
	}

}


/* tablet over ~900 */
@media screen and (max-width:768px){
  
  #home-reviews .wrap {
    background-size:cover;
  }
  
  #footer-columns .one-fourth {
    width: 50%;
    
  }
	.services-switcher {
		margin-top: 0;
	}

	.service-text {
		height: auto;
	}

	.services-switcher > ul, .services-switcher > div {
		width: 100%;
	}

	.services-switcher > ul {
		
		margin: 2em auto;
	}
	.services-switcher > ul li {
		text-align: center;
	}

	#home-reviews .one-third a {
		display: none;
	}

	#home-reviews {
		min-height: auto;
	}

	#home-reviews .two-thirds > a {
		display: inline-block;
		margin: 4em 2em;
	}

	.item blockquote {
		font-size: 1.5em;
	}

	#smile-gallery a > div > div img {
		width: 100%;
	}

	#smile-gallery a > div > div img:last-child {
		display: none;
	}

	#smile-gallery .modal {
		width: 70%;
	}

	.modal div {
		width: 80%;
	}
  
  

	.modal div img {
		width: 100%;
	}

	.modal div .portrait img {
		display: none;
		margin-bottom: 2px;
	}

	.smile-filter {
		justify-content: space-around;
	}

	.smile-filter li {
		width: 30%;
		justify-content: center;
	}

	/* inner */
	#interior-banner-text-box {
		top: 1em;
		left: 1em;
		font-size: 1.5em;
		line-height: 1.4em;
		letter-spacing: 8px;
	}

	body:not(.home) .site-inner {
	    padding-top: 5rem;
	}
  
.modal .wpcf-field-image {
  width:100%!important;
}

.modal .wpcf-field-image-value, .modal .wpcf-field-image-value img {
  width:100%!important;
}


}


/* large tablet over ~1200 */
@media screen and (max-width:480px){
  #footer-columns {
    display: block;
  }
  #footer-columns .one-fourth {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
.services-switcher > ul li a {
		font-size: 1.4em;
	}
	.services-switcher > ul {
		padding: 0;
	}

	.item blockquote {
		font-size: 1em;
	}

	#home-reviews .two-thirds > a {
		margin: 2em;
	}

	.slidebar-left, .slidebar-right {
		top: 105px;
	}

	/* inner */
	.site-header {
		display: none;
	}

	#mobile-logo img {
		max-width: 160px;
	}

	.toggle, #mobile-phone {
		top: 20px;
	}
	.toggle {
		left: 20px;
	}
	#mobile-phone {
		right: 20px;
	}

	#mobile-menu-tag, #mobile-phone-tag {
		display: none;
	}

	.site-container {
		padding-top: 100px;
	}

	.smile-filter li {
		width: 45%;
	}

	#smile-gallery .modal {
		width: 100%;
		padding: 1em;
	}
	#smile-gallery .modal div {
		width: 75%;
	}
  
    .modal .wpcf-field-image {
  width:100%!important;
}

.modal .wpcf-field-image-value, .modal .wpcf-field-image-value img {
  width:100%!important;
}
}

