.t-factsFigures {
  display:flex;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content:space-between;
}

.t-factBox {
  display: flex;
  flex-grow: 0;
  flex-direction: column;
  border: 1px solid #ddd;
  margin: 5px;
  flex-shrink: 1;
  flex-basis: calc(25% - 10px);
  padding:15px;
  justify-content:space-around;
  order:2;
  
}

.t-factBox a {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    margin: -15px;
    padding: 15px;
    height: calc(100% + 30px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.t-factBox a:hover {
    background: #eee;
    box-shadow: 0 -10px 0 0 #555 inset;
}

.t-factIcon {
  display:flex;
  font-size:72px;
}

.t-factIcon::before {
  margin: auto;
}

.t-factBoxInner {
  text-align:center;
}

.t-factsFigures.t-sixFacts .t-factBox,
.t-factsFigures.t-fiveFacts .t-factBox {
  flex-basis: calc(33% - 10px);
}

.t-feature .t-factBox.t-featuredFact {
  flex-basis: calc(50% - 10px);
  flex-grow:1;
  order:1;
}

.t-factsFigures.t-noFeature {
  justify-content:center;
}

.t-factsFigures.t-noFeature .t-factBox {
  flex-grow:0;
}

/* Four Facts Specific CSS */

.t-factsFigures.t-fourFacts.t-noFeature.t-alternate .t-factBox {
    flex-basis: calc(50% - 10px);
}

.t-factsFigures.t-fourFacts.t-feature .t-featuredFact {
    flex-basis: 100%;
}

.t-factsFigures.t-fourFacts.t-feature .t-factBox {
    flex-grow: 1;
}

/*--------------*/

/* Three Facts Specific CSS */

.t-factsFigures.t-threeFacts.t-noFeature {
    justify-content: stretch;
}

.t-factsFigures.t-threeFacts.t-noFeature .t-factBox {
    flex-grow:1;
}

.t-factsFigures.t-threeFacts.t-feature .t-factBox {
    flex-grow:1;
}

.t-factsFigures.t-threeFacts.t-feature .t-factBox.t-featuredFact {
    flex-basis:100%;
}

.t-factsFigures.t-threeFacts.t-feature.t-alternate .t-factBox.t-featuredFact {
    flex-basis:calc(50% - 10px);
}

/*--------------*/

/* Two and One Fact Specific CSS */

.t-factsFigures.t-twoFacts.t-noFeature .t-factBox {
    flex-basis:calc(50% - 10px);
}

.t-factsFigures.t-oneFact.t-noFeature .t-factBox {
    flex-basis:100%;
}

/*--------------*/


/* PROTOTYPING CSS THAT NEEDS TO BE CONVERTED INTO PROPER CLASSES UPON INTEGRATION SASS - These cover the specific user options for fact box background and text color. Not sure if we plan on Sassing these, so I just left them as obvious proto classes to be changed upon integration. */

.PROTO-1 {
  background: #cfb87c;
}

.t-factBox.PROTO-1 a:hover {
    background: #c8ad6a;
    box-shadow: 0 -10px 0 0 #333 inset;
}

.PROTO-2 {
  background: #333;
  color:#fff;
}

.t-factBox.PROTO-2 a:hover {
    background: #222;
    box-shadow: 0 -10px 0 0 #fff inset;
}

.PROTO-3 {
  background: #eee;
}

.t-factBox.PROTO-3 a:hover {
    background: #ddd;
}

.PROTO-4 {
  background: #333;
  color:#cfb87c;
}

.t-factBox.PROTO-4 a:hover {
    background: #222;
    box-shadow: 0 -10px 0 0 #cfb87c inset;
}


/*--------------------------------------------------------------------------------------*/

@media screen and (max-width:992px) {
  
  .t-factBox {
    flex-grow:1;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
  }
  
  .t-factBox.t-featuredFact {
    flex-basis:100%;
  }
  
  .t-sevenFacts.t-feature .t-factBox.t-featuredFact {
  flex-basis: 100%;
  flex-grow:1;
}
  
  .t-factsFigures.t-fourFacts.t-feature .t-factBox {
    flex-grow: 1;
    flex-basis:calc(33% - 10px);
}
  
  .t-factsFigures.t-fourFacts.t-feature .t-factBox.t-featuredFact {
    flex-grow: 1;
    flex-basis:100%;
  }
  
  .t-factsFigures.t-threeFacts.t-noFeature .t-factBox {
    flex-grow:1;
    flex-basis: calc(33% - 10px);
  }
  
  .t-factsFigures.t-threeFacts.t-feature.t-alternate .t-factBox {
    flex-shrink:1;
    flex-basis: calc(25% - 10px);
  }
  
  .t-factsFigures.t-threeFacts.t-feature.t-alternate .t-factBox.t-featuredFact {
    flex-basis: calc(50% - 10px);
  }
  
}


@media screen and (max-width:768px) {
  
  .t-factsFigures .t-factBox {
    flex-grow:0 !important;
    flex-shring: 0 !important;
    flex-basis: 100% !important;
  }
  
}