.links {
  padding: 50px 0 0 0;
  margin: 0;
  width: 100%; 
  left: 0; 
  position: relative;
}
.mfg {
  width: calc(100% - 15px);
  height: auto;
  padding: 20px;
  outline: solid 1.5px #ffffff;
  border: solid #e6e6e6 1.5px;
  box-shadow: 0px 1px 5px rgba(51,51,51,0.15);
  margin: 7.5px 7.5px; 
  transition: border-color 0.3s ease;
}

.mfg:hover {
    border-color: #83d5cc;
}

.expanding-grid {
  position: relative;
  width: 100%;
}
.expanding-grid .links {
  display: block;
  overflow: hidden;
  list-style-type:none;
  transition: all .1s ease;
}
.expanding-grid .links > li {
  padding: 0;
  min-height: 140px;
}
.expanding-grid .links > li a {
  display: block;
  position: relative;
}
.expanding-grid .spacer {
  background-color: rgba(255,255,255,0);
  clear: both;
  display: block;
  margin: 0 1em;
}
.expanding-grid .expanding-container {
  clear: both;
  display: none;
  overflow: hidden;
  width: 100%;
}
.expanding-grid .expanding-container.expanded, .expanding-grid .expanding-container:target {
  display: block;
}
.expanding-grid .main-section {
  background: #173a64;
  clear: both;
  color: #fff;
  min-height: 4em;
  overflow: hidden;
  padding: 40px;
  width: calc(100% - 16px);
  margin: 8px;
}
.expanding-grid .main-section .entry-title {
  font-size: 25px;
  font-weight: 200;
  color: #ffffff;
  letter-spacing: 0;
  margin-top: 0;
}
.expanding-grid .links > li a.active:after {
  background-color: transparent;
  border-bottom: 20px solid #173a64;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  bottom: -8px;
  content: '';
  height: 0;
  left: 50%;
  margin-left: -20px;
  position: absolute;
  width: 0;
}
.expanding-grid .main-section p {
  text-align: left;
}
.expanding-grid .close-button {
  color: #fff;
  display: inline-block;
  line-height: 1.5;
  padding: 10px;
  text-decoration: none;
  width: 47px;
  will-change: opacity;
  z-index: 5;
  font-size: 125%;
  transition: opacity 0.2s;
}
.close-button.active {
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.expanding-grid .close-button:hover {
  color: #83d5cc;
  transition: all 0.2s;
}

@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 812px) {

.expanding-grid .main-section .entry-title {
    font-size: 40px;
}

expanding-grid .links > li a {
    padding: 65px;
}

.expanding-grid .close-button {
    width: 75px;
}

.expanding-grid .links > li a.active:after {
    border-bottom: 25px solid #173a64;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    bottom: -10px;
}
}