/* Push lockable cover section away from UNFPA footer. */
.swop22-cover-wrapper {
  padding-bottom: 110px;
}

html.js .swop22-cover {
  height: 200vh;
}

.swop22-cover-content {
  /* Minus nav height. */
  height: calc(100% - 52px);
  position: relative;
  top: 52px;
}

.swop22-cover-content p {
  margin: 0;
}

@media all and (min-width: 1000px) {
  .swop22-cover-content {
    height: calc(100% - 70px);
    top: 70px;
  }
}

/* --- Title / Downloads / Scroll Icon --- */

.swop22-cover-head {
  width: 100%;
  height: 30%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
}

.swop22-cover-head-inner {
  width: 100%;
  max-width: 1100px;
  position: relative;
}

.swop22-cover-title {
  margin: 0;
  padding-bottom: 10px;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.swop22-cover-title-1 {
  display: block;
  opacity: 0.8;
}

.swop22-cover-title-2 {
  opacity: 0.4;
}

.swop22-cover-subtitle {
  padding-bottom: 13px;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: 1.1px;
  position: relative;
}

.swop22-cover-subtitle:after {
  content: '';
  border-bottom: 1px solid #8f8c8c;
  width: 90px;
  height: 0;
  position: absolute;
  bottom: 1px;
  left: 0;
}

p.swop22-cover-download {
  padding-left: 23px;
  background: url(images/icon-download.svg) left 3px no-repeat;
  background-size: 14px 14px;
  font-size: 15px;
  line-height: 21px;
  text-transform: uppercase;
  transition: opacity 0.3s ease-out;
  /* Downloads are absolute positioned below titles. */
  /* So that title can be positioned vertically in the middle. */
  width: 100%;
  position: absolute;
  bottom: -10px;
  left: 0;
  transform: translate(0, 100%);
}

.swop22-cover-download-label {
  display: block;
  padding-bottom: 4px;
}

.swop22-cover-download-links {
  margin-left: -3px;
}

.swop22 .swop22-cover-download-links a {
  display: inline-block;
  padding: 0 3px;
  color: #000;
  text-decoration: underline;
  position: relative;
  top: -1px;
}

.swop22-cover-scroll {
  width: 26px;
  height: 26px;
  margin-left: -13px;
  background: url(images/icon-scroll.svg) 0 0 no-repeat;
  background-size: 100% 100%;
  position: absolute;
  left: 50%;
  bottom: 5px;
  z-index: 3;
  transition: opacity 0.3s ease-out;
  animation: bounce 1s infinite alternate;
}

.swop22-cover-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  line-height: 1em;
  z-index: 3;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-15px);
  }
}

@media all and (min-width: 768px) {
  .swop22-cover-title {
    padding-bottom: 17px;
    font-size: 52px;
    line-height: 50px;
    letter-spacing: 1.5px;
  }

  .swop22-cover-title-1 {
    display: inline;
  }

  .swop22-cover-subtitle {
    padding-bottom: 23px;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 1.5px;
  }

  .swop22-cover-subtitle:after {
    width: 180px;
    border-bottom-width: 2px;
    bottom: 2px;
  }

  p.swop22-cover-download {
    padding-left: 25px;
    background-position: left 5px;
    background-size: 16px 16px;
    font-size: 20px;
    line-height: 28px;
  }

  .swop22-cover-download-label {
    display: inline;
    padding-right: 10px;
    padding-bottom: 0;
  }

  .swop22-cover-download-links {
    margin-left: -5px;
  }

  .swop22 .swop22-cover-download-links a {
    padding: 0 5px;
    font-size: 17px;
  }
}

@media all and (min-width: 1200px) and (min-height: 850px) {
  .swop22-cover-title {
    font-size: 72px;
    line-height: 70px;
  }
}

@media all and (min-width: 768px) and (min-height: 780px) {
  .swop22-cover-scroll {
    width: 46px;
    height: 46px;
    margin-left: -23px;
    bottom: 13px;
  }
}

/* --- Cards --- */

.swop22-cover-cards {
  width: 100%;
  height: 70%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  margin-top: -50px;
  transition: opacity 0.3s ease-out;
}

/* Prevents cards from becoming too large when */
/* viewport starts to exceed 1920px of width. */
.swop22-cover-cards-inner {
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

.swop22-cover-card {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.5s ease-out, top 0.5s ease-out, transform 0.3s ease-out, width 0.5s ease-out;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.swop22 .swop22-cover-card {
  cursor: default;
}

.swop22 .swop22-cover-card-ready {
  cursor: pointer;
}

.swop22-cover-card-hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.swop22-cover-card-zoomout {
  transform: translate(-50%, -50%) scale(0.9);
}

.swop22-cover-card-inner {
  width: 100%;
}

.swop22-cover-card-ratio {
  display: block;
  width: 100%;
  height: 0;
  position: relative;
}

.swop22-cover-card-title,
.swop22-cover-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.swop22-cover-card-title {
  padding: 20px;
  background: rgba(33, 33, 33, 0.68);
  color: #fff;
  font-size: 18px;
  line-height: 1.33em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 2;
}

.swop22-es .swop22-cover-card-title,
.swop22-fr .swop22-cover-card-title {
  padding: 5px;
  font-size: 12px;
  line-height: 1.1em;
}

.swop22-cover-card-hover .swop22-cover-card-title {
  opacity: 1;
}

.swop22-cover-card img {
  font-size: 0;
  z-index: 1;
}

@media all and (min-width: 480px) {
  .swop22-es .swop22-cover-card-title,
  .swop22-fr .swop22-cover-card-title {
    padding: 20px;
  }
}

@media all and (min-width: 768px) {
  .swop22-cover-card-title {
    font-size: 24px;
    line-height: 1.25em;
  }

  .swop22-es .swop22-cover-card-title,
  .swop22-fr .swop22-cover-card-title {
    font-size: 18px;
    line-height: 1.2em;
  }
}

@media all and (min-width: 1000px) {
  .swop22-cover-card-title {
    font-size: 30px;
    line-height: 1.2em;
  }
}

@media all and (min-width: 1300px) {
  .swop22-es .swop22-cover-card-title,
  .swop22-fr .swop22-cover-card-title {
    font-size: 24px;
    line-height: 1.2em;
  }
}

@media all and (min-width: 1600px) {
  .swop22-es .swop22-cover-card-title,
  .swop22-fr .swop22-cover-card-title {
    font-size: 30px;
    line-height: 1.2em;
  }
}
