.work-title {
  padding: 3em 1em 5em;
}

.work-title .suptitle {
  color: var(--black);
  margin-bottom: 1em;
}

.work-title .suptitle::before {
  background-color: var(--black);
}

.work-title h1 {
  font-size: 6.5em;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.work-title h1 strong,
.work-title h1 b {
  font-weight: 600;
  color: var(--purple);
  display: block;
}

.work-title__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
}

.work-title__showcase {
  width: calc(25% - 2em);
}

.work-title__text {
  flex: 1;
}

.work-title__showcase-link {
  text-decoration: none;
  transition: all 0.4s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-title__showcase-link:hover {
  color: var(--purple);
}

.work-title__showcase-img {
  flex: 1;
  overflow: hidden;
  border-radius: 0.6em;
}

.work-title__showcase-img img {
  display: block;
  height: 100%;
  object-fit: cover;

  transition: all 0.8s ease;
}

.work-title__showcase-img:hover img {
  transform: scale(1.1);
}

.work-title__showcase-title {
  font-size: 1.2em;
  margin-top: 1em;
}

.work-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2em;
}

.work-category a {
  text-decoration: none;
  font-size: 0.8em;
  color: var(--black);
  line-height: 1;
  transition: all 0.4s ease-out;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 0.3em;
  padding: 0.6em;
  display: inline-block;
}

.work-category:hover a,
.work-category.is--active a {
  background-color: var(--black);
  color: var(--white);
}

.work-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2em 1.5em;
}

.work-item {
  width: calc(50% - 1.5em / 2);
}

.work-item__img {
  border-radius: 0.6em;
  overflow: hidden;
  height: 40vh;
  margin-bottom: 0.7em;
}

.work-item__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s ease;
}

.work-item__img img:hover {
  transform: scale(1.1);
}

.work-item .work-categories {
  margin-bottom: 0.7em;
}

.work-item .work-category a {
  background-color: var(--gray-3);
}

.work-item h4 a {
  text-decoration: none;
}

/*Single*/

.single-work-title {
  text-align: center;
  padding: 7em 1em 3em;
}

.work-suptitle {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1em;
  color: var(--gray-1);
  font-size: 0.8em;
}

.single-work-title__wrapper h1 {
  font-size: 2.25em;
  margin-bottom: 1.3em;
}

.single-work-info {
  list-style: none;
  margin: 0em 0 1.5em;
  padding: 0;
  display: flex;
  gap: 1.5em;
}

.single-work-info li {
  width: calc(50% - 1.5em / 2);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.8em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--gray-3);
}

.single-work-info li span {
  color: var(--gray-1);
}

.single-work-thumb img {
  width: 100%;
  border-radius: 0.8em;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.single-work-content {
  padding-left: 1em;
  padding-right: 1em;
}

.single-work-content__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.single-work-content__back {
  width: calc(10em - 2em / 2);
}

.single-work-content__text {
  flex: 1;
}

.single-work-content__text img {
  width: 100%;
  display: block;
  border-radius: 0.8em;
}

.single-work-content__text h3.wp-block-heading,
.single-work-content__text h4.wp-block-heading {
  color: var(--gray-1);
  margin-bottom: 16px;
  font-size: 1.7em;
}

.single-work-content__text h3.wp-block-heading b,
.single-work-content__text h4.wp-block-heading b,
.single-work-content__text h3.wp-block-heading strong,
.single-work-content__text h4.wp-block-heading strong {
  color: var(--purple);
}

.single-work-content__text p {
  font-size: 1.7em;
  font-weight: 600;
  margin-bottom: 2.5em;
}

:where(.wp-block-columns.is-layout-flex) {
  gap: 1em;
}

.wp-block-column :where(figure) {
  margin-bottom: 0;
}

.wp-block-columns {
  margin-bottom: 4.5em;
}

.related-projects__title {
  margin-bottom: 1.5em;
}

.related-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.related-project {
  padding-top: 2em;
  padding: 1em;
  padding-right: 1em;
}

.related-project-item {
  width: calc(33.33% - 1.5em / 2);
}

.related-project-item-img {
  overflow: hidden;
  border-radius: 0.6em;
}

.related-project-item img {
  width: 100%;
  display: block;

  height: 40vh;
  object-fit: cover;
  transition: all 0.8s ease;
}

.related-project-item:hover img {
  transform: scale(1.1);
}

.related-project-item a {
  text-decoration: none;
}

.projects-name-wrap {
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  margin-top: 4px;
  display: flex;
  text-decoration: none;
  color: var(--black);
  margin-bottom: 0;
}

.projects-name-wrap p {
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  margin-bottom: 0;
}

.projects-name-category {
  margin-bottom: 0;
}

.projects-name-info {
  margin-bottom: 0;
  color: var(--gray-1);
}

.related-project-item a:hover .projects-name-category {
  color: var(--purple);
}

.work-wrapper {
  padding-left: 1em;
  padding-right: 1em;
}
@media only screen and (max-width: 1440px) {
  .work-title h1 {
    font-size: 6em;
  }
}

@media only screen and (max-width: 991px) {
  .work-title h1 {
    font-size: 5.2em;
  }

  .related-project-item {
    width: calc(50% - 1.5em / 2);
  }
}

@media only screen and (max-width: 767px) {
  .work-title__showcase {
    display: none;
  }
  .work-title h1 {
    margin-bottom: 0;
  }
  .work-title {
    padding-bottom: 2em;
  }

  .single-work-content__text,
  .single-work-content__back {
    width: 100%;
  }
  .single-work-title {
    padding-bottom: 1em;
  }

  .single-work-content {
    padding-left: 2em;
    padding-right: 2em;
  }
}

@media only screen and (max-width: 575px) {
  .related-project-item,
  .work-item {
    width: 100%;
  }
}
