/* IP Communities */

.page-template-template-communities .container {
  width: 100%;
}

.ip-communities-wrap {
  position: relative;
  display: block;
  margin: 0 0 0;
}

.ip-comm-row {
  position: relative;
  padding: 0 15px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.ip-comm-item {
  position: relative;
  flex: 0 0 49.18%;
  margin-bottom: 50px;
}

.ip-comm-item::after {
  content: '';
  display: block;
  width: 2px;
  height: 20px;
  position: absolute;
  bottom: -20px;
  left: 29px;
  z-index: 2;
  background: #cccccc;
}

.ip-comm-item a {
  position: relative;
  display: block;
  overflow: hidden;
}

.ip-comm-item a::after {
  content: '';
  display: block;
  width: 100%;
  height: 240px;
  position: absolute;
  bottom: 0;
  z-index: 1;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.6) 100%);
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.6) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.6) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#99000000', GradientType=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.ip-comm-item a::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  opacity: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.ip-comm-img {
  position: relative;
  display: block;
}

.ip-comm-img canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ip-comm-img img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.ip-comm-item a:hover .ip-comm-img {
  overflow: hidden;
}

.ip-comm-item a:hover .ip-comm-img img {
  transform: scale(1.1);
}


.ip-comm-item a:hover::after {
  opacity: 0;
}

.ip-comm-item a:hover::before {
  opacity: 1;
}

.ip-comm-item a:hover .ip-comm-desc {
  bottom: 0px;
}

.ip-comm-item a:hover .ip-comm-btn {
  opacity: 1;

}

.ip-comm-item a:hover .ip-comm-desc::after {
  height: 80px;
  bottom: -10px;
}

.ip-comm-desc {
  position: absolute;
  bottom: -43px;
  left: 50px;
  z-index: 2;
}

.ip-comm-desc::after {
  content: '';
  display: block;
  width: 2px;
  height: 76px;
  position: absolute;
  bottom: 23px;
  left: -21px;
  z-index: 2;
  background: #cccccc;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.ip-comm-desc .ip-comm-title {
  position: relative;
  color: #ffffff;
  letter-spacing: 7px;
  margin-bottom: 60px;
  text-transform: uppercase;
  font: 500 22px 'Montserrat', sans-serif;
}

.ip-comm-item a:hover .ip-comm-desc .ip-comm-title {
  margin-bottom: 40px;
}

.ip-comm-btn {
  position: relative;
  width: 180px;
  height: 47px;
  padding: 11px 0;
  margin-left: 22px;
  text-align: center;
  border: 1px solid #ffffff;
  opacity: 0;
  display: none;
}

.ip-comm-btn span {
  color: #ffffff;
  text-transform: uppercase;
  font: 500 15px 'Montserrat', sans-serif;
}


@media(max-width:991px) {
  .ip-comm-desc-item.right .ip-comm-img {
    margin-bottom: 20px;
  }
}

/* End of IP Communities */