@namespace epub "http://www.idpf.org/2007/ops";
@namespace svg "http://www.w3.org/2000/svg";

/* Hide soundtrack <audio> tags from ever showing up */
audio[epub|type~="ibooks:soundtrack"] {
  display: none !important;
  /* display: none; doesn't seem to actually work for some reason, so hide it another way */
  height: 0 !important;
}

iframe {
    border-style:none;
}

/* <rdar://problem/46327372> Books: -webkt-text-size-adjust behavior is different WKWebView vs UIWebView */
body {
  -webkit-text-size-adjust:none;
}

table {
  -webkit-text-size-adjust:initial;
}

/* Books opts out of smart invert but WebKit's default stylesheet inverts images,video,picture. Invert the invert. */
@media (inverted-colors) {
    img:not(picture>img), picture { filter: invert(0); }
    video { filter: invert(0) !important; }
}

/* don't allow the content to specify any color-schemes at any point */
:root {
    color-scheme: auto !important;
}

