.dm-osd-layout {
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    align-items: stretch;
}
.dm-osd-viewer {
  /*display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;*/
  width:100%;
}

.dm-osd-main {
  min-width: 0;
}

.dm-osd-list {
  width: :220px;
      flex: 0 0 220px;
    border-right: 1px solid #ddd;
    background: #f5f5f5;;
}
.dm-osd-list-title {
    background: #626161;
    color: #fff;
    padding: 9px;
    border-bottom: 1px solid #dddddd;
    line-height: 27px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
.dm-osd-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dm-osd-doc-list li + li {
}

.dm-osd-thumb-btn {
  display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 10px 12px;
    border-bottom: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.dm-osd-thumb-btn.is-active,
.dm-osd-thumb-btn:hover {
      background-color: #cf1820;
    color: #fff;
}

.dm-osd-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dm-osd-toolbar-left,
.dm-osd-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-osd-canvas-wrap {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 520px;
  overflow: hidden;
  background: #f5f5f5;
}

.dm-osd-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  background: #f5f5f5;
}

.dm-osd-canvas.is-dragging {
  cursor: grabbing;
}

@media (max-width: 959px) {
  .dm-osd-viewer {
    grid-template-columns: 1fr;
  }

  .dm-osd-canvas-wrap {
    height: 70vh;
    min-height: 420px;
  }
}
.dm-osd-toolbar {
    background: #626161;
    padding: 9px;
    margin: 0;
    border-bottom: 1px solid #dddddd;
    border-bottom-width: 0;
    color: #fff;
}

button.dm-osd-zoom-out,
button.dm-osd-zoom-in {
    border: 1px solid #fff;
    background: #626161;
    border-radius: 100%;
    padding: 0;
    font-weight: 900;
    line-height: 25px;
    width: 27px;
    height: 27px;
}
button.dm-osd-zoom-out:hover,
button.dm-osd-zoom-in:hover,
button.dm-osd-prev:hover,
button.dm-osd-next:hover,
button.dm-osd-home:hover,
button.dm-osd-fullscreen:hover{
  border: 1px solid #626161;
    background: #fff;
    color:#626161;
}
button.dm-osd-home,
button.dm-osd-fullscreen {
    border: 1px solid #fff;
    background: #626161;
    padding: 0 18px;
    height: 27px;
    font-size: 14px;
    font-weight: 700;
}

a.dm-osd-download{
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    background: #cf1820;
    padding: 3px 17px;
    border-radius: 5px;
}
span.dm-osd-current-label {
        font-size: 14px;
    font-weight: 800;
}

button.dm-osd-prev,
button.dm-osd-next {
    border: 1px solid #fff;
    background: #626161;
    border-radius: 100%;
    padding: 0;
    font-weight: 900;
    line-height: 25px;
    width: 27px;
    height: 27px;
}
@media (max-width: 991px) {
  .dm-osd-layout {
    flex-direction: column;
  }

  .dm-osd-list {
    width: 100%;
    flex: 0 0 auto;
  }
}
.dm-osd-exit-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,.95);
  color: #111;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
}