.portfolio-post_container {
  max-width: 1180px;
  margin: -208px auto 80px;

  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.portfolio-breadcrumbs {
  padding-bottom: 224px;
}

.portfolio-post_layout {
  display: flex;
  gap: 20px;
  margin-top: 37px;
}

.portfolio-header_image img,
.post-content_img img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-post_content {
  flex: 1 1 0;
  max-width: 780px;
}

.portfolio-post_toc {
  flex: 0 0 380px;
  max-width: 380px;
  padding-left: 100px;
}

.portfolio-post_title p {
  color: #8b348a;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.portfolio-post_details {
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.details-left {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #757575;
}

.post-author_avatar {
  height: 48px;
}
.post-author_avatar img {
  border-radius: 999px;
}

.portfolio-post_author {
  line-height: 23px;
}

.portfolio-post_read-time {
  line-height: 23px;
}

.portfolio-post_author span {
  font-weight: 600;
}

.details-right {
  margin: 0;

  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #757575;
}

.portfolio-post_desc p {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #757575;
}

.portfolio-content_container {
  max-width: 1180px;
  margin: 40px auto 0;

  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.post-content_title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #8b348a;
  margin-bottom: 16px;

  scroll-margin-top: 300px;
}

.post-content_desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #757575;
}

.post-content_desc p {
  margin-bottom: 40px;
}

.post-content_desc ul {
  padding-left: 20px;
  margin-bottom: 40px;
}

.post-content_desc li:not(:last-child) {
  margin-bottom: 8px;
}

.post-content_desc blockquote {
  padding-left: 24px;
  margin-bottom: 40px;
  border-left: #8b348a 4px solid;
}

.post-content_img {
  margin-bottom: 40px;
}

.post-content_img-desc {
  max-width: 580px;
  margin-top: 16px;

  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #757575;
}

.portfolio-post_toc {
  position: sticky;
  top: 150px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-heading {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #000000;

  margin-bottom: 16px;
}

.toc-content li {
  list-style-type: none;
}

.toc-content li:not(:last-child) {
  margin-bottom: 16px;
}

.toc-content a {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #89baf6;
  border-left: #89baf6 2px solid;
  padding-left: 12px;
}

.toc-content a.active {
  color: #0066e1;
  border-left: #0066e1 2px solid;
}

.portfolio-post_details-mobile {
  display: none;
}

.portfolio-side-image {
  display: none;
}

@media (max-width: 1240px) {
  .portfolio-post_container {
    padding: 0 20px;
  }
}

@media (max-width: 820px) {
  .portfolio-side-image {
    display: block;
    position: absolute;
    top: 7%;
    left: 0;
  }
  .portfolio-post_toc {
    display: none;
  }

  .portfolio-post_details {
    display: none;
  }

  .portfolio-post_details-mobile {
    display: block;
  }

  .portfolio-post_title p {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
  }

  .details-mobile {
    margin: 24px 0;
    display: flex;
    align-items: center;

    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #757575;
  }

  .details-mobile_layout {
    margin: 0;
  }

  .post-author_avatar {
    margin: 0 14px 0 0;
  }

  .portfolio-post_container {
    margin-top: -128px;
    margin-bottom: 32px;
  }

  .portfolio-breadcrumbs {
    padding-bottom: 163px;
  }

  .portfolio-post_layout {
    margin-top: 32px;
  }

  .portfolio-content_container {
    margin-top: 64px;
  }

  .portfolio-content_container:last-of-type {
    margin-bottom: -8px;
  }
}

@media (max-width: 600px) {
  .portfolio-breadcrumbs {
    padding-top: 8px;
  }
}
