.wpstory-shortcode-wrapper {
    text-align: center;
    margin: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpstory-slider-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    width: 100%;
    height: 98px;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.wpstory-slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.wpstory-slider-item {
    flex: 0 0 calc(100% / 6); /* Show 4 items in mobile view */
    user-select: none;
    touch-action: pan-y;
}

.grabbing {
    cursor: grabbing;
}

#story-fullscreen-content {
    transition: transform 0.3s ease-out;
}


















.wpstory-feed-item {
flex: 0 0 auto;
  width: 82px;
  height: 80px;
  margin: 0px 3.5px;
  cursor: pointer;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  border: 3px solid rgba(168, 7, 98, 1);
  box-shadow: inset 0 0 0 2px white; /* Inner border */
}


.wpstory-category {
position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  background: rgb(155, 0, 0);
  border-radius: 3px;
  padding: 1px 1px;
  height: 20px;
  font-size:10px;
  line-height: 20px;
}


















.wpstory-slider-nav {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 10;
}

.wpstory-slider-nav-prev {
    margin-right: 5px;
}

.wpstory-slider-nav-next {
    margin-left: 5px;
}

@media (max-width: 767px) {
    .wpstory-slider-nav {
        display: none; /* Hide navigation buttons on mobile */
    }
}

.wpstory-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 6, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    flex-direction: column;
    color: white;
     z-index: 9999;
}

.wpstory-fullscreen-header {
position: absolute;
  top: 10px;
  width: 80%;
  display: flex;
  justify-content: flex-start;
  margin-left: -60px;
  padding: 0px;
  background: rgba(196, 9, 9, 0.86);
  border-radius: 8px;
  height: 30px;
}

.wpstory-fullscreen-progress-bar {
    position: absolute;
    top: 50px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.wpstory-fullscreen-progress-bar:before {
    content: '';
    display: block;
    height: 100%;
    background: #7f53ac;
    width: 0%;
}

.wpstory-fullscreen-author,
.wpstory-fullscreen-date,
.wpstory-fullscreen-mute {
    display: inline-block;
    margin-right: 6px;
  margin-left: 15px;
    font-size: 12px;
}

.wpstory-fullscreen-author {
    font-size: 16px;
}

.wpstory-fullscreen-close {
    position: absolute;
  top: 10px;
  right: 5px;
  color: white;
  font-size: 35px;
  cursor: pointer;
  background-color: #b51010d6;
  padding: 5px;
  border-radius: 7px;
  border: 1px solid white;
  width: 12%;
}

.wpstory-fullscreen-content {
    width: 100%;
    height: calc(70% - 100px); /* Leave space for header and footer */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
      margin-top: -120px;
      
}

.wpstory-fullscreen-title {
    background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 9px;
  font-size: 18px;
  line-height: 1.2;
  border: 1px solid white;
  font-weight: 800;
  margin-top: 550px;
}

.wpstory-fullscreen-link {
    background-color: #aa0202;
    padding: 10px 30px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 333px;
    border: 1px solid white;
    position: absolute;
}

/* Mobile view styles */
@media only screen and (max-width: 768px) {
    .wpstory-fullscreen-link {
        margin-bottom: -626px;
        margin-top: auto; /* Reset the top margin for mobile */
    }
}

.wpstory-fullscreen-link:hover {
    opacity: 0.8;
}

.wpstory-fullscreen-mute button {
    background: none;
    border: 1px solid white;
    border-radius:14px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}













/* Mobile view styles */
@media only screen and (max-width: 768px) {
    .wpstory-slider-item {
        flex: 0 0 calc(100% / 6); /* Ensure it shows 4 stories on mobile */
    }
} 
@media only screen and (max-width: 768px) {
.wpstory-feed-item {
flex: 0 0 auto;
  width: 70px;
  height: 69px;
  margin: 0px 3.5px;
  cursor: pointer;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  border: 3px solid rgba(168, 7, 98, 1);
  box-shadow: inset 0 0 0 2px white; /* Inner border */
}
}