.path-frontpage .lp-hero {
  --hero-parallax-height: clamp(520px, 85vh, 820px);
}

.lp-hero {
  --hero-parallax-height: clamp(520px, 75vh, 820px);
  height: var(--hero-parallax-height);
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-inline: auto;
  isolation: isolate;
  contain: paint;
}

.lp-hero > .row:first-of-type {
  height: 100%;
}

.lp-hero>.container {
  height: auto;
  max-width: 1430px;
  position: absolute;
  left: 15px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lp-hero video,
.lp-hero .hero-image {
  position: absolute;
  width: 100%;
  object-fit: cover;
  will-change: transform;
  
  transform-origin: center top;
  pointer-events: none;
  display: block;
  backface-visibility: hidden;
}
  
.lp-hero video {
  inset: 0;
  height: 100% !important;
  transform: translate3d(0,0px,0);
}
   
.lp-hero .hero-image  {
  inset: 0;
  height: 100% !important;
  transform: translate3d(0, 0px,0);
  contain: paint;
}

.lp-hero .column-container {
  width: 100%;
  justify-content: space-between;
}

.lp-hero .container .right-column {
  display: flex;
}

.lp-hero .container .right-column > div{
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  flex: 0 0 100%;
  flex-direction: column;
}

.lp-hero .container .left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.lp-hero .container .right-column>div>p {
  margin-top: 2.1875rem;
  position: relative;
  z-index: 1;
}

.lp-hero .right-column h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.75rem;
  max-width: 350px;
  margin: 0 auto;
}

.lp-hero .container .right-column .btn-lg.btn-primary,
.lp-hero .container .right-column .btn-secondary {
  font-size: 1.125rem !important;
  padding: 0 2.5rem !important;
  position: relative;
  z-index: 1;
  border: none !important;
  line-height: 3.5rem !important;
  min-height: auto !important;
  margin-top: 1.5rem !important;
}
  
.lp-hero .container .right-column .btn-lg.btn-primary.btn-white,
.lp-hero .container .right-column .btn-secondary.btn-white {
  background-color: #fff !important;
  color: #262626 !important;
  transition: all .3s ease-in-out;
}

.lp-hero .container .right-column .btn-lg.btn-primary.btn-white:hover,
.lp-hero .container .right-column .btn-lg.btn-secondary.btn-white:hover{
  background-color: #ed002f !important;
  color: #fff !important;
  border: none !important;
}

.lp-hero .cta-buttons-propertytype {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: unset !important;
}

.lp-hero .cta-buttons-propertytype .cta-button-property {
  background-color: transparent;
}

.lp-hero .cta-buttons-propertytype .cta-button-property {
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: content-box;
}

.lp-hero a[href*=tel] {
  pointer-events: none;
}

.lp-hero.form-clean .webform-submission-form {
  max-width: 320px;
  margin: auto;
  color: #fff;
  position: relative;
  padding-right: 0 !important;
}

.lp-hero.form-clean label.visually-hidden {
  display: none;
}

.lp-hero.form-clean form input[type='text'],
.lp-hero.form-clean form input[type='tel'] {
  background-color: transparent;
  text-align: center;
  border: none;
  box-shadow: none;
  border-radius: 0 !important;
  position: relative;
  color: #fff !important;
  font-size: 1.125rem;
  letter-spacing: .025em;
  /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
  text-align: left;
  padding: 15px 20px 13px;
}

.lp-hero.form-clean input#edit-phone:focus,
.lp-hero.form-clean input#edit-phone:focus-visible {
  outline: none;
}


.lp-hero.form-clean .form-actions {
  margin: 0 !important;
}

.lp-hero.form-clean .form-item-phone {
  position: relative;
  margin: 1rem 0 0 !important;
}

.lp-hero.form-clean .form-item-phone:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 15px;
  top: 40px;
  left: 0;
  z-index: 0;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 15px;
  clip-path: inset(10px 0 0);
}

.lp-hero.form-clean .form-submit {
  margin: 0 auto;
  border-radius: 3.125rem;
  background-color: #fff;
  border: none;
  color: #262626 !important;
  padding: 0 1.25rem;
  margin-top: 0;
  height: 2rem;
  line-height: 1;
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: auto !important;
  text-transform: initial;
}


.lp-hero.form-clean .form-submit:hover {
  background-color: #ed002f !important;
  color: #fff !important;
  border: none !important;
}

.lp-hero.form-clean form input[type='text']::-webkit-input-placeholder,
.lp-hero.form-clean form input[type='tel']::-webkit-input-placeholder {
  color: #fff !important;
  /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);*/
}

.lp-hero.form-clean form input[type='text']::-moz-placeholder,
.lp-hero.form-clean form input[type='tel']::-moz-placeholder {
  color: #fff;
  /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);*/

}
  

.lp-hero.form-clean .form-item.messages-box .messages-inner-wrapper {
  margin: 1.5625rem 0 0;
  background: transparent;
  color: white;
  font-size: .75rem;
  padding: 0 1.875rem;
  text-align: center;
  width: 100%;
}
  
.lp-hero.form-clean .form-item.messages-box .message-notice .messages-inner-wrapper {
  margin: 1.5625rem 0;
  font-size: 1rem;
  padding: 0;
  line-height: 1.5;
}


