/*
 Theme Name:   Avada-child
 Description:  This child theme is for professional usage of EP7
 Author:       Kevin Pellet
 Author URI:   https://ilphrin.com
 Template:     Avada
 Version:      1.0.0
 License:      GNU General Public License v3 or later
 License URI:  http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  avada-child
*/

/* Overrife fusion css */

#content {
  margin-bottom: 30px;
}

.fusion-rollover {
  position: absolute;
  z-index: 10;
  width: 100.1% !important;
  background-image: initial !important;
  opacity: 0.25 !important;
}

.fusion-rollover-content h4 {
  display: none !important;
}

.fusion-rollover-content .fusion-rollover-title {
  font-size: 18px !important;
  max-width: 91%;
  position: absolute;
  left: 5%;
  top: 30%;
  text-align: left;
  font-family: 'Reg_Sporting_Grotesque-Regular' !important;
}

.fusion-rollover-title a {
  color: #fff !important;
  word-wrap: break-word;
  width: 100%;
}

article .flex-active-slide {
  z-index: auto !important;
}

.slides:hover .flex-active-slide .fusion-image-wrapper .fusion-rollover {
  opacity: 1;
  transform: translateX(0);
  -webkit-transform-style: preserve-3d;
}

.fusion-blog-layout-grid .fusion-post-wrapper {
  border: none !important;
}

#posts-container {
  top: 40px;
}

/* End override fusion css */


.post_acf_metadata {
  font-size: 15px;
  font-weight: bold;
  position: absolute;
  width: 100%;
  width: 100%;
  height: 100%;
}

.post_acf_metadata div {
  z-index: 10;
}

.ep7_block {
  border: 4px solid #FF4D49;
  color: #FF4D49;
  background-color: white;
  padding: 5px;
  margin: 0;
}

.ep7_block *, #filter_posts label {
  display: inline-block;
}

.ep7_block_fill {
  background-color: #FF4D49;
  color: white !important;
  padding-left: 7px;
  margin: 0;
}

.ep7_block_white {
  border: none;
  color: black !important;
  font-weight: normal;
  font-size: 14px;
}

.ep7_block, .ep7_block_white, .ep7_block_fill {
  padding-top: 3px;
}

.post_acf_metadata .date_evenement {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  top: 16px;
  right: 3%;
  height: 23%;
  min-width: 75px;
  min-height: 75px;
  width: 23% !important;
  font-family: "Reg_Sporting_Grotesque-Regular";
}

.post_acf_metadata .date_evenement .day_evenement {
  display: block;
  height: 100%;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  padding-left: 10%;
  padding-top: 10px;
}

.post_acf_metadata .short_title {
  height: 60px;
  line-height: 52px;
  padding-left: 25px;
  padding-right: 25px;
  position: absolute;
  left: 0px;
  bottom: -1px;
  width: 100% !important;
  margin: 0;
  font-size: 14px;
  font-family: 'Reg_Sporting_Grotesque-Regular';
}

.post_acf_metadata .short_title p {
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

.ep7-rollover-price, .ep7-rollover-heure {
  position: absolute;
  display: inline;
  width: auto !important;
  padding-bottom: 1px;
  margin: 0;
  font-family: "Reg_Sporting_Grotesque-Regular";
  font-size: 18px;
  line-height: 1em;
  padding-bottom: 10px;
  padding-top: 13px;
  padding-left: 20px;
  padding-right: 20px;
}

.ep7-rollover-price {
  left: 3%;
  top:  3%;
}

.post.ep7-rollover-heure {
  right: 3%;
  bottom: 3%;
  margin-bottom: 0;
}

.ep7_block_white {
  border: none !important;
}

.category_evenement.ep7_block_white {
  position: absolute;
  bottom: 45px;
  font-family: "Roboto Condensed";
  z-index: 20;
  right: 3.5%;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  width: auto !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
}

.category_evenement.ep7_block_white p {
  margin: 0;
  height: 26px;
  line-height: 24px;
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 20px;
}


.flex-post .ep7-post-header {
  float: left;
  width: 43%;
  margin-right: -43%;
}

.flex-post .post-content {
  float: right;
  position: relative;
  z-index: 1;
  background: white;
  width: 65%;
  margin-top: 50px;
  padding-top: 50px;
  padding-left: 50px;
  padding-right: 50px;
  min-height: 50vw;
}

.flex-post .post-content p {
  font-size: 16px;
  font-family: "Roboto Condensed";
}

#post_title_short {
  font-size: 24px;
}


