body.custom-background {
  background-color: #6a0105;
  background-image: url("/wp/wp-content/uploads/2013/05/fd3_fauteuil.png");
  background-position: left top;
  background-repeat: repeat-x;
  background-attachment: fixed;
}

.menu-toggle {
  display: none;
}

#masternav ul li.current-menu-item > a {
  color: #d94f1e;
}

iframe[src*="youtube.com"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1em 0;
  clear: both;
}

.gallery a {
  display: block;
  padding: 4px;
  background: #fff;
  border: 1px solid #a9a9a9;
}

.gallery img {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
}

#lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}

#lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

#lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
}

#lightbox form {
  position: absolute;
  top: 4px;
  right: 4px;
}

#lightbox button {
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  cursor: pointer;
  background: #fff;
  color: #741018;
}

.portfolio-item[hidden] {
  display: none;
}

.contact-form {
  margin-left: 177px;
}

.contact-website {
  position: absolute;
  left: -10000px;
}

.form-placeholder,
.form-status {
  font-weight: bold;
  color: #741018;
}

@media only screen and (max-width: 1060px) {
  #wrap {
    width: auto;
    margin: 0 16px;
    padding: 10px 16px 0;
  }

  #masternav .sf-menu a {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media only screen and (max-width: 767px) {
  body {
    margin-top: 16px;
  }

  #wrap {
    width: auto;
    margin: 0 8px;
  }

  #logo,
  #masternav {
    float: none;
  }

  #masternav {
    height: auto;
    line-height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
  }

  #masternav ul,
  #masternav.open ul {
    display: none;
  }

  #masternav.open ul {
    display: block;
  }

  #masternav ul li {
    float: none;
    display: block;
  }

  #masternav ul li a {
    color: #fff;
    display: block;
    padding: 0 5px;
  }

  .alignleft,
  .alignright,
  img.alignleft,
  img.alignright {
    float: none;
    display: block;
    margin: 10px auto !important;
  }

  .portfolio-item {
    width: 100%;
    max-width: 230px;
  }

  #single-portfolio-left,
  #single-portfolio-right,
  #sidebar,
  .post {
    float: none;
    width: auto;
  }

  .contact-form {
    margin-left: 0;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

.home .post {
  width: 100%;
}

.home img.wp-image-1149 {
  max-width: 100%;
  height: auto;
}

.entry img,
.post img {
  height: auto;
}

@media only screen and (max-width: 1060px) {
  #footer {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

.flexslider .slides > li {
  display: block;
}
