.rv-photo-modal.rv-photo-modal-wide {
  width: min(1180px, calc(100vw - 48px));
}

.rv-photo-body.rv-photo-body--media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rv-photo-body.rv-photo-body--media .rv-video-section {
  grid-column: auto;
}

.rv-video-preview {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

.rv-video-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.rv-video-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 13px;
  font-weight: 900;
}

.rv-video-card-name {
  width: 100%;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-video-card-meta {
  width: 100%;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-video-card-open {
  position: absolute;
  left: 6px;
  bottom: 6px;
  border-radius: 7px;
  background: rgba(15, 23, 42, .72);
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 7px;
  text-decoration: none;
}

.rv-video-drop-zone.is-uploading {
  border-color: var(--accent-blue);
  background: #F8FAFF;
  color: var(--text);
}

.rv-photo-body--media .rv-drop-zone {
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
}

.rv-photo-body--media .rv-drop-zone.is-active::after {
  flex: 0 0 auto;
  margin-left: 0;
  padding: 1px 5px;
  font-size: 9px;
  line-height: 1.15;
}

.rv-video-lightbox {
  width: min(980px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  background: #0F172A;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .36);
  display: grid;
  grid-template-rows: 48px 1fr;
  overflow: hidden;
}

.rv-video-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.rv-video-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-video-lightbox-actions a,
.rv-video-lightbox-actions button {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
  cursor: pointer;
}

.rv-video-lightbox iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0F172A;
}

@media (max-width: 980px) {
  .rv-photo-body.rv-photo-body--media {
    grid-template-columns: 1fr;
  }
}
