br {
  display: none;
}

img {
  width: 100%;
  object-fit: cover;
}

.work h2 {
  color: var(--blue);
  font-size: 2em;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  cursor: pointer;
  width: fit-content;
}

.work img {
  transition: all 0.5s;
}

.work img:hover {
  box-shadow: 20px 20px var(--pink);
}

.work_img {
  cursor: pointer;
}

.case_study {
  font-size: 0.7em !important;
}

.bg_line {
  position: absolute;
  z-index: -10;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 300px;
}

#port_line {
  stroke-width: 5px;
}

.back_top {
  cursor: pointer;
  width: 100px;
  position: fixed;
  bottom: 0;
  right: 0;
  opacity: 0;
  margin-bottom: 5em;
  z-index: 10;
  transform: rotate(-90deg);
  transition: all 0.3s;
}

.back_top h3 {
  font-size: 1em;
  transform: rotate(180deg) translateX(20px);
}

/* MODAL */

.bg_modal {
  background-color: rgba(88, 89, 91, 0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}

.modal {
  display: block;
  background-color: var(--bg-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: fit-content;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}

.visible {
  visibility: visible;
  opacity: 1;
}

.close_bttn {
  display: block;
  height: 35px;
  float: right;
  margin: 0.5em 0;
  cursor: pointer;
}

.close_line1,
.close_line2 {
  display: block;
  background-color: var(--black);
  width: 30px;
  height: 2px;
  float: right;
  margin-top: 1em;
  margin-right: 1em;
}

.close_line1 {
  transform: rotate(45deg);
}

.close_line2 {
  transform: translateX(46px) rotate(-45deg);
}

.modal_content h2 {
  font-size: 2.5em;
}

.modal_text {
  margin: 1em;
  margin-bottom: 2em;
}

.modal_text h3 {
  margin-top: 1em;
}

.modal_text a {
  color: var(--black);
  text-decoration: none;
}

.modal_text p {
  margin-top: 1em;
}

.modal_text ul {
  list-style-position: outside;
}

.modal_text li {
  list-style-type: circle;
}

.view_more {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-gap: 0.5em;
  justify-content: left;
  align-items: center;
  margin-top: 2em;
}

.web_link {
  color: var(--black);
  box-shadow: inset 0 -10px 0 0 var(--pink);
  transition: all 0.5s;
}

.web_link:hover {
  color: var(--black);
  box-shadow: inset 0 -30px 0 0 var(--pink);
}

.port_link {
  text-decoration: none;
  font-size: 1.3em;
  display: block;
  width: fit-content;
  margin-bottom: 3em;
}

#arrow {
  width: 90px;
}

.arrow_line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: 1.5s linear infinite drawArrow;
}

.arrow_head {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: 1.5s linear infinite drawArrow;
}

@keyframes drawArrow {
  to {
    stroke-dashoffset: 0;
  }
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
  br {
    display: block;
  }

  .bg_line {
    width: 600px;
  }

  .back_top {
    width: 120px;
    margin-right: 1em;
  }

  .work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5em;
    margin-bottom: 5em;
  }

  .work img {
    width: 70%;
  }

  .work h2 {
    font-size: 3em;
    margin: 0;
    align-self: end;
  }

  .case_study {
    font-size: 0.5em !important;
  }

  .work1 img {
    grid-column: 2 / 3;
  }

  .work1 h2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: right;
    justify-self: end;
  }

  .work2 img {
    justify-self: end;
  }

  .port_link {
    margin: 0 auto;
    transform: translateY(50px);
  }

  /* MODAL */

  .modal_content h2 {
    font-size: 3em;
  }

  .modal_text a {
    font-size: 1.2em;
  }
}

@media (min-width: 992px) {
  .bg_line {
    width: 700px;
  }

  .work img {
    width: 65%;
  }

  .work h2 {
    font-size: 4em;
  }

  .work1 h2 {
    justify-self: end;
  }

  .port_link {
    transform: translateY(70px);
  }

  /* MODAL */

  .modal {
    width: 70%;
    height: 90%;
  }

  .modal::-webkit-scrollbar {
    width: 10px;
  }

  .modal::-webkit-scrollbar-track {
    background-color: var(--pink);
    border-radius: 100px;
  }

  .modal::-webkit-scrollbar-thumb {
    background-color: var(--black);
    border-radius: 100px;
  }

  .modal_text {
    margin: 2em;
    margin-bottom: 3em;
  }

  .slides img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .modal_content h2 {
    font-size: 4em;
    align-self: end;
  }

  .modal_content p {
    grid-row: 2 / 3;
  }
}

@media (min-width: 1200px) {
  .bg_line {
    width: 800px;
  }

  .work h2 {
    font-size: 5em;
  }

  .port_link {
    transform: translateY(100px);
  }
}

@media (min-width: 1400px) {
  .bg_line {
    width: 900px;
  }

  .modal {
    width: 50%;
  }

  .port_link {
    transform: translateY(130px);
  }
}
