.cp-gallery__inner {
  overflow: hidden;
  max-width: 2560px;
  margin: 0 auto;
}

.cp-gallery__grid {
  position: relative;
  max-height: 100vh;
  margin: -4px;
  margin: -0.4rem;
}

.cp-gallery__grid:after {
  display: block;
  width: 100%;
  max-height: 100vh;
  padding-bottom: 55.6%;
  content: '';
}

.cp-gallery__grid:hover .cp-gallery__item {
  opacity: 0.3;
}

.cp-gallery__slider .cm-share {
  display: none;
  z-index: 40;
}

.cp-gallery__slider .cm-share__dimmed {
  opacity: 1;
  visibility: visible;
}

.cp-gallery__item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px;
  padding: 0.4rem;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: opacity 0.8s;
  transition: opacity 0.8s;
}

.cp-gallery__item:hover {
  opacity: 1 !important;
}

.cp-gallery__item:nth-child(1) {
  top: 0;
  left: 0;
  width: 22%;
  height: 33.333333%;
}

.cp-gallery__item:nth-child(2) {
  top: 33.333333%;
  left: 0;
  width: 22%;
  height: 66.666667%;
}

.cp-gallery__item:nth-child(3) {
  top: 0;
  left: 22%;
  width: 56%;
  height: 100%;
}

.cp-gallery__item:nth-child(4) {
  top: 0;
  left: 78%;
  width: 22%;
  height: 50%;
}

.cp-gallery__item:nth-child(5) {
  top: 50%;
  left: 78%;
  width: 22%;
  height: 50%;
}

.cp-gallery__item .item-link {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.cp-gallery__item .gallery-img {
  width: 100%;
  height: 100%;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-transition: -webkit-transform 0.8s;
  transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  transition: transform 0.8s, -webkit-transform 0.8s;
}

.cp-gallery__item .gallery-img:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.cp-gallery .cm-layer__dimmed {
  background: #111111;
}

.cp-gallery .cm-layer__wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  background-color: transparent;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}

.cp-gallery .cm-layer__body {
  position: relative;
  max-width: 2560px;
  margin: 0 auto;
}

.cp-gallery .cm-layer__close-wrap button {
  width: 70px;
  width: 7rem;
  height: 70px;
  height: 7rem;
}

.cp-gallery .cm-layer__content,
.cp-gallery .cm-layer .cp-gallery__slider,
.cp-gallery .cm-layer .hiveSwiper-container,
.cp-gallery .cm-layer .slide-inner,
.cp-gallery .cm-layer .slide-image {
  height: 100%;
}

.cp-gallery .cm-layer .swiper-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  -js-display: flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 70px 0;
  padding: 7rem 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.cp-gallery .cm-layer .swiper-wrapper {
  z-index: 20;
}

.cp-gallery .cm-layer .swiper-slide {
  width: 55.365%;
}

.cp-gallery .cm-layer .swiper-slide.is-active .cm-share__dimmed {
  opacity: 0;
  visibility: hidden;
}

.cp-gallery .cm-layer .swiper-slide.is-active .fold-text-inner {
  opacity: 1;
}

.cp-gallery .cm-layer .swiper-slide.is-active .cm-share .cm-share__link {
  display: block;
}

.cp-gallery .cm-layer .swiper-pagination {
  bottom: 28px;
  bottom: 2.8rem;
}

.cp-gallery .cm-layer .swiper-button-prev,
.cp-gallery .cm-layer .swiper-button-next {
  z-index: 40;
  text-shadow: 0px 0px 3px #666;
}

.cp-gallery .cm-layer .swiper-button-prev button:after,
.cp-gallery .cm-layer .swiper-button-next button:after {
  width: 21px;
  width: 2.1rem;
  height: 38px;
  height: 3.8rem;
}

.cp-gallery .cm-layer .swiper-button-prev {
  left: 18px;
  left: 1.8rem;
}

.cp-gallery .cm-layer .swiper-button-next {
  right: 18px;
  right: 1.8rem;
}

.cp-gallery .cm-layer .swiper-button-disabled {
  display: none;
}

.cp-gallery .cm-layer .slide-inner .cm-share {
  display: block;
}

.cp-gallery .cm-layer .slide-inner .cm-share .cm-share__link {
  display: none;
}

.cp-gallery .cm-layer .slide-inner .cm-share.is-active .cm-share__dimmed {
  opacity: 1;
  visibility: visible;
}

.cp-gallery .cm-layer .slide-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  -js-display: flex;
  display: flex;
  height: 41.5104vw;
  max-height: -webkit-calc(100vh - 140px);
  max-height: calc(100vh - 140px);
  background-position: 50% 50%;
  background-size: cover;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.cp-gallery .cm-layer .slide-image img {
  visibility: hidden;
  width: 100%;
  max-height: -webkit-calc(100vh - 140px);
  max-height: calc(100vh - 140px);
  vertical-align: top;
}

