.box { cursor: pointer; } #modalMedia { max-width: 100%; max-height: calc(100% - 74px); } .modalImage { object-fit: scale-down; max-width: 100%; } video { max-width: 100%; max-height: 100%; } #modalDownload { color: inherit; } #modalHeader, #modalFooter { height: 37px; width: 360px; } .modalControl:hover, .modalControl:focus { background-color: rgba(0, 0, 0, 0.2); }