.portfolio {
  // min-height: 1000vh;
  margin-bottom: 40px;

  &__detail {
    margin: 40px 0;

    > .container {
      > .wrapper {
        display: flex;
        align-items: flex-start;
      }
    }


    &__info {
      padding: 0;
      border: 1px solid $outline;
      height: 80vh;

      h1 {
        padding: 16px;
        border-bottom: 1px solid $outline;
        font-size: 22px;
        line-height: 150%;
        text-transform: capitalize;
      }

      &__desc {
        padding: 16px;
        height: 300px;
        overflow: scroll;
        border-bottom: 1px solid $outline;

        p {
          font-size: 16px;
          line-height: 200%;
          color: $text-75;
        }
      }

      ul {
        list-style: none;
        padding: 16px;
        margin: 0;
        border-bottom: 1px solid $outline;

        li {
          font-size: 14px;
          line-height: 150%;
          margin-bottom: 4px;
        }
      }

      &__action {
        margin: 0;

        .col-2, .col-1 {
          padding: 0;
          transition: 0.2s;

          &:hover {
            background: $primary-10;
          }
        }

        .col-2 {
          border-bottom: 1px solid $outline;

          &:first-child {
            border-right: 1px solid $outline;
          }
        }

        a {
          padding: 16px;
          width: 100%;
          display: block;
          font-size: 16px;
          text-decoration: underline;
          color: $primary;
          text-transform: capitalize;
          display: flex;
          align-items: center;
          justify-content: center;

          img {
            display: block;
            margin-right: 4px;
          }


        }
      }
    }

    &__mainimage {
      padding: 0;
      margin: 0 32px;

      img {
        height: 80vh;
        width: 100%;
        object-fit: contain;
        object-position: center;
      }

      &__preview {
        display: none;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: white;

        img {
          width: 100%;
          height: -webkit-fill-available;
          object-fit: contain;
          object-position: center;
        }

        a {
          position: absolute;
          right: 0;
          top: 0;
          padding: 24px;
          background: $white;

          img {
            width: 24px;
            height: 24px;
          }
        }
      }
    }

    &__image {
      padding: 0;
      height: 80vh;
      overflow: scroll;

      img {
        width: 100% !important;
        height: auto;
        object-fit: cover;
        object-position: center;
        transition: 0.2s;
        cursor: pointer;

        &:hover {
          border: 8px solid $primary;
        }

        &.\-\-active {
          border: 8px solid $primary;
        }
      }
    }
  }

  &__filter {
    position: unset;
    top: 72.19px;
    z-index: 10;
    margin: 0 auto 40px;
    background: $white;

    &.\-\-sticky {
      left: 50%;
      transform: translate(-50%, 0);
    }

    .col-1 {
      padding: 0 8px;
      border: 1px solid $outline;
      border-top: 0;
      margin: auto;
    }

    ul {
      display: flex;
      align-items: center;
      list-style: none;
      transition: 0.2s;
      padding: 0;
      margin: 0;

      li {
        padding: 8px 16px;
        text-transform: uppercase;
        font-size: 16px;
        color: $text-50;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: 0.2s;

        &::before {
          content: '';
          width: 8px;
          height: 8px;
          border-radius: 8px;
          border: 1px solid $text-75;
          background: $white;
          margin-right: 4px;
          transition: 0.2s;
        }

        &:hover {
          font-family: 'bold', sans-serif;
          color: $primary;

          &::before {
            border: 1px solid $primary;
          }
        }

        &.\-\-active {
          font-family: 'bold', sans-serif;
          color: $text;

          &::before {
            border: 1px solid $primary;
            background: $primary;
          }
        }
      }
    }
  }

  &__list {
    position: relative;
    padding: 0;
    border: 1px solid $outline;
    transition: 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    &::before {
      content: "";
      position: absolute;
      width: 85%;
      height: 140%;
      background: #00000000;
      animation: rotate 5s linear infinite;
      transition: 0.2s;
    }

    @keyframes rotate {
      from {
        transform: rotate(0deg)
      }

      to {
        transform: rotate(360deg)
      }
    }

    &::after {
      content: "";
      position: absolute;
      inset: 2px;
      background: $white;
    }

    &__item {
      position: relative;
      z-index: 2;
      display: block;
      width: 100%;
      // padding: 24px 24px 0;

      &__image {
        padding: 24px;
        border-bottom: 1px solid $outline;

        img {
          display: block;
          width: 100%;
          object-fit: cover;
          object-position: center;
        }
      }

      &__info {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;

        &__content {
          padding: 16px 24px;
          border-right: 1px solid $outline;
          // width: inherit;

          p {
            font-size: 18px;
            margin-bottom: 8px;
          }

          h4 {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-transform: capitalize;
          }
        }

        &__cta {
          display: flex;
          align-items: center;
          justify-content: center;

          img {
            width: 32px;
            height: 32px;
          }
        }
      }
    }

    &:hover {

      border: 1px solid $primary-75;

      &::before {
        background: $primary;
      }
    }
  }

  &__loadmore {
    display: block;
    width: 100%;
    padding: 24px;
    font-size: 22px;
    text-decoration: underline;
    text-transform: capitalize;
    text-align: center;
    font-family: 'bold', sans-serif;
    color: $primary;
    border: 1px solid $outline;
    transition: 0.2s;

    &:hover {
      background: $primary-10;
      border-color: $primary;
    }
  }
}
