.all-feeds {
	margin: 50px 0;
}
body.viewer-open {
  overflow: hidden;
}
.stories {
  display: flex;
  overflow-x: auto;
  padding: 10px;
}

.story {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid #ff0050;
}

.story video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 

.reel {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 80px;
  left: 20px;
  color: #fff;
  font-size: 16px;
}
 
/* =========================
   GALLERY GRID (OLD)
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.gallery img.feed-image,
.gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius:0;
}

/* Video icon overlay (optional but Instagram-like) */

/*  .gallery-item video::after {
  content: "▶";
  position: absolute;
  top: 6px;
  right: 6px;
  color: #fff;
  font-size: 14px;
}*/

/* Instagram-style video icon */
.video-overlay-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
/* =========================
   FULLSCREEN VIEWER (NEW)
========================= */
.viewer {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  z-index: 9999;
  touch-action: none; /* CRITICAL for mobile */
}

.viewer.active {
  display: block;
}

/* Slide track */
.viewer-track {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

/* Each media slide */
 
.slide {
 
    height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 0;
}


.slide img.feed-image-full,
.slide video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* =========================
   CLOSE HINT (OPTIONAL)
========================= */
.viewer::after {
 /* content: "Swipe ↑ ↓ to navigate";*/
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}
/* =========================
   VIEWER HEADER / CLOSE
========================= */
.viewer-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10000;
}

.viewer-close {
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
}
/* =========================
   DESKTOP NAV ARROWS
========================= */
.desktop-only {
  display: none;
}

/* PROGRESS BAR */
.video-progress {
  position: absolute;
  bottom: 15px;      /* distance from bottom of video */
  left: 10%;
  width: 80%;        /* NOT full width */
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
  z-index: 5;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: #ff0050;
  transition: width 0.1s linear;
}
.center-mute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 75px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 20;
}

.center-mute-btn svg {
  width: 32px;
  height: 32px;
  display: none;
}
.slide video {
  -webkit-touch-callout: none; /* iOS */
  -webkit-user-select: none;
  user-select: none;
}

/* default state = unmuted */

.center-mute-btn.unmuted .icon-unmute {
  display: block;
}
.center-mute-btn.muted .icon-mute {
  display: block;
}

/* Desktop hover */
@media (hover: hover) {
  .slide video:hover ~ .center-mute-btn,
  .center-mute-btn:hover {
    opacity: 1;
  }
}


/* Mobile temporary show */
.center-mute-btn.show {
  opacity: 1 !important;
}


/* RIGHT SIDE ACTIONS */
.viewer-actions {
  position: absolute;
  right: 12px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10001;
}

.action-btn {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.action-btn span {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

/* LIKE ANIMATION */
/*.liked {
  color: red;
}

.heart-pop {
  transform: scale(1.3);
  transition: 0.3s;
}*/
#likeBtn{
    font-size:28px;
    cursor:pointer;
    transition:0.2s;
}

#likeBtn.liked{
    color:#ff2b55;
}

.heart-pop{
    animation:heartPop .3s ease;
}

@keyframes heartPop{
    0%{transform:scale(1)}
    50%{transform:scale(1.4)}
    100%{transform:scale(1)}
}
/* COMMENT DRAWER */
.comment-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: #111;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: 0.3s ease;
  z-index: 10002;
  display: flex;
  flex-direction: column;
}
.comments-list .comment-top {
  display: flex;
  justify-content: space-between;
}
.comments-list .delete-comment {
  cursor: pointer;
  color: red;
}
.comments-list .comment p {
	margin-left: 10px;
	margin-bottom: 10px;
	opacity: 0.8;
	text-transform: capitalize;
	font-size: 14px;
	border-left: 2px solid #ccc;
	padding-left: 5px;
	line-height: 1.1;
	margin-right: 15px;
}
 
.comment-drawer.open {
  bottom: 0;
}

.drawer-header {
  padding: 15px;
  border-bottom: 1px solid #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  color: #aaa;
}

.comment-input {
  display: flex;
  border-top: 1px solid #333;
}

.comment-input input {
  flex: 1;
  padding: 10px;
  border: none;
  background: #222;
  color: #fff;
}

.comment-input button {
  padding: 10px 15px;
  background: #ff0050;
  border: none;
  color: #fff;
}
.comment {
  position: relative;
  background: #222222;
  padding: 10px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.comment::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 0;
  height: 0;
  border-right: 9px solid #222222;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* RESPONSIVE POLISH */
@media (min-width: 768px) {
  .viewer-actions {
    right: 30px;
  }

  .comment-drawer {
    width: 400px;
    right: 0;
    left: auto;
    height: 100%;
    border-radius: 0;
  }
}








@media (hover: hover) and (pointer: fine) {
  .desktop-only {
    display: block;
  }
}

.viewer-nav {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.nav-btn {
  width: 42px;
  height: 42px;
  margin: 8px 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}




.media-upload {
	box-shadow: rgba(100, 100, 111, 0.1) 0px 7px 15px 0px !important;
	padding: 20px;
	margin-top: 50px;
	border: 1px solid #f3f1f8 !important;
	height: calc(100% - 100px);
}
.media-upload {
  box-shadow: rgba(100, 100, 111, 0.1) 0px 7px 15px 0px !important;
  padding: 20px;
  margin-top: 50px;
  border: 1px solid #f3f1f8 !important;
  height: calc(100% - 100px);
}
.media-upload h2 {
  color: #0d0c23;
  font-size: 24px;
  margin-bottom: 10px;
}
.media-upload form h3 {
  font-size: 18px;
  color: #0d0c23;
  margin-bottom: 10px;
}
.media-upload form input {
  display: block;
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
}
.media-upload form textarea {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  padding: 10px;
}
.media-upload form button {
  background: #754ffe;
  color: #fff;
  border: none;
  padding: 8px 30px;
  border-radius: 5px;
}
.description-overlay {
  position:absolute;
  bottom:80px;
  color:#fff;
  font-size:14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding:10px;
}



