.portfolio-page {
  margin-top: 11rem;
}
/* .portfolio-page > .section:nth-child(2) .section-wrapper {
  padding-top: 0;
} */
.portfolio-intro__logo {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}
.portfolio-intro__logo img {
  max-width: 19rem;
  height: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.portfolio-intro__title {
  font-size: var(--fs-24);
  text-align: center;
}
.portfolio-intro__editor {
  text-align: center;
  margin-top: 0.8rem;
  color: var(--c-neutral-700);
  margin-right: auto;
  margin-left: auto;
}
.portfolio-intro {
  padding: 0 calc(var(--padding-section-base) * 8) var(--gutter-container);
}
.portfolio-ui {
  cursor: pointer;
}

.portfolio-ui__img {
  background-color: var(--c);
  /* border-radius: 3rem; */
  padding: 1.4rem;
  position: relative;
  -webkit-clip-path: url(#portfoliocurve);
  clip-path: url(#portfoliocurve);
}
.portfolio-ui-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
}
.portfolio-ui video,
.portfolio-ui img {
  /* border-radius: 2rem; */
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  /* max-height: 30rem; */
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top;
  object-position: top;
  -webkit-clip-path: url(#portfoliocurve);
  clip-path: url(#portfoliocurve);
}
/* .portfolio-ui__badge {
  background-image: linear-gradient(
    to left,
    var(--c-white),
    var(--c-neutral-250)
  );
  -webkit-mask-image: url(../../../img/masks/curve-left3.svg);
  mask-image: url(../../../img/masks/curve-left3.svg);
  width: 1.6rem;
  height: 9.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -0.05rem;
  z-index: 2;
  pointer-events: none;
  bottom: 4rem;
} */
.portfolio-ui__img::before {
  content: "";
  background-image: url(../../../img/bg/badge-wbs-portfolio-light.svg);
  right: -1px;
  width: 1.8rem;
  height: 12.8rem;
  bottom: 6%;
  background-position: right;
  transform-origin: right;
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
}
.portfolio-ui__zoom {
  background-image: linear-gradient(
    to top,
    var(--c-white),
    var(--c-neutral-250)
  );
  -webkit-mask-image: url(../../../img/portfolio/zoom-curve.svg);
  mask-image: url(../../../img/portfolio/zoom-curve.svg);
  width: 15.6rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 2;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: 0.5s var(--ease3);
  transform-origin: left;
}
.mobile .portfolio-ui__zoom {
  display: none;
}
.portfolio-ui__img:hover .portfolio-ui__zoom {
  transform: scale(1.15) translateX(-50%);
}
.portfolio-ui__add {
  background-image: linear-gradient(
    to bottom,
    var(--c-white),
    var(--c-neutral-250)
  );
  -webkit-mask-image: url(../../../img/masks/curve-bottom2.svg);
  mask-image: url(../../../img/masks/curve-bottom2.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top;
  mask-position: top;
  width: 24rem;
  height: 4.4rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 1rem;
  cursor: pointer;
  padding-top: 0.5rem;
}
.portfolio-ui__addtext {
  font-size: 1.2rem;
}
.portfolio-ui__zoom .icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--c-primary);
  opacity: 0.7;
  stroke-width: 2px;

  overflow: visible;
}
.portfolio-ui__zoom .icon path {
  transition: var(--t-ease) var(--ease3);
}
.portfolio-ui__img:hover .portfolio-ui__zoom .line1 {
  transform: translate(0.3rem, -0.3rem);
}
.portfolio-ui__img:hover .portfolio-ui__zoom .line2 {
  transform: translate(-0.3rem, 0.3rem);
}
.portfolio-ui__img:hover .portfolio-ui__zoom .line3 {
  transform: translate(0.3rem, 0.3rem);
}
.portfolio-ui__img:hover .portfolio-ui__zoom .line4 {
  transform: translate(-0.3rem, -0.3rem);
}

.portfolio-ui-button {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}
/* modal */
.portfolio-modal {
  position: fixed;
  display: flex;
  justify-content: center;
  inset: 0;
  background-color: var(--c-primary);
  z-index: 999;
  overflow: hidden;
  padding-top: 10rem;
  opacity: 0;
  visibility: hidden;
  --p: 1.2rem;
  --w: 3.2rem;
}

.portfolio--gallery {
  background: var(--c-neutral-100);
  padding: var(--p) var(--p) 0;
  border-radius: 3.2rem 3.2rem 0 0;
  height: 100%;
  overflow: visible;
}

.portfolio--gallery-wrapper {
  width: min(105rem, 93vw);
  flex-direction: column;
  display: flex;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding-right: calc(var(--w) + -0.5px);
  padding-left: calc(var(--w) + -0.5px);
  padding-top: 3.97rem;
  transform: translateY(2rem);
}
.mode--mobile.portfolio--gallery-wrapper {
  /* width: min(54rem, 93vw); */
  position: absolute;
  /* margin-left: 5rem; */
  z-index: 4;
  opacity: 0;
  visibility: hidden;
}
.portfolio-modal-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--c-white);
  margin-top: 18rem;
  position: absolute;
  left: 2vw;
  z-index: 5;
}
.portfolio-modal-switch button {
  width: var(--w);
  height: var(--w);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-white);
  overflow: hidden;
  position: relative;
  flex: none;
  transition: 1.3s var(--ease2);
}

