.cq-imagetoggle-content {
  position: relative;
  /*overflow: hidden;*/
  width: 100%;
  height: 240px;
  box-sizing: border-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row wrap;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  justify-content: space-between;
}
.cq-imagetoggle-imagecontainer{
  cursor: pointer;
  flex-grow: 1;
  width: 50%;
  background-size: cover;
  background-position: center center;
}
h3.cq-imagetoggle-title{
  margin: 0 0 8px 0;
  color: #FFF;
  font-size: 1.5em;
  line-height: 140%;
}
p.cq-imagetoggle-description{
  font: 1em;
  line-height: 140%;
}
.cq-imagetoggle-description{
  color: #FFF;
}
.cq-imagetoggle-text{
  flex-grow: 2;
  width: 50%;
  height: 100%;
  background: #3D284B;
  padding: 24px 18px;
  color: #FFF;
}
/*.cq-imagetoggle-arrow {
  position: absolute;
  left: 0;
  top: calc(50% - 20px);
  border: 20px solid rgba(255, 0, 0, 0.9);
  border-top: 20px solid transparent;
  border-bottom: 20px solid rgba(255, 0, 0, 0.9);
  height: 100%;
  width: 20px;
  background: rgba(255, 0, 0, 0.9);
  box-shadow: 0 100vw 0 100vw rgba(255, 0, 0, 0.9);
}
*/
.cq-imagetoggle-shape-rounded .cq-imagetoggle-text{
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.cq-imagetoggle-shape-rounded .cq-imagetoggle-imagecontainer{
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.cq-imagetoggle-shape-round .cq-imagetoggle-text{
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.cq-imagetoggle-shape-round .cq-imagetoggle-imagecontainer{
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.cq-imagetoggle-position-left.cq-imagetoggle-shape-rounded .cq-imagetoggle-text{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.cq-imagetoggle-position-left.cq-imagetoggle-shape-rounded .cq-imagetoggle-imagecontainer{
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.cq-imagetoggle-position-left.cq-imagetoggle-shape-round .cq-imagetoggle-text{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.cq-imagetoggle-position-left.cq-imagetoggle-shape-round .cq-imagetoggle-imagecontainer{
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}


.cq-imagetoggle-moretext{
  background-color: #333;
  max-width: 100%;
  display: none;
  padding: 32px 20px 20px 20px;
}
.cq-imagetoggle-shape-rounded .cq-imagetoggle-moretext{
  border-radius: 8px;
}
.cq-imagetoggle-shape-round .cq-imagetoggle-moretext{
  border-radius: 16px;
}

.cq-imagetoggle-arrowcontainer {
    z-index: 2;
    /*left: calc(100% - 20px);*/
    position: absolute;
    left: 50%;
    top: 0;
    width: 30px;
    height: 100%;
    display: flex;
    transition: all .3s;
}
.cq-imagetoggle-position-left .cq-imagetoggle-arrowcontainer {
    left: calc(50% - 59px);
}

.cq-imagetoggle-opened .cq-imagetoggle-arrowcontainer {
    position: absolute;
    left: -25%;
    /*top: calc(100% - 30px);*/
    top: 100%;
    height: 30px;
    width: 100%;
    display: flex;
    transition: all .6s;
    -webkit-animation-name: fadeInOut;
    animation-name: fadeInOut;
}
.cq-imagetoggle-position-left .cq-imagetoggle-opened .cq-imagetoggle-arrowcontainer {
    left: 25%;
}


.cq-imagetoggle-arrow {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-right: 30px solid transparent;
    border-left: 30px solid #3D284B;
    border-bottom: 30px solid transparent;
    margin: auto;
    transition: all .2s;
}
.cq-imagetoggle-position-left .cq-imagetoggle-arrow{
    border-top: 30px solid transparent;
    border-right: 30px solid #3D284B;
    border-left: 30px solid transparent;
    border-bottom: 30px solid transparent;
    margin: auto;

}
.cq-imagetoggle-opened .cq-imagetoggle-arrow {
    -webkit-animation-name: fadeInOut;
    animation-name: fadeInOut;
    border-top: 30px solid #3D284B;
    border-right: 30px solid transparent;
    border-left: 30px solid transparent;
    border-bottom: 30px solid transparent;
    transition: all .3s;
}


@-webkit-keyframes fadeInOut {
  from {
    opacity: 1;
  }

   50% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInOut {
  from {
    opacity: 1;
  }
   50% {
    opacity: 0;
  }
  to {
    opacity: 0;
  }
}

.fadeInOut {
  -webkit-animation-name: fadeInOut;
  animation-name: fadeInOut;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

.animated.delay-1s {
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}
