/*   
Theme Name: Kostromskoy Domovik
Author: TekMedia
Author URI: https://tekmedia.ru
*/



.portfolio .project-item__footer {
  width: 100%;
}

.review-item-container {
  position: relative;
  padding-bottom: 67%;
}

.review-item-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
}

span.header-menu {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 1;
  font-size: 30px;
  color: #fff;
  background-color: rgba(0, 0, 0, .4);
  padding: 6px;
  border-radius: 4px;
}

@media(min-width: 767px) {
  span.header-menu {
    display: none;
  }
}

.offcanvas-header {
  padding: 30px;
}

.offcanvas-title {
  font-size: 24px;
  line-height: 1.2;
}

.offcanvas-body {
  padding: 0 30px 30px;
}

.offcanvas-address,
.offcanvas-worktime,
.offcanvas-phones {
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.offcanvas-address i,
.offcanvas-worktime i,
.offcanvas-phones i {
  margin-right: 15px;
  margin-top: 5px;
}

.offcanvas-phones span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.offcanvas-phones span a {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.offcanvas-menu ul li {
  padding-bottom: 10px;
}

.offcanvas-menu ul a {
  color: #000;
  text-decoration: none;
}

.offcanvas-menu .sub-menu {
  margin-top: 10px;
  list-style: none;
  padding-left: 20px;
}

@media(max-width: 767px) {
  .header .view .div {
    width: 100%;
    padding-left: 15px;
  }

  .header>.view .logo {
    width: 220px;
    height: auto;
  }

  .header>.view .text-wrapper {
    font-size: 14px;
  }
}

.fancybox-slide--iframe .fancybox-content {
  /*min-width: 600px !important;*/
  min-height: 600px !important;
  max-width: 80%;
  max-height: 80%;
  width: auto !important;
  margin: 0;
}


.portfolio-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 230px);
  gap: 23px;
  grid-template-areas:
    "big big norm1 norm2"
    "big big norm3 norm4";
}

.portfolio-item {
  overflow: hidden;
  position: relative;
}

.portfolio-item:first-child::after {
  background-size: 32px auto;
}

.portfolio-item:first-child {
  grid-area: big;
}

.portfolio-item:nth-child(2) {
  grid-area: norm1;
}

.portfolio-item:nth-child(3) {
  grid-area: norm2;
}

.portfolio-item:nth-child(4) {
  grid-area: norm3;
}

.portfolio-item:nth-child(5) {
  grid-area: norm4;
}

.portfolio-item-container {
  width: 100%;
  height: 100%;
}

.portfolio-item-container img {
  width: 100%;
  min-height: 100%;
}

.portfolio-item-body {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  text-decoration: none;
  right: 0;
  padding: 40px 20px 20px;
}

.portfolio-item-title {
  font-size: 22px;
  font-weight: 600;
}

.portfolio-item-place {
  margin-top: 10px;
}