﻿/* Vimeo background player fills its section like a cover video (all screen sizes) */
.snap-sections .listed-film .film {
  position: relative;
  overflow: hidden;
}
.snap-sections .listed-film .film iframe.vimeo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;          /* 16:9 */
  min-width: 177.78vh;      /* 16:9 */
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* Title block (city / brand / agency) centered on the screen */
.snap-sections .listed-film .grid-container-wrapper {
  top: 50%;
  transform: translateY(-50%);
}
.snap-sections .listed-film .grid-container {
  padding-bottom: 0;
}
.snap-sections .listed-film .film-label {
  justify-content: center;
  text-align: center;
}
.snap-sections .listed-film .film-label > .cell {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
.snap-sections .listed-film h2 {
  left: 0;
}

/* Agency name under the brand */
.snap-sections .listed-film .film-agency {
  margin: 12px 0 0;
  font-size: 16px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
@media screen and (max-width: 767px) {
  .snap-sections .listed-film .film-agency {
    font-size: 12px;
    margin-top: 6px;
  }
}
/* ==========================================================
   Section-by-section scroll for video lists (add class "snap-sections" to the wrapper)
   (used together with js/section-scroll.js)
   Desktop only - mobile keeps normal scrolling.
   ========================================================== */
@media screen and (min-width: 768px) {

  /* Every video block fills the screen */
  .snap-sections .listed-film {
    height: 100vh;
  }
  .snap-sections .listed-film .film,
  .snap-sections .listed-film .film video {
    height: 100%;
  }

  /* Title fades up after the slide */
  .snap-sections .listed-film .film-label {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.22, .61, .36, 1),
                transform 1s cubic-bezier(.22, .61, .36, 1);
  }
  .snap-sections .listed-film.is-active .film-label {
    opacity: 1;
    transform: none;
    transition-delay: .4s;
  }
}
