.lesson-main .msa-lesson {
  color: var(--ink, #24313a);
}

.id-guide-reference {
  width: 190px;
  max-width: 100%;
  margin: 0 0 1.5rem;
  text-align: center;
}

.id-guide-thumbnail {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(35, 52, 47, .22);
  border-radius: .5rem;
  box-shadow: 0 .2rem .65rem rgba(35, 52, 47, .08);
}

.id-guide-thumbnail:hover {
  border-color: rgba(35, 52, 47, .42);
  box-shadow: 0 .3rem .85rem rgba(35, 52, 47, .14);
}

.id-guide-thumbnail:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.id-guide-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.id-guide-reference figcaption {
  margin-top: .45rem;
  color: #5c6c67;
  font-size: .875rem;
  line-height: 1.35;
}

.id-guide-modal .modal-body {
  overflow: auto;
  text-align: center;
  background: #f4f1eb;
}

.id-guide-modal .modal-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  height: auto;
  margin: 0 auto;
}

.id-guide-modal .modal-footer {
  gap: .5rem;
}

@media (max-width: 575.98px) {
  .id-guide-reference {
    width: min(190px, 52vw);
  }

  .id-guide-modal .modal-body img {
    width: 100%;
    max-height: none;
  }

  .id-guide-modal .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .id-guide-modal .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

.lesson-main .msa-lesson details > summary {
  color: var(--navy, #24384a);
}

.lesson-main .msa-lesson details[open] > summary {
  border-bottom: 1px solid rgba(36, 56, 74, .16);
}

.lesson-main .msa-lesson details > summary:focus-visible {
  outline: 3px solid var(--copper, #b7653c);
  outline-offset: 3px;
}
