.parallax-playback-button {
  right: 8%;
  top: 48%;
  transform: translateY(-50%);
}

.parallax-playback-button:hover,
.parallax-playback-button:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.parallax-card-playback-button {
  right: 22px;
  bottom: 22px;
  transform: none;
}

.parallax-card-playback-button:hover,
.parallax-card-playback-button:focus-visible {
  transform: scale(1.04);
}

.parallax-four-channel {
  padding: 12px;
}

.parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) {
  width: min(1600px, 96vw);
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) .sync-video-modal__header,
.parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) .sync-video-modal__status,
.parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) .sync-view-selector,
.parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) .sync-video-controls {
  flex: 0 0 auto;
}

.parallax-four-channel .parallax-video-grid:not(.is-single-view) {
  flex: 1 1 0;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.parallax-four-channel .parallax-video-grid:not(.is-single-view) .sync-video-panel,
.parallax-four-channel .parallax-video-grid:not(.is-single-view) .sync-video-frame {
  min-height: 0;
  height: 100%;
}

.parallax-four-channel .parallax-video-grid:not(.is-single-view) .sync-video-frame {
  aspect-ratio: auto;
}

.parallax-four-channel .sync-video-frame {
  aspect-ratio: 4192 / 1360;
}

.parallax-four-channel .sync-video-grid.is-single-view .sync-video-frame {
  min-height: 0;
  aspect-ratio: 4192 / 1360;
}

.parallax-four-channel .sync-video-modal__dialog:fullscreen:not(.is-single-view) .parallax-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.parallax-four-channel .sync-video-modal__dialog:fullscreen .sync-video-frame {
  aspect-ratio: auto;
}

@media (max-width: 720px) {
  .parallax-playback-button {
    right: 5%;
    top: 50%;
  }

  .parallax-card-playback-button {
    right: 14px;
    bottom: 14px;
  }

  .parallax-four-channel .sync-video-modal__dialog:not(.is-single-view) {
    width: 98vw;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .parallax-four-channel .parallax-video-grid:not(.is-single-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
