
html, body {
  background-color: #7CC2A5;
}

figure {
  margin: 0;
}

.portfolio-page .content {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;

  margin-top: 25vh;
}

.subheading {
  text-align: left;
  border-bottom: 4px solid white;
  margin-bottom: 2em;
}

.subheading h2 {
  font-size: 3em;
  margin: 0;
  margin-bottom: -.25em;
  margin-left: -.08em;
  font-weight: 300;
  text-shadow: 1px -1px #AAAAAA;
}

/*
Source: https://paulund.co.uk/create-polaroid-image-with-css
*/
.pics__row:last-child {
  margin-bottom: 3em;
}

.pics__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1em;
}

.pics__row a {
  font-size: 1em;
  color: #333;
  text-decoration: none;
}

.pics__row a:hover, 
.pics__row a:focus {
  outline: none;
  text-decoration: underline;
}

.pics__row a:hover img, 
.pics__row a:focus img {
  opacity: .8;
}

.pics__row figure {
  text-align: left;
}

.pics__row img {
  border: 4px solid white;
  border-bottom: none;
}

.pics__row figcaption {
  font-size: .85em;
  font-weight: 300;

  border: 4px solid white;
  border-top: none;
  background: white;

  color: #333;
  position: relative;
  -webkit-box-shadow: 0px 4px 9px -6px #999999;
  box-shadow: 0px 4px 9px -6px #999999;
}

.pics__row figcaption > span {
  display: block;
}
/*

.pics__row div span {
  margin-left: .5em;
  margin-right: .5em;
  margin-bottom: 3em;
}

.pics__row div span img {
  border: 2px solid white;
} */

/* SCREENS BIGGER THAN 568px (bigger than an iphone) */
/* ≥ 568px */
@media screen and (min-width: 35.5em) {
  .portfolio-page .content {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 35vh;
  }

  .subheading h2 {
    font-size: 5.75em;
  }

  .pics__row div span:after {
    font-size: 1.05em;
  }
}

/* SCREENS BIGGER THAN 768px (bigger than mom's tablet) */
/* ≥ 768px */
@media screen and (min-width: 48em) {

  .subheading {
  margin-bottom: 2em;
  }

  .pics__row {
    margin-bottom: 2em;
  }

  .pics__row:last-child {
    margin-bottom: 6em;
  }

  .pics__row div span {
    margin-bottom: 0;
  }

  .pics__row div:nth-child(1) span {
    margin-left: 0;
    margin-right: 1em;
  }

  .pics__row div:nth-child(2) span {
    margin-left: .5em;
    margin-right: .5em;
  }

  .pics__row div:nth-child(3) span {
    margin-left: 1em;
    margin-right: 0;
  }

  .content .container {
    width: 45%;
  }

}
