.lesson-annotation-sheet {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  margin: auto;
}

.lesson-annotation-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lesson-annotation-layer[hidden] {
  display: none;
}

.lesson-annotation-layer:is([data-annotation-mode="pen"], [data-annotation-mode="eraser"]) {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}

.lesson-annotation-layer[data-annotation-mode="eraser"] {
  cursor: cell;
}

.lesson-annotation-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.image-viewer .lesson-annotation-tools .viewer-button[aria-pressed="true"] {
  color: #20190f;
  background: #dfbd7c;
  border-color: #dfbd7c;
  font-weight: 700;
}

@media (max-width: 760px) {
  .lesson-annotation-tools {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 560px) and (max-height: 520px) {
  .image-viewer--annotations .image-viewer-footer {
    gap: 6px 12px;
    padding-top: 6px;
  }

  .image-viewer--annotations .image-viewer-footer :is(.viewer-page-controls, .viewer-zoom-controls, .lesson-annotation-tools) {
    width: auto;
  }

  .image-viewer--annotations .image-viewer-footer .viewer-button {
    min-height: 36px;
    padding: 6px 9px;
  }
}
