@import '../../../styles/vars/breakpoints.css';

:global(.d-slide-colored) .wrapper  {
  box-shadow: none;
}

.beforeAfter {
  position: relative;
  box-sizing: border-box;
}

.wrapper {
  position: relative;
  width: 100%;
  max-width: var(--component-max-width);
  padding-bottom: 51.2%;
  /* box-shadow: 0 6px 40px 0 rgba(83, 180, 231, 0.4); */
  /* border-radius: 20px; */
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #ffffff;
  box-sizing: border-box;

  .oldWrapper {
    border-bottom-right-radius: unset !important;
    border-top-right-radius: unset !important;
  }
}

.oldWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100% !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 0;
  border-right: 2px solid #ffffff;
  border-radius: inherit;
}

.circle {
  width: 54px;
  height: 54px;
  position: absolute;
  left: 100%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  cursor: ew-resize;
  border: solid 2px #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 50%;

  @media (--ms-and-down) {
    /* size: 40px; */
    width: 40px;
    height: 40px;
  }
}

.bfIcon {
  width: 24px;
  height: 13px;
  object-fit: contain;
}

.content {
  position: absolute;
  bottom: 0;
  left: 0;
  /* size: 100% 225px; */
  width: 100%;
  height: 225px;
  /* border-radius: 20px; */
  background-image: linear-gradient(to bottom, rgba(42, 42, 42, 0), rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 34px;
  user-select: none;
  pointer-events: none;
  border-top-left-radius: unset !important;
  border-top-right-radius: unset !important;

  @media (--ms-and-down) {
    height: auto;
    background: none;
    position: relative;
    top: 0;
    bottom: unset;
    padding: 0;
    margin-top: 14px;
  }
}
.title {
  margin: 0;
  font-size: rem(20px);	
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.35;
  letter-spacing: 0.4px;
  text-align: center;
  color: #ffffff;
  user-select: none;
  pointer-events: none;
  

  @media (--ms-and-down) {
    color: var(--black);
    /* text: bold 24px left; */
    letter-spacing: 0.6px;
    font-weight: bold;
    font-size: rem(24px);
    text-align: left;
  }
}

.sticker {
  display: inline-flex;
  align-items: center;
  color: #fff;
  /* min-height: 35px; */
  padding: 10px 15px;
  border-radius: 17.5px;
  background-color: rgba(0, 0, 0, 0.5);
  user-select: none;
  font-size: rem(15px);
  max-width: 40%;
  @media (--sm-and-down) {
    font-size: rem(12px);
    padding: 7px 10px;
  }
}
/* 
.oldArea {
  width: 100%;
  height: 100%;
  overflow: hidden;
} */

.dateOld {
  position: absolute;
  top: 30px;
  left: 30px;

  @media (--ms-only) {
    top: 20px;
    left: 20px;
  }

  @media (--xs-only) {
    top: 10px;
    left: 10px;
  }
}

.dateNew {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;

  @media (--ms-only) {
    top: 20px;
    right: 20px;
  }

  @media (--xs-only) {
    top: 10px;
    right: 10px;
  }
}

.editable {
  .title {
    user-select: auto;
    pointer-events: auto;
  }
}
