/* =========================================================
   GLOBAL BASE
   ========================================================= */
:root {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000000;
    color: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Shared layout for main content wrapper */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* =========================================================
   GLOBAL HEADER / NAV (same everywhere)
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 9, 0.95);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.03em;
}

.logo a span {
    color: #ff1744;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    opacity: 1;
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #ff1744;
    color: #fff;
    white-space: nowrap;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-small:hover,
.btn-small:focus {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .nav-wrap {
        padding-inline: 16px;
        gap: 12px;
    }

    .nav-links {
        gap: 12px;
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .btn-small {
        display: none;
    }
}

/* =========================================================
   GLOBAL FOOTER
   ========================================================= */
.site-footer {
    border-top: 1px solid #262636;
    margin-top: 24px;
    padding: 14px 20px 20px;
    font-size: 12px;
    color: #888;
    background: #050509;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* =========================================================
   VIDEO EMBEDS BASE (required for vru_video_embed output)
   ========================================================= */

.vru-video{
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* Aspect ratio helpers (YouTube) */
.vru-ratio-16x9::before{
  content: "";
  display: block;
  padding-top: 56.25%;
}

.vru-ratio-9x16::before{
  content: "";
  display: block;
  padding-top: 177.78%;
}

/* YouTube iframes fill the ratio box */
.vru-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Instagram should NOT be absolute */
.vru-video blockquote.instagram-media{
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================================================
   FREESTYLES (grid layout, 280px cards, left aligned)
   ========================================================= */

.vru-video-grid.freestyle-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px); /* 280px tiles */
  gap: 16px;

  width: 100%;
  margin: 0;                 /* left aligned like other sections */
  justify-content: start;    /* no centering */
}

/* each embed wrapper stays 280px */
.vru-video-grid.freestyle-grid .vru-video{
  width: 280px;
  max-width: 280px;
}

/* If your .vru-video uses absolute positioning for ratio iframes,
   keep iframe embeds working */
.vru-video-grid.freestyle-grid .vru-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Instagram embeds MUST NOT be absolute positioned */
.vru-video-grid.freestyle-grid .vru-video blockquote.instagram-media{
  position: static !important;
  inset: auto !important;
  height: auto !important;
  width: 100% !important;
  max-width: 280px !important;
  margin: 0 !important;
}

/* stop vertical reels from becoming skyscrapers */
.vru-video-grid.freestyle-grid .vru-ratio-9x16{
  max-height: 420px;
  overflow: hidden;
}
