/* Service page */
.page-template-page-service .entry-header {
  margin-bottom: 1rem;
}

/* Works snippet on Service page */
.service-works {
  margin: 4rem 0;
}
.service-works__filter {
  margin-bottom: 1rem;
}
.service-works__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-works__item {
  padding: 3rem 0 0;
}
.service-works__item a {
  text-decoration: none;
  color: var(--color-black);
}
.service-works__categories {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
}
.service-works__categories li {
  background: var(--color-gray);
  border-radius: 1rem;
  padding: 0.25rem 1.5rem;
  list-style: none;
}
.service-works__categories li a {
  color: var(--color-white);
  text-decoration: none;
}
.service-works__before-after {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.service-works__label {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.service-works__title {
  font-size: 1.25rem;
  font-weight: 250;
  margin: 0;
}

@media (max-width: 1200px) {
  .service-works__before-after {
    flex-direction: column;
  }
}

/* Machine */
.service-machine__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 3rem 6rem;
}
.service-machine__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.service-machine__item img {
  justify-self: center;
  width: 100%;
  height: 100%;
  max-width: 700px;
}
.service-machine__item__text {
  font-size: 1.25rem;
  margin: 0;
  width: 100%;
  max-width: 700px;
  text-align: start;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .service-works__before-after img {
    width: 100%;
    height: auto;
  }

  .service-machine__list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem 2rem;
  }
}
