﻿.cd-clearfix:before,
.cd-clearfix:after {
  content: "";
  display: table;
}

.cd-clearfix:after {
  clear: both;
}

.featured-section-posts {
  float:left; 
  width: 100%;
  border-bottom: 1px solid #c3c2c3;
}

.featured-section-posts-heading {
  font-size: 23px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 1px solid #c3c2c3;
  -webkit-transition: 0.4s ease-out;
  -moz-transition: 0.4s ease-out;
  transition: 0.4s ease-out;    
}

.featured-section-posts-heading:hover {
  opacity: 0.8;
}

.featured-section-posts-heading span {
  color: #c08f65;
}

.featured-section-item {
  display: block;
  float: left;
  width: calc( 33.333% - 27px );
  position: relative;
  padding-bottom: 25%;
  margin-bottom: 40px;
  overflow: hidden;
}

.featured-section-item:nth-child(3n+2) {
  margin: 0 40px;
}

.featured-section-item-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: 0.5s ease-out;
  -moz-transition: 0.5s ease-out;
  transition: 0.5s ease-out;
}

.featured-section-item:hover .featured-section-item-image {
  -moz-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.featured-section-item:hover .featured-section-item-title:before {
  width: 90%;
}


.featured-section-item-title {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  color: #c08f65;
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 16px 0;
  min-height: 76px;
  width: 100%;
}

.featured-section-item-title:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0.8;
  z-index: -1;
  position: absolute;
  left: 50%;
  bottom: 0;  
  -moz-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: 0.4s ease-out;
  -moz-transition: 0.4s ease-out;
  transition: 0.4s ease-out;  
}



/**
 *
 * Highlight Posts in Categories
 *
 */

.highlight-category-posts {
  margin-top: 15px;
  margin-bottom: 10px;
  border-left: 1px solid #c3c2c3;
  border-bottom: 1px solid #c3c2c3;
  padding-left: 25px;
}

.highlight-category-posts-heading {
  margin-top: 0;
  letter-spacing: 0.160em;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.highlight-category-wrapper {
  margin: 0 -20px;
}


.highlight__item {
  margin-bottom: 40px;
  float: left;
  width: 25%;
  padding: 0 20px;
  position: relative;
}

.highlight__item-link {
  display: block;
  overflow: hidden;
  padding-bottom: 160%;
  position: relative;
  -moz-transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: none;  
}


.highlight__item-image {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top:0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;    
}


.highlight__item-link:hover .highlight__item-image {
  transform: scale(1.1);
}


.highlight__item-image:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0.3;
  z-index: 1;
  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;  
  opacity: 0;
  visibility: hidden;  
}

.highlight__item-link:hover .highlight__item-image:before {
  opacity: 0.3;
  visibility: visible;    
}

.highlight__item-title {
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  -moz-transform: translate(-50%, -10%);
  -webkit-transform: translate(-50%, -10%);
  transform: translate(-50%, -30%);
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;  
  z-index: 2;
  width: 100%;
  max-width: 90%;
  font-size: 15px;  
  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;    
  opacity: 0;
  visibility: hidden;   
  transition-delay: 0.1s;  
}

.highlight__item-link:hover .highlight__item-title {
  opacity: 1;
  visibility: visible;  
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);    
}


.highlight__item-button-label {
  display: inline-block;
  position: absolute;
  left: 50%;
  -moz-transform: translate(-50%, 30%);
  -webkit-transform: translate(-50%, 30%);
  transform: translate(-50%, 30%);
  bottom: 30px;
  font-size: 10px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 10px;
  font-family: "cabinmedium",sans-serif;
  z-index: 2;
  -webkit-transition: all  0.3s ease-out;
  -moz-transition: all  0.3s ease-out;
  transition: all 0.3s ease-out;    
  opacity: 0;
  visibility: hidden;    
  transition-delay: 0.3s; 
}

.highlight__item-link:hover .highlight__item-button-label {
  opacity: 1;
  visibility: visible;    
  -moz-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);  
}


.highlight__item-button-label:before {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: white;
  position: absolute;
  top: 0;
  left: 50%;
  -moz-transform: translate(-50%, -10%);
  -webkit-transform: translate(-50%, -10%);
  transform: translate(-50%, -10%);  
  z-index: 2;
  -webkit-transition: transform .15s ease-out, width .3s ease-out;
     -moz-transition: transform .15s ease-out, width .3s ease-out;
          transition: transform .15s ease-out, width .3s ease-out;
  opacity: 0;
  visibility: hidden;     
  transition-delay: 0.3s;
}

.highlight__item-link:hover .highlight__item-button-label:before {
  opacity: 1;
  visibility: visible;    
  -moz-transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);  
  width: 100px;
}

@media screen and (max-width: 767px) {
  .highlight-category-posts {
    padding: 40px 10px 0;
    border: none;
    background: none;
    margin-right: 15px;
    margin-left: 15px;
    margin-bottom: 30px;    
    border:1px solid #c08f65;
  } 

  .cat-lines {
    display: none;
  }


  .highlight-category-posts-heading {
    font-size: 18px;
    text-align: center;
  }

  .highlight-category-wrapper {
    margin: 0;
  }

  .highlight__item {
    float: none;
    width: 100%;
    padding: 0 10px 10px 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #c08f65;
  }

  .highlight__item:last-child {
    border: none;
  }

  .highlight-category-posts + #main-wrapper {
    margin-top: 10px;
  }

  .highlight__item-link {
    padding-bottom: 0;
  }

  .highlight__item-image {
    position: static;
    height: 400px;
  }

  .highlight__item-title {
    position: static;
    -moz-transform: none;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    color: #414042;
    font-size: 1em;
    font-style: italic;    
    font-family: "Times New Roman",serif;
    font-weight: normal;
    margin-top: 10px;   
  }

  .featured-section-posts {
    margin-bottom: 100px;
    margin-top: -40px;
  }

  .featured-section-item-title:before {
    display: none;
  }

  .featured-section-item-image {
    position: static;
    height: 160px;
  }
  
  .featured-section-item {
    float: none;
    width: 100%;  
    padding: 0;
  }

  .featured-section-item:nth-child(3n+2),
  .featured-section-item {
    margin: 0;
  }

  .featured-section-item-title {
    position: static;    
  } 


}
