/* Flit home invite gallery */
.invite-part {
  overflow-x: clip;
}

.invite-part > .showcase[aria-label] {
  width: min(100vw, 980px) !important;
  min-width: 0 !important;
  max-width: none !important;
}

.invite-part > .showcase[aria-label] .video-stage {
  width: 100%;
  max-width: none;
  overflow: visible;
}

.invite-gallery {
  --card-w: min(380px, calc(100vw - 48px));
  --card-h: calc(var(--card-w) * 844 / 390);
  --invite-scale: .97435897;
  --invite-side-scale: .81846154;
  --invite-far-scale: .70153846;
  --side-step: min(268px, 60vw);
  --drag-x: 0px;
  position: relative;
  width: min(100vw, 960px);
  height: var(--card-h);
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 44%;
}

.invite-gallery .invite-carousel {
  position: relative;
  width: 100%;
  height: var(--card-h);
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  background: transparent;
  transition: opacity .32s ease;
  touch-action: pan-y;
}

.invite-gallery .invite-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: 390px;
  height: 844px;
  box-sizing: content-box;
  border: 0;
  border-radius: 45px;
  background: #0f1117;
  box-shadow: inset 0 0 0 8px #11151e, 0 0 0 1px rgba(255,255,255,.15), 0 28px 72px rgba(0,0,0,.62);
  opacity: 0;
  visibility: visible;
  transform-origin: 50% 0;
  transition:
    transform .64s cubic-bezier(.22,.61,.36,1),
    opacity .42s ease,
    filter .42s ease,
    box-shadow .42s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint style;
  pointer-events: none !important;
  object-fit: cover;
  -webkit-user-drag: none;
}

.invite-gallery .invite-live-frame {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 390px;
  height: 844px;
  box-sizing: content-box;
  border: 0;
  border-radius: 45px;
  background: #0f1117;
  box-shadow: inset 0 0 0 8px #11151e;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(calc(-50% + var(--drag-x)), 0, 0) scale(var(--invite-scale));
  transform-origin: 50% 0;
  transition: opacity .18s ease, transform .64s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  contain: layout paint style;
  pointer-events: none !important;
}

.invite-gallery .invite-live-frame.is-active {
  opacity: 1;
  visibility: visible;
}

.invite-gallery .invite-live-frame.is-preloading {
  opacity: 0;
  visibility: visible;
}

.invite-gallery .invite-live-frame.is-loading,
.invite-gallery .invite-live-frame.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.invite-gallery .invite-frame.is-current {
  z-index: 4;
  opacity: 1;
  filter: brightness(1);
  transform: translate3d(calc(-50% + var(--drag-x)), 0, 0) scale(var(--invite-scale)) rotateY(0deg);
}

.invite-gallery .invite-frame.is-prev {
  z-index: 2;
  opacity: .58;
  filter: brightness(.62) saturate(.82);
  transform: translate3d(calc(-50% - var(--side-step) + var(--drag-x)), 0, -46px) scale(var(--invite-side-scale)) rotateY(7deg);
}

.invite-gallery .invite-frame.is-next {
  z-index: 2;
  opacity: .58;
  filter: brightness(.62) saturate(.82);
  transform: translate3d(calc(-50% + var(--side-step) + var(--drag-x)), 0, -46px) scale(var(--invite-side-scale)) rotateY(-7deg);
}

.invite-gallery .invite-frame.is-far-left {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  filter: brightness(.46);
  transform: translate3d(calc(-50% - var(--side-step) - var(--side-step) + var(--drag-x)), 0, -90px) scale(var(--invite-far-scale)) rotateY(10deg);
}

.invite-gallery .invite-frame.is-far-right {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  filter: brightness(.46);
  transform: translate3d(calc(-50% + var(--side-step) + var(--side-step) + var(--drag-x)), 0, -90px) scale(var(--invite-far-scale)) rotateY(-10deg);
}

.invite-gallery .invite-frame.is-loading {
  opacity: 0;
}

.invite-gallery .invite-frame.is-resetting,
.invite-carousel[data-dragging="true"] .invite-frame,
.invite-carousel[data-dragging="true"] .invite-live-frame {
  transition: none !important;
}

.invite-gesture-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: 44px;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-user-select: none;
  user-select: none;
}

