/*
Theme Name: Red Hong Yi
Author: Tim Malone, tim.malone@chromatix.com.au
Author URI: http://www.chromatix.com.au
Description: A theme for Red Hong Yi, by Chromatix.
Version: 2.2.0 (2018-03-13)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chromatix.com.au
*/

/* **************************** INIT **************************** */

/* Reset code */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

/* css to skip for search engines */

.assistive-text {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}

#access a.assistive-text:active, #access a.assistive-text:focus {
  background: #eee;
  border-bottom: 1px solid #ddd;
  color: #809a04;
  clip: auto !important;
  font-size: 12px;
  position: absolute;
  text-decoration: underline;
  top: 0;
  left: 7.6%;
}

/* utility class set up */

/* white brand set up - added by CHROMATIX TM 10/08/2015 */
body.white_brand .default_brand_only {
  display: none !important;
}

body.default_brand .white_brand_only {
  display: none !important;
}

a img {
  border: 0;
}

/* IE fix. Make images that are links not have obnoxious blue borders */
li {
  list-style-type: none;
}

/* We'll turn 'em on if we need 'em */
.clear {
  clear: both;
}

.disable > a, a.disable, .disabled > a, a.disabled {
  cursor: default !important;
  text-decoration: none !important;
}

.nomargin {
  margin: 0 !important;
}

.nocaps {
  text-transform: none !important;
}

.clickable {
  cursor: pointer;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1100;
  width: 32px;
  height: 32px;
  background-image: url("images/close.png");
  background-size: 32px;
  background-repeat: no-repeat;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  cursor: pointer;
}

.close:hover {
  opacity: .6;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
}

.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.hide_till_loaded {
  display: none;
}

.hide_when_loaded {
}

.topoffset {
  position: relative;
  top: -25px;
}

.rightoffset {
  position: relative;
  right: -25px;
}

.bottomoffset {
  position: relative;
  bottom: -25px;
}

.leftoffset {
  position: relative;
  left: -25px;
}

a.opacity_hover {
  opacity: .8;
  -webkit-transition: opacity .5s;
  -moz-transition: opacity .5s;
  transition: opacity .5s;
}

a.opacity_hover:hover {
  opacity: 1;
}

.social_icons {
}

.social_icons a img {
  opacity: .8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}

.social_icons a:hover img {
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}

.lb-next, .lb-prev {
  background-color: rgba(255, 255, 255, 0);
}

/* gallery lightbox fix for next/prev buttons in IE */

/*div.loading {
  background-image: url("images/loading.gif");
  background-size: 60px; background-repeat: no-repeat;
  min-width: 60px; min-height: 60px;
}*/

.noselect {
  /* stops user from selecting text, for example when clicks are handled in a web app */
  -webkit-user-select: none; /* webkit (safari, chrome) browsers */
  -moz-user-select: none; /* mozilla browsers */
  -khtml-user-select: none; /* webkit (konqueror) browsers */
  -ms-user-select: none; /* IE10+ */
}

.w-100 {
  float: left;
  width: 100%;
}

.w-90 {
  float: left;
  width: 90%;
}

.w-80 {
  float: left;
  width: 80%;
}

.w-70 {
  float: left;
  width: 70%;
}

.w-60 {
  float: left;
  width: 60%;
}

.w-50 {
  float: left;
  width: 50%;
}

.w-40 {
  float: left;
  width: 40%;
}

.w-30 {
  float: left;
  width: 30%;
}

.w-20 {
  float: left;
  width: 20%;
}

.w-10 {
  float: left;
  width: 10%;
}

.w-95 {
  float: left;
  width: 95%;
}

.w-85 {
  float: left;
  width: 85%;
}

.w-75 {
  float: left;
  width: 75%;
}

.w-65 {
  float: left;
  width: 65%;
}

.w-55 {
  float: left;
  width: 55%;
}

.w-45 {
  float: left;
  width: 45%;
}

.w-35 {
  float: left;
  width: 35%;
}

.w-25 {
  float: left;
  width: 25%;
}

