/* Multimedia page (multimedia.html). Mobile first. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/afb37508ab_iEjm9hVxcattz37Y8gZwVSNMxVe3WGf96EDbCaLCBKE.woff2') format('woff2');
  font-display: swap;
}

.page-title {
  margin: 30px 0 12px;
  font-size: 17.3vw;
  line-height: 1.2237;
  letter-spacing: 0.08em;
}

.mm-intro {
  margin: 0;
  padding: 0 16px;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.mm-rule {
  width: 284px;
  max-width: calc(100% - 32px);
  height: 0;
  margin: 14px auto 0;
  border: 0;
  border-top: 2px solid #bfbfbf;
}

.mm-gallery__title {
  margin: 19px 0 0;
  padding: 0 16px;
  color: #000;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-align: center;
}

.mm-gallery + .mm-gallery .mm-gallery__title {
  margin-top: 41px;
}

/* Phones: the images stack full width at their own shape. */
.mm-gallery__box {
  margin-top: 11.5px;
}

.mm-gallery__track img {
  display: block;
  width: 100%;
  height: auto;
}

.mm-gallery__track img + img {
  margin-top: 27px;
}

.mm-gallery__btn {
  display: none;
}

main {
  margin-bottom: 41px;
}

/* From 751px up each gallery is a mosaic that scrolls sideways, with
   previous/next buttons (added by assets/js/multimedia.js). */
@media (min-width: 751px) {
  .page-title {
    margin: 15px 0 2px;
    font-size: 103px;
    letter-spacing: 0.088em;
  }

  .mm-intro {
    width: 771px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.5;
  }

  .mm-rule {
    margin-top: 24px;
  }

  .mm-gallery__title {
    margin-top: 34px;
    line-height: 1.4;
  }

  .mm-gallery + .mm-gallery .mm-gallery__title {
    margin-top: 39px;
  }

  .mm-gallery__box {
    position: relative;
    width: 999px;
    max-width: calc(100% - 32px);
    margin: 10px auto 0;
  }

  .mm-gallery + .mm-gallery .mm-gallery__box {
    width: 980px;
    margin-top: 1px;
  }

  .mm-gallery__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .mm-gallery__viewport::-webkit-scrollbar {
    display: none;
  }

  .mm-gallery__viewport:focus-visible {
    outline: 2px solid #2573da;
    outline-offset: 2px;
  }

  .mm-gallery__track {
    position: relative;
  }

  .mm-gallery__track img {
    position: absolute;
    object-fit: cover;
  }

  .mm-gallery__track img + img {
    margin-top: 0;
  }

  .mm-gallery__btn:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #222;
    cursor: pointer;
  }

  .mm-gallery__btn:hover {
    background: #fff;
  }

  .mm-gallery__btn:focus-visible {
    outline: 2px solid #2573da;
    outline-offset: 2px;
  }

  .mm-gallery__btn--prev {
    left: 23px;
  }

  .mm-gallery__btn--prev svg {
    transform: scaleX(-1);
  }

  .mm-gallery__btn--next {
    right: 23px;
  }

  /* Tile positions measured from the Wix page at 1280px. */
  .mm-gallery__track--design {
    width: 1282px;
    height: 545px;
  }

  .mm-gallery__track--design > :nth-child(1) { left: 0px; top: 0px; width: 209px; height: 209px; }
  .mm-gallery__track--design > :nth-child(2) { left: 214px; top: 0px; width: 117px; height: 209px; }
  .mm-gallery__track--design > :nth-child(3) { left: 0px; top: 214px; width: 331px; height: 331px; }
  .mm-gallery__track--design > :nth-child(4) { left: 336px; top: 0px; width: 231px; height: 309px; }
  .mm-gallery__track--design > :nth-child(5) { left: 336px; top: 314px; width: 231px; height: 231px; }
  .mm-gallery__track--design > :nth-child(6) { left: 572px; top: 0px; width: 169px; height: 225px; }
  .mm-gallery__track--design > :nth-child(7) { left: 746px; top: 0px; width: 141px; height: 225px; }
  .mm-gallery__track--design > :nth-child(8) { left: 572px; top: 230px; width: 315px; height: 315px; }
  .mm-gallery__track--design > :nth-child(9) { left: 892px; top: 0px; width: 390px; height: 277px; }
  .mm-gallery__track--design > :nth-child(10) { left: 892px; top: 282px; width: 187px; height: 263px; }
  .mm-gallery__track--design > :nth-child(11) { left: 1084px; top: 282px; width: 198px; height: 263px; }

  .mm-gallery__track--photos {
    width: 1084px;
    height: 410px;
  }

  .mm-gallery__track--photos > :nth-child(1) { left: 0px; top: 0px; width: 162px; height: 236px; }
  .mm-gallery__track--photos > :nth-child(2) { left: 167px; top: 0px; width: 167px; height: 236px; }
  .mm-gallery__track--photos > :nth-child(3) { left: 0px; top: 241px; width: 334px; height: 169px; }
  .mm-gallery__track--photos > :nth-child(4) { left: 339px; top: 0px; width: 113px; height: 148px; }
  .mm-gallery__track--photos > :nth-child(5) { left: 457px; top: 0px; width: 148px; height: 148px; }
  .mm-gallery__track--photos > :nth-child(6) { left: 339px; top: 153px; width: 266px; height: 257px; }
  .mm-gallery__track--photos > :nth-child(7) { left: 610px; top: 0px; width: 301px; height: 201px; }
  .mm-gallery__track--photos > :nth-child(8) { left: 610px; top: 206px; width: 301px; height: 204px; }
  .mm-gallery__track--photos > :nth-child(9) { left: 916px; top: 0px; width: 168px; height: 293px; }
  .mm-gallery__track--photos > :nth-child(10) { left: 916px; top: 298px; width: 168px; height: 112px; }
}
