/*
 Theme Name:   LEOS Theme
 Template:     hello-elementor
 Author:       Alexey Kovalevsky
 Version:      1.0.0
*/

[bidi="normal"] .number {
    unicode-bidi: plaintext;
    direction: ltr;
}

.elementor-form-fields-wrapper > .elementor-field-group input[id*="form-field"].elementor-field::placeholder,
.elementor-form-fields-wrapper > .elementor-field-group textarea[id*="form-field"].elementor-field::placeholder
 {
  opacity: 1 !important;
}

@media screen and (width > 991px) {
  .hide-on-desktop {
    display: none !important;
  }
}

body.page-id-37 .hide-on-contact-page {
   display: none !important; 
}

.title-600 {
  max-width: 900px !important;
}

.elementor-field-type-submit {
    margin-inline: auto 0;
}
.simple-card {
  transition: box-shadow 0.35s ease; 
}

.simple-card .elementor-widget-image {
    position: relative;
}
:is(.simple-card, .post-card, .project-card) .elementor-widget-heading > * {
 	transition: color 0.35s ease; 
}

.simple-card .elementor-widget-image a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,0,0,0);
    transition: .35s ease;
    z-index: 2;
  	pointer-events: none;
}

.simple-card:hover .elementor-widget-image a::after {
    background: var(--e-global-color-6df8cb2) !important;
}

:is(.simple-card, .post-card, .project-card):hover .elementor-widget-heading > * {
    color: var( --e-global-color-primary ) !important;
}
.simple-card:hover {
	box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 0%) !important;
}

.post-card {
	box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 0%);
}

.post-card:hover {
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25) !important;
}

.project-card {
	box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 0%);
}

.project-card:hover {
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25) !important;
}

.project-card .elementor-widget-image a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,0,0,0);
    transition: .35s ease;
    z-index: 2;
  	pointer-events: none;
}

.project-card:hover .elementor-widget-image a::after {
    background: var(--e-global-color-5e699a3) !important;
}

.slide-arrow-left {
    transform: translateX(0);
    transition: all 0.3s ease;
}

.project-card:hover .slide-arrow-left {
     transform: translateX(-5px);
}

.mini-post-card .jet-posts__inner-box {
  	transition: all 0.3s ease;
}

.mini-post-card .jet-posts__inner-box:hover {
  	background-color: var(--e-global-color-5e699a3);
}

.geo-card .card-big-pin .elementor-icon svg {
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.geo-card:hover .card-big-pin .elementor-icon svg {
  transform: scale(1.2);
}


.under-title .elementor-heading-title {
    display: inline-flex;
  	flex-direction: row-reverse;
  	white-space: nowrap;
}

.under-title .char {
    display: inline-block;
    transition: opacity 0.3s ease, 
                transform 0.4s ease,
                filter 0.3s ease;
}

.under-title.painting-out .char {
    opacity: 0;
    transform: translateY(10px) scaleY(1.5);
    filter: blur(4px);
}

.under-title.painting-out .char:nth-child(1) { transition-delay: 0s; }
.under-title.painting-out .char:nth-child(2) { transition-delay: 0.03s; }
.under-title.painting-out .char:nth-child(3) { transition-delay: 0.06s; }
.under-title.painting-out .char:nth-child(4) { transition-delay: 0.09s; }
.under-title.painting-out .char:nth-child(5) { transition-delay: 0.12s; }
.under-title.painting-out .char:nth-child(6) { transition-delay: 0.15s; }
.under-title.painting-out .char:nth-child(7) { transition-delay: 0.18s; }
.under-title.painting-out .char:nth-child(8) { transition-delay: 0.21s; }
.under-title.painting-out .char:nth-child(9) { transition-delay: 0.24s; }
.under-title.painting-out .char:nth-child(10) { transition-delay: 0.27s; }
.under-title.painting-out .char:nth-child(11) { transition-delay: 0.30s; }
.under-title.painting-out .char:nth-child(12) { transition-delay: 0.33s; }
.under-title.painting-out .char:nth-child(13) { transition-delay: 0.36s; }
.under-title.painting-out .char:nth-child(14) { transition-delay: 0.39s; }
.under-title.painting-out .char:nth-child(15) { transition-delay: 0.42s; }
.under-title.painting-out .char:nth-child(16) { transition-delay: 0.45s; }

@media screen and (width < 1025px) {
  .under-title .elementor-heading-title{
    width: inherit;
  }
}

/* ---- LINE ---- */
.post-gallery-line .gallery-item img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---- MASONRY + js ---- */

.post-gallery-mansory .gallery {
  position: relative;
  margin: 0;
}

.post-gallery-mansory .gallery-item {
  float: none !important;
  margin: 0 !important;
}

.post-gallery-mansory .gallery-icon {
  width: 100%;
}

.post-gallery-mansory .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.home-gallery-masonry .gallery {
  position: relative;
  margin: 0;
}

.home-gallery-masonry .gallery-item {
  float: none !important;
  margin: 0 !important;
  max-width: unset !important;
  position: absolute;
  overflow: hidden;
}

.home-gallery-masonry .gallery-icon {
  width: 100%;
}

.home-gallery-masonry img {
  display: block;
  width: 100%;
  height: auto;
}

.home-gallery-masonry .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.5);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
  pointer-events: none;
}

.home-gallery-masonry .gallery-item:hover::before {
  opacity: 1;
}

.home-gallery-masonry .gallery-item .gallery-caption {
  display: none; 
}

.home-gallery-masonry .gallery-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: var(--e-global-color-text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  z-index: 2;
  width: 90%;
  line-height: 1.3;
  transition: opacity .3s ease;
  pointer-events: none;
}

.home-gallery-masonry .gallery-item:hover::after {
  opacity: 1;
}

.elementor-editor-active .home-gallery-masonry .gallery {
  position: relative;
  height: auto !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.elementor-editor-active .home-gallery-masonry .gallery-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(33.33% - 8px) !important;
  flex-shrink: 0;
}


.text-on-me img {
    width: 100%;
    object-fit: cover;
}

.text-on-me .gallery-item , .text-on-me .gallery-item .gallery-icon {
  position: relative;
}
.text-on-me .gallery-item .gallery-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.5);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
  pointer-events: none;
}
.text-on-me .gallery-item:hover .gallery-icon::before {
  opacity: 1;
}
.text-on-me .gallery-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: var(--e-global-color-text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  z-index: 2;
  width: 90%;
  line-height: 1.3;
  transition: opacity .3s ease;
  pointer-events: none;
}
.text-on-me .gallery-item:hover::after {
  opacity: 1;
}