.litebox.overlay {

background: rgba(0, 0, 0, 0.96);
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;

display: flex;
align-items: center;
justify-content: center;

box-sizing: border-box;
padding: 1em;

}

.litebox.overlay img {

flex-shrink: 1;
max-width: 100%;
max-height: 100%;

}