/* QUADRILLE - VÅRA RÖRELSER */

.movements-page {
  overflow: hidden;
  background: #fff;
}

.movements-arena,
.movements-outro {
  position: relative;
  background-image: url("../../assets/images/quadrille/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.movements-arena {
  height: 520px;
}

.movements-paper {
  position: relative;
  z-index: 2;
  min-height: 1680px;
  padding: 300px 0 0;
  background: #fff;
  color: #111;
}

.movements-paper::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -62px;
  left: 0;
  width: 100%;
  height: 78px;
  background-image: var(--quadrille-torn-top);
  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* TOP RIBBON */

.movements-ribbon-row {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: 121%;
  height: 210px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  pointer-events: none;
}

.movements-ribbon-row > img {
  display: block;
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  object-fit: fill;
}

.movements-ribbon-row > img:nth-child(2),
.movements-ribbon-row > img:nth-child(3) {
  margin-left: -4px;
}

.movements-ribbon-bows {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: 121%;
  height: 210px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Same green-bow proportions/offset as the Advanced page. */
.movements-ribbon-bow {
  position: absolute;
  top: 60px;
  width: 155px;
  height: auto;
  transform: translateX(-50%);
}

.movements-ribbon-bow:nth-child(1) { left: 16.666%; }
.movements-ribbon-bow:nth-child(2) { left: 50%; }
.movements-ribbon-bow:nth-child(3) { left: 83.333%; }

/* INTRO */

.movements-intro {
  width: min(1680px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(620px, 760px) 320px;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

.movements-round-media {
  position: relative;
  width: 310px;
  height: 310px;
}

.movements-round-media-left {
  justify-self: start;
}

.movements-round-media-right {
  justify-self: end;
}

.movements-round-video,
.movements-round-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movements-round-video {
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(0.87);
  background: #eee;
}

.movements-round-frame {
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.movements-intro-copy {
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.movements-heading {
  position: relative;
  width: max-content;
  margin: 0 auto 54px;
}

.movements-heading h1 {
  margin: 0;
  color: #a7b9aa;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
}

.movements-heading span {
  position: absolute;
  top: 31px;
  left: 54%;
  color: #d2ad72;
  font-family: "Dancing Script", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.movements-intro-copy p {
  margin: 0;
}

.movements-intro-copy p + p {
  margin-top: 24px;
}

/* FAVORITE MOVEMENTS */

.movements-grid {
  width: min(1460px, 92vw);
  margin: 150px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 70px;
  align-items: start;
}

.movement-favorite-card {
  min-width: 0;
  text-align: center;
  font-family: "Quicksand", sans-serif;
}

.movement-favorite-image {
  display: block;
  width: 210px;
  height: 210px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.movement-favorite-card h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
}

.movement-favorite-card p {
  width: min(300px, 100%);
  margin: 7px auto 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* BOTTOM GOLD DIVIDER */

.movements-bottom-divider {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 130px;
}

.movements-bottom-divider-line {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  height: 34px;
  background-image: url("../../assets/images/quadrille/advanced/frame-gold.png");
  background-size: auto 34px;
  background-position: center;
  background-repeat: repeat-x;
}

.movements-bottom-bow {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 210px;
  height: 180px;
  pointer-events: none;
}

.movements-bottom-bow-left {
  left: 20%;
  transform: translateX(-50%);
}

.movements-bottom-bow-right {
  right: 20%;
  transform: translateX(50%);
}

.movements-bottom-bow-gold,
.movements-bottom-bow-green {
  position: absolute;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
}

.movements-bottom-bow-gold {
  top: 0;
  width: 205px;
}

/* Same green-bow proportions/offset as the Advanced page. */
.movements-bottom-bow-green {
  z-index: 2;
  top: 45px;
  width: 155px;
}

.movements-white-tail {
  height: 220px;
}

.movements-outro {
  z-index: 1;
  height: 315px;
  background-position: center bottom;
}

.movements-outro::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: -20px;
  left: 0;
  width: 100%;
  height: 78px;
  background-image: var(--quadrille-torn-bottom);
  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  pointer-events: none;
}

.movements-outro::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 86px;
  background: #392d25;
  -webkit-mask-image: var(--quadrille-torn-top);
  mask-image: var(--quadrille-torn-top);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .movements-intro {
    grid-template-columns: 250px minmax(440px, 620px) 250px;
    gap: 36px;
  }

  .movements-round-media {
    width: 240px;
    height: 240px;
  }

  .movements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 90px;
  }
}

@media (max-width: 820px) {
  .movements-paper {
    padding-top: 250px;
  }

  .movements-intro {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .movements-round-media-left,
  .movements-round-media-right {
    justify-self: center;
  }

  .movements-round-media-right {
    grid-row: 3;
  }

  .movements-grid {
    grid-template-columns: 1fr;
  }

  .movements-ribbon-row,
  .movements-ribbon-bows {
    width: 160%;
  }
}
