/* ================= SYS Marketing Add-On CSS Document ================= */ 
/* ---Use this file to put any additional external CSS on the website
   ---Make sure to double-check functionality when using Add-Ons         
   ---Sizes may also need to be altered for it to look correct           */
/* ===================================================================== */

/* ===== Accordion ===== */

    .ui-accordion-header, .ui-accordion-header-icon {
        -webkit-transition: all 0.3s ease-in-out;  
        -moz-transition: all 0.3s ease-in-out;  
        -ms-transition: all 0.3s ease-in-out;  
        -o-transition: all 0.3s ease-in-out;  
        transition: all 0.3s ease-in-out;
	}
    .ui-accordion-header {
        background: #e4bfaf;
        color: #FFF !important;
    	border-bottom: 2px dotted #fff;
        padding: 5px 50px 5px 0px;
        outline: 0;
       /* box-shadow: 0 8px 10px -8px #666;*/
  		margin-bottom: 12px;
        position: relative;
        cursor: pointer;
    	-webkit-transition-property: margin;
  		-moz-transition-property: margin;
  		-ms-transition-property: margin;
  		-o-transition-property: margin;
  		transition-property: margin;
  		-webkit-transition-delay: 0.6s;
  		-moz-transition-delay: 0.6s;
  		-ms-transition-delay: 0.6s;
  		-o-transition-delay: 0.6s;
  		transition-delay: 0.6s;
    }
    .ui-accordion-header.ui-state-hover .ui-accordion-header-icon {
		top: 45%;
    }
    .ui-accordion-header.ui-state-active.ui-state-hover .ui-accordion-header-icon {
		top: 25%;
    }
    .ui-accordion-header.ui-state-active {
  		margin-bottom: 0;
  		box-shadow: none;
	}
    .ui-accordion-header-icon {
        /*
        background: url(../images/accordion-arrow.png) no-repeat right center;
        background-size: 100%;
        width: 30px;
        height: 13px;        
        display: block;*/
        width: 0;
        top: 35%;
        position: absolute;
        right: 10px;
        height: 0;
        border-style: solid;
        border-width:12px 6px 0;
        border-color: #f1f1f1 transparent transparent transparent;

    }
    .ui-accordion-header-active .ui-accordion-header-icon {
      -webkit-transform: rotate(-180deg);  
      -moz-transform: rotate(-180deg);  
      -o-transform: rotate(-180deg);    
      -ms-transform: rotate(-180deg);
    }
    .ui-accordion-content {
        background: #C2A091;
        padding: 10px;
    }
    .ui-accordion-content select {
        width: 120px;  
        padding: 6px 2%;
        margin-bottom: 15px;
        font-size: 14px;
    }
    .ui-accordion-content input[type="submit"] {
  		width: 140px;
	}
    .ui-accordion-content input,
    .ui-accordion-content textarea {
        width: 94%;
        padding: 7px 3%;
        margin-bottom: 15px;
        font-size: 14px;
    }

/* ===== SMILE GALLERY ===== */

/* GENERIC STYLES */

