
#content figure,
#content img:not(figure img) {
    max-width: 75%;
    max-height: 70vh;
    border-radius: 0.8em;
    border: #eef 1px solid;
    background: #fff;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 
                0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

#content img:not(figure img) {
    max-height: 70vh;
}

#content figure {
    display: table;
    width: fit-content;
    margin: 1em 0;
}

#content figure img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#content figure figcaption {
    padding-top: 6px;
    font-size: 0.9em;
    text-align: center;
    font-style: italic;
    color: #334;
}

#content :is(.dark figure),
#content :is(.dark img:not(figure img)) {
    border-color: #000;
    background: #223;
}

#content :is(.dark figure figcaption) {
    color: #ccd;
}

#content img + img,
#content img + figure,
#content figure + figure
#content figure + img {
    margin-top: .25em;
}

body.md #content :is(.dark img), .base-formatting :is(.dark img) {
    /* don't invert images in this guide */
    --tw-invert: invert(0%);
    --tw-hue-rotate: hue-rotate(0deg);
}

details {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background-color: #f6f8fa;
    margin: 0.75em 0;
    padding: 0.5em 1em;
    transition: background-color 0.2s ease;
}
#content :is(.dark details) {
    border-color: #334;
    background-color: #112;
}

details[open] {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
#content :is(.dark details[open]) {
    background-color: #001;
}

summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.25em 0;
  user-select: none;
}

summary:hover {
  color: #0969da;
}

details[open] summary {
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 0.2em;
  padding-bottom: 0.5em;
}
#content :is(.dark details[open] summary) {
    border-bottom-color: #334;
}

.tab-content {
  padding-top: 0.25em;
  line-height: 1.6;
}
