@charset "utf-8";

/* MODAl */

/* scrollbar */
.modal ::-webkit-scrollbar {
  width: 0;
  background-color: transparent;
}
.modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 9999;
  animation: reveal 0.4s ease-out;
  display: none;
}

.modal.on {
  display: block;
}

.modal-flex-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .row {
  position: relative;
}

.modal-container {
  transition: opacity 0.4s ease-out;
  opacity: 0;
  width: 80%;
  max-width: 980px;
  background-color: #fff;
  position: relative;
}
.modal:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  transition-delay: 0.5s;
  z-index: -1;
  pointer-events: none;
}

.modal.on:before {
  opacity: 1;
}

.modal.on .modal-container {
  opacity: 1;
  animation: reveal 0.4s ease-out;
}

.modal-container-inner {
  padding: 50px 50px 80px 50px;
}

.modal .product-title {
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 59px;
}
.modal .product-list {
  height: 340px;
}
.modal-container-inner .product-list .img-wrap {
  float: left;
  margin-right: 40px;
  width: calc(57.3% - 40px);
  height: 100%;
  max-height: 360px;
}

.modal-container-inner .product-list .product-list-caption {
  width: 42.7%;
  float: right;
}

.modal .product-list .product-innerText {
  max-height: 360px;
  overflow-y:scroll;
  /*-webkit-line-clamp: 14;*/
  -webkit-line-clamp: initial;
}

.btn-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.4s ease;
  cursor: pointer;
}

.btn-modal-close:before,
.btn-modal-close:after {
  content: "";
  width: 32px;
  height: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 5px;
  background-color: #707070;
}

.btn-modal-close:after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.modal-container-inner > * {
  cursor: default;
}

/* LAY OUT */
.sw-section-inner {
  box-sizing: border-box;
  padding: 124px 0 132px;
}

.container.viewport100 {
  overflow: hidden;
  width: 100vw;
  max-width: 1366px;
}

.sw-product-swiper .swiper-slide {
  filter: brightness(0.4);
  transition: 0.5s cubic-bezier(0.68, 0.38, 0.4, 0.98);
}
.sw-product-swiper .swiper-slide.swiper-slide-active {
  filter: brightness(1);
}

.sw-section-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  position: relative;
  margin-bottom: 100px;
}
.sw-section-title:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background-color: var(--main-color);
}

/* PRODUCT */
.sw-section-inner.product {
  padding: 70px 45px 140px;
}
.section-title-section {
  margin-bottom: 60px;
}
.section-title {
  display: inline-block;
  font-size: 32px;
  font-weight: bold;
  margin-right: 14px;
}
.sw-section-comment {
  display: inline-block;
  font-size: 16px;
  color: var(--font-color4);
}

.product-cont {
}
.product-cont ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
}
.product-cont ul li {
  /*float: left;*/
  /*width: calc(50% - 4vw);*/
  /*margin-right: 4vw;*/
  /*margin-bottom: 100px;*/
}
.product-cont ul li:nth-child(2n) {
  margin-right: 0;
}

.product-list {
  display: block;
  cursor: pointer;
}
.product-list .img-wrap {
  float: left;
  position: relative;
  box-shadow: 10px 10px 15px 0 rgb(0 0 0 / 40%);
  width: 146px;
  height: 146px;
  overflow: hidden;
  margin-right: 24px;
}
.modal .product-list .img-wrap {
  box-shadow: none;
}

/* 커서 */
#main .product-list > * .img-wrap,
#main .product-list .product-title,
#main .product-list .product-innerText {
  cursor: pointer;
}

