.fact-container {
  position: 0;
  margin-bottom:30px;
}

.mainBody #middle a.ohio-fact {
  text-decoration: none;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  position:relative;
  height: auto;
  top: 0;
  transition: all .35s ease;
  padding: 40px 40px 74px 40px;
}

@media (min-width: 576px) {
  .mainBody #middle a.ohio-fact {
    min-height: 350px;
    height:100%;
  }
}

@media (min-width: 992px) {
  .mainBody #middle a.ohio-fact {
    text-decoration: none;
    height: 100%;
  }

  .mainBody #middle .fact-container:nth-child(n+5):nth-child(-n+100) {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.mainBody #middle .fact-container:nth-child(7n+1) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+1) a.ohio-fact *:not(span, i) {
  background-color: var(--teal);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container:nth-child(7n+2) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+2) a.ohio-fact *:not(span, i) {
  background-color: var(--web-marigold);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container:nth-child(7n+3) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+3) a.ohio-fact *:not(span, i) {
  background-color: var(--moss);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container:nth-child(7n+4) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+4) a.ohio-fact *:not(span, i) {
  background-color: var(--trillium);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container:nth-child(7n+5) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+5) a.ohio-fact *:not(span, i) {
  background-color: var(--cutler);
  color: var(--white);
}

.mainBody #middle .fact-container:nth-child(7n+6) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+6) a.ohio-fact *:not(span, i) {
  background-color: var(--sycamore);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container:nth-child(7n+7) a.ohio-fact {
  border: solid 2px var(--putnam);
}

.mainBody #middle .fact-container:nth-child(7n+7) a.ohio-fact,
.mainBody #middle .fact-container:nth-child(7n+7) a.ohio-fact *:not(span, i) {
  background-color: var(--white);
  color: var(--under-the-elms);
}

.mainBody #middle .fact-container a.ohio-fact:focus,
.mainBody #middle .fact-container a.ohio-fact:focus *:not(span, i) {
  background-color:var(--under-the-elms);
  color:var(--white);
}

.mainBody #middle .fact-container:nth-child(7n+7) a.ohio-fact:focus {
  border-color:var(--under-the-elms);
}

.ohio-fact .contents .number {
  font-family: var(--text-display);
  font-weight: 900;
  text-align: center;
  margin-bottom: 9px;
}

.ohio-fact .contents .number, .col-xl-3.fact-container .ohio-fact .contents .number {
  font-size: 11vw;
  line-height: 11.5vw;
}

.ohio-fact .contents .field--name-field-fact-label p {
  font-family: var(--text-sans);
  font-weight: 500;
  margin-top: 0; 
}

.ohio-fact .contents .field--name-field-fact-label p, .col-xl-3.fact-container .ohio-fact .contents .field--name-field-fact-label p {
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 577px) {
  .ohio-fact .contents .number, .col-xl-3.fact-container .ohio-fact .contents .number {
    font-size: 36px;
    line-height: 42px;
  }
}

@media (min-width: 1200px) {
  .ohio-fact .contents .field--name-field-fact-label p {
    font-size: 18px;
    line-height: 27px;
  }

  .ohio-fact .contents .number,
  .col-xl-3.fact-container .ohio-fact .contents .number {
    font-size: 36px;
    line-height: 42px;
  }
}

.bef-exposed-form .form--inline .magic-line-radios .form-item {
  float: none;
  border-left: 2px solid var(--putnam);
  border-right: 2px solid var(--putnam);
  border-bottom: 2px solid var(--putnam);
}

.bef-exposed-form .form--inline .magic-line-radios .form-item:nth-of-type(1) {
  border-top: 2px solid var(--putnam);
}

@media (min-width: 768px) {
  .bef-exposed-form .form--inline .magic-line-radios .form-item {
    border:none;
    float:left;
  }

  .bef-exposed-form .form--inline .magic-line-radios .form-item:nth-of-type(1) {
    border:none;
  }
}

/* link indicator */
a.ohio-fact span.link-indicator {
  width:46px;
  height:46px;
  margin:0 auto;
  border:2px solid var(--under-the-elms);
  margin-top:10px;
  transition:all .35s ease;
  position:absolute;
  display:block;
  bottom:20px;
  left:0;
  right:0;
  margin-left:auto;
  margin-right:auto;
}

.fact-container:nth-child(7n + 5) a.ohio-fact span.link-indicator {
  border:2px solid var(--white);
}

a.ohio-fact span.link-indicator i {
  margin-top:13px;
  color:var(--under-the-elms);
}

.fact-container:nth-child(7n + 5) a.ohio-fact span.link-indicator i {
  color:var(--white);
}

a.ohio-fact:hover span.link-indicator {
  background:var(--under-the-elms);
}

.fact-container:nth-child(7n + 5) a.ohio-fact:hover span.link-indicator {
  background:var(--white);
}

a.ohio-fact:hover span.link-indicator i:before {
  color:var(--white);
}

.fact-container:nth-child(7n + 5) a.ohio-fact:hover span.link-indicator i:before {
  color:var(--under-the-elms);
}

a.ohio-fact:focus span.link-indicator {
  background:var(--white);
}

a.ohio-fact:focus span.link-indicator i {
  background:none;
}

a.ohio-fact:focus span.link-indicator i:before {
  color:var(--under-the-elms);
}

/* hover border effect */
.fact-container a.ohio-fact:before {
  border-top:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:scale(0,1);
}

.fact-container a.ohio-fact:after {
  border-right:1px solid currentColor;
  border-left:1px solid currentColor;
  transform:scale(1,0);
}

.fact-container a.ohio-fact:before,
.fact-container a.ohio-fact:after {
  position:absolute;
  top:20px;
  right:20px;
  bottom:20px;
  left:20px;
  content:'';
  opacity:0;
  transition:opacity 0.35s, transform 0.35s;
}

.fact-container a.ohio-fact:hover:before,
.fact-container a.ohio-fact:hover:after {
  opacity:1;
  transform:scale(1);
}
