/*
 Theme Name:   Homely Child
 Theme URI:    https://reactheme.com/products/wordpress/homely
 Description:  Homely Child
 Author:       ReacThemes
 Author URI:   http://reactheme.com
 Template:     homely
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/*
===========
GENERAL
===========
*/

.lds-roller div:after {
  content: " ";
  background: var(--e-global-color-b0bf5dc);
}

/*
===========
LIGHTBOX
===========
*/
.elementor-lightbox .swiper .elementor-swiper-button-next,
.elementor-lightbox .swiper .elementor-swiper-button-prev {
  opacity: 1;
  width: 28px;
  position: absolute;
  top: 0;
  z-index: 10;
  cursor: pointer;
}

.swiper-pagination-fraction {
  position: static;
}

/*
===========
POPUP
===========
*/
.popup-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-overlay .popup-holder {
  display: flex;
  gap: 20px;
  flex-direction: column-reverse;
}

@media (min-width: 992px) {
  .popup-overlay .popup-holder {
    flex-direction: row;
  }
}

.popup-overlay .popup-holder .content-right {
  flex-basis: 300px;
}

.popup-overlay .popup-holder .content-right .badge {
  margin-inline: auto;
  display: block;
  width: 120px;
}

@media (min-width: 992px) {
  .popup-overlay .popup-holder .content-right .badge {
    width: 180px;
  }
}

.popup-overlay .popup-holder .content-right .inner-text * {
  font-size: 12px;
}

.popup-overlay .popup-holder .content-left {
  flex-basis: calc(100% - 300px - 20px);
}

.popup-content {
  background: #fff;
  padding: 20px;
  max-width: 900px;
  width: 90%;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  border-radius: 5px;

  &::-webkit-scrollbar-track {
    background-color: #d2d3d4;
  }

  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-accent);
  }

  /* for Firefox */
  @-moz-document url-prefix() {
    scrollbar-width: thin;
    scrollbar-color: var(--e-global-color-accent) var(--e-global-color-accent);
  }
}

.popup-content img {
  width: 100%;
  height: auto;
}

.popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 30px;
}

.open-popup {
  font-size: 16px;
  background-color: transparent;
  font-family: inherit;
  padding: 0;
  color: var(--e-global-color-text);
}

/*
===========
FORMS
===========
*/

.wpforms-container .wpforms-form a {
  color: var(--e-global-color-accent);
  text-decoration: underline;
}

div.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success]
  > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
  background: var(--e-global-color-accent);
  text-align: center;
}

/*
===========
FOOTER
===========
*/
footer a {
  color: inherit;
}

/*
===========
BLOG
===========
*/
.ps-navigation.custom {
  overflow: hidden;
}

.ps-navigation.custom .headline {
  margin-bottom: 2em;
  font-weight: 500;
}

.custom-post.reactheme__blog__post {
  margin-bottom: 12px;
}

.reactheme__blog__post__meta {
  padding: 20px;
}

.reactheme__blog__post__title {
  font-size: 20px;
  line-height: 1.3 !important;
}

.reactheme__blog__post .gradient-edge-bottom {
  background: linear-gradient(
    0deg,
    var(--e-global-color-15d043e) 0%,
    rgba(16, 60, 59, 0) 100%
  ) !important;
}

/*
===================
REAL ESTATE PLUGIN
===================
*/
.interactive-real-estate .canvas path {
  stroke: var(--e-global-color-accent) !important;
}
