.page-block {
  background: var(--bg);
}

#about.is-visible,
#contact.is-visible {
  overflow-y: scroll;
  overflow-x: hidden;
}

#contact .modal-body,
#about .modal-body {
  padding: 2rem;
  flex-wrap: wrap;
}

#contact .modal-body {
  display: block;
  text-align: center;
}

.contact-text {
  padding-bottom: 3.5rem;
}

.folio-form {
  max-width: 390px;
  height: 100%;
  margin: auto;
}

.folio-form .form-control {
  display: block;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  max-width: 500px;
  width: 100%;
  color: var(--color-text);
  padding: 0 0 5px 0;
  line-height: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  outline: none;
  background: transparent;
  font-size: 18px;
}

#about .img-wrapper {
  flex: 1;
  text-align: center;
  max-width: initial;
  margin-right: initial;
}

#about .img-wrapper img {
  max-width: 400px;
  height: auto;
}

#about .about-text {
  flex: 1;
}

#about .about-text p,
#about .about-text .contact-me-block {
  font-size: 1.2rem;
}

#about .marquee {
  width: var(--marquee-width);
  height: var(--marquee-height);
  overflow: hidden;
  margin: 2rem auto;
  position: relative;
}

#about .marquee-content {
  list-style: none;
  display: flex;
  height: 100%;
  animation: scrolling var(--marquee-duration-animation) linear infinite;
}

.marquee-content li:hover {
  animation-play-state: paused;
}

#about .marquee-content li {
  width: var(--marquee-elm-width);
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: calc((var(--marquee-height) * 3) / 4);
}

.marquee:before,
.marquee:after {
  position: absolute;
  height: 100%;
  width: 10rem;
  top: 0;
  content: "";
  z-index: 1;
}

.marquee:before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.marquee:after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-1 * var(--marquee-elm-width) * var(--marquee-elms))
    );
  }
}

@media (max-width: 991px) {
  #about .img-wrapper,
  #about .about-text {
    flex: initial;
    margin: 0 auto;
  }

  .page-block {
    text-align: center;
  }

  .folio-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .title-filter li {
    font-size: 48px;
  }

  :root {
    --marquee-width: 100vw;
  }
}
@media (max-width: 768px) {
  :root {
    --marquee-elms-displayed: 3;
  }

  #about .marquee:before,
  #about .marquee:after {
    width: 5rem;
  }

  .modal-body {
    padding: 0;
    margin: 2px;
  }

  .modal-body a,
  .modal-body .text-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .modal-body .img-wrapper {
    margin-right: 0;
  }
}

@media (max-width: 475px) {
  :root {
    --marquee-elms-displayed: 2;
  }
}
