body {
  margin: 0px;
  width: 100%;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
}

main {
  display: flex;
}

.left {
  margin-top: 40px;
}

li {
  list-style-type: none;
  font-size: 18px;
  margin-top: 40px;
  white-space: nowrap;
}

ul a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  margin-right: 250px;
}

ul li .active {
  text-decoration-line: underline;
  text-decoration-color: burlywood;
  text-decoration-thickness: 5px;
}

.right {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-right: 40px;
}

.grid-wrapper>div>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.grid-wrapper {
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-wrapper .image {
  position: relative;
}

.image .description {
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: end;
  align-items: self-start;
  flex-direction: column;
  opacity: 0;
  transition: 0.6s;
  text-wrap: wrap;
}

.image .description:hover {
  opacity: 1;
}

.image .description p {
  font-size: 14px;
  color: white;
  padding: 10px;
}

span {
  font-style: oblique;
}


@media(max-width:1024px) {

  main {
    justify-content: center;
    flex-direction: column;

    .left {
      margin-top: 15px;
      margin-bottom: 15px;
    }

    .right {
      margin-bottom: 40px;
      margin-left: 10px;
      margin-right: 10px;
    }
  }
}


@media (max-width: 768px) {

  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: center;
  }

  .grid-wrapper>div>img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  li {
    font-size: 18px;
    margin-top: 10px;
  }

  .right {
    margin-top: 10px;
  }

  ul a {
    margin-right: 0;
  }

  .grid-wrapper>div {
    width: 90%;
    margin: 0 auto;
  }

  .grid-wrapper .image {
    position: relative;
    width: 100%;
  }

  .image .description {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 100%;
    padding: 0px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.6s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transform: translate(-50%, -50%);
  }

  .image:hover .description {
    opacity: 1;
  }

  .image .description p {
    font-size: 14px;
    padding: 8px;
    color: white;
    word-break: break-word;
  }
}