@font-face {
  font-family: "Aggravo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff")
    format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Aggravo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff")
    format("woff");
  font-weight: 700;
  font-display: swap;
}

/* section8 #portfolio*/
.section8#portfolio {
  display: none;
  background: url(../img/portfolio/bg.png) no-repeat center / contain;
  padding: 9.3vw 12.2vw;
  padding-right: 0;
}

#portfolio .star-ico {
  width: 63px;
  height: 63px;
  background: url(../img/portfolio/portfolio-star-ico.png) no-repeat center /
    contain;
}
.section8#portfolio .para {
  width: clamp(250px, 32.9vw, 555px);
  margin-block: 3vw 4.5vw;
}
.section8#portfolio h2 {
  width: clamp(300px, 44.5vw, 855px);
}
#portfolio .more-btn {
  width: 275px;
  height: 59px;
  background: url(../img/portfolio/more-btn.png) no-repeat center / contain;
  margin-block: 4.5vw 6vw;
  transition: 0.3s;
}
#portfolio .more-btn:hover {
  transform: translateY(-3px);
}
#portfolio .portfolio-list-box {
      font-family: 'Pretendard';
  cursor: pointer;
}
#portfolio .img-box {
  position: relative;
  width: 100%;
  transition: 0.3s;
  border-radius: 40px;
  overflow: hidden;
}
#portfolio .img-box .img-bg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
}
#portfolio .img-box:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
#portfolio .img-box:before {
  position: absolute;
  content: "";
  display: block;
  inset: 0;
  bottom: -1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}
#portfolio .img-box:hover:before {
  transform: scaleY(1);
}

#portfolio .top-ico {
  position: absolute;
  top: 0;
  right: 35px;
  width: 91px;
  height: 95px;
  z-index: 6;
  pointer-events: none;
  background: url(../img/portfolio/badge.png) no-repeat center / contain;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
#portfolio .img-box:hover ~ .top-ico {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

#portfolio .bottom-desc {
  position: absolute;
  bottom: 23px;
  left: 30px;
  z-index: 5;
  color: #fff;
  text-align: left;
  pointer-events: none;
}

#portfolio .bottom-desc .desc-title {
  font-size: 27px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#portfolio .img-box:hover ~ .bottom-desc .desc-title {
  opacity: 1;
  transition-delay: 0.3s;
}

#portfolio .bottom-desc .desc-detail {
  font-size: 24px;
  margin-top: 5px;
  padding-left: 5px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#portfolio .img-box:hover ~ .bottom-desc .desc-detail {
  opacity: 1;
  transition-delay: 0.5s;
}

/* portfolio-renewal page */
.renewal {
  padding-top: 6vw;
  text-align: center;
}
.renewal .inner-top * {
  margin: 0 auto;
}
#portfolio.renewal .star-ico {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.renewal .para {
  margin-block: 1.6vw 2.4vw;
  font-family: "Pretendard", sans-serif;
  font-size: 1.3vw;
}

.renewal .para b {
  font-weight: 600;
}

.renewal p b {
  font-weight: 500;
}

.renewal .td {
  width: clamp(250px, 37.1vw, 711px);
}
.renewal .portfolio {
  width: clamp(300px, 29.9vw, 573px);
  margin-block: 1.6vw 2.14vw;
}

/* portfolio-renewal tab menu */
.renewal .inner-nav {
  display: flex;
  justify-content: center;
  gap: 2.4vw;
  margin-top: 2vw;
  font-size: 1.2vw;
  font-weight: 500;
  color: #999;
}
.renewal .inner-nav > div,
.popup-category {
  width: 11.5vw;
  background-color: #000;
  color: #fff;
  padding-block: 5px 2px;
  font-size: 0.95vw;
  border-radius: 30px;
  font-weight: bold;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  font-family: "Aggravo", sans-serif;
  cursor: pointer;
}

.renewal .inner-nav > div.active {
  position: relative;
  color: #000;
  background: #fff;
  border-bottom: 1px solid black;
  border-radius: 0;
  transition: 0s;
}

.renewal .inner-nav > div.active:after {
  position: absolute;
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: url(../img/portfolio/portfolio-star-ico.png) no-repeat center /
    contain;
  top: -18px;
  filter: invert(1);
  left: 50%;
  transform: translateX(-50%);
  animation: innerNavIconSpin 0.6s ease;
}

@keyframes innerNavIconSpin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(180deg);
  }
}

/* portfolio-renewal item grid */
.renewal .contents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-block: 5vw;
  padding-inline: 12.2vw;
}
.renewal .contents .portfolio-list-box {
  position: relative;
  overflow: hidden;
}

#portfolio.renewal .top-ico {
  width: 80px;
  height: 83px;
}
.renewal .contents-loader {
  height: 1px;
}

@media screen and (max-width: 1080px) {
  .renewal .inner-nav {
    font-size: 3.6vw;
    gap: 6vw;
  }
  .renewal .contents {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 5vw;
    gap: 12px;
  }
  .portfolio-popup .popup-card {
    width: 100vw;
    height: 90%;
  }
}

/* portfolio-renewal item popup */
body.popup-open {
  overflow: hidden;
}

.portfolio-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0.4s;
}
.portfolio-popup.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}
.portfolio-popup .popup-card {
  position: fixed;
  z-index: 1;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 68vw;
  height: 90%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.99);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}
.portfolio-popup.active .popup-card {
  transform: translateX(-50%) translateY(0);
}
.portfolio-popup .popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.portfolio-popup .popup-head {
  flex: none;
  padding: 2.5vw 24px 15px;
  text-align: center;
}
.portfolio-popup .popup-badge-ico {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  background: url(../img/portfolio/portfolio-star-ico.png) no-repeat center /
    contain;
  filter: invert(1);
}
.portfolio-popup .popup-title {
  margin-top: 10px;
  font-size: 3vw;
  font-weight: 600;
  font-family: "Pretendard";
}
.portfolio-popup .popup-category {
  display: inline-block;
  margin-top: 0.7vw;
}
.portfolio-popup .popup-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}

.portfolio-popup .popup-body::-webkit-scrollbar {
  width: 7px;
}

.portfolio-popup .popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-popup .popup-body::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 5px;
  height: 100px;
}
.portfolio-popup .popup-pagination {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-bottom: 16px;
}
.portfolio-popup .popup-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid black;
  opacity: 1;
}
.portfolio-popup .popup-pagination .swiper-pagination-bullet-active {
  background: #000;
}
.portfolio-popup .popup-swiper {
  width: 100%;
}
.portfolio-popup .popup-swiper .swiper-slide img {
  display: block;
  width: 80%;
  height: auto;
  margin: 0 auto;
}
.portfolio-popup .popup-nav-row {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  /* padding-bottom: 16px; */
}
.portfolio-popup .popup-nav {
  position: fixed;
  top: 50vh;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  z-index: 9;
  transition: 0.3s;
  padding-bottom: 2px;
}
.portfolio-popup .popup-nav:hover {
  opacity: 1;
}
.portfolio-popup .popup-nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.portfolio-popup .popup-prev {
  left: 12px;
}
.portfolio-popup .popup-next {
  right: 2vw;
}
