main.websites {
  display: flex;
  flex-direction: column;
  width: 80%;
  align-items: flex-start;
}

main.websites section.freelance {
  padding: 0;
  width: 100%;
  border-bottom: none;
  display: flex;
}
main.websites h3 {
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-size: 2.5rem;
  font-weight: 600;
  text-decoration: underline;
  font-family: "Lexend Peta", sans-serif;
}
main.websites section.freelance ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  justify-content: center;
}
main.websites section.freelance ul li {
  list-style-type: none;
  padding: 1rem;
  width: 100%;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light-grey);
  border-top: none;
  box-shadow: 0px 5px 8px var(--light-grey);
}
main.websites section.freelance ul li:first-of-type {
  margin: 0 0 0.5rem 0;
}
main.websites section.freelance ul li h4 {
  align-self: flex-start;
  padding: 0 0.75rem 0.75rem 0.75rem;
  width: 100%;
  font-weight: 500;
  font-size: 1.625rem;
  margin-bottom: 0;
  font-family: "Merriweather", serif;
}
main.websites section.freelance ul li h4 > span {
  font-weight: 400;
  font-size: 1.125rem;
  font-family: "Merriweather", serif;
}
main.websites section.freelance ul li p {
  text-align: justify;
  padding: 1.5rem 1rem 1rem 0;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
  background-color: var(--white);
  font-family: "Merriweather", serif;
  text-align: left;
}
main.websites section.freelance ul li p a {
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}
main.websites section.freelance ul li div.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
}
main.websites section.freelance ul li div.row p {
  width: 50%;
}
main.websites section.freelance ul li div.row div {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 0;
  align-self: flex-start;
}
main.websites section.freelance ul li div.row div > a {
  align-self: center;
  width: 90%;
  /* max-height: 500px; */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 1px solid var(--black);
  border-radius: 25px;
}
main.websites section.freelance ul li div.row div a img {
  width: 100%;
  /* max-height: 500px; */
  border: 1px solid #000;
  border-radius: 1.5rem;
}
main.websites section.freelance ul li:first-of-type div.row div a img {
  width: 80%;
  height: 80%;
  border: none;
  border-radius: 0;
}

main.websites section.freelance div.demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0.75rem;
}
main.websites section.freelance div.demo > p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  font-family: "Lexend Peta", sans-serif;
  position: relative;
  align-self: flex-start;
  display: flex;
  padding: 0 1.75rem 0 0.25rem;
  cursor: pointer;
  border: 1px solid var(--black);
  text-align: left;
}
main.websites section.freelance div.demo > p > span {
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  background: url("../media/images/right-chevron.svg");
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center;
  width: 1.5rem;
  height: 100%;
  rotate: 90deg;
}
main.websites section.freelance div.demo > div {
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--black);
  /* height: 0; */
}
main.websites section.freelance div.demo > div.show {
  display: flex;
  /* height: 275px; */
  animation: animateHeight 2s ease;
}
@keyframes animateHeight {
  0% {
    opacity: 0;
    height: 0px;
  }
  100% {
    opacity: 1;
    height: 175px;
  }
}
main.websites section.freelance div.demo > div.show video {
  border: 1px solid var(--black);
  margin: 1rem 0;
  max-width: 320px;
  height: 100%;
}

@media all and (max-width: 1041px) {
  main.websites section.freelance ul li {
    width: 100%;
  }
}

@media all and (max-width: 1034px) {
  main.websites {
    width: 100%;
  }
}
@media all and (max-width: 832px) {
  main.websites section.freelance ul li {
    width: 100%;
  }
}

@media all and (max-width: 700px) {
  main.websites section.freelance ul li div :not(p) a {
    width: 80%;
  }
  main.websites section.freelance ul li div a img {
    width: 100%;
  }
  main.websites section.freelance ul li p {
    font-size: 1rem;
    font-weight: 600;
  }
  main.websites section.freelance ul li p a {
    font-size: 1rem;
    font-weight: 600;
  }
}

@media all and (max-width: 600px) {
  main.websites section.freelance ul li div.row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  main.websites section.freelance ul li div.row p {
    width: 100%;
    padding: 0.25rem 0.75rem 1rem 1.75rem;
  }
  main.websites section.freelance ul li div.row div {
    width: 100%;
    padding: 0;
  }
  main.websites section.freelance ul li div.row div > a {
    border: none;
  }
}

@media all and (max-width: 580px) {
  main.websites {
    padding-bottom: 0;
  }
  main.websites h3 {
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    font-size: 2rem;
    font-weight: 500;
    align-self: center;
  }
  main.websites section.freelance ul li div {
    padding: 1rem 0 0;
    height: unset;
  }
  main.websites section.freelance ul li div img {
    width: 95%;
  }
  main.websites section.freelance ul li p {
    font-size: 1rem;
  }
  main.websites section.freelance ul li p a {
    font-size: 1rem;
  }
}