.w-15 {
  float: left;
  width: 15%;
}

.w-5 {
  float: left;
  width: 5%;
}

/* global jcarousel styles */

.jcarousel {
  /*overflow: hidden;*/
}

.jcarousel > div {
  position: relative;
  width: 20000em;
  height: 100%;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jcarousel ul {
  position: relative;
  width: 20000em;
  height: 100%;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jcarousel ul li {
  float: left;
  height: 100%;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* div's or img's that are using background-image */

.imagebg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

img.imagebg {
  padding-left: 100%; /* allow a background-image to be used on an img element */
  -webkit-box-sizing: border-box; /* stop the padding-left above from breaking everything ;) */
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  min-height:100%;
}

span.imagebg {
  display: block;
  height: 100%;
  width: 100%;
  background-position: center;
  background-size: cover;
}

span.imagebg {
  padding-left: 100%; /* allow a background-image to be used on an img element */
  -webkit-box-sizing: border-box; /* stop the padding-left above from breaking everything ;) */
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  min-height:100%;
}


/* across-the-board transitions */

#inner_lightbox,
.header_menu ul.menu > li > a,
.header_widgets a img,
.pagination a,
.displayposts .link,
.displayposts .month_title,
.displayposts .search #s,
.displayposts .search #searchsubmit,
.fadeonview,
.fadeonview .jspPane,
.post-type-archive-portfolio .alm-reveal,
.trans {
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  transition: all .5s;
}

.fadeonview.jspScrollable,
.trans-removed {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

/* fadeonview/moveonview */

.fadeonview,
.fadeonview .jspPane {
  opacity: 1;
  position: relative;
  right: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}

.fadeonview[data-fadeonview-origin="top"] {
  right: auto;
  top: 0;
}

.fadeonview[data-fadeonview-origin="bottom"] {
  right: auto;
  bottom: 0;
}

.fadeonview[data-fadeonview-origin="left"],
.fadeonview[data-fadeonview-origin="left"] .jspPane {
  right: auto;
  left: 0;
}

.fadeonview.off,
.fadeonview.off .jspPane {
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  right: -15px;
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.fadeonview.off[data-fadeonview-origin="top"] {
  right: auto;
  top: -15px;
}

.fadeonview.off[data-fadeonview-origin="bottom"] {
  right: auto;
  bottom: -15px;
}

.fadeonview.off[data-fadeonview-origin="left"],
.fadeonview.off[data-fadeonview-origin="left"] .jspPane {
  right: auto;
  left: -15px;
}

/* disable fadeonview for touch devices, due to issues with momentum scroll */

.oldie .fadeonview.off,
.mod-touch .fadeonview,
.mod-touch .fadeonview.off {
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  right: 0;
}

.oldie .fadeonview.off[data-fadeonview-origin="left"] {
  left: 0;
}

/* non-support message for old versions of ie */

.oldie .chr_page {
  padding-top: 100px;
}

.oldie .chr_page:before {
  content: "It looks like you're using an unsupported browser. While you can view this site, the experience will not be the same as with a newer browser. To experience the latest of what the web has to offer - and keep your browsing secure - we recommend downloading the latest version of Chrome or Firefox.";
  background-color: #FACAC9;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 96%;
  z-index: 100;
  height: 60px;
  padding: 2%;
}

.oldie .greyscale-image-img,
.oldie .greyscale-image-link {
  display: none !important;
}

.oldie. li.disabled.megamenu a {
  cursor: pointer !important;
}

.oldie. img.imagebg,
.oldie. .pdf_icon,
.oldie. .email_icon,
.oldie. .phone_icon {
  background-image: none !important;
  padding-left: 0 !important;
}

.oldie. img.imagebg {
  box-sizing: content-box !important;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

/* **************************** FONTS **************************** */

/* See editor-style-shared.css for fonts */

/* ************************** STRUCTURE ************************** */

html, body, .chr_page {
  width: 100%;
  /* see editor-style-shared.css for font-family and font-size */
  -webkit-text-size-adjust: none; /* to stop iPhone Safari from changing text sizes on us */
  position: relative;
  overflow: hidden;
}

*::selection {
  background: #FFC6C6;
}

*::-moz-selection {
  background: #FFC6C6;
}

.white_brand *::selection {
  background: #FBDBDD;
}

.white_brand *::-moz-selection {
  background: #FBDBDD;
}

/* horizontal scroll fixes: Mac Books require overflow-x hidden on html AND body to avoid trackpad scroll; Windows Chrome then requires a full overflow hidden on body to avoid additional scrollbars */
html {
  overflow-x: hidden;
}

body {
  overflow: hidden;
}

/* may need to be hidden if page_containers or fullwidth_containers are used */
/*.chr_page { overflow-x: hidden; }*/
/* when pushed over for responsive menu */
.chr_page.push {
  -webkit-transform: translate(50%, 0);
  -moz-transform: translate(50%, 0);
  -ms-transform: translate(50%, 0);
  -o-transform: translate(50%, 0);
  transform: translate(50%, 0);
  opacity: .5;
}

.content_container {
  width: 1250px;
  margin: 0 auto;
  position: relative;
}

.page_container {
  width: 2000px;
  margin: 0 auto;
  position: relative;
  left: -220px; /* half of the difference between this width and page_container's width */;
}

.extended_container {
  width: 2560px;
  margin: 0 auto;
  position: relative;
  left: -800px; /* half of the difference between this width and content_container's width */;
}

.fullwidth_container {
  width: 100%;
  position: relative;
}

.edgeflush, .home.page .edgeflush, .stretch .edgeflush {
  padding-left: 2%;
  padding-right: 2%;
}

/* elements whose content is now flush against the edge of the page, which would look bad as a result */

.white_brand .edgeflush,
.white_brand.home.page .edgeflush,
.white_brand .stretch .edgeflush {
  padding-left: 0;
  padding-right: 0;
}

.content_container.edgeflush {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* *********************** MASTHEAD (HEADER) ********************** */

.masthead {
  background-color: #1B1B1B;
}

.white_brand .masthead {
  background-color: #F7F7F7;
}

.masthead_content {
  padding-top: 44px;
  padding-bottom: 44px;
  line-height: 35px;
  box-sizing: border-box;
}

.logo_wrapper {
  float: left;
  margin-right: 75px;
}

.logo_wrapper img {
  display: block;
  width: auto;
  height: auto;
  max-width: 390px;
  width: 261px;
  height: 32px;
}

.white_brand .masthead_content {
  padding-top: 0;
  padding-bottom: 0; /* total height should = 120px */
}

.white_brand .logo_wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

.white_brand .logo_wrapper img {
  width: 140px;
  height: 80px;
}

.header_widgets {
  float: right;
  width: 150px;
  height: 40px;
  overflow: hidden;
}

.header_widgets .widgettitle {
  display: none;
}

.header_widgets div.widget {
  display: none;
}

.header_widgets div.widget:first-child {
  display: block;
  text-align: right;
}

.header_widgets p {
  line-height: 35px;
}

.header_widgets img {
  vertical-align: middle;
}

.header_widgets a img {
  opacity: .8;
}

.white_brand .header_widgets a img {
  opacity: .6;
}

.header_widgets a:hover img {
  opacity: 1;
}

.white_brand .header_widgets {
  height: 120px; /* masthead height */
}

.white_brand .header_widgets p {
  line-height: 120px; /* masthead height */
}

.white_brand .header_widgets img {
  vertical-align: baseline;
}

.header_footer {
  display: none;
}

/* ************************* ADDTHIS PLUGIN ************************ */

/* fix general position, except for on single portfolio pages, where we need to account for the forward/back buttons */

body:not(.single-portfolio) #at4-share,
body:not(.single-portfolio) #at4-soc {
  top: 22% !important;
}

.white_brand.single-portfolio #at4-share,
.white_brand.single-portfolio #at4-soc {
  top: 312px !important;
}

/* avoid addthis from showing up over the top of #inner_lightbox (the class is added by JS) */

#at4-share.retreat,
#at4-soc.retreat {
  z-index: 0 !important;
}

/* no addthis on front page */

/* .front-page .chr_content .addthis-toolbox { display: none; } */

/* make facebook logo not look out of place */

.at-svc-facebook span {
  position: relative;
  left: -5px;
  top: -3px;
}

/* **************************** FOOTER **************************** */

.footer {
  background-color: #111111;
  color: #7f8080;
  font-size: 10px;
  text-transform: uppercase;
  font-family: "Montserrat";
  z-index: 10; /* ensure footer always shows, particularly over the home page video */
}

.white_brand .footer {
  background-color: #B8B8B8;
  color: #f7f7f7;
  text-align: center;
  max-height: 57px;
}

.footer_content {
  padding-top: 11px;
  padding-bottom: 11px;
}

.white_brand .footer_content {
  padding-top: 12px;
  padding-bottom: 13px; /* actual height should be 40px */
}

.footer_content ul.menu {
}

.footer_content ul.menu > li {
  display: block;
}

/* wrap on new lines */
.footer_content ul.menu > li > a {
  padding: 2px 0;
  font-size: 14px;
}

.footer_content ul.sub-menu {
  display: none;
}

/* top level only for footer */
.footer_content .menu-image,
.footer_content .menu-image-title-hide,
.footer_content .menu-image-hover-wrapper {
  display: none;
}

/* it's text only down here */

.footer_content .widgettitle {
  display: none;
}

.footer_content div.widget {
  display: none;
  float: left;
  width: 33%;
  min-height: 1px;
}

.footer_content div.widget:first-child {
  display: block;
  text-align: left;
}

.footer_content div.widget:nth-child(2) {
  display: block;
  text-align: center;
}

.footer_content div.widget:nth-child(3) {
  display: block;
  text-align: right;
}

.white_brand .footer_content div.widget,
.white_brand .footer_content div.widget:first-child,
.white_brand .footer_content div.widget:nth-child(2),
.white_brand .footer_content div.widget:nth-child(3) {
  display: inline;
  text-align: center;
  float: none;
  width: auto;
}

.white_brand .footer_content div.widget:not(:first-child) {
  margin-left: 25px;
  padding-left: 25px;
  border-left: 1px solid #f7f7f7;
}

.white_brand .footer_content div.widget.blank_widget {
  display: none;
}

/* class added by JS */

.white_brand .footer_content div.widget div,
.white_brand .footer_content div.widget p {
  display: inline;
}

.white_brand .footer_content div.widget:after {
  content: none;
}

/* remove clearfix, because they're inline elements now */

.footer_content a {
  text-decoration: none;
  color: #7f8080;
  font-family: "Montserrat";
}

.footer_content a img {
  vertical-align: middle;
  margin: 5px 3px;
}

.footer_content a:hover {
  text-decoration: underline;
  color: #7f8080;
}

.white_brand .footer_content a,
.white_brand .footer_content a:hover {
  color: #f7f7f7;
  font-family: "Montserrat";
  text-decoration: none;
}

.footer_content .inserted_footer_link {
}

.footer_content .inserted_footer_link.has-preceding-text {
  /* separator */
  margin-left: 25px;
  border-left: 2px ridge #737373;
  padding-left: 25px;
}

.white_brand .footer_content .inserted_footer_link.has-preceding-text {
  border-left: 1px solid #f7f7f7;
}

.footer_content .inserted_footer_link.no-preceding-text {
}

/* ***************** The end, thanks for visiting! **************** */


/** Custom CSS **/

.floating__cta__btn {
  position: fixed;right: 0;
  z-index: 999;
  top: 50%;
  background-color: #D51509;
  padding: 10px;
  display: block;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 5px #525252;
}

.floating__cta__btn a {
    display: block;
    justify-content: center;
    align-items: center;
    background: #D51509 !important;
    color: white !important;
    opacity: 1 !important;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif;
}

.floating__cta__btn a img {
    margin-right: 5px;
}


/** Custom CSS **/