.renewable-energy-map {
  padding: 2rem 0;
}
.renewables-grid {
  text-align: center;
}
.renewables-grid .renewables-cell {
  margin: 0 auto 2rem;
  max-width: 400px;
  height: 100%;
  padding: 15vw 2rem;
  position: relative;
  color: #fff;
}
.renewables-grid .renewables-cell::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,.5);
  z-index: 0;
}
.renewables-grid .renewables-cell p {
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 600px) {
  .renewables-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .renewables-grid .renewables-cell {
    width: calc(50% - 1rem);
    background-size: cover;
    padding: 0 1rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: unset;
    height: calc(50vw - 1.25rem);
  }
  .renewables-grid .renewables-cell .renewables-cell-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media screen and (min-width: 1000px) {
  .renewables-grid {
  }
  .renewables-grid .renewables-cell {
    width: calc(25% - 1rem);
    height: initial;
    padding: 0;
    min-height: calc(25vw - 1.25rem);
  }
  .renewables-grid .renewables-cell::before {
    background-color: rgba(0,0,0,0);
    transition: background-color .3s;
  }
  .renewables-grid .renewables-cell:hover::before {
    background-color: rgba(0,0,0,.5);
    transition: background-color .3s;
  }
  .renewables-grid .renewables-cell .renewables-cell-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: ;
  }
  
  .renewables-grid .renewables-cell .renewables-cell-content p.renewables-cell-heading {
    text-align: center;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    transition: top .3s, transform .3s;
    transition-delay: .2s;
  }
  .renewables-grid .renewables-cell .renewables-cell-content p.renewables-cell-heading span {
    color: #fff;
    border: 3px solid;
    border-color: rgba(255,255,255,.5);
    background-color: rgba(117,117,117,.6);
    padding: .5rem;
    display: inline-block;
    text-decoration: none !important;
    min-width: 60%;
    /* font-size: 1.7em; */
    font-weight: 600 !important;
    width: 80%;
    transition: border-color .2s, background-color .2s;
  }
  .renewables-grid .renewables-cell:hover .renewables-cell-content p.renewables-cell-heading span {
    
    border-color: rgba(255,255,255,0);
    background-color: rgba(117,117,117,0);
    
  }
  
  .renewables-grid .renewables-cell .renewables-cell-content p.renewables-cell-body {
    padding: 0 1rem;
    opacity: 0;
    transition: opacity .5s;
    
  }
  p.renewables-cell-heading span {
    color: #fff;
    border: 3px solid;
    border-color: rgba(255,255,255,.5);
    background-color: rgba(117,117,117,.6);
    padding: .5rem;
    display: inline-block;
    text-decoration: none !important;
    min-width: 60%;
    /* font-size: 1.7em; */
    font-weight: 600 !important;
    width: 80%;
  }
  .renewables-grid .renewables-cell:hover .renewables-cell-content p.renewables-cell-heading {
    top: 0;
    transform: translateY(-100%);
    transition: top .4s, transform .4s;
  }
  .renewables-grid .renewables-cell:hover .renewables-cell-content p.renewables-cell-body {
    opacity: 1;
    transition: opacity 1s;
    transition-delay: .2s;
  }
}

@media screen and (min-width: 1200px) {
  .renewables-grid .renewables-cell {
    padding-bottom: calc( 25% - 1rem );
    min-height: unset;
  }
  .renewables-grid .renewables-cell .renewables-cell-content {
    position: absolute;
  }
}