.page-content {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  font-family: var(--font-sans);
}
@media (min-width: 768px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 800px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}
.content-card .content {
  position: absolute;
  transition: 0.5s;
  width: 100%;
}
.content-card .content .copy {
  margin: 0 auto;
  position: absolute;
  bottom: -150px;
  transition: 0.5s;
  padding: 0 60px;
  opacity: 0;
}
.content-card .content .copy p {
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  text-align: left;
}
.content-card .content .title {
  text-shadow: -3px 0 black, 0 3px black, 3px 0 black, 0 -3px black;
  width: 80%;
  padding: 10px 15px;
  border-radius: 5px;
  bottom: 0px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -20%);
  transition: 0.5s;
}
.content-card .gradient {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 0%, rgba(0, 0, 0, 0.034) 0%, rgba(0, 0, 0, 0.072) 0%, rgba(0, 0, 0, 0.123) 0%, rgba(0, 0, 0, 0.182) 0%, rgba(0, 0, 0, 0.249) 0%, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.394) 0%, rgba(0, 0, 0, 0.468) 0%, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.607) 0%, rgba(0, 0, 0, 0.668) 0%, rgba(0, 0, 0, 0.721) 0%, rgba(0, 0, 0, 0.762) 0%, rgba(0, 0, 0, 0.79) 0%);
  opacity: 0;
  transition: 0.5s;
}
.content-card .img {
  width: 100%;
  transition: transform 0.5s;
  transform: scale(1.4);
}
@media (min-width: 768px) {
  .content-card {
    height: 350px;
  }
}
.content-card:hover .img {
  transform: translateY(-8%) scale(1.4);
}
.content-card:hover .gradient {
  opacity: 1;
}
.content-card:hover .content .title {
  transform: translate(-50%, -50%);
  bottom: 200px;
}
.content-card:hover .content .copy {
  bottom: 0px;
  opacity: 1;
}

.projects {
  display: grid;
  grid-gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
}
.projects .btn {
  display: block;
}
.projects img {
  width: 100%;
  border: 3px #fff solid;
}
.projects img:hover {
  opacity: 0.5;
  border-color: #cf9f00;
  transition: all 0.5s ease-out;
}

.work-show {
  padding: 1rem;
  display: block;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  grid-template-areas: "work-video work-video work-description";
}
.work-show .work-video {
  grid-area: work-video;
}
.work-show .work-description {
  padding: 1rem;
  font-size: 1rem;
  grid-area: work-description;
}

.work-images {
  padding: 1rem;
  display: grid;
  grid-gap: 20px;
  grid-template-areas: "work-image1 work-image2 work-image3";
}
.work-images .work-image {
  margin: auto;
  height: 100%;
  max-width: 300px;
  max-height: 170px;
}
.work-images .work-image:hover {
  opacity: 0.7;
}
.work-images .work-image1 {
  grid-area: work-image1;
}
.work-images .work-image2 {
  grid-area: work-image2;
}
.work-images .work-image3 {
  grid-area: work-image3;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  width: 100%;
}

.video-container iframe, .video-container object, .video-container embed {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: black;
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 1280px;
  height: 90%;
  max-height: 900px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}
@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
