/* K9F15D4B_BLACKBOARD_EDITOR */

.kcBbE4Grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}

.kcBbE4Card {
  grid-column: span 6;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line, #dce4ef);
  border-radius: 15px;
  background: var(--card, #fff);
  overflow: hidden;
}

.kcBbE4Card[data-size="small"] {
  grid-column: span 4;
}

.kcBbE4Card[data-size="medium"] {
  grid-column: span 6;
}

.kcBbE4Card[data-size="wide"] {
  grid-column: span 12;
}

.kcBbE4Card.isPinned {
  box-shadow: 0 0 0 2px rgba(230, 170, 20, .25);
}

.kcBbE4Head {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.kcBbE4Head h3 {
  margin: 0;
}

.kcBbE4Pin {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(230, 170, 20, .16);
  font-size: 12px;
  font-weight: 800;
}

.kcBbE4Meta {
  margin-top: 5px;
}

.kcBbE4Body {
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.kcBbE4Period {
  margin-top: 10px;
}

.kcBbE4Actions {
  margin-top: 10px;
  gap: 7px;
  flex-wrap: wrap;
}

.kcBbE4Media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kcBbE4ImageButton,
.kcBbE4Document {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, #dce4ef);
  border-radius: 11px;
  background: var(--card, #fff);
  cursor: pointer;
}

.kcBbE4ImageButton {
  padding: 0;
  min-height: 140px;
}

.kcBbE4Image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.kcBbE4Document {
  padding: 12px;
  min-height: 90px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.kcBbE4Document span {
  overflow-wrap: anywhere;
}

.kcBbE4Document small {
  opacity: .65;
}

.kcBbE4AdminGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.kcBbE4Upload {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line, #dce4ef);
  border-radius: 12px;
}

.kcBbE4ExistingFiles {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.kcBbE4Existing {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(120, 130, 145, .08);
}

.kcBbE4Lightbox {
  position: fixed;
  inset: 0;
  z-index: 60000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 9, 18, .9);
}

.kcBbE4LightboxInner {
  position: relative;
  width: min(1250px, 96vw);
  height: min(880px, 94vh);
  overflow: hidden;
  border-radius: 15px;
  background: #111820;
}

.kcBbE4LightboxInner img,
.kcBbE4LightboxInner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.kcBbE4LightboxInner img {
  object-fit: contain;
}

.kcBbE4LightboxClose {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .kcBbE4Card[data-size="small"],
  .kcBbE4Card[data-size="medium"] {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .kcBbE4Grid {
    grid-template-columns: 1fr;
  }

  .kcBbE4Card,
  .kcBbE4Card[data-size="small"],
  .kcBbE4Card[data-size="medium"],
  .kcBbE4Card[data-size="wide"] {
    grid-column: 1;
  }

  .kcBbE4AdminGrid {
    grid-template-columns: 1fr;
  }

  .kcBbE4Existing {
    flex-direction: column;
    align-items: flex-start;
  }
}
