.all-feeds {
	margin: 50px 0;
}
.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;
}

.reels {
  height: calc(100vh - 100px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.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;
}

/* =========================
   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 {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image & Video display */
.slide img.feed-image-full,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius:0;
}

/* =========================
   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;
}

@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;
}




