/*
Theme Name:     Mb-enfold
Description:    Enfold child theme.
Template:       enfold
Version:        0.1.0
*/

@import '../enfold/style.css';

/* Start part of Tachyons */

.bg-black-40 { background-color: rgba( 0, 0, 0, .4 ); }
.silver { color: #999; }
.white { color: #fff; }

.bg-center {
  background-repeat:no-repeat;
  background-position:center center;
}

.cover {
  background-size: cover;
}

.hide-child .child {
  opacity: 0;
  -webkit-transition: opacity .15s ease-in;
  transition: opacity .15s ease-in;
}

.hide-child:hover  .child,
.hide-child:focus  .child,
.hide-child:active .child {
  opacity: 1;
  -webkit-transition: opacity .15s ease-in;
  transition: opacity .15s ease-in;
}

.db {
  display:block;
}

.dt {
  display: table;
}

.dtc {
  display: table-cell;
}

.flex { display: -webkit-box; display: -ms-flexbox; display: flex; }

@media screen and (min-width: 60em) {
  .flex-l { display: -webkit-box; display: -ms-flexbox; display: flex; }
}

.h-100 {
  height: 100%;
}

.link { text-decoration: none; -webkit-transition: color .15s ease-in; transition: color .15s ease-in; }
.link:link, .link:visited { -webkit-transition: color .15s ease-in; transition: color .15s ease-in; }
.link:hover { -webkit-transition: color .15s ease-in; transition: color .15s ease-in; }
.link:active { -webkit-transition: color .15s ease-in; transition: color .15s ease-in; }
.link:focus { -webkit-transition: color .15s ease-in; transition: color .15s ease-in; }

.mt3 { margin-top: 1rem; }
.pa3 { padding: 1rem; }
.pt3 { padding-top: 1rem; }

.tc {
  text-align: center;
}
.v-mid {
  vertical-align:middle;
}

.w-20 { width: 20%; }
.w-50 { width: 50%; }
.w-80 { width: 80%; }
.w-100 { width: 100%; }

@media screen and (min-width: 60em) {
  .w-20-l { width: 20%; }
  .w-25-l { width: 25%; }
  .w-80-l { width: 80%; }
}

/* End part of Tachyons */


/* Start CSS for SVG icons */
.mb-svg-icon-container {
  display: inline-block;
}
.mb-svg-icon-container > * {
  background-color: #ffffff;
  height: auto;
  max-width: 100%;
}
.mb-svg-icon-container > * * {
  fill: #383838;
}
.mb-svg-icon-container:hover * {
  fill: #47adc4;
}
/* End CSS for SVG icons */

/* FacetWP */
.facetwp-facet-search {
  margin-bottom: 0 !important;
}
.facetwp-facet-search .facetwp-search {
  margin-bottom: 0 !important;
}
.facetwp-search-wrap {
  display: block;
}
.facetwp-search-wrap .facetwp-btn {
  top: 8px;
  right: 5px;
}
.ih-facetwp-item-container {
  float: left;
  position: relative;
  height: 0;
  padding-bottom: 39%;
  min-height: 120px;
}
@media screen and (min-width: 60em) {
  .ih-facetwp-item-container {
    padding-bottom: 21%;
    min-height: 160px;
  }
}

.ih-facet-item {
  height: 90%;
  width: 90%;
  position: absolute;
  left: 0;
}
.facetwp-checkbox:before {
  content: '';
  display: inline-block;
  height: 16px;
  width: 16px;
  border: 1px solid black;
  position: relative;
  top: 2px;
  left: -22px;
}
.facetwp-checkbox {
  background-image: none !important;
}
.facetwp-checkbox.checked {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjAuMjg1IDJsLTExLjI4NSAxMS41NjctNS4yODYtNS4wMTEtMy43MTQgMy43MTYgOSA4LjcyOCAxNS0xNS4yODV6Ii8+PC9zdmc+) !important;
}

.flex .facetwp-template {
  -ms-flex-wrap: wrap;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

/* End FacetWP */



/* Grid for frontpage icons */
#ih-icons-section .flex_column {
  margin-top: 0 !important;
}

#ih-icons-section .flex_column:nth-child(n+7) {
  margin-top: 50px !important;
}

#ih-icons-section .flex_column:before,
#ih-icons-section .flex_column:after,
#ih-icons-section .flex_column.first {
  clear: none !important;
}

@media only screen and (min-width: 768px) and (max-width: 989px) {
  #ih-icons-section .flex_column {
    width: 28%;
    margin-left: 8%;
  }
  #ih-icons-section .flex_column:nth-child(3n-1) {
    margin-left: 0;
  }
  #ih-icons-section .flex_column:nth-child(n+5) {
    margin-top: 50px !important;
  }

}

@media only screen and (max-width: 767px) {
  #ih-icons-section .flex_column {
    width: 48% !important;
    margin-left: 4% !important;
  }
  #ih-icons-section .flex_column:nth-child(2n-2) {
    margin-left: 0 !important;
  }

  #ih-icons-section .flex_column:nth-child(n+4) {
    margin-top: 20px !important;
  }
}

/* End grid for frontpage icons */


@media screen and (min-width: 60em) {
  .w-80-l.flex {
    padding-left: 2rem;

  }
}
/* Styling for Google Maps shown on portfolio items */
.acf-map {
  width: 100%;
  height: 600px;
  border: #ccc solid 1px;
  margin: 0;
}

/* fixes potential theme css conflict */
.acf-map img {
  max-width: inherit !important;
}

/* Fixes the position of the '>' in the button at the bottom of the page */
.avia_button_icon {
  left: 0 !important;
}