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

body {
  font-family: Raleway;
  background-color: #f8f9fa;
}

.heading {
  font-family: "Lobster";
  position: relative;
  text-align: center;
  font-size: 2.0rem;
  padding: 40px;
  width: 100%;
  background-color: #2E8B57;
  color: white;
}
.heading__link{
  font-family: "Raleway";
  font-size: 1rem;
  padding: 1rem;
  border: 2px solid white;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  top: 0;
  left: 0;
  position: absolute;
  display: block;
  transition: all 300ms ease-in-out;
}
.heading__link:hover{
  background-color: white;
  color: #2E8B57;
}
.gallery-image {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-image img {
  height: 250px;
  width: 350px;
  transform: scale(1.0);
  transition: transform 0.4s ease;
}

.img-box {
  box-sizing: content-box;
  margin: 10px;
  height: 250px;
  width: 350px;
  overflow: hidden;
  display: inline-block;
  color: white;
  position: relative;
  background-color: white;
}

.caption {
  position: absolute;
  bottom: 5px;
  left: 20px;
  opacity: 0.0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.transparent-box {
  height: 250px;
  width: 350px;
  position: absolute;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease;
}

.description{
  display: block;
  padding: 1rem 3rem;
}
.img-box:hover img {
  transform: scale(1.1);
}

.img-box:hover .transparent-box {
  background-color: rgba(46, 139, 87, 0.5);
}

.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0;
}

.img-box:hover {
  cursor: pointer;
}

.caption>p:nth-child(2) {
  font-size: 0.8em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.modal img {
  width: 100%;
  height: auto;
}

.opacity-low {
  opacity: 0.5;
}
