@import url("/tokens.css");

/* Video page styles driven by design tokens */
.canvas{ width: var(--canvas-w); margin: 0 auto; color: var(--ink); font-family: var(--font); }

main{ margin-left: 190px; padding: 80px 60px 160px; box-sizing: border-box; }

.video-entry{ width:100%; max-width: var(--canvas-w); margin-bottom: 96px; }
.video-entry-title{ font-size: 11px; font-weight: var(--fw-bold); text-transform: uppercase; margin-bottom: 13px; width: 524.8px; text-align: center; letter-spacing: normal; }

.video-layout{ display:flex; gap: 10px; align-items: stretch; }

/* Player: 16:9 ratio */
.video-player{ flex: 0 0 640px; height: 360px; background: #000; display:flex; align-items:center; justify-content:center; }
.video-player iframe, .video-player video{ width: 100%; height: 100%; display:block; }

/* 2x2 shots grid — same dimensions as video player */
.video-shots{ flex: 0 0 640px; height: 360px; display:grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.video-shots img{ width:100%; height:100%; object-fit: cover; display:block; min-height:0; }

/* Caption style */
/* caption style is controlled by the single .video-entry-title rule above */

/* ── Tablet ── */
@media (max-width: 1280px){
  main{ margin-left: 0; padding: 40px 20px 80px; }
}

/* ── Mobile ── */
@media (max-width: 768px){
  /* Kill the 1920px canvas width */
  .canvas { width: 100% !important; max-width: 100% !important; }

  main{ padding: 24px 16px 80px; overflow-x: hidden; }

  /* Force sidebar to match photo tab exactly */
  .sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 18px 20px 12px !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 20px !important;
    border-bottom: 1px solid #e8e8e8 !important;
    margin-left: 0 !important;
  }
  .site-name { font-size: 15px !important; letter-spacing: 0.18em !important; margin-bottom: 0 !important; flex-shrink: 0; }
  .sidebar-nav { flex-direction: row !important; align-items: baseline !important; flex-wrap: wrap !important; }
  .nav-parent { display: none !important; }
  .nav-sub { padding-left: 0 !important; margin-right: 14px !important; }
  .nav-contact { margin-top: 0 !important; }

  .video-entry{ margin-bottom: 120px; }
  .video-entry-title{ width: 100%; text-align: left; font-size: 16px; margin-bottom: 18px; }

  /* Stack video + stills vertically */
  .video-layout{ flex-direction: column; gap: 8px; }

  /* Video: full width, 16:9 */
  .video-player{
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .video-player iframe,
  .video-player video{ width: 100%; height: 100%; }

  /* Stills: 2×2 grid below video, square-ish */
  .video-shots{
    flex: none;
    width: 100%;
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 4px;
  }
  .video-shots img{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}
