.event-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.25rem;
  align-items: start;
}
.event-editor-main,
.event-editor-side {
  display: grid;
  gap: 0.9rem;
}
.event-side-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line, #d7e2da);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 0.75rem;
}
.event-side-card h3 {
  margin: 0;
  font-size: 1rem;
}
.event-images-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line, #d7e2da);
  border-radius: 12px;
  background: #f6faf7;
  font-weight: 600;
}
.event-block-editor {
  min-height: 420px;
  border: 1px solid var(--line, #d7e2da);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.feat-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px dashed #b7c9bc;
  border-radius: 12px;
  background: #f5f8f6;
  color: #6b7f72;
  overflow: hidden;
  text-align: center;
  padding: 0.75rem;
}
.feat-preview.has-image {
  border-style: solid;
  padding: 0;
}
.feat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.by-event-thumb {
  width: 64px;
}
.by-event-thumb img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.tvc-media-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 22, 16, 0.72);
}
.tvc-media-modal[hidden] { display: none !important; }
.tvc-media-dialog {
  width: min(980px, 100%);
  height: min(90vh, 860px);
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.tvc-media-head,
.tvc-media-foot,
.tvc-media-toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line, #d7e2da);
}
.tvc-media-foot { border-bottom: 0; border-top: 1px solid var(--line, #d7e2da); }
.tvc-media-toolbar input[type="search"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line, #d7e2da);
  border-radius: 10px;
}
.tvc-media-upload {
  margin: 0.85rem 1rem 0;
  padding: 1rem;
  border: 2px dashed #b7c9bc;
  border-radius: 14px;
  background: #f7fbf8;
  text-align: center;
}
.tvc-media-upload.is-dragover {
  border-color: #227848;
  background: #eef8f1;
}
.tvc-media-upload h3 { margin: 0 0 0.35rem; }
.tvc-media-upload p { margin: 0 0 0.85rem; color: #6b7f72; }
.tvc-media-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.tvc-media-grid {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  align-content: start;
}
.tvc-media-thumb {
  padding: 0;
  border: 1px solid var(--line, #d7e2da);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1;
}
.tvc-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tvc-media-thumb:hover {
  outline: 3px solid rgba(34, 120, 72, 0.25);
}

.event-featured-banner {
  margin: 0 0 1.25rem;
  text-align: center;
}
.event-featured-banner img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(18, 53, 34, 0.12);
  background: #0f2a1b;
  cursor: zoom-in;
}

@media (max-width: 900px) {
  .event-editor-layout { grid-template-columns: 1fr; }
}
