/**
 * Place for Project Category styles here.

MAIN

*/
 
/* MAIN */
.js-pager__items {
  list-style: none;
  padding-left: 0;
  text-align: center;
}

.js-pager__items {
    margin-top: 25px;
}

.js-pager__items a {
    color: #333;
    display: inline-block;
    font-family: 'Libre Franklin', sans-serif;
    padding: 20px 35px;
    text-transform: uppercase;
    background: #0A253E;
    border: 1px solid #0A253E;
    color: #fff;
    line-height: normal;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.js-pager__items a:hover {
	background: #000;
    border-color: #000;
    color: #fff;
}

.view-front-project-category {
  position: relative;
}

.view-front-project-category {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}

.view-front-project-category > header {
  grid-column: 1/5;
}

.view-front-project-category:after {
  clear: both;
  content: '\0020';
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  width: 0;
}

.view-front-project-category .views-row {
  float: left;
  margin: 0;
}

.view-front-project-category .inner-wrapper {
  position: relative;
  opacity: 1;
  -webkit-transition: all 0.8s ease;
  transition: all 0.8s ease;
}

.view-front-project-category .view-front-project-category__project-items-media {
  position: relative;
  padding-top: 76%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.view-front-project-category .view-front-project-category__project-items-media:hover .view-front-project-category__front {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.view-front-project-category .view-front-project-category__project-items-media:hover .view-front-project-category__back {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

.view-front-project-category .view-front-project-category__front,
.view-front-project-category .view-front-project-category__back {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform .7s cubic-bezier(.4, .2, .2, 1);
  transition: -webkit-transform .7s cubic-bezier(.4, .2, .2, 1);
  transition: transform .7s cubic-bezier(.4, .2, .2, 1);
  transition: transform .7s cubic-bezier(.4, .2, .2, 1), -webkit-transform .7s cubic-bezier(.4, .2, .2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.view-front-project-category .view-front-project-category__front .view-front-project-category__hover-content,
.view-front-project-category .view-front-project-category__back .view-front-project-category__hover-content {
  padding: 15px 45px;
  -webkit-transform: translateZ(60px);
  transform: translateZ(60px);
}

.view-front-project-category .view-front-project-category__front {
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.view-front-project-category .view-front-project-category__back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.view-front-project-category .view-front-project-category__back .view-front-project-category__featured-image span {
  background: rgba(51, 51, 51, 0.9);
}

.view-front-project-category .view-front-project-category__hover-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: column nowrap;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-content: center;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  right: 0;
  /* width: 100%; */
  height: 100%;
  background-color: rgba(35, 40, 45, 0.6);
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  background: none;
  opacity: 1;
  text-align: center;
  padding: 5px 15px;
  z-index: 2;
  color: #fff;
}

.view-front-project-category .view-front-project-category__hover-content > * {
  display: inline-block;
  opacity: 1;
  -webkit-transition: .3s;
  transition: .3s;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.view-front-project-category__content p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: normal;
}

.view-front-project-category__content a {
  text-transform: inherit!important;
  font-size: 1.4rem!important;
}

.view-front-project-category__hover-content a {
  line-height: 30px;
  /* text-transform: uppercase; */
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: normal;
}

.view-front-project-category .view-front-project-category__featured-image {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
  margin: 0;
}

.view-front-project-category .view-front-project-category__featured-image span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: inline-block;
  z-index: 1;
  -webkit-transition: .3s;
  transition: .3s;
  background: rgba(51, 51, 51, 0.6);
}

.view-front-project-category .view-front-project-category__featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.view-front-project-category a {
  color: #fff;
}

.view-front-project-category a:hover {
  text-decoration: underline;
}

.view-front-project-category .view-front-project-category__link a {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Libre Franklin', sans-serif;
  color: #fff;
  text-transform: uppercase;
  text-decoration: underline;
}

.view-front-project-category .view-front-project-category__link a:hover {
  color: #0A253E;
  text-decoration: underline;
}

.view-front-project-category .view-front-project-category__featured-image:before {
  display: inline-block;
  vertical-align: middle;
  content: "";
  height: 100%;
}

.view-front-project-category .view-front-project-category__featured-image:before {
  display: none;
}

.view-front-project-category .view-front-project-category__project-items-media {
  padding-top: 76%;
}

.view-front-project-category .view-front-project-category__featured-image {
  text-align: center;
}

.view-front-project-category .view-front-project-category__featured-image img {
  display: inline-block;
  vertical-align: middle;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
}

.view-front-project-category .view-front-project-category__featured-image:before {
  display: inline-block;
  content: "";
  height: 100%;
  vertical-align: middle;
}

.view-front-project-category .view-front-project-category__featured-image:before {
  display: none;
}

.view-front-project-category-block {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}

.view-front-project-category-block header {
  grid-row: 1;
  grid-column: 1/5;
}

.view-front-project-category-page .views-infinite-scroll-content-wrapper {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}


@media (min-width: 1201px) {
  .view-front-project-category .views-row:nth-child(4n+1) {
    clear: both;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .view-front-project-category .views-row:nth-child(3n+1)   {
    clear: both;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .view-front-project-category .views-row:nth-child(2n+1) {
    clear: both;
  }
}

/* @media (max-width: 600px) {
  .view-front-project-category .views-row {
    float: none;
    margin: 0 auto 20px;
    width: auto !important;
    max-width: 400px;
  }
} */

.view-front-project-category-in-catalog {
  grid-template-columns: 1fr;
}






/* ADAPTIVE */
@media (min-width: 1920px) {
}

@media (max-width: 1920px) {
}

@media (max-width: 1919px) {
  
  .view-front-project-category__content {
    font-size: 16px;
  }
}

@media (max-width: 1700px) {
  .view-front-project-category__hover-content a {
    font-size: 30px;
  }
}

@media (max-width: 1600px) {
  .view-front-project-category__hover-content a {
    font-size: 28px;
  }
}

@media (max-width: 1550px) {
  .view-front-project-category__content {
    font-size: 14px;
  }
}

@media (max-width: 1440px) {
  .view-front-project-category__hover-content a {
    font-size: 26px;
  }
  .view-front-project-category__content p {
    line-height: 20px;
    font-size: 16px;
  }
}

@media (max-width: 1366px) {
  .view-front-project-category__hover-content a {
    font-size: 24px;
  }
  .view-front-project-category__content p {
    line-height: 18px;
    font-size: 14px;
  }
}

@media (max-width: 1280px) {

}

@media (max-width: 1150px) {
  .view-front-project-category-block {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
  }
  .view-front-project-category-block header {
    grid-column: 1/4;
  }
  .view-front-project-category__content p {
    line-height: 20px;
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .view-front-project-category,
  .view-front-project-category-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
  }
  .view-front-project-category-in-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .view-front-project-category__hover-content a {
    font-size: 22px;
  }
  .view-front-project-category__content p {
    line-height: 18px;
    font-size: 14px;
  }
  .view-front-project-category .view-front-project-category__front .view-front-project-category__hover-content,
  .view-front-project-category .view-front-project-category__back .view-front-project-category__hover-content {
    padding: 5px 25px;
  }
}

@media (max-width: 834px) {
  
}

@media (max-width: 768px) {
  .view-front-project-category-block {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
  .view-front-project-category-block header {
    grid-column: 1/3;
  }
  .view-front-project-category,
  .view-front-project-category-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
  .view-front-project-category-in-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .view-front-project-category {
      line-height: 24px;
  }
  .view-front-project-category__content p {
    line-height: 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .view-front-project-category-block {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
  }
  .view-front-project-category-block header {
    grid-column: 1;
  }
  .view-front-project-category,
  .view-front-project-category-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: 1fr;
  }
  .view-front-project-category__hover-content a {
    font-size: 26px;
  }
  .view-front-project-category__content p {
    line-height: 20px;
    font-size: 16px;
  }
}

@media (max-width: 450px) {

}

@media (max-width: 350px) {
  .view-front-project-category__hover-content a {
    font-size: 20px;
  }
}