html.gallery body {
    overflow-y: scroll;
}
.gallery .tabs .content {
    padding: 20px;
    border: 1px solid #DDD;
}
.gallery .tabs > ul {
    margin: 0;
}
.gallery  .tabs > ul > li {
    display: inline-block;
    margin: 0;
    padding: 0;
    outline: none;
    list-style: none;
}
.gallery  .tabs > ul > li:before {
    content: "";
}
.gallery  .tabs > ul > li a {
    display: block;
    margin: 0;
    padding: 8px 10px 8px 10px;
    border: 1px solid #DDD;
    margin-bottom: -1px;
}
.gallery  .tabs > ul > li.ui-state-active a {
    border-bottom-color: #FFF;
}
.gallery .accordion.gallery h3 {
    background-color: transparent;
    color: #333 !important;
    font-size: 16px;
    padding: 0 30px 0 0;
    display: inline-block;
    box-shadow: none;
    margin-bottom: 10px !important;
    overflow: hidden;
    margin-top: 10px;
}
.gallery .accordion.gallery h3 span {
	top: calc(50% - 5px) !important;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(136, 183, 213, 0);
	border-top-color: #333;
	border-width: 5px;
	border-top-width: 9px;
	background: none;
	-webkit-transform: none;
	-moz-transform: none;
	-o-transform: none;
	-ms-transform: none;
}
.gallery .accordion.gallery h3.ui-accordion-header-active span {
    top: calc(50% - 10px) !important;
    border-bottom: 9px solid #333;
    border-top: 5px solid transparent;
}
.gallery .tabs [class*="-img"],
.gallery .accordion > div > div {
    float: left;
    width: calc(50% - 10px);
    position: relative;
}
.gallery .tabs [class*="-img"] img {
    display: block;
    width: 100%;
}
.smile-heading {
    position: relative;
    margin-bottom: 6px;
}
.smile-heading:before {
    content: "\0020";
    width: 100%;
    background-color: transparent;
    display: block;
    height: 1px;
    border-top: 1px solid #E0E0E0;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    z-index: 1;
}
.smile-heading h2 {
    position: relative;
    display: inline-block;
    background-color: #FFF;
    z-index: 2;
    padding: 0 8px;
    margin: 0 0 0 12px;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 0;
}
.gallery .accordion.gallery > div {
    background: none;
    padding: 0 0 20px;
    overflow: hidden;
}
.gallery .accordion > div > div.descr {
    width: calc(65% - 20px);
    margin-right: 20px;
}
.gallery .accordion > div > div.testi {
    position: relative;
    width: 35%;
    font-size: 30px;
    line-height: 38px;
    padding-top: 15px;
    padding-bottom: 15px;
}
.gallery .accordion > div > div.testi:before {
    content: "\2018\2018";
    display: inline-block;
    position: absolute;
    top: 0;
    left: -10px;
    font-family: Times New Roman;
    font-size: 120px;
    letter-spacing: -20px;
}
.gallery .accordion > div > div.testi:after {
    content: "\2019\2019";
    display: inline-block;
    position: absolute;
    bottom: -45px;
    right: 20px;
    font-family: Times New Roman;
    font-size: 120px;
    letter-spacing: -20px;
}
.gallery .tabs .before-img {
    margin-right: 20px;
}
.gallery .overlay {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #FFF;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.gallery .overlay span {
    position: absolute;
    top: calc(50% - 10px);
    left: 0;
    right: 0;
    font-size: 18px;
}
.gallery .overlay:hover {
    opacity: 0;
}

/* ===== SOCIAL MEDIA & CASE STUDIES BUTTON ===== */

    ul.social {
        margin-bottom: 10px;
        margin-top: 7px;
    }
    ul.social li {
        position: relative;
        display: inline-block;
        margin-right: 5px;
  		margin-bottom: 0;
    }
    ul.social li:last-child {
        margin: 0;
    }
    ul.social a {
        display: block;
        width: 35px;
        height: 35px;
        background: url(../images/social-media-icons.png) no-repeat center;
        background-size: 282px auto;
        float: right;
	 }

	div#filters button {
		float: left;
		margin-right: 8px;
		z-index: 0;
		text-transform: uppercase;
		padding: 8px 12px;
		background: #0197D4;
	}
	div#filters button:hover {
		background: #C3BA8F;
	}

    li.twitter a {
        background-position: -41px 0px;
    }
    li.facebook a {
        background-position: 0px 0px;
    }
    li.pintrest a {
        background-position: -117px 0px;
    }
    li.linkedin a {
        background-position: -164px 0px;
    }
    li.instagram a {
        background-position: -247px 0px;
    }
    li.twitter a:hover {
        background-position: -41px -40px;
    }
    li.facebook a:hover {
        background-position: 0 -40px;
    }
    li.pintrest a:hover {
        background-position: -117px -59px;
    }
    li.linkedin a:hover {
        background-position: -164px -40px;
    }
    li.instagram a:hover {
        background-position: -247px -40px;
    }
    li.case a:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 0;
        top: 50%;
        left: 50%;
        background: #404040;
        opacity: 0;
        -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
        -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
        -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
        z-index: -1;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -ms-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
	}

    div#filters button.is-checked {
		background: #C3BA8F;
    }
	div#filters button.is-checked:hover {
		background: #C3BA8F;
		cursor: default;
	}


/* All Mobile Sizes (devices and browser) =============================== */
@media only screen and (max-width: 767px) {

	.gallery .tabs [class*="-img"], .gallery .accordion > div > div {
		float: none !important;
		width: 80% !important;
		margin: 0 auto 20px !important;
	}
	.gallery .accordion > div > div.descr {
		margin-bottom: 40px !important;
	}

}

/* ===== END SMILE GALLERY ===== */