/*!
Theme Name: iota
Theme URI: http://underscores.me/
Author: devcoffee
Author URI: http://devcoffee.com.ua
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: iota
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

iota is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/



.page-template-gallery-full .dialog-off-canvas-main-canvas,
.page-template-gallery_single .dialog-off-canvas-main-canvas,
.page-template-uslugi .dialog-off-canvas-main-canvas,
.page-template-default .dialog-off-canvas-main-canvas {
  margin: 150px 0px 0px;
}

.page-front .dialog-off-canvas-main-canvas {
  margin: unset;
}

.page-template-default h1 {
  text-align: center;
}

.scroll-top__wrapper {
  position: fixed;
  top: unset !important;
  bottom: 170px;
}


.center {
  text-align: center;
}

.mod_gallery .field-paragraph-icon::before {
  content: unset
}


.mod_gallery .front {
  padding: unset;
}



.mod_gallery .field-paragraph-icon {
  width: 100%;
  height: 297px;
}


.mod_gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}


.field-paragraph-icon {
  width: unset;
  height: unset;
}


.parent {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 50px;
  grid-row-gap: 0px;
/*margin-bottom: 30px;*/
  margin: 30px 0px 0px 0px;
}

.box_items {
  display: flex;
  flex-direction: column;
  gap: 30px
}

/* .left {
      flex-basis: 250px;
    }

    .right {
      flex-basis: 200px;
    }

    .main {
      flex-grow: 1;
    } */


/* //box */

.box_item {
  position: relative;
}

.left {
  cursor: pointer;
}

.box_item::before {
  height: 0.25rem;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: #eb3433;
  z-index: 1;
  transition: 0.2s;
}

.box_item:hover::before {
  height: 0;
}




.box_item .image {
  position: relative;
  overflow: hidden;
}

.box_item .image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, #0c0c0c 0%, rgba(12, 12, 12, 0) 100%);
  opacity: 0.9;
  transition: 0.4s;
}

.box_item .container {
  padding: 2rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.box_item .field-block-paragraph__item[style*="visible"] .field-paragraph-title {
  color: #ffffff;
  transition-delay: 0.8s;
}

.box_item .field-block-paragraph__item[style*="visible"] .field-paragraph-title::before {
  width: 0;
  transition-delay: 0.8s;
  transition: 1s;
  opacity: 1;
}

.box_item .field-paragraph-button {
  position: static;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "FranklinGothic", "Arial", "Helvetica", "sans-serif";
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: none;
  outline: none;
  transition: 0.2s;
  user-select: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 15px 25px;
  background: #eb3433;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  margin-top: 0.75rem;
}

.box_item:hover .field-paragraph-button {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}


.mod_gallery {
  margin-bottom: 30px;
}

.page-template-uslugi-php .parent {
  grid-template-columns: 1fr 4fr;
}

.main p{
  font-size: 1.1em;
}

@media(max-width:1024px) {
  .form .field-block-background::before {
    background: #0c0c0c;
  }

  .parent ,
 .page-template-uslugi-php .parent {
    grid-template-columns: 1fr;
  }

  .box_items {
    display: flex;
    flex-wrap: wrap;
    flex-direction: unset;
    margin: 0 -5px -5px;
    gap: 10px;
  }

  .box_item {
    width: 49%;
  }

  .right {
    margin-top: 20px;
  }

  .box_items {}
}

@media (max-width:768px) {
  .box_item {
    width: 100%;
  }
}

@media (max-width:768px) {

  .page-template-gallery-full .dialog-off-canvas-main-canvas,
  .page-template-uslugi .dialog-off-canvas-main-canvas,
  .page-template-gallery_single .dialog-off-canvas-main-canvas,
  .page-template-default .dialog-off-canvas-main-canvas {
    margin: 10px 0px 0px;
  }
}



.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  margin-bottom: 30px;
}

.gallery div {
  max-height: 475;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media(max-width:768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}