.project-selector--archive {
  padding-top: 48px;
  padding-bottom: 48px;
}

.project-selector__filters-wrap {
  padding-left: 24px;
  padding-right: 24px;
}

.project-selector__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.project-selector__filter {
  display: inline-grid;
  grid-template-columns: 0fr auto;
  align-items: center;
  column-gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mahina-color-dark-green);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.project-selector__filter-icon {
  width: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.25s ease, width 0.25s ease;
}

.project-selector__filter.is-active .project-selector__filter-icon {
  width: 24px;
  transform: scale(1);
}

.project-selector__filter.is-active {
  column-gap: 8px;
}

.project-selector__layout {
  display: flex;
  margin-top: 32px;
}

.project-selector__list,
.project-selector__preview {
  width: 50%;
}

.project-selector__preview {
  min-height: 100%;
}

.project-selector__preview-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-position: center;
  background-size: cover;
}

.project-selector__preview-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-selector__preview-layer.is-active {
  opacity: 1;
}

.project-selector__list {
  display: flex;
  flex-direction: column;
}

.project-selector__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-top: 1px solid rgba(4, 47, 17, 0.1);
  border-bottom: 1px solid rgba(4, 47, 17, 0.1);
  color: var(--mahina-color-dark-green);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.project-selector__item.is-hidden {
  display: none;
}

.project-selector__item-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-selector__text {
  display: flex;
  gap: 8px;
  font-size: 24px;
  font-weight: 400;
}

.project-selector__index {
  color: rgb(84, 84, 84);
  font-size: 12px;
  font-weight: 400;
}

.project-selector__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.project-selector__item:hover,
.project-selector__item.is-active {
  background-color: var(--mahina-color-light-green);
  color: var(--mahina-color-dark-green);
}

.project-selector__item:hover .project-selector__icon,
.project-selector__item.is-active .project-selector__icon {
  transform: scale(1);
}

.project-selector__item:hover .project-selector__icon svg,
.project-selector__item.is-active .project-selector__icon svg {
  animation: spin 5s linear infinite;
}

@media (max-width: 782px) {
  .project-selector__filters-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .project-selector__filters {
    gap: 16px;
  }

  .project-selector__layout {
    flex-direction: column;
  }

  .project-selector__item {
    padding: 20px;
  }

  .project-selector__list,
  .project-selector__preview {
    width: 100%;
  }

  .project-selector__preview {
    height: 320px;
    min-height: 320px;
  }

  .project-selector__text {
    flex-wrap: wrap;
    font-size: 20px;
  }
}
