.widget-story{


  .story-item{
    display: block;
    width: 75px;
    height: 75px;
    position: relative;
    overflow: hidden;
    border-radius: 100%;
    background: #ddd;
    transition: 0.2s;
    cursor: pointer;

    &:hover{
      transform: scale(0.95);
      outline-color: #ccc;

      .item-content{
        opacity: 1;
      }
    }

    .item-content{
      position: absolute;
      top: 2px;
      left: 2px;
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      border: #fff 2px solid;
      background: #fff;
      background-size: cover;
      background-position: center;
      border-radius: 100%;
      opacity: 0.6;
      transition: 0.2s;
    }

    &.active{
      background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);

      .item-content{
        opacity: 1;
      }
    }
  }

  .story-viewport {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;

    .viewport-dismisser{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    .viewport-wrapper{
      width: 400px;
      max-width: 100%;
      position: relative;
      transition: 0.2s;
      transition-delay: 0.2s;
      z-index: 2;

      .owl-carousel{
        .item-content{
          background: #000;
          padding-top: 177%;
          background-size: cover;
          background-position: center center;
        }

        .owl-dots{
          position: absolute;
          top: 0;
          left: 0;
          right: 30px;
          padding: 20px;
          z-index: 1;
          display: flex;
          gap: 5px;

          .owl-dot{
            display: block;
            background: #fff;
            border-radius: 5px;
            height: 5px;
            flex: 1;
            transition: 0.2s;
            opacity: 0.2;
            box-shadow: rgba(0,0,0,0.1) 0 3px 3px 3px;

            &:hover{
              opacity: 0.3;
            }

            &.active{
              opacity: 0.5;
            }
          }
        }

        .owl-nav{
          button{
            position: absolute;
            top: 15px;
            left: 0;
            height: 100%;
            width: 50px;
            color: transparent;

            &.owl-prev{
              left: auto;
              right: 0;
            }
          }
        }
      }

      .close-stories{
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        width: 40px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 22px;
      }
    }

    &:not(.show-viewport){
      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      .viewport-wrapper{
        transform: translateY(-30px);
        opacity: 0;
      }
    }
  }
}

.story-showing{
  overflow: hidden;
}