/* --- Notes Animation --- */

/* Sliding animation. */
html.js .swop22-notes-main,
html.js .swop22-notes-1 .swop22-notes-sub {
  transform: translateX(-101vw);
}

html.js .swop22-notes-sub,
html.js .swop22-notes-1 .swop22-notes-main {
  transform: translateX(101vw);
}

html.js .swop22-notes-main.is-animated,
html.js .swop22-notes-sub.is-animated {
  transition: transform 0.75s ease-out;
  transition-delay: 0.5s;
}

html.js .swop22-notes-main.has-animated,
html.js .swop22-notes-sub.has-animated {
  transform: translateX(0);
}

/* Highlight animation. */
html.js .swop22-notes-highlight {
  opacity: 0;
}

html.js .swop22-notes-main.is-animated .swop22-notes-highlight {
  transition: opacity 0.75s ease-out;
  transition-delay: 1.25s;
}

html.js .swop22-notes-main.has-animated .swop22-notes-highlight {
  opacity: 1;
}

/* --- Notes Backgrounds --- */

.swop22-notes {
  position: relative;
}

.swop22-notes-inner {
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.swop22-notes-bg-wrapper,
.swop22-notes-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.swop22-notes-bg-wrapper {
  overflow: hidden;
  z-index: 1;
}

html.js .swop22-notes-bg-wrapper.is-animated {
  transition-duration: 0.6s;
  transition-delay: 1s;
}

.swop22-notes-bg {
  background-repeat: no-repeat;
}

.swop22-notes-1 .swop22-notes-bg {
  background-position: center bottom;
  background-size: 95% auto;
}

.swop22-notes-2 .swop22-notes-bg {
  background-position: center bottom 8%;
  background-size: 95% auto;
}

.swop22-notes-3 .swop22-notes-bg-1 {
  background-position: left bottom 8%;
  background-size: auto 60%;
}

.swop22-notes-3 .swop22-notes-bg-2 {
  background-position: right bottom 8%;
  background-size: auto 60%;
}

/* Add extra padding to notes-1, so that the background object */
/* is always more visible on the bottom of the section. */
@media screen and (max-width: 767px) {
  .swop22-notes-1 {
    padding-bottom: 120px;
  }
}

@media screen and (max-width: 600px) {
  .swop22-notes-1 {
    padding-bottom: 95px;
  }
}

@media screen and (max-width: 500px) {
  .swop22-notes-1 {
    padding-bottom: 70px;
  }
}

@media screen and (max-width: 460px) {
  .swop22-notes-1 {
    padding-bottom: 60px;
  }
}

@media screen and (max-width: 380px) {
  .swop22-notes-1 {
    padding-bottom: 50px;
  }
}

@media screen and (min-width: 768px) {
  .swop22-notes-1 .swop22-notes-bg {
    background-position: center center;
    background-size: auto 40%;
    transform: translate(-8%, 23%);
  }

  .swop22-notes-2 .swop22-notes-bg {
    background-position: center center;
    background-size: auto 80%;
    transform: translate(0, -10%);
  }

  .swop22-notes-3 .swop22-notes-bg-1 {
    background-position: left center;
    background-size: auto 100%;
  }

  .swop22-notes-3 .swop22-notes-bg-2 {
    background-position: right center;
    background-size: auto 100%;
  }
}

/* --- Notes Elements --- */

.swop22-notes p {
  margin: 0;
}

.swop22-notes-main {
  background: #fff;
  box-shadow: 2px 3px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.swop22-notes-sub {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.swop22-notes-1 .swop22-notes-sub,
.swop22-notes-2 .swop22-notes-sub {
  top: -10px;
}

.swop22-notes-holder {
  width: 100%;
  height: 0;
  position: relative;
  overflow: hidden;
  background: 0 0 no-repeat;
  background-size: 100% 100%;
}

.swop22-notes-main .swop22-notes-holder {
  background-image: url(images/note-main.jpg);
  /* 482 / 758 */
  padding-bottom: 63.59%;
}

.swop22-notes-1 .swop22-notes-sub .swop22-notes-holder {
  /* 868 / 1338 */
  padding-bottom: 64.87%;
}

.swop22-notes-2 .swop22-notes-sub .swop22-notes-holder {
  /* 1106 / 1044 */
  padding-bottom: 105.94%;
}

.swop22-notes-3 .swop22-notes-sub .swop22-notes-holder {
  /* 824 / 926 */
  padding-bottom: 88.98%;
}

.swop22-notes-holder-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.swop22-notes-content {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.swop22-en .swop22-notes-main .swop22-notes-content,
.swop22-ar .swop22-notes-main .swop22-notes-content {
  max-width: 570px;
}

.swop22-notes-sub .swop22-notes-content {
  padding: 0 60px 10px 60px;
  max-width: 480px;
}

.swop22-notes-main-txt,
.swop22-notes-sub-txt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.swop22-notes-1 .swop22-notes-sub-txt {
  transform: rotateZ(-4deg) translateY(-2px);
}

.swop22-notes-2 .swop22-notes-sub-txt {
  transform: rotateZ(-12.5deg) translateY(-4px);
}

.swop22-notes-highlight {
  margin: 0;
  padding-top: 5px;
}

.swop22-notes-highlight br {
  display: none;
}

@media screen and (min-width: 400px) {
  .swop22-notes-highlight {
    padding-top: 20px;
  }
}

@media screen and (max-width: 600px) {
  .swop22-notes-main .swop22-notes-holder {
    padding-bottom: 85%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .swop22-notes-main .swop22-notes-holder {
    padding-bottom: 85%;
  }
}

@media screen and (min-width: 500px) {
  .swop22-notes-sub {
    margin: 0 auto;
    max-width: 90%;
  }
}

@media screen and (min-width: 600px) {
  .swop22-notes-sub {
    max-width: 80%;
  }
}

@media screen and (min-width: 768px) {
  .swop22-notes-inner {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .swop22-notes-1 .swop22-notes-inner {
    flex-direction: row-reverse;
  }

  .swop22-notes-main {
    width: 55%;
  }

  .swop22-notes-sub {
    margin: 0;
    width: 45%;
  }

  .swop22-notes-1 .swop22-notes-sub {
    top: 0;
    right: -20px;
  }

  .swop22-notes-2 .swop22-notes-sub {
    top: 40px;
    left: -20px;
  }

  .swop22-notes-3 .swop22-notes-sub {
    top: 80px;
    width: 35%;
  }

  .swop22-notes-content {
    padding: 0 40px;
  }
}

@media screen and (min-width: 1000px) {
  .swop22-notes-1 .swop22-notes-main-txt {
    padding-top: 60px;
  }

  .swop22-notes-2 .swop22-notes-main-txt,
  .swop22-notes-3 .swop22-notes-main-txt {
    padding-bottom: 80px;
  }

  .swop22-notes-highlight {
    padding-top: 0;
    position: absolute;
    right: 0;
    width: calc(100% - 106px);
  }

  .swop22-notes-highlight br {
    display: inline;
  }

  .swop22-notes-1 .swop22-notes-highlight {
    top: 30px;
  }

  .swop22-notes-2 .swop22-notes-highlight,
  .swop22-notes-3 .swop22-notes-highlight {
    bottom: 30px;
  }

  /* Highlight arrow */
  .swop22-notes-highlight:after {
    content: '';
    background: 0 0 no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: 0;
    transform: translate(calc(-100% - 30px), -50%);
  }

  .swop22-notes-1 .swop22-notes-highlight:after {
    width: 80px;
    height: 54px;
    background-image: url(images/arrow-up.svg);
    top: 60%;
  }

  .swop22-notes-2 .swop22-notes-highlight:after {
    width: 76px;
    height: 52px;
    background-image: url(images/arrow-down.svg);
    top: 47%;
  }

  .swop22-notes-3 .swop22-notes-highlight:after {
    width: 76px;
    height: 52px;
    background-image: url(images/arrow-down.svg);
    top: 40%;
  }

  .swop22-notes-2 .swop22-notes-sub {
    width: 40%;
  }

  .swop22-notes-2 .swop22-notes-sub .swop22-notes-content {
    padding: 0 70px 10px 70px;
  }

  .swop22-notes-1 .swop22-notes-sub-txt {
    transform: rotateZ(-4deg) translateY(-15px);
  }

  .swop22-notes-2 .swop22-notes-sub-txt {
    transform: rotateZ(-12.5deg) translateY(-30px);
  }
}

@media screen and (min-width: 1400px) {
  .swop22-notes-highlight {
    right: -30px;
    width: calc(100% - 76px);
  }

  .swop22-notes-1 .swop22-notes-highlight {
    top: 45px;
  }

  .swop22-notes-2 .swop22-notes-highlight {
    bottom: 45px;
  }

  .swop22-en .swop22-notes-3 .swop22-notes-highlight,
  .swop22-ar .swop22-notes-3 .swop22-notes-highlight {
    max-width: 350px;
  }
}

/* --- Font Sizes And Colors --- */

.swop22-notes-main-txt h3 {
  font-size: 20px;
  line-height: 24px;
  padding-bottom: 8px;
}

.swop22-notes-copy {
  font-size: 16px;
  line-height: 21px;
}

@media screen and (max-width: 450px) {
  .swop22-notes-main-txt h3 {
    font-size: 18px;
    line-height: 24px;
    padding-bottom: 0;
  }

  .swop22-notes-copy {
    font-size: 14px;
    line-height: 19px;
  }

  .swop22-es .swop22-notes-copy,
  .swop22-fr .swop22-notes-copy {
    font-size: 13px;
    line-height: 16px;
  }
}

.swop22-notes-highlight {
  color: #2e69b3;
  font-size: 40px;
  line-height: 25px;
}

.swop22-notes-3 .swop22-notes-highlight {
  font-size: 26px;
  line-height: 18px;
}

.swop22-notes-sub h2 {
  font-size: 45px;
  line-height: 0.6em;
  margin-bottom: 0.1em;
}

.swop22-notes-sub h3 {
  font-size: 40px;
  line-height: 0.6em;
}

.swop22-notes-1 .swop22-notes-sub h3 {
  color: #2e69b3;
}

@media screen and (min-width: 345px) {
  .swop22-notes-3 .swop22-notes-highlight {
    font-size: 30px;
    line-height: 20px;
  }

  .swop22-notes-sub h2 {
    font-size: 50px;
    line-height: 0.6em;
    margin-bottom: 0.1em;
  }

  .swop22-notes-sub h3 {
    font-size: 45px;
    line-height: 0.6em;
  }
}

@media screen and (min-width: 475px) {
  .swop22-notes-main-txt h3 {
    font-size: 24px;
    line-height: 28px;
  }

  .swop22-notes-copy {
    font-size: 18px;
    line-height: 24px;
  }

  .swop22-notes-3 .swop22-notes-highlight {
    font-size: 40px;
    line-height: 25px;
  }

  .swop22-notes-sub h2 {
    font-size: 65px;
    line-height: 0.6em;
    margin-bottom: 0.1em;
  }

  .swop22-notes-sub h3 {
    font-size: 50px;
    line-height: 0.6em;
  }
}

@media screen and (min-width: 768px) {
  .swop22-notes-3 .swop22-notes-highlight {
    font-size: 30px;
    line-height: 20px;
  }

  .swop22-fr .swop22-notes-2 .swop22-notes-sub h3 {
    font-size: 45px;
    line-height: 0.6em;
    padding-top: 30px;
  }
}

@media screen and (min-width: 1000px) {
  .swop22-notes-main-txt h3 {
    font-size: 27px;
    line-height: 33px;
  }

  .swop22-notes-copy {
    font-size: 21px;
    line-height: 30px;
  }

  .swop22-notes-highlight {
    font-size: 42px;
    line-height: 26px;
    letter-spacing: 1.4px;
  }

  .swop22-notes-3 .swop22-notes-highlight {
    font-size: 34px;
    line-height: 16px;
  }

  .swop22-notes-sub h2 {
    font-size: 86px;
    line-height: 0.65em;
    margin-bottom: 0.1em;
    letter-spacing: 2.52px;
  }

  .swop22-notes-sub h3 {
    font-size: 60px;
    line-height: 0.65em;
    letter-spacing: 1.7px;
  }
}

@media screen and (min-width: 1200px) {
  .swop22-notes-3 .swop22-notes-highlight {
    font-size: 38px;
    line-height: 20px;
  }

  .swop22-fr .swop22-notes-2 .swop22-notes-sub h3 {
    font-size: 50px;
    line-height: 0.6em;
  }
}

@media screen and (min-width: 1400px) {
  .swop22-notes .swop22-notes-highlight {
    font-size: 48px;
    line-height: 35px;
  }

  .swop22-en .swop22-notes-2 .swop22-notes-sub h3,
  .swop22-ar .swop22-notes-2 .swop22-notes-sub h3,
  .swop22-es .swop22-notes-2 .swop22-notes-sub h3 {
    font-size: 70px;
    line-height: 50px;
    letter-spacing: 2px;
  }

  .swop22-fr .swop22-notes-2 .swop22-notes-sub h3 {
    font-size: 60px;
    line-height: 0.65em;
    letter-spacing: 1.7px;
  }
}
