/* Rjeti.com 1.6.3 — photos-only grouped Instagram-style stories */
.r163-story-items{display:none!important}
.r163-story-group,.r163-group-wrap{min-width:0;position:relative}
.r163-stories-row>.r163-group-wrap{flex:0 0 110px;width:110px}
.r163-story-gallery>.r163-group-wrap{width:100%}
.r163-story-card{position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;overflow:hidden;color:#fff;text-align:left;isolation:isolate}
.r163-stories-row .r163-story-card{height:178px;border-radius:15px}
.r163-story-gallery .r163-story-card{aspect-ratio:3/4.1;height:auto;border-radius:16px}
.r163-story-card .r17-story-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.r163-story-card .r17-story-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(8,11,18,.2),transparent 36%,rgba(8,11,18,.85))}
.r163-story-card .r163-story-user{position:absolute;inset:auto 5px 9px;z-index:2;display:flex;flex-direction:column;gap:6px;align-items:flex-start;line-height:1.2;font-size:12px;min-width:0}
.r163-story-card .r163-story-user strong{color:#fff;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.r163-story-card .r163-story-user .avatar{width:36px;height:36px;flex:none;border:2px solid #fff}
.r163-story-card.r163-unseen .r163-story-user .avatar{outline:3px solid #ed1539;outline-offset:1px}
.r163-story-card.r163-seen .r163-story-user .avatar{outline:3px solid #9da4ae;outline-offset:1px}
.r163-count{position:absolute;top:8px;right:8px;background:rgba(5,11,22,.7);color:#fff;border-radius:18px;padding:2px 7px;font-size:11px;z-index:2}
.r163-broken-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;background:#303541;color:white;font-size:11px;z-index:1;text-align:center;padding:12px}
.r163-broken-hint[hidden]{display:none!important}
.r163-story-card:focus-visible{outline:3px solid #ed1539;outline-offset:3px}
.r163-story-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.r163-muted-panel{margin:18px 0;padding:16px}.r163-muted-panel summary{cursor:pointer;font-weight:700}
.r163-muted-line{padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.r163-editor{display:block;max-width:440px;margin:10px auto;background:var(--surface-secondary,#f6f7fa);border:1px solid var(--line);padding:15px;border-radius:16px}
.r163-editor[hidden]{display:none!important}.r163-editor>p{font-weight:700;margin:0 0 9px}
.r163-crop-frame{display:flex;align-items:center;justify-content:center;min-height:240px}
.r163-editor-photo{display:block;width:min(100%,225px);height:auto;aspect-ratio:9/16;object-fit:contain;border-radius:12px;background:#111}
.r163-editor-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:12px}
.r163-editor-controls label{flex:1 1 120px;font-size:12px;min-width:100px;display:flex;flex-direction:column;gap:5px}
.r163-editor-controls input[type=range]{width:100%;accent-color:#ed1539}
.r163-overlay{z-index:3000;overflow:hidden;padding:10px 68px}
.r163-modal-panel{z-index:1;position:relative;display:flex;flex-direction:column;width:min(460px,100%);height:min(920px,calc(100dvh - 20px));background:#0d1016;border-radius:17px;overflow:hidden;border:1px solid rgba(255,255,255,.18);box-shadow:0 20px 90px #0008}
.r163-progress{position:relative;display:flex;gap:3px;flex:0 0 auto;padding:13px 12px 5px;background:#0d1016;z-index:1}
.r163-progress-bar{display:block;flex:1;height:3px;border-radius:3px;overflow:hidden;background:rgba(255,255,255,.3)}
.r163-progress-fill{display:block;height:100%;width:0%;background:#fff;border-radius:3px}
.r163-stage{position:relative;min-height:0;flex:1;display:flex;flex-direction:column;align-items:stretch;color:#fff;touch-action:pan-y}
.r163-stage-header{display:flex;flex:0 0 auto;gap:8px;justify-content:space-between;align-items:center;padding:10px 54px 10px 13px;background:#0d1016}
.r163-stage-owner{color:#fff!important;text-decoration:none;display:flex;flex-direction:column;gap:2px;min-width:0;pointer-events:auto}
.r163-stage-owner strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r163-stage-owner span,.r163-stage-audience{font-size:11px;color:#c0c4ce}
.r163-image-container{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;background:#080a0d}
.r163-stage-image{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.r163-stage-caption{margin:0;padding:12px 15px;text-align:center;color:#fff;font-size:14px;max-height:110px;overflow-y:auto;flex:0 0 auto;overflow-wrap:anywhere}
.r163-stage-error{position:absolute;inset:0;display:grid;place-items:center;padding:32px;text-align:center;background:#292d35;color:#fff;z-index:1;font-size:14px}
.r163-footer{flex:0 0 auto;max-height:32vh;overflow-y:auto;color:#fff;overscroll-behavior:contain;padding:0 11px;background:#131820}
.r163-footer .r17-story-owner,.r163-footer .r17-story-feedback{background:transparent}
.r163-footer .r17-story-details{margin-top:6px}
.r163-footer .r16-story-reply input{min-width:0}
.r163-footer .r163-story-options{padding:8px 5px;border-top:1px solid #3b414e;font-size:12px}
.r163-story-options summary{cursor:pointer}.r163-story-actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.r163-story-action-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.r163-story-action-form input{background:#222833;border:1px solid #454955;color:#fff;border-radius:8px;padding:8px;font-size:12px;max-width:190px}
.r163-story-action-form button{border:1px solid #81889a;background:#272f39;color:#fff;border-radius:9px;padding:9px;cursor:pointer;font-size:12px}
.r163-action-status,.r163-footer-error{text-align:center;color:#fff;font-size:12px;margin:10px}
.r163-overlay .r17-story-close{z-index:3;top:10px;right:max(12px,calc(50vw - 292px))}
.r163-overlay .r17-story-prev,.r163-overlay .r17-story-next{z-index:3}
.r163-overlay .r17-story-prev:disabled,.r163-overlay .r17-story-next:disabled{opacity:.25;pointer-events:none}
body.r17-modal-open{overflow:hidden}
@media (max-width:760px){
 .r163-stories-row>.r163-group-wrap{flex-basis:103px;width:103px}.r163-stories-row .r163-story-card{height:162px}
 .r163-overlay{padding:0 28px}.r163-modal-panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .r163-overlay .r17-story-close{right:31px;top:30px;width:30px;height:30px}
 .r163-overlay .r17-story-prev{left:1px}.r163-overlay .r17-story-next{right:1px}
 .r163-overlay .r17-story-prev,.r163-overlay .r17-story-next{height:55px;width:26px;font-size:24px}
 .r163-footer{max-height:29vh}.r163-story-gallery{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:9px}
}
@media (prefers-reduced-motion:reduce){.r163-story-card img{transition:none!important}}


/* v1.6.4 — Rjeti.com story viewer follows the site theme, not hard-coded black.
   The main photo is centered on a neutral background; controls stay readable.
   Theme variables are defined in assets/style.css and follow member settings. */
.r163-overlay{
  background:rgba(245,247,250,.96);
  background:color-mix(in srgb,var(--bg) 96%,transparent);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.r163-modal-panel{
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:0 18px 65px rgba(37,47,67,.14);
}
.r163-progress{
  background:var(--surface);
  padding-top:15px;
}
.r163-progress-bar{background:var(--line)}
.r163-progress-fill{background:var(--red)}
.r163-stage{background:var(--surface);color:var(--ink)}
.r163-stage-header{
  background:var(--surface);
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.r163-stage-owner{color:var(--ink)!important}
.r163-stage-owner:hover,.r163-stage-owner:focus-visible{color:var(--red)!important}
.r163-stage-owner strong{color:inherit}
.r163-stage-owner span,.r163-stage-audience{color:var(--muted)}
.r163-image-container{
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.r163-stage-image{background:transparent}
.r163-stage-caption{
  background:var(--surface);
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.r163-stage-error{background:var(--bg);color:var(--ink)}
.r163-footer{
  background:var(--surface);
  color:var(--ink);
  border-top:1px solid var(--line);
}
.r163-footer .r17-story-owner,.r163-footer .r17-story-feedback,
.r163-footer .r17-story-details{background:var(--surface);color:var(--ink)}
.r163-footer .r17-story-details,.r163-footer .r163-story-options{
  border-color:var(--line);
}
.r163-footer .r17-story-details a{color:var(--red)}
.r163-footer .r16-story-reactions button,
.r163-footer .r17-story-feedback .r16-story-reactions button{
  background:var(--bg)!important;
  border:1px solid var(--line)!important;
  color:var(--ink)!important;
  box-shadow:none;
}
.r163-footer .r16-story-reactions button:hover{border-color:var(--red)!important}
.r163-footer .r16-story-reply input,
.r163-footer .r17-story-feedback .r16-story-reply input{
  background:var(--bg)!important;
  color:var(--ink)!important;
  border:1px solid var(--line)!important;
}
.r163-footer .r16-story-reply input::placeholder{color:var(--muted)}
.r163-footer .r163-story-options{color:var(--ink)}
.r163-footer .r163-story-action-form input{
  background:var(--bg)!important;
  border:1px solid var(--line)!important;
  color:var(--ink)!important;
}
.r163-footer .r163-story-action-form button{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--ink);
}
.r163-footer .r163-story-action-form button:hover{border-color:var(--red);color:var(--red)}
.r163-action-status{color:#12804e}
.r163-footer-error{color:var(--red)}
.r163-overlay .r17-story-close,.r163-overlay .r17-story-prev,.r163-overlay .r17-story-next{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--ink);
  box-shadow:0 2px 12px rgba(25,38,58,.07);
}
.r163-overlay .r17-story-close:hover,.r163-overlay .r17-story-prev:hover,
.r163-overlay .r17-story-next:hover{
  color:var(--red);
  border-color:var(--red);
  background:var(--red-soft);
}
.r163-overlay .r17-story-close:focus-visible,
.r163-overlay .r17-story-prev:focus-visible,
.r163-overlay .r17-story-next:focus-visible{
  outline:3px solid var(--red);outline-offset:2px;
}
.r163-overlay .r17-story-close{top:16px;right:max(12px,calc(50vw - 218px));width:36px;height:36px;font-size:25px}
.r163-overlay .r17-story-prev{left:max(12px,calc(50vw - 302px))}
.r163-overlay .r17-story-next{right:max(12px,calc(50vw - 302px))}
.r163-overlay .r17-story-prev:disabled,.r163-overlay .r17-story-next:disabled{opacity:.3}
/* Standalone /story?id= links use the exact same light/dark site theme. */
.r17-story-detail{
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.r17-story-head,.r17-story-caption,.r17-story-feedback,.r17-story-owner{
  color:var(--ink);
  background:var(--surface);
}
.r17-story-head,.r17-story-photo{border-bottom:1px solid var(--line)}
.r17-story-author{color:var(--ink)!important}
.r17-story-author small,.r17-story-privacy{color:var(--muted)}
.r17-story-photo{background:var(--bg)}
.r17-story-photo-error{color:var(--muted)}
.r17-story-caption{color:var(--ink)}
.r17-story-feedback .r16-story-reactions button{
  background:var(--bg)!important;
  color:var(--ink)!important;
  border:1px solid var(--line)!important;
}
.r17-story-feedback .r16-story-reply input{
  background:var(--bg)!important;
  color:var(--ink)!important;
  border:1px solid var(--line)!important;
}
.r17-story-details{border-color:var(--line);color:var(--ink)}
.r17-story-details a{color:var(--red)}
.r17-story-result{color:#12804e}
/* Light photo editor, matching the rest of the composer. */
.r163-editor-photo{background:var(--bg)}
@media(max-width:760px){
  .r163-overlay{padding:0 28px}
  .r163-modal-panel{border-top:0;border-bottom:0;border-radius:0}
  .r163-overlay .r17-story-close{right:30px;top:16px;width:33px;height:33px}
  .r163-overlay .r17-story-prev{left:1px}
  .r163-overlay .r17-story-next{right:1px}
}

/* v2.1.64: "Shiko të gjitha" lands on the story gallery, not the upload form. */
.r2164-stories-overview{padding:18px 19px 15px;margin-bottom:16px;scroll-margin-top:94px}
.r2164-stories-overview>.widget-title{margin-bottom:14px}
.r2164-stories-overview .r163-story-gallery{margin:0}
.r2164-stories-empty{padding:20px 4px 12px;margin:0}
#shto-histori{scroll-margin-top:94px}
.r2164-markall-status{display:block;font-size:12px;color:var(--muted,#778294);margin-top:5px}
