/* Video page (/video): the sections, tile shapes and grids of the BYP Central Work > Video page, in
   www.byp.com's colours (black, white Lato, BYP red). Videos and posters stream from R2 video/work/. */
#work-video { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 0 clamp(16px, 4vw, 56px) 40px; }
#work-video section { margin-top: 40px; }
.wv-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
.wv-head h2 { margin: 0; font-family: 'Lato', sans-serif; font-weight: 300; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 6px; text-transform: uppercase; color: #fff; }
.wv-head span { font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #cc0000; }

.vtile { display: flex; flex-direction: column; gap: 10px; }
.vtile .cap { font-family: 'Lato', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #ccc; transition: color .15s; }
.vtile:hover .cap { color: #cc0000; }
.vbox { all: unset; box-sizing: border-box; cursor: pointer; display: block; position: relative; aspect-ratio: 9/16; overflow: hidden; background: #000; border: 1px solid #333; }
.vbox img, .vbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; border: 0; background: #000; transition: transform .3s; }
.vtile:hover .vbox img { transform: scale(1.04); }
.vbox .spot-btn { position: absolute; left: 10px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: #cc0000; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .15s; z-index: 2; }
.vbox:hover .spot-btn, .vbox:focus-visible .spot-btn { transform: scale(1.1); }
.vbox:focus-visible { outline: 3px solid #cc0000; outline-offset: 3px; }
.vbox.playing { cursor: default; }
.vbox.wide { aspect-ratio: 16/9; }
.vbox.wide img { object-fit: cover; }

/* Tour Creative: 9x16, seven across */
.vgrid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 22px 16px; }
/* Featured campaign: one 16x9 and two verticals, all the same height */
.fgrid { display: grid; grid-template-columns: 1.778fr .491fr .5625fr; gap: 22px 16px; align-items: start; }
/* Trailers & Teasers: two big 9x16 side by side, six 16x9 beneath (3 x 2) */
.tgrid2 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.tgrid2 .tall { grid-column: span 3; }
.tgrid2 .tall:first-child { grid-column: 2 / span 2; }
.tgrid2 .tall:nth-child(2) { grid-column: 4 / span 2; }
.tgrid2 .wide { grid-column: span 2; }
/* Outdoor: a wide feature on top, then rows of three */
.ogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
.ogrid .feature { grid-column: 1 / -1; }
.ogrid .feature .vbox { max-height: 70vh; aspect-ratio: 16/9; }
/* Sizzle reels: 16x9, five across */
.sgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
/* Album: small, six across */
.agrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
.agrid .cap { font-size: 11px; }
.agrid .spot-btn { width: 32px; height: 32px; left: 8px; bottom: 8px; }

@media (max-width: 900px) {
  .vgrid { grid-template-columns: repeat(min(var(--cols, 6), 4), minmax(0, 1fr)); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .fgrid { grid-template-columns: .491fr .5625fr; gap: 14px 10px; }
  .fgrid .vtile:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .vgrid, .vgrid[style*="--cols: 7"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .vtile { gap: 6px; }
  .vtile .cap { font-size: 10px; letter-spacing: 1px; line-height: 1.3; }
  .vbox .spot-btn { width: 30px; height: 30px; left: 6px; bottom: 8px; }
  .ogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .tgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .tgrid2 .tall, .tgrid2 .tall:first-child, .tgrid2 .tall:nth-child(2), .tgrid2 .wide { grid-column: auto; }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
}
