.portfolio {
  &.section {
    .portfolio-header {
    }
  }
  &__row {
    --bs-gutter-y: 5.5rem;
    @include breakpoint(max-xxxl) {
      --bs-gutter-y: 4.5rem;
    }
    @include breakpoint(max-xxl) {
      --bs-gutter-y: 3.5rem;
    }
    @include breakpoint(max-xl) {
      --bs-gutter-y: 2.5rem;
    }
    @include breakpoint(max-lg) {
      --bs-gutter-y: 1.5rem;
    }
  }
  &__filter {
    @extend %d-flex, %justify-between, %item-center;
    border-bottom: 1px solid rgba($color-white, 0.14);
    padding-bottom: 30px;
    gap: 15px;

    @include breakpoint(max-md) {
      flex-direction: column;
    }

    .filter-buttons {
      @extend %d-flex, %item-center;
      gap: 30px;

      @include breakpoint(max-sm) {
        gap: 15px;
      }
    }
    .filter-item {
      @extend %d-flex;
      // width: max-content;
      height: 50px;
      border-radius: 30px;
      border: 1px solid rgba($color-white, 0.08);
      overflow: hidden;

      @include breakpoint(max-md) {
        height: 40px;
      }

      .select2-container {
        width: 173px !important;
        padding: 0 15px;

        @include breakpoint(max-sm) {
          width: 140px !important;
        }
      }
      .select2-container--default {
        height: 100%;
        .select2-selection--single {
          @extend %d-flex, %justify-center, %item-center;
          gap: 17px;
          height: 100%;
          background-color: transparent;
          border: none;
          .select2-selection__rendered {
            color: $color-white;
            padding: 0;
            @include breakpoint(max-sm) {
              font-size: 15px;
            }
          }
        }
        .select2-selection__arrow {
          @extend %p-relative, %d-grid, %place-center;
          width: 24px;
          height: 24px;
          &::before {
            font: var(--fa-font-regular);
            content: "\f107";
            @include transition($transition-3);
          }

          b {
            border: none;
            display: none;
          }
        }

        &.select2-container--open {
          .select2-selection__arrow {
            &::before {
              font: var(--fa-font-regular);
              content: "\f107";
              transform: rotate(180deg);
            }
          }
        }
      }
    }
  }
  &__box {
    @include transition($transition);
    border-radius: 20px;
    border: 1px solid rgba($color-white, 0.14);
    overflow: hidden;

    .portfolio-thumb {
      @extend %p-relative;
      border-radius: 20px;
      overflow: hidden;

      img {
        @include transition($transition);
      }

      .portfolio-tags {
        @extend %p-absolute;
        left: 40px;
        bottom: 35px;
        opacity: 0;
        visibility: hidden;
        @include transition($transition);

        ul {
          @extend %d-flex, %item-center, %flex-wrap;
          gap: 15px;

          li {
            a {
              border-radius: 20px;
              border: 1px solid $color-white;
              color: $color-white;
              padding: 5px 20px;
              overflow: hidden;
              white-space: nowrap;
              line-height: 1;
              font-size: $fs-18;

              &:hover {
                border-color: $color-primary;
                background-color: $color-primary;
                color: $color-1;
              }
            }
          }
        }
      }
    }
    .portfolio-content {
      @extend %d-flex, %justify-between, %item-center;
      padding: 54px 50px;

      // @include breakpoint(max-md) {
      //   padding: 40px 30px;
      // }
      @include breakpoint(max-xl) {
        padding: 30px 20px;
      }
      @include breakpoint(max-xsm) {
        padding: 20px 15px;
      }
      .title {
        @extend %d-flex, %item-center;
        gap: 20px;

        @include breakpoint(max-md) {
          gap: 10px;
        }
        a {
          &:hover {
            color: $color-primary;
          }
        }
      }
    }

    &:hover {
      border-color: $color-primary;
      .portfolio-thumb {
        img {
          @include transform(scale(1.05));
        }
        .portfolio-tags {
          opacity: 1;
          visibility: visible;
        }
      }
    }
  }
}
.portfolio2 {
  &.section {
    .section-header {
      border-bottom: 1px solid rgba($color-white, 0.14);
      padding-bottom: 25px;
    }
  }
  &__portfolio-number {
    @extend %d-flex, %item-start;
    gap: 15px;

    .current-portfolio {
      font-weight: 400;
      line-height: 1;

      @include breakpoint(xl) {
        font-size: 100px;
      }
    }
    .total-portfolio {
      font-weight: 300;
      line-height: 1;

      @include breakpoint(xl) {
        font-size: 50px;
      }
    }
  }
  &__thumb-slider {
    @extend %p-relative;
    padding-top: 50px;
    overflow: hidden;
    .swiper-slide {
      .portfolio2-thumb-box {
        .portfolio-thumb {
          img {
            @include transition($transition);
            @include delay(0.1s);
            opacity: 0;
          }
        }
      }
      &.swiper-slide-active {
        .portfolio2-thumb-box {
          .portfolio-thumb {
            img {
              opacity: 1;
            }
          }
        }
      }
    }
  }
  &__content-slider {
    @extend %p-relative;
    padding-top: 50px;
    max-width: 434px;
    width: 100%;

    @include breakpoint(max-md) {
      max-width: 100%;
      padding-top: 30px;
    }

    .swiper-slide {
      .title {
        @include transition($transition);
        @include delay(0.2s);
        @include transform(translateX(200px));
        opacity: 0;
      }
      p {
        @include transition($transition);
        @include delay(0.1s);
        @include transform(translateX(200px));
        opacity: 0;
      }
      .agx-btn {
        @extend %p-relative;
        @include transition($transition);
        @include delay(0.2s);
        bottom: -100px;
        opacity: 0;
      }
      &.swiper-slide-active {
        .title,
        p {
          @include transform(translateX(0px));
          opacity: 1;
        }
        .agx-btn {
          bottom: 0px;
          opacity: 1;
        }
      }
    }
  }
  &__navigation {
    @extend %p-absolute, %d-inline-flex, %item-center;
    gap: 15px;
    right: -30px;
    bottom: -25px;
    z-index: 1;
    background-color: $color-1;
    border-radius: 57px;
    padding: 40px 45px;
    @include breakpoint(max-lg) {
      padding: 20px 25px;
      right: -20px;
      bottom: -10px;
      gap: 10px;
    }

    .button-prev,
    .button-next {
      @extend %shrink-0;
      @include transition($transition);
      width: 45px;
      height: 45px;
      border-color: $color-white;
      color: $color-white;
      cursor: pointer;

      @include breakpoint(max-lg) {
        width: 35px;
        height: 35px;
      }

      &:hover {
        color: $color-1;
        border-color: $color-1;
      }
    }
    .button-prev {
    }
    .button-next {
    }
  }
}

