/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
#storyfi-modal .close {
    position: absolute;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    right: 28px;
    top: 33px;
    z-index: 10001;
}
.story-bubbles .bubbles .bubble .text {
    text-align: center;
    margin-top: 10px;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.open-carousel{
    opacity: 1 !important;
    visibility: visible !important;
    background-color: rgb(0 0 0 / 72%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100% !important;
}
body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background: #1b1b1b;
    color: #c4c4c4;
}
.story-container > *:not(button) {
    cursor: default !important;
}
.story-bubbles {
    position: relative;
    width: 100%;
    height: auto;
    overflow-y: hidden;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
}
#storyfi-modal{
    opacity:0; 
    visibility:hidden;
    height:0px;
}
#storyfi-modal li.dot {
    background: #fff;
}
#storyfi-modal .flickity-viewport {
    padding: 35px 0px;
    width: 90%;
    margin: 0 auto;
}
.story-bubbles .bubbles .bubble {
    width: 15.3%;
    height: auto;
    margin: 10px;
}
.story-bubbles .flickity-prev-next-button {
    display: none;
}
.story-bubbles .bubbles .bubble a {
    display: block;
    text-decoration: none;
}
.story-bubbles .bubbles .bubble .thumb {
    border-radius: 10%;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), radial-gradient(circle at top left, red, orange);
    background-origin: border-box;
    background-clip: content-box, border-box;
}
.story-bubbles .bubbles .bubble .thumb img {
    width: 100%;
    height: 220px;
    border: 2px solid #fff;
    border-radius: 10%;
    display: block;
    object-fit: cover;
}
.story-container .story-item {
    height: 85vh;
    aspect-ratio: 9/16;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    margin-right: 50px;
}
.story-container .flickity-page-dots {
    bottom: -45px;
}
.story-item .indicator {
    display: none;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 100px;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.story-item .indicator div {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.story-item .indicator div > span {
    width: 0;
    height: 3px;
    background: white;
    border-radius: 999px;
    transition: width 0.01s ease-in-out;
}

.story-item img {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 9/16;
    object-fit: cover;
    transition: all 0.15s ease;
    height: 60%;
}

.story-item.is-selected img {
    height: 90%;
    width: 90%;
}

.story-item.is-selected .indicator {
    display: flex;
    padding: 20px;
}

.flickity-prev-next-button {
    width: 25px;
    height: 25px;
    opacity: 0.5;
}

.flickity-prev-next-button.previous {
    left: 30%;
}

.flickity-prev-next-button.next {
    right: 30%;
}

@media screen and (max-width: 500px) {
    .story-item {
        margin-right: 0;
    }

    .story-item img {
        width: 80%;
    }
}
