body {
  height: 100vh;
  }

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  grid-gap: 1rem;
  margin-top: 2.5rem;
}

#home {
  text-decoration: none;
}

#about {
  text-decoration: none;
}

#img1 {
  align-self: center;
}

#qimg {
  max-width: 8rem;
}

#sq13, #sq10, #sq9, #sq8, #sq3, #sq1{/*yellow*/
  background-color: #FFBD59;
}

#sq11, #sq9, #sq7, #sq5, #sq6, #sq4, #sq2{/*blue*/
  background-color: #5CE1E6;
}

#sq12, #sq10, #sq6{/*red*/
  background-color: #FF1616;
}

.sq img {
  max-width: 90%;
  max-height: 90%;
}

.sq {
  position: relative;
  height: 50vh;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(0, 0, 0, 0.6);
  color: #ffffff;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s;
}

.overlay a {
  color: #5CE1E6;
}

.overlay:hover {
  opacity: 1;
}

.overlay > * {
  transform: translateY(20px);
  transition: transform 0.25s;
}

.overlay:hover > * {
  transform: translateY(0);
}

.image_title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: .5em;
}

.label {
  font-size: 1.3rem;
  margin-top: .8em;
  margin-bottom: .3em;
}

@media only all and (max-width: 55em) {
  .portfolio-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only all and (max-width: 40em) {
  .portfolio-items {
    grid-template-columns: 1fr;
  }
  .overlay {
    font-size: 1.25em;
  }
}

@media only all and (max-height: 30em) {
  .sq {
    height: 80vh;
  }
}