.portfolio-modal-switch button::before {
  content: "";
  background-color: var(--c-white);
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
  transform: scaleY(0);
  transition: 1s var(--ease3);
  pointer-events: none;
}
.portfolio-modal-switch button.active {
  color: var(--c-primary-400);
  pointer-events: none;
}
.portfolio-modal-switch button.active::before {
  transform: scaleY(1);
}
.modal-switch-desktop::before {
  transform-origin: bottom;
}
.modal-switch-mobile::before {
  transform-origin: top;
}
.portfolio-modal-switch__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
  font-size: 1rem;
}
.portfolio-modal-switch__arrow .top {
  transform: rotateX(180deg);
}
.swiper--ui {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: visible;
}
.swiper--ui .swiper-wrapper {
  height: auto;
}

.sw--scroll-portfolio-d {
  height: 100%;
  overflow: hidden;
  border-radius: 2rem 2rem 0 0;
}

/* swiper */
.portfolio-modal {
  --swiper-navigation-sides-offset: 0;
  --swiper-navigation-top-offset: 35.2rem;
  --swiper-navigation-size: 1.1rem;
}
.portfolio--gallery-wrapper .sw--btn {
  -webkit-mask-image: url(../../../img/portfolio/sm-curve.svg);
  mask-image: url(../../../img/portfolio/sm-curve.svg);
  background: linear-gradient(to right, var(--c-white), var(--c-neutral-250));
  height: 12rem;
  width: var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
}
.portfolio--gallery-wrapper .sw--btn:hover {
  color: var(--c-primary-400);
}
.portfolio--gallery-wrapper .sw--btn.swiper-button-next {
  transform: rotateY(180deg);
}
.portfolio--gallery-wrapper .sw--btn.swiper-button-next::after {
  transform: rotate(45deg);
}
.sw--btn.swiper-button-next.swiper-button-disabled,
.sw--btn.swiper-button-prev.swiper-button-disabled {
  opacity: 1;
}
.sw--btn.swiper-button-next.swiper-button-disabled::after,
.sw--btn.swiper-button-prev.swiper-button-disabled::after {
  opacity: 0.4;
}
.swiper-pagination.pagination-portfolio-d {
  right: calc(var(--w) + 3rem);
  --swiper-pagination-top: 0.7rem;
  --swiper-pagination-bottom: auto;
  transform: none !important;
  transition: var(--t-ease) var(--ease2);
  left: auto;
  width: auto;
  --swiper-pagination-color: var(--c-primary);
  --swiper-pagination-bullet-inactive-opacity: 1;
  display: none;
}
.pagination-portfolio-d .swiper-pagination-bullet {
  border: 1.5px solid var(--c-white);
  position: relative;
}
.pagination-portfolio-d .swiper-pagination-bullet::before {
  content: "";
  background-color: var(--c-primary-400);
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: var(--t-ease) var(--ease2);
  transform: scale(0);
}
.pagination-portfolio-d
  .swiper-pagination-bullet.swiper-pagination-bullet-active::before {
  transform: scale(1);
}
[data-scroll-portfolio-d] {
  height: auto;
}
[data-portfolio-d].swiper-slide {
  overflow: visible;
}
.box--portfolio-tools {
  position: absolute;
  top: 0;
  left: calc(100% + var(--p) + -0.05rem);
  display: flex;
  flex-direction: column;
}
.box--portfolio__scroll {
  width: var(--w);
  height: 25rem;
  padding: 5.5rem 0;
  position: relative;
  -webkit-mask-image: url(../../../img/portfolio/scrollbar-curve.svg);
  mask-image: url(../../../img/portfolio/scrollbar-curve.svg);
  background: linear-gradient(to right, var(--c-white), var(--c-neutral-250));
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
  margin-top: -3.8rem;
}
.box--portfolio__inscroll::before {
  content: "";
  background-color: #d1cfe5;
  width: 0.7rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1rem;
  height: 100%;
}
.box--portfolio__inscroll {
  position: relative;
  height: 100%;
}
.box--portfolio__journal {
  -webkit-mask-image: url(../../../img/portfolio/sm-curve.svg);
  mask-image: url(../../../img/portfolio/sm-curve.svg);
  background: linear-gradient(to right, var(--c-white), var(--c-neutral-250));
  height: 12rem;
  width: var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-0px);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
}
.svg-add-journal {
  width: 1.6rem;
  height: 1.6rem;
  fill: transparent;
  stroke: var(--c-primary);
  flex: none;
  transition: var(--t-ease) var(--ease2);
}
.added .svg-add-journal {
  fill: #970c27;
  stroke: #970c27;
}
.box--portfolio__journal.added .svg__journal {
  fill: #970c27;
  stroke: #970c27;
}

