/* 비포 애프터 */
article.beforeafter{
    background-image : url('/statics/xdimg/beforeafterbg.jpg');
    background-repeat : no-repeat;
    background-size : cover;
    background-position : center;
    padding-top : 50px;
    display : flex;
    align-items : center;
    justify-content: center;
}

.beforeafter-title{
    margin-bottom : 10px;
}

.beforeafter-title img{
    width : auto;
}

.beforeafter-title-mo{
    display : none;
}

.beforeafter-thumb{
    width : 10%;
}

.beforeafter-thumb .beforeafter-thumb-li{
    flex : 1;
    cursor : pointer;
    margin : 10px 0;
    position:relative;
}

.beforeafter-photo{
    display : flex;
    align-items : center;
    padding-bottom: 50px;
}

.beforeafter-compares{
    position : relative;
    width : 75%;
    margin-right : 30px;
}

.beforeafter-compares li, .beforeafter-compares li > div{
    position : absolute;
    top : 0;
    left : 0;
    width: 100%;
    height: auto;
    margin-top : 10px;
    display: flex;
    align-items: center;
}

.beforeafter-compares li{
    display : none;
}

.beforeafter-compares li.on{
    display : flex;
}

.beforeafter-model{
    margin-left : 20px;
}

.beforeafter .before{
    border-right : 1px solid #fff;
}

.btn-floating {
    overflow: hidden;
    z-index: 1;
    width: 37px;
    height: 37px;
    line-height: 40px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    font-size: 1.1rem;
    text-align: center;
    display: inline-block;
    color: white;
    border-radius: 50%;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.beforeafter-wrap{
    max-width:1200px;
    width : 90%;
    flex-wrap : wrap;
}

.beforeafter-wrap > div:first-child{
    width : 60%;
}

.beforeafter-model-wrap{
    display:flex;
    align-items: flex-end;
    width : 40%;
}

.beforeafter-thumb li.on:after{
    display: flex;
    align-items: center;
    justify-content: center;
    content: 'VIEW';
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

@media screen and (max-width : 991px){
    .beforeafter-title{
        display : none;
    }

    .beforeafter-title-mo{
        display : block;
        width: 50%;
        margin: 0 auto 30px;
    }

    .beforeafter-photo{
        flex-direction: column;
    }

    .beforeafter-compares{
        margin-bottom : 20px;
        margin-right : 0;
        width : 90%;
    }

    .beforeafter-thumb{
        width : 100%;
        display : flex;
    }

    .beforeafter-thumb .beforeafter-thumb-li img{
        width : 90%;
    }

    .beforeafter-thumb li.on:after{
        width : 90%;
    }

    .beforeafter-model-wrap{
        display : none;
    }
    
    .beforeafter-wrap > div:first-child{
    	width : 100%;
    }
}

/*image-comparison-slider-master*/
.cd-image-container {
	position: relative;
	width: 80%;
	margin: 0em 5% 0 0;
}
.cd-image-container img {
  display: block;
}

.cd-image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #ffffff;
  padding: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  -webkit-transform: translateY(20px);
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -o-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0.3s 0.7s;
  -moz-transition: -moz-transform 0.3s 0.7s, opacity 0.3s 0.7s;
  transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
}
.cd-image-label.is-hidden {
  visibility: hidden;
}
.is-visible .cd-image-label {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.cd-resize-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cd-resize-img{
  border-right: 1px solid white;
}
.cd-resize-img img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto !important;
  max-width: none;
}
.cd-resize-img .cd-image-label {
  right: auto;
  left: 0;
}
.is-visible .cd-resize-img {
  width: 75%;
  /* bounce in animation of the modified image */
  /*-webkit-animation: cd-bounce-in 0.2s;*/
  /*-moz-animation: cd-bounce-in 0.2s;*/
  /*animation: cd-bounce-in 0.2s;*/
}

@-webkit-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@-moz-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
.cd-handle {
  touch-action: none;
  position: absolute;
  height: 32px;
  width: 32px;
  /* center the element */
  left: 75%;
  top: 50%;
  margin-left: -16px;
  margin-top: -22px;
  border-radius: 50%;
  background: url("/statics/xdimg/svg/cd-arrows.svg") no-repeat center center;
  cursor: move;
  box-shadow: 0 0 15px #aaa;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0) scale(0);
  -moz-transform: translate3d(0, 0, 0) scale(0);
  -ms-transform: translate3d(0, 0, 0) scale(0);
  -o-transform: translate3d(0, 0, 0) scale(0);
  transform: translate3d(0, 0, 0) scale(0);
}
.cd-handle.draggable {
  /* change background color when element is active */
  background-color: #445b7c;
}
.is-visible .cd-handle {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  -moz-transform: translate3d(0, 0, 0) scale(1);
  -ms-transform: translate3d(0, 0, 0) scale(1);
  -o-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0s 0.7s;
  -moz-transition: -moz-transform 0.3s 0.7s, opacity 0s 0.7s;
  transition: transform 0.3s 0.7s, opacity 0s 0.7s;
}