.invite-gesture-layer.is-grabbing {
  cursor: grabbing;
}

.invite-pagination {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 9;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(13,16,23,.82);
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: opacity .32s ease;
}

.invite-gallery:not(.is-ready) .invite-carousel,
.invite-gallery:not(.is-ready) .invite-pagination {
  opacity: 0;
}

.invite-gallery-button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f7f9fc;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  transition: background .2s ease, opacity .2s ease;
}

.invite-gallery-button:hover,
.invite-gallery-button:focus-visible {
  background: rgba(255,255,255,.1);
  outline: none;
}

.invite-gallery-button[aria-disabled="true"] {
  opacity: .42;
}

.invite-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.invite-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  transition: width .28s ease, background .28s ease;
}

.invite-dot.is-active {
  width: 16px;
  background: #fff;
}

.invite-gallery-count {
  min-width: 44px;
  color: rgba(255,255,255,.64);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 700px) {
  .invite-part .meetup-title {
    height: 38px;
    overflow: visible;
    font-size: 15px !important;
    line-height: 1;
  }

  .invite-part .meetup-title span {
    inset: auto;
    top: calc(50% + 16px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: max-content;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.025em;
    text-shadow: 0 2px 16px rgba(0,0,0,.66);
    white-space: nowrap;
    transform: translate3d(-50%, -50%, 0);
  }

  .invite-part .meetup-title span::before {
    display: none;
  }

  .invite-part .meetup-title span.is-current {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }

  .invite-part .meetup-title span.is-exiting {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 13px), 0);
  }

  .invite-part .meetup-title span.is-entering {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + 13px), 0);
  }

  .invite-part > .showcase[aria-label],
  .invite-part > .showcase[aria-label] .video-stage {
    width: 100vw;
    max-width: 100vw;
  }

  .invite-gallery {
    --card-w: min(300px, 86vw);
    --invite-scale: .76923077;
    --invite-side-scale: .64615385;
    --invite-far-scale: .55384615;
    --side-step: min(232px, 59vw);
    height: var(--card-h);
    margin: 0 auto;
    top: 20px;
  }

  .invite-gallery .invite-frame {
    border-radius: 51px;
  }

  .invite-gallery .invite-live-frame {
    border-radius: 51px;
  }

  .invite-gesture-layer {
    border-radius: 39px;
    pointer-events: none;
    cursor: default;
  }

  .invite-pagination {
    inset: 0;
    z-index: 40;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    pointer-events: none;
  }

  .invite-gallery-button {
    position: absolute;
    top: 50%;
    z-index: 41;
    width: 44px;
    height: 64px;
    background: transparent;
    color: #fff !important;
    font-size: 0;
    opacity: 1 !important;
    transform: translateY(-50%);
    will-change: transform;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .invite-gallery-button::before {
    content: "";
    width: 14px;
    height: 14px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.92)) drop-shadow(0 0 7px rgba(255,255,255,.2));
  }

  #inviteGalleryPrev {
    left: 12px;
    animation: invite-arrow-prev 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
  }

  #inviteGalleryPrev::before {
    transform: rotate(135deg);
  }

  #inviteGalleryNext {
    right: 12px;
    animation: invite-arrow-next 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
  }

  @keyframes invite-arrow-prev {
    0%, 100% { transform: translate3d(0, -50%, 0); }
    45% { transform: translate3d(-3px, -50%, 0); }
    60% { transform: translate3d(0, -50%, 0); }
  }

  @keyframes invite-arrow-next {
    0%, 100% { transform: translate3d(0, -50%, 0); }
    45% { transform: translate3d(3px, -50%, 0); }
    60% { transform: translate3d(0, -50%, 0); }
  }

  #inviteGalleryNext::before {
    transform: rotate(-45deg);
  }

  .invite-gallery-button:hover,
  .invite-gallery-button:focus-visible {
    background: transparent;
    color: #fff;
  }

  .invite-gallery-button[aria-disabled="true"] {
    color: #fff !important;
    opacity: 1 !important;
  }

  .invite-dots,
  .invite-gallery-count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-gallery-button {
    animation: none !important;
  }

  .invite-gallery .invite-frame,
  .invite-gallery .invite-live-frame,
  .invite-dot {
    transition: none !important;
  }
}