.portfolio2-thumb-box {
  .portfolio-thumb {
    border-radius: 14px;
    overflow: hidden;
    height: 525px;

    @include breakpoint(max-lg) {
      height: 400px;
    }

    img {
      height: 100%;
      object-fit: cover;
    }
  }
}

.portfolio2-content-box {
  .portfolio-thumb {
    width: 50%;
    border-radius: 14px;
    overflow: hidden;
  }
  .title {
    margin-top: 30px;

    @include breakpoint(max-lg) {
      margin-top: 20px;
    }
  }
  .agx-btn {
    margin-block-start: 100px;

    @include breakpoint(max-lg) {
      margin-block-start: 50px;
    }
    @include breakpoint(max-md) {
      margin-block-start: 30px;
    }
  }
}

.portfolio4 {
  &__slider {
    overflow: hidden;

    &.active {
      border-radius: 10px;
      .portfolio-thumb {
        img {
          object-fit: cover;
          min-height: 400px;
        }
      }
    }
    &:not(.active) {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;

      @include breakpoint(max-sm) {
        border-radius: 10px;
      }

      .swiper-slide {
        img {
          @include breakpoint(max-lg) {
            width: 100%;
          }
        }
      }
    }
  }
  &__slider-footer {
    @extend %d-flex, %justify-between, %item-center;
    margin-top: 40px;

    @include breakpoint(max-md) {
      margin-top: 30px;
    }
  }
  &__pagination {
    text-align: right;
    .swiper-pagination-bullet {
      background-color: transparent;
      border: 1px solid $color-white;
      opacity: 1;
      width: 10px;
      height: 10px;

      &.swiper-pagination-bullet-active {
        opacity: 1;
        border-color: $color-primary;
        background-color: $color-primary;
      }
    }
  }
  &__navigation {
    @extend %d-flex, %shrink-0;
    gap: 20px;

    .btn-next,
    .btn-prev {
      @extend %d-grid, %place-center;
      border: 1px solid $color-white;
      width: 50px;
      height: 50px;
      border-radius: 100%;
      @include transition($transition);
      i {
        @include transition($transition);
      }

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

        i {
          color: $color-1;
        }
      }
      &:focus-visible {
        outline: none;
      }

      @include breakpoint(max-sm) {
        width: 40px;
        height: 40px;
      }
    }
  }
  &__box {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(
      180deg,
      rgba($color-black, 0) 0%,
      rgba($color-black, 0.81) 59.79%,
      $color-black 100%
    );

    .portfolio-content {
      @extend %p-absolute, %d-flex, %flex-col, %justify-end;
      border-radius: 10px;
      overflow: hidden;
      inset: 0;
      padding: 48px 40px;
      background: linear-gradient(
        180deg,
        rgba($color-black, 0) 0%,
        rgba($color-black, 0.81) 59.79%,
        $color-black 100%
      );

      p {
        margin-top: 15px;
      }

      .agx-btn {
        width: max-content;
        margin-top: 35px;
        @include breakpoint(max-sm) {
          margin-top: 20px;
        }
      }

      @include breakpoint(max-sm) {
        padding: 30px;
      }
    }
  }
}
