/* Scoped restoration of the original Wix Motion Picture index hierarchy.
   Keep .film-card > .frame intact for the approved aperture scene.
   No image cropping, decorative frames, new animation, or global overrides. */
@font-face {
  font-family: "Motion Index Condensed";
  src: url('/assets/bebas-neue.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.motion-index-page {
  color: #fff;
  background: transparent;
}
.motion-index-page > .page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(978px, calc(100% - 80px));
  margin: 0 auto;
  padding: 110px 0 95px;
  border: 0;
  text-align: center;
}
.motion-index-page > .page-head .line {
  display: block;
  order: 0;
  width: 100%;
}
.motion-index-page > .page-head h1 {
  max-width: none;
  font-family: var(--original-display-font, "Madefor Display", "Arial Black", Arial, sans-serif);
  font-size: clamp(42px, 5.7vw, 67px);
  font-style: normal;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}
.motion-index-page > .page-head .eyebrow {
  order: 1;
  margin: 0;
  color: inherit;
  font-family: var(--original-body-font, "Work Sans", "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 200;
  line-height: 1.8;
  letter-spacing: 0;
  text-transform: none;
}
.motion-index-page .motion-projects {
  width: min(978px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 150px;
}
.motion-index-page .motion-project + .motion-project {
  margin-top: clamp(100px, 12vw, 180px);
}
.motion-index-page .motion-project-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
}
.motion-index-page .motion-project-main .frame {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  background: #000;
}
.motion-index-page .motion-project-main .frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.motion-index-page .motion-project-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
  text-shadow: none;
}
.motion-index-page .motion-project-caption h2 {
  margin: 0;
  font-family: OriginalImpact, Impact, "Motion Index Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 3.3vw, 38px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.motion-index-page .motion-project-caption p {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
}
.motion-index-page .motion-project-stills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
.motion-index-page .motion-stills-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.motion-index-page .motion-stills-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.motion-index-page .motion-still {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.motion-index-page .motion-still img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.motion-index-page .motion-project-main:focus-visible,
.motion-index-page .motion-still:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
@media (max-width: 760px) {
  .motion-index-page > .page-head,
  .motion-index-page .motion-projects {
    width: calc(100% - 40px);
  }
  .motion-index-page > .page-head {
    padding: 65px 0 60px;
  }
  .motion-index-page .motion-projects {
    padding-bottom: 90px;
  }
  .motion-index-page .motion-project-stills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }
  .motion-index-page .motion-project-caption {
    padding: 12px;
    gap: 4px;
  }
  .motion-index-page .motion-project-caption p {
    font-size: 12px;
    line-height: 1.5;
  }
}
