/*
Theme Name: A Winterbotham
Theme URI: http://www.elegantthemes.com/gallery/divi/
Description: Child theme for Divi
Author: RFNM
Author URI: http://www.rfnm.co.uk
Template: Divi
Version: 1.0.0
Text Domain: AWint
*/

/* Theme customization starts here
-------------------------------------------------------------- */
/* page wrapper */
#page-container {
  -webkit-box-shadow: 1px 1px 14px 8px rgba(50, 50, 50, 0.6) !important;
  -moz-box-shadow:    1px 1px 14px 8px rgba(50, 50, 50, 0.6) !important;
  box-shadow:         1px 1px 14px 8px rgba(50, 50, 50, 0.6) !important;
  margin-bottom: 40px !important;
}

/* header */
#top-header #et-info {
  float: right;
}

#top-header .et-social-icons li {
  margin-left: 5px;
}

.et_pb_fullwidth_header {
  padding: 0;
}

#et-info-phone {
  margin-right: 23px;
}
#et-info-email {
  margin-right: 10px;
}

#hp_contact .header-content {
  margin: 30px auto;
}

span.logo_helper {
  vertical-align: top;
}

#logo {
  max-height: 64%;
}

.et_pb_gallery_items .et_pb_grid_item:nth-child(4n) {
    margin-right: 0 !important;
}
.et_pb_gallery_items .et_pb_grid_item {
    width: 23.5% !important;
}

@media all and (max-width: 980px) {
    .et_header_style_left #logo,
    .et_header_style_split #logo {
        max-width: 70% !important;
        margin-top: 10px;
    }
    .et_pb_gallery_items .et_pb_grid_item {
        width: 49% !important;
    }
    .et_pb_gallery_items .et_pb_grid_item:nth-child(4n) {
        margin-right: 2% !important;
    }
    .et_pb_gallery_items .et_pb_grid_item:nth-child(2n) {
        margin-right: 0% !important;
    }
}
@media all and (max-width: 500px) {
    .et_pb_gallery_items .et_pb_grid_item {
        width: 100% !important;
    }
    .et_pb_gallery_items .et_pb_grid_item {
        margin-right: 0% !important;
    }
}

/* home page slider */
.et_pb_slide_description {
  text-align: left
}

.et_pb_slide_description, .et_pb_slider_fullwidth_off .et_pb_slide_description {
  padding: 20% 60% 5% 0;
}

.et_pb_slider .et_pb_container {
  margin: 0;
}

.et_pb_bg_layout_dark .et_pb_slide_description {
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
}

@media only screen and ( max-width: 1025px ){
  .et_pb_slide .et_pb_slide_description {
    visibility: hidden;
  }
}

/* header panels */
.header-content h1 {
  line-height: 1.1em;
}

/* page content */
.et_pb_text h2 {
  font-weight: 700;
  color: #ed008c;
  margin-bottom: 10px;
}

@media only screen and ( max-width: 1025px ){
  .et_pb_fullwidth_header .header-content h1 {
    font-size: 28px !important;
  }
}

.et_pb_gallery_title {
  display: none;
}
.et_pb_grid_item {
  width: 23% !important;
  margin: 0 2% 2% 0 !important;
}

.et_pb_gallery_items:nth-child(4n){
  margin: 0 2% 2% 0 !important;
}

.mfp-arrow::after {
  background-color: #777;
}

#trade-logos a,
#trade-logos img {
  width: 40%;
  vertical-align: middle;
}
#trade-logos a:first-child {
  margin-right: 20%;
}
#hm_trade-logos {
  width: 50%;
  margin: 0 auto !important;
}
#hm_trade-logos #trade-logos a,
#hm_trade-logos #trade-logos img {
  width: 25%;
}
#hm_trade-logos #trade-logos a:first-child {
  margin-right: 50%;
}
@media all and (max-width: 980px) and (min-width: 768px) {
  #trade-logos {
    width: 50%;
  }
}
@media all and (max-width: 980px) {
  #hm_trade-logos #trade-logos a,
  #hm_trade-logos #trade-logos img {
    width: 40%;
  }
  #hm_trade-logos #trade-logos a:first-child {
    margin-right: 20%;
  }
  #hm_trade-logos {
    width: 80%;
    text-align: center;
  }
  #hm_trade-logos #trade-logos {
    margin: 0 auto !important;
  }
}
/* @media all and (max-width: 768px) { */

/* forms */
textarea {
  width: 100% !important; 
}

/* footer */
#footer-info {
  font-size: 80% !important;
  margin-top: 6px;
}

#main-footer .container #footer-widgets {
  display: none;
}

#main-footer .bottom-nav {
  padding: 10px 0 0;
}

#main-footer #footer-bottom {
  padding: 0 0 5px;
}

@media all and (max-width: 980px) {
  #et-footer-nav .container #menu-footer-menu {
    padding: 10px 0 10px;
  }
}

/* 404 page */
body.error404 #main-content .container::before {
  content: none;
}
body.error404 #main-content {
  min-height: 400px;
}

/* monarch adjustment */
.et_monarch .et_social_pinterest_window {
  height: 450px;
}