/* ADMIN_STORY_THUMBNAIL_SIZE_V6 */

#storiesTable {
  max-width: 100%;
  min-width: 0;
}

#storiesTable .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

#storiesTable table {
  width: 100%;
}

#storiesTable th:first-child,
#storiesTable td:first-child {
  box-sizing: border-box;
  max-width: 92px;
  min-width: 92px;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  width: 92px;
}

#storiesTable .story-row-thumb {
  background: #050914;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  box-sizing: border-box;
  display: block;
  height: 82px;
  margin: 0 auto;
  max-height: 82px;
  max-width: 64px;
  object-fit: cover;
  overflow: hidden;
  width: 64px;
}

#storiesTable td {
  vertical-align: middle;
}

@media (max-width: 700px) {
  #storiesTable th:first-child,
  #storiesTable td:first-child {
    max-width: 78px;
    min-width: 78px;
    padding: 8px;
    width: 78px;
  }

  #storiesTable .story-row-thumb {
    height: 72px;
    max-height: 72px;
    max-width: 54px;
    width: 54px;
  }
}

/* ADMIN_STORY_THUMBNAIL_SIZE_V6_END */

/* ADMIN_STORY_PREVIEW_COMPACT_V7 */

.story-detail-modal {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 860px;
  overflow: hidden;
  padding: 18px;
  width: min(860px, calc(100vw - 48px));
}

.story-detail-modal .modal-head {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.story-detail-media {
  align-items: center;
  background: #080b10;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  height: min(320px, 40vh);
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  padding: 10px;
  width: 100%;
}

.story-detail-image,
.story-detail-video {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.story-detail-grid {
  display: grid;
  flex: 1 1 auto;
  gap: 10px 12px;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  margin-top: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.story-detail-grid label {
  min-width: 0;
}

.story-detail-grid input {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 700px) {
  .story-detail-modal {
    max-height: calc(100vh - 24px);
    padding: 14px;
    width: calc(100vw - 24px);
  }

  .story-detail-media {
    height: min(260px, 38vh);
    min-height: 170px;
  }

  .story-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ADMIN_STORY_PREVIEW_COMPACT_V7_END */

/* ADMIN_STORY_PREVIEW_CLOSE_BACKDROP_V8 */

.story-detail-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.76);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  z-index: 12000;
}

.story-detail-backdrop .story-detail-modal {
  margin: auto;
  position: relative;
}

.story-detail-modal .modal-head {
  align-items: center;
  background: var(--panel);
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 40px;
  position: relative;
  z-index: 4;
}

.story-detail-modal .modal-head [data-close] {
  align-items: center;
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  opacity: 1 !important;
  position: relative;
  visibility: visible !important;
  z-index: 5;
}

@media (max-width: 700px) {
  .story-detail-backdrop {
    align-items: flex-start;
    padding: 12px;
  }
}

/* ADMIN_STORY_PREVIEW_CLOSE_BACKDROP_V8_END */
