/*===== WORK ======================================*/

.cards.grid {
  gap: 1.5rem;
}

.card {
  position: relative;
  text-align: left;
}

.card img {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
}

.card .title {
  color: var(--text-color-light);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  color: var(--text-color-light);
  text-transform: uppercase;
}

.card h3:before {
  content: '_ ';
  text-indent: 0;
  font-size: 2.8rem;
  font-family: 'proxima-nova';
  font-style: normal;
  font-weight: 800;
  color: var(--base-color);
  display: block;
  margin-top: -3rem;
}

.hoverbackground {
  position: absolute;
  width: 100%;
}

.bottom-left h2 {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 3rem;
  padding-top: 1rem;
  padding-left: 1rem;
}

.bottom-left h3 {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 0.5rem;
  padding-left: 1rem;
  padding-top: 0.55rem;
  padding-bottom: 0.6rem;
  margin-bottom: -0.05rem;
}

/*===== MEDIA QUERIES =================================*/

/*TABLET*/
@media (min-width: 720px) {
  /*WORK PAGE*/
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

/*DESKTOP*/
@media (min-width: 992px) {
  /*WORK PAGE*/
  #work .container {
    margin: 0 auto;
    grid-auto-flow: column;
  }

  #services .container {
    margin: 0 1rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card {
    padding-left: 0rem;
    padding-right: 0rem;
  }

  .hoverbackground {
    border-radius: 0.25rem 0.25rem 0 0;
    background: rgba(0, 0, 0, 0.8);
    height: 99%;
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 0;
  }

  .hoverbackground:hover {
    transition: 0.8s ease;
    opacity: 1;
  }

  .bottom-left h2 {
    position: absolute;
    bottom: 3rem;
    left: 1rem;
    background: none;
  }

  .bottom-left h3 {
    position: absolute;
    bottom: 0rem;
    left: 1rem;
    background: none;
  }

  .hoverbackground:hover .bottom-left h2 {
    bottom: 3.5rem;
    transition: 0.8s ease;
  }

  .hoverbackground:hover .bottom-left h3 {
    bottom: 1rem;
    transition: 0.8s ease;
  }

  .card a:hover + .blackhover {
    display: block;
  }

  .bottom-left:hover {
    bottom: 0%;
    transition: 0.8s ease;
    opacity: 1;
  }
}
