/* Venture media gallery — hero carousel + founder manager. */

.vg-count { font-size: .78rem; font-weight: 600; color: #7A8AA3; }

/* ---------- hero carousel ---------- */

.vd-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.vd-hero-media.hidden { display: none; }

.vd-hero-track {
  display: flex;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vd-hero-track::-webkit-scrollbar { display: none; }
.vd-hero-track:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: -4px; }

.vd-hslide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  background: #0C1826;
  display: grid;
  place-items: center;
}
.vd-hslide img,
.vd-hslide video,
.vd-hslide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.vd-hslide--image img { cursor: zoom-in; }

/* A channel or profile link — no player, so it reads as a card that leaves the
   site rather than a poster that looks playable and then does nothing. */
/* Sits in the upper band, not the middle: the hero's title and progress block
   are painted over the lower half of every slide, and a centred card ended up
   underneath the venture title. */
.vd-hslide--link {
  background: linear-gradient(140deg, #12243B, #0C1826);
  place-items: start center;
  padding-top: 2.5rem;
}
.vg-linkcard {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.1rem 1.4rem; text-decoration: none; color: #fff; text-align: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  background: rgba(255,255,255,.06); transition: background .2s, border-color .2s;
  max-width: 80%;
}
.vg-linkcard:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.vg-linkcard-icon { line-height: 0; opacity: .95; }
.vg-linkcard-name { font-weight: 700; font-size: 0.95rem; word-break: break-all; }
.vg-linkcard-go { font-size: 0.76rem; color: #9FC2FF; }
/* The generic rule above stretches any img/iframe to fill the slide; the card's
   inline SVG must keep its own size. */
.vd-hslide--link svg { width: 26px; height: 26px; object-fit: initial; }
.vg-tile-fallback svg { width: 22px; height: 22px; }

.vd-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 20, 33, .55) 0%, rgba(8, 20, 33, .18) 32%, rgba(8, 20, 33, .72) 78%, rgba(8, 20, 33, .88) 100%),
    linear-gradient(115deg, rgba(8, 20, 33, .45), rgba(37, 99, 235, .18));
}

.vd-hplay {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #081421;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.vd-hplay:hover { transform: translate(-50%, -50%) scale(1.07); }
.vd-hplay.hidden { display: none; }

.vd-hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.vd-hero-controls.hidden { display: none; }
.vd-hero-tools { display: flex; gap: .5rem; }

.vd-hero-tool {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 34px;
  padding: 0 .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(8, 20, 33, .5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.vd-hero-tool:hover { background: rgba(8, 20, 33, .72); transform: translateY(-1px); }
.vd-hero-tool.hidden { display: none; }
.vd-hero-tool .vg-count { color: #fff; font-size: .78rem; }

.vg-poster {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #0C1826 center/cover no-repeat;
}
.vg-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 33, .38);
  transition: background .25s;
}
.vg-poster:hover::after { background: rgba(8, 20, 33, .22); }
.vg-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #081421;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .25s;
  pointer-events: none;
}
.vg-poster:hover .vg-play { transform: translate(-50%, -50%) scale(1.08); }

.vg-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 20, 33, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.vg-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(8, 20, 33, .1);
  background: rgba(255, 255, 255, .94);
  color: #081421;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(8, 20, 33, .18);
  transition: opacity .2s, transform .2s;
}
.vg-arrow:hover { transform: translateY(-50%) scale(1.06); }
.vg-arrow--prev { left: 14px; }
.vg-arrow--next { right: 14px; }
.vg-arrow[disabled] { opacity: 0; pointer-events: none; }
.vg-arrow.hidden { display: none; }

/* flex-wrap is the safety net for a gallery just under VG.maxDots on a narrow
   screen; beyond that threshold the dots are not rendered at all. */
.vg-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.vg-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.vg-dot.is-active { width: 22px; background: #F5C518; }

/* ---------- lightbox ---------- */
.vg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  place-items: center;
  padding: 4vmin;
  background: rgba(4, 10, 18, .92);
}
.vg-lightbox.open { display: grid; }
.vg-lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
  object-fit: contain;
}
.vg-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vg-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: none;
  place-items: center;
  padding: 4vmin;
  background: rgba(4, 10, 18, .6);
}
.vg-modal.open { display: grid; }
.vg-modal-card {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 20, 33, .3);
}
.vg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .3rem;
}
.vg-modal-head h3 { margin: 0; font-size: 1.15rem; }
.vg-modal-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #F1F4F8;
  color: #33415C;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.vg-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}
.vg-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0C1826;
  border: 1px solid #E8ECF2;
}
.vg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-tile-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vg-tile-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 33, .85));
}
.vg-tile-btn {
  flex: 1;
  padding: 4px 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .9);
  color: #33415C;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.vg-tile-btn:disabled { opacity: .35; cursor: default; }
.vg-tile-btn--danger { background: rgba(255, 226, 222, .95); color: #B3261E; }
/* The first tile is what browse cards and the hero use. */
.vg-tile--cover::before {
  content: "Cover";
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F5C518;
  color: #081421;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vg-empty {
  padding: 1.5rem;
  border: 1px dashed #DCE3EC;
  border-radius: 12px;
  text-align: center;
  font-size: .85rem;
  color: #7A8AA3;
}

.vg-add-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.vg-embed-row { display: flex; gap: .5rem; margin-top: .8rem; }
.vg-embed-row input { flex: 1; min-width: 0; }
.vg-hint { margin: .6rem 0 0; font-size: .76rem; line-height: 1.5; color: #7A8AA3; }

@media (max-width: 640px) {
  .vg-arrow { display: none; }

  .vd-hplay { width: 54px; height: 54px; top: 20%; }
  .vd-hero-controls { gap: .6rem; }
  .vg-manage-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
