.ns-story{
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  background: var(--ns-card);
  border: 1px solid var(--ns-line);
  box-shadow: 0 0 0 1px rgba(0,229,255,.06) inset;
  position: relative;
  overflow: hidden;
}

.ns-story::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 220px at 0% 0%, rgba(0,229,255,.16), transparent 65%),
              radial-gradient(560px 220px at 100% 0%, rgba(0,160,255,.12), transparent 60%);
  opacity: .55;
  pointer-events: none;
}

.ns-story:hover{
  border-color: rgba(0,229,255,.42);
  box-shadow: 0 0 26px rgba(0,229,255,.10);
}

.ns-story__body{
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ns-story__name{
  margin: 0 0 6px;
  color: rgba(255,255,255,.95);
  font-size: 17px;
  letter-spacing: .2px;
}




/* NS Historie Uczestników — neonowy styl (mapa) */
.ns-stories-wrap{
  --ns-cyan: rgba(0,229,255,.85);
  --ns-blue: rgba(0,160,255,.85);
  --ns-bg: rgba(10,12,18,.92);
  --ns-line: rgba(0,229,255,.25);
  --ns-text: rgba(255,255,255,.9);
  --ns-muted: rgba(255,255,255,.72);
  --ns-card: rgba(12,15,24,.72);
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 14px 26px;
}

.ns-stories-hero{
  margin: 0 0 22px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,.18); /* blend with theme background */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
  outline: 1px solid rgba(0,229,255,.14);
}


.ns-stories-hero__img img{
  width: 100%;
  height: auto;
  display: block;
}

.ns-stories-hero__desc{
  padding: 22px 26px 24px;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height: 1.75;
  background: transparent;
}

/* zachowaj formatowanie jak w edytorze (akapity, listy) */
.ns-stories-hero__desc p,
.ns-story__full p{ margin: 0 0 12px; }
.ns-stories-hero__desc p:last-child,
.ns-story__full p:last-child{ margin-bottom: 0; }

.ns-stories-hero__desc ul,
.ns-stories-hero__desc ol,
.ns-story__full ul,
.ns-story__full ol{ margin: 0 0 12px 18px; padding: 0; }

.ns-stories-hero__desc li,
.ns-story__full li{ margin: 0 0 6px; }


.ns-stories-hero__desc a{ color: rgba(160,240,255,.95); text-decoration: underline; }

.ns-stories-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}







.ns-story__photo{
  width: 192px;
  height: 192px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.22);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.35),
    0 0 28px rgba(0,229,255,.25);
  background: rgba(0,0,0,.35);
  margin-left: 4px;
}

.ns-story__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.ns-story__photo--empty{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  text-align: center;
  padding: 8px;
}





.ns-story__text{
  color: var(--ns-text);
  font-size: 15.4px;
  line-height: 1.7;
}

.ns-story__p{
  margin: 0;
  color: var(--ns-muted);
}

.ns-story__toggle{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.22);
  background: rgba(0,0,0,.25);
  color: rgba(0,229,255,.95);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ns-story__toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.55);
  box-shadow: 0 0 18px rgba(0,229,255,.14);
}

.ns-story__toggle:active{ transform: translateY(0px) scale(.99); }

.ns-story__chev{
  display:inline-block;
  transform: translateY(1px);
  transition: transform .22s ease;
}

.ns-story.is-open .ns-story__chev{ transform: rotate(180deg) translateY(-1px); }

.ns-stories-empty{
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px dashed rgba(0,229,255,.30);
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.18);
}

/* Mobile */

  .ns-story__photo{
  --ns-zoom: 100%;
    width: 120px;
    border-radius: 16px;
  }
  
  .ns-story__text{ font-size: 15px; }
}

.ns-story__p a{ color: rgba(160,240,255,.95); text-decoration: underline; }
.ns-story__p ul, .ns-story__p ol{ margin: 8px 0 0 18px; }
.ns-story__p li{ margin: 4px 0; }


@media (max-width: 640px){
  .ns-stories-hero{
  margin: 0 0 22px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,.18); /* blend with theme background */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
  outline: 1px solid rgba(0,229,255,.14);
}
  .ns-story__photo{ margin-top: 0; }
  
  .ns-story__photo{
    width: 144px;
    height: 144px;
    margin: 0 0 12px 2px;
  }
}
  .ns-story__photo{
    width: 144px;
    height: 144px;
    margin: 0 0 10px 0;
  }
}

  .ns-story__photo{
  --ns-zoom: 100%;
    width: 144px;
    height: 144px;
    margin: 0 0 10px 0;
    border-radius: 16px;
  }

  
}

  .ns-story__photo{
  --ns-zoom: 100%;
    float: left;
    width: 144px;
    height: 144px;
    margin: 0 12px 6px 0;
    border-radius: 16px;
  }

  

  
}





.ns-story__photo{
  align-self: start;
  margin-top: calc(var(--ns-align-lines) * 1.7em);
}


/* FIX: prevent text overlapping photo */
.ns-story{
  display: grid !important;
  grid-template-columns: 192px 1fr !important;
  column-gap: 22px !important;
}

.ns-story__body{
  padding-left: 0 !important;
  min-width: 0;
}

.ns-story__text,
.ns-story__p{
  overflow-wrap: break-word;
}


@media (max-width: 640px){
  .ns-story{
    grid-template-columns: 1fr !important;
  }
  .ns-story__photo{
    margin-bottom: 12px;
  }
}


/* FIX: center photo vertically */
.ns-story{
  align-items: center !important;
}

.ns-story__photo{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}



/* FIX: center photo horizontally (left-right) */
.ns-story__photo{
  justify-self: center !important;
}

