/* =========================
   Photopi — videos.css
   Videos page styling
   ========================= */

.video-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.video-item,
.video-item:hover,
.video-item:visited,
.video-item:focus{
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.video-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}

.video-thumb--empty{
  border: 1px solid rgba(255,255,255,0.10);
}

.video-caption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Video modal */
.videobox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.videobox.is-open{ display: flex; }

.videobox .vb-stage{
  width: min(92vw, 1400px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videobox .vb-video{
  width: 100%;
  height: 100%;
  background: #000;
}

.videobox button{
  position: fixed;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.videobox .vb-close{ top: 14px; right: 14px; font-size: 22px; }
.videobox .vb-prev{ left: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.videobox .vb-next{ right: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; }
