.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0px;
  width: 100%;
  background: #000;
  box-sizing: border-box;
  margin-top: 30px; /* Add this to move the media down */
}

.video-card {
  background: #000;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

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

.video-wrapper {
  width: 200%;
  height: 200%;
  aspect-ratio: 1/1;
  background: #000;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.video-wrapper img,
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.video-card.locked .video-wrapper video {
  opacity: 0.5;
  pointer-events: none;
}

/* Show the lock overlay and blur effect on locked videos */
.video-card .lock-overlay,
.video-card .locked-blur {
  display: none !important;
}

.video-card.locked .lock-overlay,
.video-card.locked .locked-blur {
  display: block !important;
}

/* Blur effect for locked videos */
.locked-blur {
  opacity: 0.5; /* Keep the opacity to show it's locked */
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s;
}

/* Tag styling */
.media-tag {
  display: inline-block;
  background: #f81775 !important;
  color: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  border: none;
}

#media-modal .media-tags {
  display: block;
  margin: 8px 0;
}

.lock-icon-style {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px; color: #fff; background: rgba(0,0,0,0.5);
  border-radius: 50%; padding: 6px; z-index: 2;
  pointer-events: none;
}