/* transição */
.storyContainer{
  transform: translateX(0);
  transition: transform .28s ease;
  will-change: transform;
}
.storyContainer.out-left{ transform: translateX(-14%); }
.storyContainer.out-right{ transform: translateX(14%); }
.storyContainer.in-from-right{ transform: translateX(14%); }
.storyContainer.in-from-left{ transform: translateX(-14%); }
.storyContainer.in-active{ transform: translateX(0); }

/* base */
.mediaWrapper{ position: relative; }

.storyTextOverlay{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 90px;
  padding: 0 14px;
  z-index: 2000;
  pointer-events: none;
  text-align: center;
  margin-right: 200px;
}
.storyTextBox{
  display: inline-block;
  max-width: 100%;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 26px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  overflow-wrap: anywhere;
}

/* timeline */
.timelineBar{
  height: 4px;
  background: rgba(255,255,255,.25);
  flex-grow: 1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.timelineBar .fill{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: red;
}
.timelineBar.active{ background: white; }

/* list */
.userStoriesContainer{
  display: -webkit-box;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
}
.userStoriesContainer:active{ cursor: grabbing; }
.userStory{
  text-align: center;
  cursor: pointer;
  width: 8%;
}
.userAvatar{
  margin-bottom: 10px;
  width: 60%;
  border: 3px solid white;
}
.userAvatar.is-seen{ border: 3px solid yellow !important; }
.userName{
  color: white;
  text-transform: capitalize;
  margin-bottom: 12px !important;
  font-size: 14px;
}

/* modal story */
.storyContainer{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

video, object{
  min-height: 100%;
  min-width: 100%;
  padding: 50px;
}

.storyHeader{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  color: white;
}
.storyAvatar{
  width: 40px;
  height: auto;
}
.storyUserName, .lastUpdate{
  font-size: 16px;
  margin-left: 10px;
}
.closeStory{
  background: transparent;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.timelineWrapper{
  position: absolute;
  top: 10px; left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  padding: 0 10px;
  justify-content: center;
}

/* volume */
.volume-control{
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
}
.volume-control:hover{ color: #ccc; }

::-webkit-scrollbar{
  width: 12px;
  height: 12px;
}

@media (max-width: 800px){
  .hide-mobile{ height: auto !important; }
}
@media (min-width: 1px) and (max-width: 800px){
  .userStory{ width: 20% !important; }
}