.lp-hero.form-clean form input:-webkit-autofill,
.lp-hero.form-clean form input:-webkit-autofill:hover,
.lp-hero.form-clean form input:-webkit-autofill:focus,
.lp-hero.form-clean form textarea:-webkit-autofill,
.lp-hero.form-clean form textarea:-webkit-autofill:hover,
.lp-hero.form-clean form textarea:-webkit-autofill:focus,
.lp-hero.form-clean form select:-webkit-autofill,
.lp-hero.form-clean form select:-webkit-autofill:hover,
.lp-hero.form-clean form select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
}
  
.lp-hero .video-buttons {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 36px;
  height: 36px;
  z-index: 3;
}
  
.lp-hero .video-play {
  opacity: 0;
}

.lp-hero .video-pause {
  opacity: .65;
}

.lp-hero .video-play,
.lp-hero .video-pause {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.lp-hero .video-play.fade-out,
.lp-hero .video-pause.fade-out {
  animation: fade-out .3s forwards;
  z-index: 0;
}

.lp-hero .video-play.fade-in,
.lp-hero .video-pause.fade-in {
  animation: fade-in .3s forwards;
  z-index: 1;
}


@keyframes fade-out {
  0% {
      opacity: .65;
  }

  100% {
      opacity: 0;
  }
}

@keyframes fade-in {
  0% {
      opacity: 0;
  }

  100% {
      opacity: .65;
  }
}


.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ljusa bilder → mörk overlay */

.hero-overlay-dark::before {
  background: rgba(0,0,0,0.25);
}

/* mörka bilder → ljus overlay */

.hero-overlay-light::before {
  background: rgba(255,255,255,0.25);
}

/* ingen overlay */

.hero-overlay-none::before {
  background: transparent;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .lp-hero .cta-buttons-propertytype {
    grid-template-columns: repeat(2, 125px);
    justify-content: center;
  }
}


@media (max-width: 991px) {
  .lp-hero {
    --hero-parallax-height: clamp(520px, 85vh, 820px);
  }

  .lp-hero > .container {
    bottom: 20px;
    transform: unset;
    top: unset;
  }
    
  .lp-hero .container .right-column {
    margin: 0 auto;
  }
  
  .lp-hero .container .left-column > div {
    margin-bottom: 2rem;
  }

  .lp-hero .container .left-column h2,
  .lp-hero .container .left-column p {
    text-align: center;
    max-width: 600px !important;
    margin: 0 auto;
  }
  
  .lp-hero .video-buttons {
    right: 5px;
    bottom: 10px;
  }
  
  .lp-hero a[href*=tel] {
    pointer-events: auto;
  }


  .lp-hero.form-clean .webform-submission-form {
    margin-top: 0;
    position: relative;
    padding-bottom: 0;
  }

  .lp-hero.form-clean form input[type='text'],
  .lp-hero.form-clean form input[type='tel'] {
    text-align: left !important;
  }


  .lp-hero.form-clean .webform-submission-form .form-wrapper {
    width: fit-content !important;
  }

  .lp-hero.form-clean .form-submit {
    position: absolute;
    right: 10px;
  }
 

}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ljusa bilder → mörk overlay */

.hero-overlay-dark::before {
  background: rgba(0,0,0,0.25);
}

/* mörka bilder → ljus overlay */

.hero-overlay-light::before {
  background: rgba(255,255,255,0.25);
}

/* ingen overlay */

.hero-overlay-none::before {
  background: transparent;
}

@media (max-width: 768px) {
  
  .lp-hero video,
  .lp-hero .hero-image {
   inset: 0;
   height: 100% !important;
   transform: translate3d(0,0,0) !important;
  }
  
}

@media (max-width: 576px) {
  .lp-hero .cta-buttons-propertytype {
    grid-template-columns: repeat(2, 125px);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lp-hero,
  .path-frontpage .lp-hero {
    --hero-parallax-height: clamp(667px, 105vh, 820px);
  }
  
  .lp-hero .container .right-column .btn-lg.btn-primary,
  .lp-hero .container .right-column .btn-lg.btn-secondary {
    font-size: 1rem !important;
    margin-top: 1.25rem !important;
    line-height: 3.375rem !important;
  }
    
  .lp-hero .video-play, .lp-hero .video-pause {
    bottom: 15px;
    right: 15px;
  }
  
  .lp-hero .container .right-column {
    padding-inline: 0 !important;
  }
  
  .lp-hero .cta-buttons-propertytype {
    grid-template-columns: repeat(2, 125px);
    justify-content: center;
  }
  
  .lp-hero .cta-buttons-propertytype .cta-button-property {
    height: 60px;
  
  }

  
  .lp-hero.form-clean .webform-submission-form {
    max-width: 300px;
  }
  
   @supports (height: 100svh) {
    .lp-hero,
    .path-frontpage .lp-hero {
      --hero-parallax-height: clamp(700px, 110svh, 820px);
    }
  }
}

/*@media (max-width: 375px) and (max-height: 600px) {
  .path-frontpage .lp-hero {
    --hero-parallax-height: clamp(667px, 120vh, 820px);
  }
  
  .lp-hero {
    --hero-parallax-height: clamp(667px, 100vh, 820px);
  }
  
  @supports (height: 100svh) {
    .path-frontpage .lp-hero {
      --hero-parallax-height: clamp(667px, 140svh, 820px);
    }
  }
}*/
