* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  background-image: url(../images/2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: soft-light;
  background-position: center center;
  background-attachment: fixed;
  padding: 10%;
  min-height: 100vh;
}

h1 {
  text-align: center;
  padding-top: 5%;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: crimson;
  font-weight: bolder;
}

section {
  width: 100%;
}

#container {
  width: 90%;
  margin: 30px auto;
  border: 5px solid #cbcaca;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  font-size: 60%;
}

figure {
  -ms-flex-preferred-size: calc(100% / 3);
      flex-basis: calc(100% / 3);
  /* try 100px , 100% */
  padding: 5px;
  margin: 0;
  cursor: pointer;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  /* for hover effect, will learn later */
}

figure img {
  width: 100%;
  height: 100%;
}

/* relevant styles */
.img__wrap {
  position: relative;
  border: 1px solid rgba(53, 52, 52, 0.644);
}

.img__description {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(39, 38, 38, 0.72);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  overflow: auto;
  font-size: 140%;
  text-align: center;
  padding-top: 10%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  /* transition effect. not necessary */
  -webkit-transition: opacity .2s, visibility .2s;
  transition: opacity .2s, visibility .2s;
}

.img__wrap:hover .img__description {
  visibility: visible;
  opacity: 1;
}

figure p a {
  text-decoration: none;
  color: #fff;
}

figure p a:hover {
  color: #bddb77;
  font-size: 1.5rem;
}

@media only screen and (max-width: 700px) {
  section {
    width: 100%;
  }
  h1 {
    margin-top: 40%;
  }
  #container {
    width: 100%;
    height: 100%;
    margin-bottom: 40%;
    font-size: 70%;
    display: -ms-grid;
    display: grid;
  }
}
/*# sourceMappingURL=index2.css.map */