.product-list .img-wrap img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  height: 100%;
}
.product-list .img-wrap:before,
.product-list .img-wrap:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: Translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.32, -0.01, 0.25, 0.95);
  pointer-events: none;
}
.product-list .img-wrap:before {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
}
.product-list .img-wrap:after {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-image: url(/sewon/img/ico_moreview.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  box-shadow: 5px 5px 10px 0 rgb(0 0 0 / 30%);
}
.sw-section .product-list:hover .img-wrap:before,
.sw-section .product-list:hover .img-wrap:after {
  opacity: 1;
}

.product-list-caption {
  width: calc(100% - 170px);
  display: inline-block;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
}
.product-list-caption .product-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #000;
}
.product-list-caption .product-innerText {
  font-size: 16px;
  color: #707070;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* -------- RESPONSIVE --------- */

@media (max-width: 768px) {
  .sw-section-title {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  /* LAY-OUT */
  .section1 .sw-section-inner {
    padding: 120px 0 60px;
  }
  .section2 .sw-section-inner {
    padding: 60px 0 120px;
  }
  .web {
    display: none;
  }

  /* SECTION 1 */
  .section1 .sw-section-title {
    font-size: 28px;
    margin-bottom: 60px;
  }
  .section1 .sw-section-title em {
    display: block;
    text-align: center;
  }
  .section1 .sw-section-title:before {
    width: 60px;
  }

  /* SECTION 2 */
  .section-title-section {
    text-align: center;
    margin-bottom: 100px;
  }
  .section2 .section-title {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .product-cont ul {
    grid-template-columns: 1fr;
    row-gap: 120px;
  }
  /*.product-cont ul li{width:100%; margin-right:0; margin-bottom:120px;}*/
  .product-cont ul li:last-child {
    margin-bottom: 0;
  }

  .product-list {
    text-align: center;
  }
  .product-list .img-wrap {
    height: auto;
    width: calc(100% - 18vw);
    margin: 0 auto 37px;
    box-shadow: none;
    float: none;
  }
  .product-list .img-wrap img {
    position: static;
    transform: initial;
  }
  .product-list-caption {
    width: 100%;
  }
  .product-list-caption .product-title {
    font-size: 26px;
    margin-bottom: 14px;
    text-align: center;
  }
  .product-list-caption .product-innerText {
    font-size: 18px;
    text-align: left;
      display: block;
  }

  /* MODAL */
  .modal {
    display: block !important;
    transform: translateY(100vh);
    transition: transform 0.5s ease-out;
  }

  .modal:before {
    /* background-color: rgba(0,0,0,0.3);*/
    /*bg color error - on safari mobile Mode */
    background-color: #fff;
    transition: none;
    transition-delay: initial;
    z-index: -1;
    pointer-events: none;
  }
  .modal.on {
    transform: translateY(0px);
  }

  .modal .row {
    background-color: #fff;
  }
  .modal-flex-container {
    display: block;
  }

  .modal-container {
    width: 100%;
    opacity: 1;
    height: 100%;
    min-height: 90vh;
    overflow-y: scroll;
    overflow-x: hidden;
    animation: none;
    margin-top: 60px;
  }

  /*bg color error - on safari mobile Mode */
  .modal-container-inner {
    padding: 12px 0 84px;
  }
  /* .modal-container-inner{padding:61px 0 84px;} */
  .modal .product-title {
    font-size: 26px;
    margin-bottom: 28px;
  }
  .modal .product-list {
    height: auto;
  }
  .modal .product-list .img-wrap {
    width: 100%;
    float: none;
    padding: 0 20px;
    box-sizing: border-box;
    margin-bottom: 50px;
    background-color: #fff;
  }
  .modal-container-inner .product-list .product-list-caption {
    float: none;
    width: 100%;
    overflow: initial;
  }
  .modal .product-list .product-innerText {
    max-height: none;
    -webkit-line-clamp: initial;
  }

  .btn-modal-close {
    right: 14px;
    top: 13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: fixed;
    background-color: rgb(255 255 255);
    padding: 4px;
    box-shadow: 5px 5px 10px rgb(0 0 0 / 20%);
    transform: translateY(70px);
    transition: transform 0.4s ease-out;
    transition-delay: 0.3s;
    z-index: -1;
  }
  .modal.on .btn-modal-close {
    transform: translateY(0);
  }
  .btn-modal-close:before,
  .btn-modal-close:after {
    width: 17px;
    background-color: #707070;
  }
}

@media (max-width: 320px) {
  .section1 .sw-section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .product-list .img-wrap {
    width: calc(100% - 15px);
  }
}
