@media screen and (max-width: 991px) {
    .scrollmation-two-col__media {
        order: 1;
    }

    .scrollmation-two-col__content {
        order: 2;
    }
}

.scrollmation-two-col {
    display: flex;
    flex-direction: column;
}

.scrollmation-two-col__media {
    position: sticky;
    top: 40px;
    z-index: 1;
}

.scrollmation-two-col__media-item {
    display: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .scrollmation-two-col__media-item {
    background-color: #fff;
    background-color: rgb(255, 255, 255, 0.9);
    max-height: 480px;
    overflow: hidden;
  }
}

.scrollmation-two-col__media-item.is-visible {
    display: block;
}

.scrollmation-two-col__media-item img {
    margin-right: auto;
    margin-left: auto;
    width:100%;
}

.scrollmation-two-col__media-item figcaption {
    margin-top: 0.5em;

    font-size: 0.8em;
}

@media screen and (min-width: 992px) {
    .scrollmation-two-col {
        display: block;
    }
}

/*
 * Fade transition
*/
.js-change-content-on-scroll--fade .scrollmation-two-col__media {
    background-color: transparent;
}

@media screen and (max-width: 768px) {
  .js-change-content-on-scroll--fade .scrollmation-two-col__media {
      background-color: rgb(255, 255, 255, 0.9);
  }
}

.js-change-content-on-scroll--fade .scrollmation-two-col__media-item {
    position: absolute;
    top: 0;
    left: 5%;

    display: block;
    width: 95%;
    background: none;

    opacity: 0;
    transition: opacity 250ms linear;
}

.js-change-content-on-scroll--fade .scrollmation-two-col__media-item.is-visible {
    opacity: 1;
}
