/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Special Offers Container
# 
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Special Offers Container
--------------------------------------------------------------*/
/* Special Offers Styles */
.special-offers-container {
  display: block;
  padding-bottom: 70px;
  position: relative;
  margin-top: -120px;
}

.special-offers-container h1 {
  text-align: center;
  margin-bottom: 70px;
}

.special-offers-container > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  grid-gap: 1rem;
  list-style-type: none;
}

.special-offers-container > ul > li > figure {
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}

.special-offers-container li figcaption {
  position: absolute;
  bottom: 0;
}
.special-offers-container li:hover figcaption {
  position: absolute;
  top: 0;
}

.special-offers-container li:hover .view-offer-btn {
  display: block !important;
  height: max-content !important
}

.special-offers-container > ul > li > figure > img {
  width: 100%;
  height: auto;
}

.special-offers-container > ul > li > figure > figcaption {
  background-color: rgba(0,0,0,.7);
  bottom: 0;
  display: grid;
  top: calc(100% - 60px);
  transition: all 0.3s linear;
  width: 100%;

  /* display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important; */
}

.special-offers-container figcaption h3 {
  color: #fff !important;
  padding: 15px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 29px !important;
  margin: auto 0 5px 0 !important;
  text-align: center !important;
  text-transform: uppercase !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* flex-direction: column !important; */
}

.special-offers-container a.view-offer-btn {
  display: none;
  font-size: 16px !important;
  margin: 5px auto 0;
  padding: 10px 20px !important;
  position: relative;
}

@media (max-width: 768px) {
  .special-offers-container li figcaption {
    position: absolute !important;
    top: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;

  }
  
  .special-offers-container li .view-offer-btn {
    display: block !important;
    height: max-content !important;
  }

  .special-offers-container figcaption h3 {
    display: inline-block !important;
    padding: 0 20px 10px !important;
    margin: 0 auto !important;
  }

  .special-offers-container a.view-offer-btn {
    background: transparent !important;
    border: 3px solid #c32228 !important;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .special-offers-container > ul {
    display: grid;
    grid-template-columns: 1fr !important;
    padding: 1em;
    grid-row-gap: 100px;
  }
}

@media (max-width: 480px) {
  #special-offers-wrapper .section_inner {
    width: calc(100% - 60px) !important;
  }
  .special-offers-container figcaption h3 {
    font-size: 18px !important;
  }
  .special-offers-container > ul > li > figure > img {
    min-height: 200px !important;
  }
  
}