.home .main-content-homepage .article {
  padding-top: 0;
}

.chimney-slider-row,
.chimney-slider-row .panel-grid-cell,
.chimney-slider-row .so-panel,
.chimney-slider-row .widget,
.chimney-slider-row .siteorigin-widget-tinymce {
  margin: 0 !important;
  padding: 0 !important;
}

.chimney-slider-row {
  position: relative;
  left: auto !important;
  z-index: 9;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
}

.chimney-home-slider,
.chimney-home-slider * {
  box-sizing: border-box;
}

.chimney-home-slider {
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
  background: #171717;
  color: #fff;
}

.chimney-home-slider__viewport,
.chimney-home-slider__slide,
.chimney-home-slider__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chimney-home-slider__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
  pointer-events: none;
}

.chimney-home-slider__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chimney-home-slider__background {
  object-fit: cover;
  object-position: center;
}

.chimney-home-slider__overlay {
  position: absolute;
  z-index: 2;
  left: max(20px, calc((100% - 1400px) / 2 + 20px));
  bottom: 300px;
  width: min(var(--overlay-width), calc(100% - 40px));
  padding: 30px 40px;
  border-radius: 20px;
  background: rgba(48, 48, 48, .65);
  text-align: left;
}

.chimney-home-slider__overlay h2 {
  margin: 0;
  color: #fff;
  font-family: "bodoni-urw", "Bodoni URW", Bodoni, Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  text-transform: none;
  text-shadow: 2px 3px 2px rgba(0, 0, 0, .5);
}

.chimney-home-slider__overlay h2::before,
.chimney-home-slider__overlay h2::after {
  display: none;
}

.chimney-home-slider__overlay p {
  margin: 16px 0 0;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  text-shadow: 2px 3px 2px rgba(0, 0, 0, .5);
}

.chimney-home-slider__button {
  display: inline-block;
  margin-top: 8px;
  padding: 0 20px;
  border: 2px solid #c5041f;
  background: #c5041f;
  color: #fff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 44px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.chimney-home-slider__button i {
  margin-left: 5px;
}

.chimney-home-slider__button:hover,
.chimney-home-slider__button:focus {
  border-color: #ff9600;
  background: transparent;
  color: #ff9600 !important;
}

.chimney-home-slider__overlay.chimney-home-slider__overlay--contact {
  top: auto;
  bottom: 225px;
}

.chimney-home-slider__overlay--contact h2 {
  margin-bottom: 8px;
  text-align: center;
}

.chimney-home-slider__form,
.chimney-home-slider__form .wpforms-container {
  margin: 0;
}

.chimney-home-slider__form .wpforms-field {
  padding: 5px 0;
}

.chimney-home-slider__form label,
.chimney-home-slider__form .wpforms-field-label {
  display: block;
  margin: 0 0 3px;
  color: #fff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 20px;
  text-align: left !important;
}

.chimney-home-slider__form input:not([type="hidden"]),
.chimney-home-slider__form textarea,
.chimney-home-slider__form select {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #303030;
}

.chimney-home-slider__form input:not([type="hidden"]),
.chimney-home-slider__form select {
  height: 40px;
}

.chimney-home-slider__form textarea {
  height: 100px;
  min-height: 100px;
}

.chimney-home-slider__form .wpforms-submit-container {
  padding-top: 8px;
  text-align: center;
}

.chimney-home-slider__form button[type="submit"] {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid #c5041f;
  border-radius: 0;
  background: #c5041f;
  color: #fff;
  font-size: 19px;
  line-height: 44px;
}

.chimney-home-slider__form button[type="submit"]:hover,
.chimney-home-slider__form button[type="submit"]:focus {
  border-color: #ff9600;
  background: transparent;
  color: #ff9600;
}

.chimney-home-slider__thumbs {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 255px);
  gap: 50px;
  width: 1170px;
  transform: translateX(-50%);
}

.chimney-home-slider__thumb {
  position: relative;
  width: 255px;
  height: 128px;
  appearance: none;
  text-transform: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 4.2px !important;
  background-image: var(--thumb-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
}

.chimney-home-slider__thumb::before {
  position: absolute;
  z-index: 1;
  inset: -2px;
  border-radius: inherit;
  background: rgba(0, 0, 0, .25);
  content: "";
  transition: background-color .3s ease;
}

.chimney-home-slider__thumb span {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px 35px 20px 20px;
  box-sizing: border-box;
  color: #fff;
  font-family: "bodoni-urw", "Bodoni URW", Bodoni, Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 38px;
  text-align: left;
  text-shadow: none;
  text-transform: none;
  transition: all .3s;
  -webkit-transition: all .3s;
}

.chimney-home-slider__thumb span {
  top: 50% !important;
  height: auto !important;
  padding: 10px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  transform: translateY(-50%) !important;
}

.chimney-home-slider__thumb:hover::before,
.chimney-home-slider__thumb:focus-visible::before,
.chimney-home-slider__thumb.is-active::before {
  background: rgba(0, 0, 0, .75);
}

.chimney-home-slider__thumb:hover,
.chimney-home-slider__thumb:focus-visible,
.chimney-home-slider__thumb.is-active {
  border: 1.5px solid #fff !important;
  outline: 0;
}

.chimney-home-slider__mobile-contact {
  display: none;
}
@media (max-width: 1239px) and (min-width: 992px) {
  .chimney-home-slider {
    height: 768px;
  }

  .chimney-home-slider__overlay {
    left: 20px;
    bottom: 260px;
  }

  .chimney-home-slider__overlay.chimney-home-slider__overlay--contact {
    top: auto;
  bottom: 225px;
  }

  .chimney-home-slider__thumbs {
    gap: 20px;
    width: calc(100% - 40px);
    grid-template-columns: repeat(4, 1fr);
  }

  .chimney-home-slider__thumb {
    width: 100%;
  }


}

@media (max-width: 991px) {
  .chimney-home-slider {
    height: auto;
    aspect-ratio: 1400 / 860;
  }

  .chimney-home-slider__overlay,
  .chimney-home-slider__thumbs {
    display: none;
  }

  .chimney-home-slider__mobile-contact {
    display: block;
    width: 100%;
    padding: 16px 20px 20px;
    background: #ffebcc;
  }

  .chimney-home-slider__mobile-contact h2 {
    margin: 0 0 8px;
    color: #c5041f;
    font-family: "bodoni-urw", "Bodoni URW", Bodoni, Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
    text-align: center;
    text-transform: none;
  }

  .chimney-home-slider__mobile-contact h2::before,
  .chimney-home-slider__mobile-contact h2::after {
    display: none;
  }

  .chimney-home-slider__mobile-contact .chimney-home-slider__form label,
  .chimney-home-slider__mobile-contact .chimney-home-slider__form .wpforms-field-label {
    color: #111 !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 22px !important;
  }

  .chimney-home-slider__mobile-contact .chimney-home-slider__form .wpforms-field {
    padding: 0;
  }

  .chimney-home-slider__mobile-contact .chimney-home-slider__form input:not([type="hidden"]),
  .chimney-home-slider__mobile-contact .chimney-home-slider__form select {
    height: 32px !important;
    min-height: 0 !important;
  }

  .chimney-home-slider__mobile-contact .chimney-home-slider__form textarea {
    height: 60px !important;
    min-height: 60px !important;
  }
  .chimney-home-slider__mobile-contact .chimney-home-slider__form .wpforms-submit-container {
    padding-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chimney-home-slider__slide {
    transition: none;
  }
}