.cp-gallery .cm-layer .fold-text-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.cp-gallery .cm-layer .fold-text-wrap:after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 25%;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(transparent));
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), transparent);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
  content: '';
}

.cp-gallery .cm-layer .fold-text-inner {
  position: absolute;
  top: 21px;
  top: 2.1rem;
  left: 30px;
  left: 3rem;
  z-index: 10;
  width: 48.92%;
  opacity: 0;
  text-align: left;
  text-shadow: 0px 0px 3px rgba(1, 0, 0, 0.1);
  -webkit-transition: opacity .4s;
  transition: opacity .4s;
}

.cp-gallery .cm-layer .fold-text-inner.is-opened .fold-text-btn:after {
  top: 9px;
  top: 0.9rem;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.cp-gallery .cm-layer .fold-text-inner.is-opened .fold-desc-wrap {
  visibility: visible;
  opacity: 1;
}

@supports (-moz-appearance: none) {
  .cp-gallery .cm-layer .fold-text-inner.is-opened .fold-desc-wrap {
    -webkit-transition: opacity .4s;
    transition: opacity .4s;
  }
}

.cp-gallery .cm-layer .fold-text-inner .fold-text-btn {
  position: relative;
  padding-right: 20px;
  padding-right: 2rem;
}

.cp-gallery .cm-layer .fold-text-inner .fold-text-btn:after {
  position: absolute;
  top: 6px;
  top: 0.6rem;
  right: 2px;
  right: 0.2rem;
  width: 5px;
  width: 0.5rem;
  height: 5px;
  height: 0.5rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
  content: '';
}

.cp-gallery .cm-layer .fold-text-inner .fold-text-title {
  display: inline-block;
  padding-top: 5px;
  padding-top: 0.5rem;
  font-family: "genesis-head-office-light", sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
}

.cp-gallery .cm-layer .fold-desc-wrap {
  visibility: hidden;
  opacity: 0;
  margin-top: 16px;
  margin-top: 1.6rem;
  font-size: 16px;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.5;
  -webkit-transition: opacity .4s, visibility .4s;
  transition: opacity .4s, visibility .4s;
}

@supports (-moz-appearance: none) {
  .cp-gallery .cm-layer .fold-desc-wrap {
    -webkit-transition: opacity .4s, visibility .5s;
    transition: opacity .4s, visibility .5s;
  }
}

.cp-gallery .cm-layer .cm-share__link {
  right: 30px;
  right: 3rem;
  bottom: 30px;
  bottom: 3rem;
}

@media (max-width: 1599px) {
  .cp-gallery .cm-layer__close-wrap button {
    width: 60px;
    width: 6rem;
    height: 60px;
    height: 6rem;
  }
  .cp-gallery .cm-layer .swiper-slide {
    width: 52.35%;
  }
  .cp-gallery .cm-layer .swiper-button-prev {
    left: 8px;
    left: 0.8rem;
  }
  .cp-gallery .cm-layer .swiper-button-next {
    right: 8px;
    right: 0.8rem;
  }
  .cp-gallery .cm-layer .slide-image {
    height: 39.3382vw;
  }
  .cp-gallery .cm-layer .fold-text-inner {
    top: 14px;
    top: 1.4rem;
    left: 20px;
    left: 2rem;
    width: 50.56%;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-btn {
    padding-right: 17px;
    padding-right: 1.7rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-title {
    padding-bottom: 1px;
    font-size: 16px;
    font-size: 1.6rem;
  }
  .cp-gallery .cm-layer .cm-share__link {
    right: 10px;
    right: 1rem;
    bottom: 13px;
    bottom: 1.3rem;
  }
}

.type-light .cp-gallery .swiper-button-prev button:after,
.type-light .cp-gallery .swiper-button-next button:after {
  background: url("../../../../../../etc.clientlibs/genesis-p2/global/clientlibs/clientlib-basepage/resources/images/ico-swiper-arrow.png") no-repeat;
  background-size: 100% auto;
}

@media screen and (max-width: 1359px) {
  .cp-gallery .cm-layer .swiper-slide {
    width: 69.82%;
  }
  .cp-gallery .cm-layer .slide-image {
    height: 52.2461vw;
  }
  .cp-gallery .cm-layer .fold-text-inner {
    width: 58.42%;
  }
  .cp-gallery .cm-layer .fold-text-inner.is-opened .btn-desc:after {
    top: 8px;
    top: 0.8rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-btn {
    padding-right: 14px;
    padding-right: 1.4rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-btn:after {
    top: 4px;
    top: 0.4rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-title {
    font-size: 14px;
    font-size: 1.4rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-desc-wrap {
    margin-top: 12px;
    margin-top: 1.2rem;
    font-size: 14px;
    font-size: 1.4rem;
  }
}

@media (max-width: 1023px) {
  .cp-gallery__grid:after {
    padding-bottom: 157.1428571429%;
  }
  .cp-gallery__item:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 39.85%;
  }
  .cp-gallery__item:nth-child(2) {
    top: 39.85%;
    left: 0;
    width: 50%;
    height: 31.45%;
  }
  .cp-gallery__item:nth-child(3) {
    top: 39.85%;
    left: 50%;
    width: 50%;
    height: 22.6%;
  }
  .cp-gallery__item:nth-child(4) {
    top: 71.3%;
    left: 0;
    width: 50%;
    height: 28.7%;
  }
  .cp-gallery__item:nth-child(5) {
    top: 62.45%;
    left: 50%;
    width: 50%;
    height: 37.55%;
  }
}

@media screen and (max-width: 767px) {
  .cp-gallery__item {
    padding: 2px;
    padding: 0.2rem;
  }
  .cp-gallery__slider .swiper-container:before, .cp-gallery__slider .swiper-container:after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    z-index: 30;
    content: '';
  }
  .cp-gallery__slider .swiper-container:before {
    left: 0;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.35)), to(transparent));
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.35), transparent);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent);
  }
  .cp-gallery__slider .swiper-container:after {
    right: 0;
    background: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.35)), to(transparent));
    background: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.35), transparent);
    background: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent);
  }
  .cp-gallery__slider .cm-share {
    display: block;
  }
  .cp-gallery__slider .cm-share.is-active .cm-share__dimmed {
    position: absolute;
  }
  .cp-gallery__slider .cm-share__dimmed {
    position: static;
    opacity: 0;
    visibility: visible;
  }
  .cp-gallery .cm-layer .swiper-container {
    padding: 0;
  }
  .cp-gallery .cm-layer .swiper-wrapper {
    padding: 0;
  }
  .cp-gallery .cm-layer .swiper-slide {
    width: 100%;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .cp-gallery .cm-layer .swiper-pagination {
    right: 0;
    bottom: 23px;
    bottom: 2.3rem;
    z-index: 20;
    width: auto;
    margin: 0 55px;
    margin: 0 5.5rem;
  }
  .cp-gallery .cm-layer .swiper-button-prev,
  .cp-gallery .cm-layer .swiper-button-next {
    width: 34px;
    width: 3.4rem;
    height: 44px;
    height: 4.4rem;
  }
  .cp-gallery .cm-layer .swiper-button-prev button,
  .cp-gallery .cm-layer .swiper-button-next button {
    width: 34px;
    width: 3.4rem;
    height: 44px;
    height: 4.4rem;
  }
  .cp-gallery .cm-layer .swiper-button-prev button:after,
  .cp-gallery .cm-layer .swiper-button-next button:after {
    width: 12px;
    width: 1.2rem;
    height: 22px;
    height: 2.2rem;
  }
  .cp-gallery .cm-layer .swiper-button-next {
    right: 0;
  }
  .cp-gallery .cm-layer .swiper-button-prev {
    left: 0;
  }
  .cp-gallery .cm-layer .slide-inner {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .cp-gallery .cm-layer .slide-inner .cm-share {
    display: none;
  }
  .cp-gallery .cm-layer .slide-image {
    height: 75vw;
  }
  .cp-gallery .cm-layer .slide-image img {
    width: 100%;
    height: auto;
  }
  .cp-gallery .cm-layer .fold-text-wrap {
    position: static;
  }
  .cp-gallery .cm-layer .fold-text-wrap:after {
    display: none;
  }
  .cp-gallery .cm-layer .fold-text-inner {
    top: -webkit-calc(100% - 6px);
    top: calc(100% - 6px);
    left: 0;
    width: 100%;
    margin-top: 20px;
    margin-top: 2rem;
    padding: 0 30px;
    padding: 0 3rem;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .cp-gallery .cm-layer .fold-text-inner.is-opened .fold-text-btn:after {
    top: 10px;
    top: 1rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-btn {
    padding-right: 18px;
    padding-right: 1.8rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-btn:after {
    top: 6px;
    top: 0.6rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-text-title {
    padding-bottom: 2px;
    padding-bottom: 0.2rem;
    font-size: 16px;
    font-size: 1.6rem;
  }
  .cp-gallery .cm-layer .fold-text-inner .fold-desc-wrap {
    margin-top: 16px;
    margin-top: 1.6rem;
    color: #ccc;
  }
}

@media (max-device-width: 736px) and (orientation: landscape) {
  .cp-gallery .cm-layer .fold-text-inner {
    top: 0;
    width: 58.42%;
    text-align: left;
  }
}