.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.catalog-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  list-style: none;
}
.catalog-filters__group li {
  list-style: none;
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.catalog-filters.is-revealed .catalog-filters__group li {
  opacity: 1;
  transform: translateY(0);
}
.catalog-filters__group button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 1.4rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 1.6;
  position: relative;
  transition: color 0.3s ease-in-out;
}
.catalog-filters__group button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
.catalog-filters__group button:hover {
  color: #fff;
}
.catalog-filters__group button.active {
  color: #fff;
}
.catalog-filters__group button.active::after {
  transform: scaleX(1);
}

.projects li.is-filtered-out {
  display: none;
}

@media (max-width: 1199px) {
  .main .container {
    display: grid;
    grid-template-columns: 1fr 6.6rem;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "title    pause"
      "filters  filters"
      "projects reel1"
      "projects reel2"
      "projects .";
    column-gap: 1.2rem;
    row-gap: 1.2rem;
    min-height: calc(100dvh - 11rem);
  }
  .main__inner,
  .controls,
  .projects-wrap {
    display: contents;
  }
  .main__title {
    grid-area: title;
    text-align: left;
    align-self: start;
    margin-bottom: 0;
  }
  #togglePlayButton {
    grid-area: pause;
    justify-self: end;
    align-self: start;
  }
  #changeVideoButton1 {
    grid-area: reel1;
    justify-self: end;
    align-self: start;
    margin-top: 1.5rem;
  }
  #changeVideoButton2 {
    grid-area: reel2;
    justify-self: end;
    align-self: start;
  }
  .controls__button {
    width: 6.2rem;
    height: 6.2rem;
    font-size: 0.95rem;
  }
  .catalog-filters {
    grid-area: filters;
    gap: 1rem;
    margin-bottom: 0;
    align-self: start;
  }
  .catalog-filters__group {
    gap: 0.5rem 1rem;
  }
  .catalog-filters__group button {
    font-size: 1.1rem;
  }
  .projects {
    grid-area: projects;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1200px) {
  .projects-wrap {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
  }
  .catalog-filters {
    flex-direction: row;
    gap: 5rem;
    margin-bottom: 0;
    padding-top: 0.4rem;
  }
  .catalog-filters__group {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.2rem;
  }
  .catalog-filters__group button {
    font-size: 1.6rem;
  }
}