.box--portfolio__prev {
  -webkit-mask-image: url(../../../img/masks/curve-left2.svg);
  mask-image: url(../../../img/masks/curve-right1.svg);
  left: calc(100% - 0.5px);
  background: linear-gradient(to right, var(--c-white), var(--c-neutral-250));
}
.svg__journal {
  width: 1.6rem;
  height: 1.6rem;
  fill: transparent;
  stroke: var(--c-primary);
  flex: none;
  transition: var(--t-ease) var(--ease2);
}
/* .box--portfolio__scroll .swiper-scrollbar {
  --swiper-scrollbar-sides-offset: 6rem;
  --swiper-scrollbar-right: auto;
  --swiper-scrollbar-left: 50%;
  --swiper-scrollbar-bg-color: #d1cfe5;
  --swiper-scrollbar-size: 0.6rem;
} */
.swiper-scrollbar-drag {
  left: 6px;
  width: 18px;
}
.portfolio-ui-item img {
  width: 100%;
  background: var(--c-neutral-100);
  z-index: -1;
  position: relative;
}

.portfolio-cta-page img {
  width: 95%;
  margin: auto;
}
.portfolio-cta-page {
  padding-top: var(--space-lg);
}
.portfolio-cta__btns {
  justify-content: center;
}
.portfolio-cta__btns .btn {
  min-width: 17rem;
  font-size: var(--fs-16);
  height: 5rem;
}
.portfolio-cta__btns .btn.call {
  font-size: var(--fs-18);
}

.portfolio-ui-item {
  overflow-y: auto;
  height: 100%;
  border-radius: 2rem 2rem 0 0;
  border: 1px solid var(--c-primary);
  border-bottom: none;
  box-shadow: inset 0 0 15px hsl(0deg 0% 0% / 25%);
}

.scroll-thumb {
  width: 2rem;
  height: 2rem;
  background-color: var(--c-white);
  border-radius: 50%;
  position: absolute;
  cursor: pointer;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 4px #1900ff5c;
  border: 0.35rem solid var(--c-primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-thumb::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background-color: var(--c-primary-400);
}
.scroll-range {
  width: 100%;
  position: relative;
  opacity: 0;
  position: absolute;
  inset: 0;
  -webkit-writing-mode: vertical-lr;
  -ms-writing-mode: tb-lr;
  writing-mode: vertical-lr;
  direction: ltr;
  z-index: 3;
  cursor: pointer;
}
.scroll-range:active + .scroll-thumb {
  transform: scale(1.05) translateX(-50%);
  box-shadow: 0 4px 7px #1900ff7a;
}
.portfolio-modal__logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-2rem);
  width: 12.4rem;
  /* opacity: 0; */
}
.portfolio--gallery__logo {
  -webkit-mask-image: url(../../../img/portfolio/logo-curve.svg);
  mask-image: url(../../../img/portfolio/logo-curve.svg);
  -webkit-mask-size: 100% 100%;
  background: linear-gradient(to top, var(--c-white), var(--c-neutral-250));
  width: 21rem;
  height: 4rem;
  position: absolute;
  padding: 0.6rem 5.5rem;
  left: 5rem;
  top: 0;
  display: none;
}
.portfolio--gallery__logo img {
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  height: 100%;
}
.portfolio-modal-close {
  --c: var(--c-white);
  position: absolute;
  right: 3rem;
  top: 3rem;
  transform: rotate(45deg) scale(1.2);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.2px solid var(--c-white);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.5s var(--ease3);
}
.portfolio-modal-close:hover {
  transform: rotate(-45deg) scale(1.2);
}
/**************************/
/* BELOW 360px */
/**************************/
@media (min-width: 22.5em) {
}
/**************************/
/* BELOW 576px */
/**************************/
@media (min-width: 36em) {
}

/**************************/
/* ABOVE 800px */
/**************************/

@media (min-width: 50em) {
  .portfolio-intro__editor {
    max-width: 72%;
  }
  .portfolio-modal-switch {
    position: static;
  }
  .portfolio-modal-switch button {
    width: 5rem;
    height: 5rem;
    font-size: 2.2rem;
  }
  .portfolio--gallery__logo {
    display: block;
  }
  .swiper-pagination.pagination-portfolio-d {
    display: block;
  }
  .portfolio-ui__add {
    right: 3rem;
  }
  .portfolio-ui video,
  .portfolio-ui img {
    /* max-height: 77rem; */
  }
  .portfolio-cta-page img {
    width: 49%;
  }
}

/**************************/
/* ABOVE 1024px */
/**************************/
@media (min-width: 64em) {
}
/**************************/
/* ABOVE 1920px */
/**************************/
@media (min-width: 120em) {
}

@media (max-width: 49.99em) {
}
