/* SF Trip: the gallery's video cards and the zoom-in player (hub preview: node-stack.css) */

/* gallery cards: hidden preview sources, drawn onto canvases */
.sf .ng-card video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* hub fades away while the gallery is open */
.intro > canvas,
.intro-nav,
.intro-hub-title {
  transition: opacity 0.5s var(--ease);
}

.intro.is-away > canvas,
.intro.is-away .intro-nav,
.intro.is-away .intro-hub-title {
  opacity: 0 !important;
  pointer-events: none;
}

/* ---------- player ---------- */

.sf-player {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 56px 16px 24px;
  background: #050505;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.sf-player[hidden] {
  display: none;
}

.sf-player.is-visible {
  opacity: 1;
}

.sf-player video {
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  border-radius: 10px;
  background: #000;
}

.sf-player-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.sf-player-ig {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.sf-player-ig:hover {
  border-color: #fff;
}

.sf-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.sf-close:hover,
.sf-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

@media (max-width: 600px) {
  .sf-player-bar {
    flex-direction: column;
    gap: 10px;
  }
}
