/*
Theme Name:   Divi Child
Theme URI:    http://www.elegantthemes.com/gallery/divi/
Description:  A Divi Child Theme
Author:       Mirko Schubert
Author URI:   https://mirkoschubert.de
Template:     Divi
Version:      1.3.0
License:      GNU General Public License version 3.0
License URI:  http://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  divi-child
Domain Path:  /languages
*/

/* For adding CSS rules to this file please use the .child class! */

/**
 * SPLIT SECTION FIX
 */

 @media screen and (max-width: 980px) {
  .child .split-section-fix .et_pb_column.et_pb_column_empty {
    display:block;
    min-height: 60vw;
  }

  .child .split-section-fix .et_pb_row:nth-child(2n) {
    display: flex;
    flex-direction: column-reverse;
  }

  .child .split-section-fix .et_pb_column {
    padding-left: 16%;
    padding-right: 16%;
  }

  .child .split-section-fix .et_pb_column .et_pb_text_align_right {
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .child .split-section-fix .et_pb_column {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/**
 * THEME BUILDER HEADER FIX
 * @since 1.2.0
 */

 /* Setup new header id instead of #main-header @since Divi 4.2.2 */
 .child.et-db #et-boc .et-l--header {
  position: relative;
  z-index: 99999;
  top: 0;
  width: 100%;
  transition: background-color .4s, opacity .4s ease-in-out;
}

/* Set it fixed (for every device) */
.child.et_fixed_nav #et-boc .et-l--header {
  position: fixed;
}

/* Fix non adjustable row in fullwidth menu both in frontend and theme builder */
.child.et-db #et-boc .et-l .et_pb_fullwidth_menu .et_pb_row {
  width: 100%;
  margin: 0;
  padding: 0 !important;
}

/* Offset, when logged in */
.child.admin-bar.et_fixed_nav #et-boc .et-l--header {
  top: 32px;
}

/* Offset when logged in and mobile */
@media screen and (max-width: 782px) {
  .child.admin-bar.et_fixed_nav #et-boc .et-l--header {
    top: 46px;
  }
}

/* Set admin bar to fixed in mobile view */
@media screen and (max-width: 600px) {
  .child.admin-bar.et_fixed_nav #wpadminbar {
    position: fixed;
  }
}

/* Adjust search file in fullwidth menu */
.child.et-db #et-boc .et-l .et_pb_fullwidth_menu .et_pb_menu__search {
  padding: 0 2rem;
  background-color: transparent;
}

.child.et_fixed_nav.et_secondary_nav_enabled #page-container {
  padding-top: 80px;
}
