/* Team collection wall: Shop by Style / Shop by Color tabs and triggers */

/* Hero: Vimeo background + text overlay (follows flyfreeLandingHero structure) */
.team-collection-hero-section {
  margin-bottom: 2rem;
}

@media (max-width: 959px) {
  .team-collection-hero-section .container {
    padding: 0;
  }
}



.team-collection-hero {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 960px) {
  .team-collection-hero {
    aspect-ratio: 1 / 0.37;
    min-height: 450px;
    border-radius: 12px;
  }
}

/* Mobile: video block first, then text below (centered, black) */
@media (max-width: 959px) {
  .team-collection-hero {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    overflow: visible;
  }
  .team-collection-hero__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    flex-shrink: 0;
  }
  .team-collection-hero__video-wrap .video-bg {
    position: absolute;
    inset: 0;
  }
  .team-collection-hero__text {
    position: static;
    padding: 1.5rem 1rem 0;
    max-width: none;
    text-align: center;
    color: #111;
  }
  .team-collection-hero__pre-title {
    display: none;
  }
  .team-collection-hero__title {
    color: #111;
  }
  .team-collection-hero__display-text {
    color: #111;
    opacity: 1;
  }
}

@media (min-width: 960px) {
  .team-collection-hero__video-wrap {
    position: absolute;
    inset: 0;
  }
}

.team-collection-hero .video-bg {
  position: absolute;
  inset: 0;
}

/* Scale video up and center so it always fills the hero (cover-style); overflow hidden on .team-collection-hero crops edges */
.team-collection-hero .video-embed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  min-width: 100%;
  min-height: 100%;
  padding-bottom: 0;
  transform: translate(-50%, -50%);
}

.team-collection-hero .video-embed iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Desktop: text overlaid on video; mobile: text below (see max-width 959px block) */
@media (min-width: 960px) {
  .team-collection-hero__text {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2rem 3rem 3rem;
    z-index: 1;
    color: #fff;
    max-width: 90%;
  }
}

.team-collection-hero__pre-title {
  margin: 0 0 0.25rem;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-collection-hero__title {
  margin: 0 0 0.5rem;
  line-height: 0.95;
  font-size: 56px;
}

/* @media (min-width: 960px) {
  .team-collection-hero__title {
    font-size: 50px;
  }
} */

@media (min-width: 1200px) {
  .team-collection-hero__title {
    font-size: 84px;
  }
}

.team-collection-hero__title br {
  display: block;
}

.team-collection-hero__display-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.95;
}

.team-collection-hero__display-text p {
  margin: 0;
}

.team-collection-wall {
  margin-bottom: 60px;
  /* Scrollbar track inset only (WebKit); content stays full-bleed */
  --team-collection-scroll-margin: 0;
}

@media (min-width: 960px) {
  .team-collection-wall {
    --team-collection-scroll-margin: 48px;
  }
}

.team-collection-wall__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.team-collection-wall__tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  cursor: pointer;
  color: #111;
  transition: border-color 0.2s, outline-color 0.2s;
}

@media (max-width: 959px) {
  .team-collection-wall__tab {
    font-size: 15px;
    padding: 10px 20px;
  }
}

.team-collection-wall__tab:hover {
  border-color: #111;
  outline: 1px solid #111;
  outline-offset: 0;
}

.team-collection-wall__tab.is-active {
  border-color: #111;
  outline: 1px solid #111;
  outline-offset: 0;
  background: #fff;
  color: #111;
}

/* Show only the trigger row for current mode (nav built once, no re-render) */
.team-collection-wall[data-mode="color"] .team-collection-wall__color-triggers[data-nav="lens"] {
  display: none;
}
.team-collection-wall[data-mode="lens"] .team-collection-wall__color-triggers[data-nav="frame"] {
  display: none;
}

.team-collection-wall__triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-end;
}

/* Scrollbar styling: WebKit only so track margin works in Chrome (121+ ignores webkit if scrollbar-width is set) */
.team-collection-wall__color-triggers::-webkit-scrollbar {
  height: 14px;
}
.team-collection-wall__color-triggers::-webkit-scrollbar-thumb {
  background-clip: content-box;
  border: 5px solid transparent;
  border-radius: 10px;
  box-shadow: inset 0 0 0 10px #d8d8d8;
}
.team-collection-wall__color-triggers::-webkit-scrollbar-corner {
  background-color: transparent;
}
.team-collection-wall__color-triggers::-webkit-scrollbar-track {
  background: transparent;
  margin-inline-start: var(--team-collection-scroll-margin);
  margin-inline-end: var(--team-collection-scroll-margin);
}
.team-collection-wall__color-triggers::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

/* Firefox: standard props (no track inset possible) */
@supports not selector(::-webkit-scrollbar) {
  .team-collection-wall__color-triggers {
    scrollbar-color: #d8d8d8 transparent;
    scrollbar-width: thin;
  }
}

/* Hide scrollbars (remove this block to restore custom scrollbar styling above) */
.team-collection-wall__color-triggers::-webkit-scrollbar {
  display: none;
}
.team-collection-wall__color-triggers {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-collection-wall__heading.h2 {
  font-size: 26px;
  font-weight: 700;
}

@media (min-width: 960px) {
  .team-collection-wall__heading.h2 {
    font-size: 36px;
  }
}

/* Fade-in when wall content loads or updates */
@keyframes team-collection-wall-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
#team-collection-wall .team-collection-wall__content {
  animation: team-collection-wall-fade-in 0.3s ease forwards;
}

.team-collection-page__empty {
  color: #666;
  margin-bottom: 2rem;
}

/* Hidden Sprig triggers (visible nav on page triggers these via JS) */
.team-collection-wall__hidden-triggers {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Color triggers: horizontal inline, centered; horizontal scroll when overflow */
/* Color triggers: same pattern as style – inner wrapper so scroll 0 = first item, no cut-off */
.team-collection-wall__color-triggers {
  display: block;
  overflow-x: auto;
  padding-inline-start: var(--team-collection-scroll-margin);
  padding-inline-end: calc(var(--team-collection-scroll-margin) + 16px);
  border-bottom: #DADADA 1px solid;
}

@media (max-width: 959px) {
  .team-collection-wall__color-triggers {
    padding-inline-start: 16px;
    padding-inline-end: 32px;
  }
}

.team-collection-wall__color-triggers-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 78px;
  align-items: flex-end;
  margin: 0 auto;
  width: max-content;
}

.team-collection-wall__color-triggers-inner .filter-group__items-group {
  display: contents;
}

.team-collection-wall__color-triggers-inner .prod-filter.is--color {
  flex-shrink: 0;
}

.team-collection-page .prod-filter .filter-item__color-patch {
  width: 42px;
  height: 42px;
}

.team-collection-wall__color-triggers .prod-filter.is--color {
  width: auto;
  min-width: 0;
  margin: 0;
}

/* Hide checkmark; selected = 4px black line under label */
.team-collection-wall__color-triggers .filter-item__color-patch .icon-checkmark,
.team-collection-wall__color-triggers .filter-item__color-patch .checkmark {
  display: none;
}

.team-collection-wall__color-triggers .team-collection-wall__color-selected-line {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 4px;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.team-collection-wall__color-triggers .prod-filter.is--selected .team-collection-wall__color-selected-line {
  opacity: 1;
}


.team-collection-page .prod-filter.is--color .filter-item__item-label {
  font-size: 18px;
  font-weight: 500;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000;
}
