/* The file viewer (assets/file-viewer.js), on the account and on the edit screens. Plain colours:
   the edit screens do not load the site's own. */
.ch-fv { border: 1px solid #dcdcde; border-radius: 8px; background: #e9e6dc; overflow: hidden; }
.ch-fv-bar { display: none; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: #fff; border-bottom: 1px solid #dcdcde; }
.ch-fv.is-ready .ch-fv-bar { display: flex; }
.ch-fv-btn { font: inherit; font-size: 14px; line-height: 1; padding: 8px 12px; min-height: 36px; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; color: #1d2327; cursor: pointer; }
.ch-fv-btn:hover:not(:disabled) { background: #f0f0f1; }
.ch-fv-btn:focus-visible { outline: 2px solid #2271b1; outline-offset: 1px; }
.ch-fv-btn:disabled { opacity: .45; cursor: default; }
.ch-fv-btn span { font-size: 17px; }
.ch-fv-gap { width: 8px; }
.ch-fv-info { margin-left: auto; font-size: 13px; color: #50575e; }
.ch-fv-stage { padding: 16px; max-height: 82vh; overflow: auto; text-align: center; }
.ch-fv-page { display: block; margin: 0 auto 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.2); }
.ch-fv-page:last-child { margin-bottom: 0; }
.ch-fv.is-zoomed .ch-fv-stage { text-align: left; }
.ch-fv-stage > img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ch-fv-plain { margin: 0; padding: 32px 16px; }
@media (max-width: 600px) {
  .ch-fv-stage { padding: 8px; }
  .ch-fv-info { width: 100%; margin-left: 0; }
}

/* The box over the page. */
.ch-fv-box { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 10px; overflow: auto; }
.ch-fv-box::backdrop { background: rgba(20, 24, 22, .7); }
.ch-fv-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; }
.ch-fv-box-body .ch-fv { border-radius: 0; border-width: 1px 0 0; }
.ch-fv-box-body .ch-fv-stage { max-height: calc(100vh - 160px); }

/* A thumbnail turned the way its record says. */
.ch-turn-90 { transform: rotate(90deg); } .ch-turn-180 { transform: rotate(180deg); } .ch-turn-270 { transform: rotate(270deg); }

/* A video, turned inside a box the turned size. */
.ch-fv-turnbox { position: relative; background: #000; }
.ch-fv-turnbox video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
