body {
  font-family: "Lora", "Times New Roman", Times, serif;
  margin: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#title-card {
  font-family: "Lora", "Times New Roman", Times, serif;
  padding: 10px;
  text-align: center;
}

button {
  cursor: pointer;
}

#portfolio {
  width: 97%;
  min-height: 100vh;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  grid-template-rows: 1fr 1fr;
}

.project {
  position: relative;
  background: #f2dad7;
  overflow: hidden;
  height: 333px;
  border: 4px outset #1d613e;
}

.project img {
  position: absolute;
  opacity: 0.9;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-left: 0;
}

.project p {
  position: absolute;
  text-align: center;
  width: 100%;
  padding: 1em 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 3;
}

.project .grid__title {
  position: absolute;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  bottom: 0;
  font-weight: 100;
  font-size: 0.8em;
  z-index: 3;
  text-transform: uppercase;
  color: #474545;
  letter-spacing: 2px;
}

.project:hover .grid__overlay {
  transform: translateY(0%);
}

.grid__overlay {
  background: rgba(18, 85, 57, 0.9);
  height: 100%;
  grid-column: 1/-1;
  grid-row: 1/-1;
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  transform: translateY(101%);
  transition: all 0.25s ease-in-out;
}

.grid__overlay button {
  background: none;
  outline: none;
  font-weight: 100;
  letter-spacing: 2px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-transform: uppercase;
  padding: 10px;
}

.grid__overlay button:hover {
  transition: all 0.3s ease-in-out;
  background: #ffffff;
  color: rgba(18, 85, 57, 0.9);
  transform: scale(1.05);
}

.overlay {
  position: fixed;
  background: rgba(71, 69, 69, 0.7);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 3;
}

.overlay.open {
  display: grid;
  align-items: center;
  justify-items: center;
}

.overlay__inner {
  background: #ffffff;
  width: 60%;
  padding: 30px;
  position: relative;
  opacity: 1;
}

.overlay__inner img {
  width: 100%;
  height: auto;
  display: block;
}

.close {
  position: absolute;
  top: 3px;
  right: 10px;
  background: none;
  outline: 0;
  color: #474545;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.close:hover {
  color: #1d613e;
}

#abt-card {
  margin: 25px 75px;
}

#artists-statement {
  border: 4px outset #1d613e;
  width: 60%;
}

iframe {
  width: 100%;
  height: 700px;
}
