@media screen and (max-width: 88.125em) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #portfolio {
    height: fit-content;
  }
}

@media screen and (max-width: 75.313em) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #skills,
  .skills-details-container {
    margin-top: 2rem;
  }
  .about-details-container {
    margin-top: 1rem;
    align-self: center;
    width: 80%;
    max-width: 80%;
  }
  .main-about-pic {
    display: none;
    height: 0px;
    width: 0px;
  }
  #profile {
    position: static;
  }
  #profile,
  .section-container {
    display: block;
  }
  #click-me {
    font-size: 1rem;
  }
  .arrow,
  .arrow-up {
    display: none;
  }
  section,
  .section-container {
    height: fit-content;
    align-self: center;
  }
  .section-container {
    padding-top: 1rem;
    gap: 1rem;
    display: flex;
    width: fit-content;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  section {
    margin: 0 5%;
  }
  .section__pic-container {
    max-width: 17.188rem;
    max-height: 17.188rem;
    align-self: center;
  }
  #profile-pic-upper-container {
    margin: 0 auto 1rem;
  }
  .section__pic-container-relative {
    display: flex;
    max-height: 17.188rem;
    max-width: 17.188rem;
    margin: auto 0;
    flex-direction: row;
    position: relative;
  }
  .section__pic-container-relative img {
    max-height: 17.188rem;
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
  }
  #about {
    position: unset;
  }
  .about-pic {
    width: 100%;
  }
  .about-pic-container {
    height: 0px;
    width: 0px;
  }
  .about-containers {
    margin-top: 0;
  }

  #gallery {
    position: static;
    height: fit-content;
    align-items: center;
  }

  .gallery-container {
    margin-top: 1rem;
    width: 85%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 8%;
    margin-bottom: 1rem;
  }

  .project-pic-container {
    max-height: 21.875rem;
    max-width: 21.875rem;
    align-self: center;
    margin: 2rem auto;
  }
  #features {
    margin-top: 2rem;
    align-items: center;
  }

  .about-text {
    --max-lines: 3;

    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines);
  }

  .expand-button {
    display: flex;
    height: auto;
  }

  .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 43.125em) {
  #profile {
    height: 83vh;
    margin-bottom: 0;
  }
  article {
    font-size: 1rem;
  }
  .about-containers,
  .btn-container {
    flex-wrap: wrap;
  }
  .contact-info-container {
    margin: 0;
    margin: 0.5rem;
  }
  .contact-info-container p a {
    font-size: 1.2rem;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1.2rem;
  }
  .skills-sub-title {
    font-size: 1.25rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links {
    gap: 1rem;
    text-align: center;
    flex-direction: column;
  }
  .nav-links-container {
    display: flex;
  }
  .section__pic-container {
    width: auto;
    height: 30vh;
    justify-content: center;
    margin-bottom: 2rem;
  }
  .about-pic-container {
    height: 0px;
    width: 0px;
    padding: none;
    margin: none;
    display: none;
    position: none;
    appearance: none;
  }
  .section__pic-container-relative {
    height: 30vh;
    margin: auto 0;
    width: 30vh;
  }
  .section__pic-container-relative img {
    height: 30vh;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    word-spacing: normal;
  }
  .contact-info-upper-container {
    flex-direction: column;
    align-items: start;
    padding: 0.5rem;
    max-width: fit-content;
    align-self: center;
    margin: 1rem;
    font-size: smaller;
  }
  .contact-div {
    height: auto;
    margin: 2rem;
  }
  #contact {
    position: static;
  }

  .nav-links-container {
    padding-top: 0rem;
    padding-bottom: 2rem;
  }

  .about-containers {
    margin-top: 0;
  }
  .about-details-container {
    width: 80%;
  }
  .features-article {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.4rem;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 42.625em) {
  .article-container {
    gap: 0.7rem;
  }
  article {
    max-width: 8rem;
    gap: 0.7rem;
  }
  article h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 32.063em) {
  .article-container {
    gap: 0.6rem;
  }
  article {
    max-width: 7rem;
    gap: 0.6rem;
  }
  article h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 28.75em) {
  .article-container {
    gap: 0.5rem;
  }
  article {
    max-width: 6rem;
    gap: 0.5rem;
  }
  article h3 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 25em) {
  .contact-info-upper-container {
    align-content: center;
  }
  .contact-info-container p a {
    font-size: 1rem;
  }
  .contact-info-container {
    flex-direction: column;
    align-self: center;
  }
  .contact-icon {
    max-height: 1.8rem;
  }
  #click-me {
    font-size: 0.8rem;
  }
}
