div#content { display: flex; align-items: start; height: 100%; } div#image-container { box-sizing: border-box; flex: 1 0 0; height: 100%; padding: var(--size-default-gap); width: 100%; } div#image-container > img { display: block; left: 50%; max-height: 100%; max-width: 100%; object-fit: contain; position: relative; top: 50%; transform: translate(-50%, -50%); } div#metadata { background: #333; box-shadow: rgba(0, 0, 0, 0.5) -10px 0px 10px; box-sizing: border-box; display: flex; flex-direction: column; flex: 0 0 auto; height: 100%; margin-left: auto; padding: 30px; transition: margin-right 0.1s linear; width: 700px; z-index: 90; } div#metadata.hidden { box-shadow: none; margin-right: -700px; } @media (max-aspect-ratio: 4/3) { div#metadata { box-shadow: none; margin-right: -700px; } } div#button-container { margin-top: auto; } div#metadata-container { overflow-x: hidden; overflow-y: auto; } table#edit-metadata { border-collapse: collapse; width: 100%; } table#edit-metadata tr:first-child { vertical-align: middle; } table#edit-metadata tr:last-child { vertical-align: top; } table#edit-metadata td:last-child { width: 100%; } table#edit-metadata td > input { width: 100%; margin: 0; } table#edit-metadata td > textarea { margin: 0; resize: none; width: 100%; } table#uploaded-files th { font-size: 8pt; } table#uploaded-files td { font-family: 'Lucida Console'; font-size: 8pt; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } table#uploaded-files td:nth-child(4) { max-width: 170px; } p.heading { margin-top: 30px; } p.newlines { white-space: pre-line; }