.fusion-post-slideshow {
  max-width: 100% !important;
  max-height: 100% !important;
}
.fusion-post-slideshow img {
  max-width: 100% !important;
  max-height: 100% !important;
}

.flex-post h1 {
  text-transform: uppercase;
  margin-bottom: 15px;
}

#post_metadata {
  width: 80%;
}

#post_metadata a {
  font-size: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

#post_metadata .ep7_block_fill {
  padding-top: 15px;
  padding-bottom: 12px !important;
  padding-left: 25px;
  padding-right: 25px;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  font-weight: bold;
}

a#post_button_first, a#post_button_second {
  display: block;
  font-weight: normal;
  width: 100%;
  font-family: 'Reg_Sporting_Grotesque-Regular';
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 18px;
  padding-top: 20px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 10px;
}

#post_button_first {
  padding-left: 5%;
}

#post_button_second {
  padding-right: 5%;
}

#post_price {
  display: inline-block;
  padding-top: 16px;
  padding-bottom: 13px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 18px;
  margin-bottom: 50px;
}

#post_hour, #post_date {
  font-weight: normal;
  display: inline-block;
  width: 100%;
  line-height: 1em;
  font-size: 18px;
  font-family: "Roboto Condensed";
}

#post_date {
  margin-bottom: 0;
}

#post_hour {
  margin-top: 5;
  margin-bottom: 40px;
}

#post_button_first {
  float: left;
}

#post_button_second {
  float: right;
  text-align: right;
}


#filter_posts {
  font-family: "Roboto Condensed";
  font-weight: normal;
}

#filter_posts input[type="radio"], #filter_posts input[type="checkbox"] {
  display: none;
}

#filter_posts label {
  cursor: pointer;
  display: inline;
  padding-right: 11px;
}

.flex-form.flex-lesser div {
  margin-right: 30px;
  margin-top: 15px;
  font-size: 18px;
}

.flex-form label {
  height: 15px;
  font-size: 18px;
}

.flex-form.flex-lesser label {
  height: 35px;
  font-size: 18px;
}

.flex-form .ep7_block:first-of-type {
  margin-left: 0;
}

.flex-form .ep7_block:last-child {
  margin-right: 0;
}

.ep7_checkbox::before {
  display: inline-block;
  content: ' ';
  width: 9px;
  cursor: pointer;
  height: 9px;
  background: transparent;
  transition: background .3s;
  border: 2px solid black;
  margin-right: 3px;
}

.ep7_checkbox_checked::before {
  background: black;
}
.hide_post {
  display: none !important;
}

.flex-form {
  display: flex;
  width: 100%;
  font-size: 11px;
  text-align: right;
}

.flex-form .ep7_block {
  display: block;
  width: 100%;
  margin: 12px;
}

.ep7_radio {
  background-color: blue;
}

.ep7_radio_fill {
  color: purple;
}

.mobile_content {
  display: none !important;
}

@media (max-width: 800px) {
  .flex-post .ep7-post-header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
  #post_metadata {
    width: 100%;
    height: 140px;
  }
  .flex-post .post-content {
    float: none;
    width: 100%;
    position: static;
    z-index: unset;
    padding-left: 0;
    padding-right: 0;
    margin-top: 100px;
  }
  #filter_posts .flex-form:first-child {
    flex-direction: column;
  }

  .flex-form.flex-lesser {
    display: none;
  }

  #filter_posts .ep7_block {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .fusion-flexslider.flexslider.post-slideshow.fusion-post-slideshow {
    margin-left: auto;
    margin-right: auto;
  }

  .mobile_content {
    display: inline-block !important;
  }

  .no_mobile_content {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .fusion-rollover-content .fusion-rollover-title, .post_acf_metadata .short_title  {
    font-size: 14px !important;
  }
}