@media screen and (max-width: 1200px) {
  #profile {
    height: 68vh;
    margin-bottom: 6rem;
  }

  #about-the-author-name {
    text-align: center;
  }

  .experience-details-container h2 {
    text-align: center;
  }

  .about-containers {
    flex-wrap: wrap;
  }

  #contact,
  #projects {
    height: fit-content;
  }

  #heading-img {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
  }

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    margin-right: 2rem;
  }

  .photo img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
  }

  .photo-gallery {
    flex-wrap: row;
  }

  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .arrow {
    display: none;
  }

  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }

  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  #profile .section__pic-container {
    width: 90%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 2rem;
  }

  .about-containers {
    margin-top: 0;
  }

}

@media screen and (max-width: 900px) {
  .reviews-column {
    width: 100%;
  }

  .wrapper-courses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: minmax(100px, auto);
    margin-bottom: 5rem;
  }

  .courses-block-1 {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .courses-block-2 {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .courses-block-3 {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .courses-block-4 {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .courses-block-5 {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .about-containers {
    flex-direction: column;
  }

  .column {
    gap: 0.3rem;
    margin-bottom: 0;
  }

  .photo-gallery {
    display: flex;
    gap: 0.3rem;
  }

  .contact-info-upper-container {
    flex-wrap: wrap;
  }

  #about_the_course .details-container {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
  }

  #about_the_course .about-containers {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px) {
  .main-image-1,
  #heading-img .main-image-1 {
    display: none;
  }

  .main-image-2 {
    display: block;
    width: 100%;
    height: auto;
  }

  .wrapper-courses {
    display: flex;
    flex-direction: column;
  }

  .about-containers {
    flex-direction: column;
  }

  .reviews {
    flex-direction: column;
  }

  .column {
    gap: 0.3rem;
    margin-bottom: 0;
  }

  #contact,
  footer {
    height: 40vh;
  }

  #heading-img {
    height: 100%;
  }

  #profile {
    height: 80vh;
    margin-bottom: 0;
  }

  article {
    font-size: 1rem;
  }

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }

  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

  .contact-info-container {
    margin: 0;
  }

  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }

  .experience-sub-title {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
    padding-right: 5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section__pic-container {
    width: auto;
    height: 58vw;
    justify-content: center;
  }

  #profile .section__pic-container {
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    overflow: hidden;
  }

  #profile #heading-img {
    width: 100%;
  }

  #profile #heading-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

  .text-container {
    text-align: justify;
  }

  .photo-gallery {
    display: flex;
    gap: 0.3rem;
  }
}
