html {
  font-size: 10px;
  font-family: 'Kalam', cursive;
}
@media all and (min-width: 320px) {
  html {
    font-size: calc(10px + 12 * ((100vw - 320px) / 704));
  }
}
@media all and (min-width: 1024px) {
  html {
    font-size: 22px;
  }
}
* {
  box-sizing: border-box;
}
body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #000;
}
h1 {
  font-size: 5em;
  color: #fff8dc;
  padding: 0;
}
h2 {
  font-size: 1.2em;
  letter-spacing: 1px;
  color: #fff8dc;
  padding: 0;
  line-height: 1.3;
}
h3 {
  margin-top: 3em;
  font-size: 0.8em;
  line-height: 1.4;
  font-weight: normal;
  color: #fff8dc;
}
p {
  line-height: 1.4;
  color: rgba(255,248,220,0.8);
  font-size: 0.9em;
}
.wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  top: 0;
  left: 0;
}
.text-box {
  position: absolute;
  z-index: 4;
  width: 400px;
}
@media (max-width: 992px) {
  .text-box {
    width: 300px;
  }
}
.text-box .bg {
  text-transform: none;
  position: relative;
  z-index: 1;
  padding: 4px 10px;
  transition: -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99), -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
}
.text-box .bg:after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  transition: background 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
}
.btn-close {
  position: absolute;
  z-index: 5;
  top: 40px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
}
.btn-close:after,
.btn-close:before {
  position: absolute;
  z-index: 1;
  top: 20px;
  content: '';
  width: 30px;
  height: 1px;
  background: #fff8dc;
}
.btn-close:after {
  left: 5px;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.btn-close:before {
  right: 5px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.image-bg-left-mask {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  cursor: pointer;
}
.image-bg-left-mask .image-bg-left {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  background-image: url("https://www.lacor.info/film/sofia/img/sofia_12l©Wiame_Haddad.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  width: 100vw;
  height: 100vh;
  transition: -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99), -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
}
@media (max-width: 1312px) {
  .image-bg-left-mask .image-bg-left {
    background-size: contain;
    background-color: transparent;
  }
}
.image-bg-left-mask .text-box {
  top: calc(50% - 90px);
  left: calc(50% - 200px);
  text-align: center;
}
@media (max-width: 992px) {
  .image-bg-left-mask .text-box {
    left: calc(50% - 150px);
  }
}
.image-bg-left-mask .btn-close.btn-close-left {
  left: 40px;
  -webkit-transform: translateX(-100px) rotate(180deg);
          transform: translateX(-100px) rotate(180deg);
}
.image-bg-right-mask {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  cursor: pointer;
}
.image-bg-right-mask .image-bg-right {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  background-image: url("https://www.lacor.info/film/sofia/img/sofia_12r©Wiame_Haddad.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center left;
  width: 100vw;
  height: 100vh;
  transition: -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99), -webkit-transform 0.6s cubic-bezier(0.68, 0.01, 0.18, 0.99);
}
@media (max-width: 1312px) {
  .image-bg-right-mask .image-bg-right {
    background-size: contain;
  }
}
.image-bg-right-mask .text-box {
  top: calc(50% - 50px);
  right: calc(50% - 200px);
  text-align: right;
}
@media (max-width: 992px) {
  .image-bg-right-mask .text-box {
    right: calc(50% - 150px);
  }
}
.image-bg-right-mask .bg:after {
  background: rgba(255,255,255,0);
}
.image-bg-right-mask .btn-close.btn-close-right {
  right: 40px;
  background: rgba(255,255,255,0.2);
  -webkit-transform: translateX(100px) rotate(-180deg);
          transform: translateX(100px) rotate(-180deg);
}
.wrapper.active-left .image-bg-left-mask {
  width: 100vw;
}
.wrapper.active-left .image-bg-left-mask .image-bg-left {
  -webkit-transform: scale(1.3);
          transform: scale(1.3);
}
.wrapper.active-left .image-bg-right-mask {
  width: 0vw;
}
.wrapper.active-left .btn-close.btn-close-left {
  -webkit-transform: translateX(0px) rotate(0deg);
          transform: translateX(0px) rotate(0deg);
  opacity: 1;
}
.wrapper.active-left .btn-close.btn-close-left:hover {
  -webkit-transform: rotate(-90deg) scale(1.2);
          transform: rotate(-90deg) scale(1.2);
  background: rgba(0,0,0,0.5);
}
.wrapper.active-right .image-bg-left-mask {
  width: 0vw;
}
.wrapper.active-right .image-bg-right-mask {
  width: 100vw;
}
.wrapper.active-right .image-bg-right-mask .image-bg-right {
  -webkit-transform: scale(1.3);
          transform: scale(1.3);
}
.wrapper.active-right .text-box {
  display: none;
}
.wrapper.active-right .btn-close.btn-close-right {
  -webkit-transform: translateX(0px) rotate(0deg);
          transform: translateX(0px) rotate(0deg);
}
.wrapper.active-right .btn-close.btn-close-right:hover {
  -webkit-transform: rotate(90deg) scale(1.2);
          transform: rotate(90deg) scale(1.2);
  background: rgba(255,255,255,0.5);
}
.image-bg-left-mask:hover .bg {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.image-bg-left-mask:hover .bg:after {
  background: rgba(0,0,0,0.2);
}
.image-bg-right-mask:hover .bg {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.image-bg-right-mask:hover .bg:after {
  background: rgba(255,255,255,0);
  text-shadow: 1px 1px 0;
}
.wrapper.active-left .image-bg-left-mask .bg {
  -webkit-transform: none !important;
          transform: none !important;
}
.wrapper.active-left .image-bg-left-mask .bg:after {
  background: rgba(0,0,0,0.2) !important;
}
.wrapper.active-right .image-bg-right-mask .bg {
  -webkit-transform: none !important;
          transform: none !important;
}
.wrapper.active-right .image-bg-right-mask .bg:after {
  background: rgba(255,255,255,0.1) !important;
}
.wrapper.active-right .image-bg-right-mask:hover .bg,
.wrapper.active-left .image-bg-left-mask:hover .bg {
  -webkit-transform: none !important;
          transform: none !important;
}
