.libo-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #fff; transition: opacity 0.3s ease-in-out; display: flex; justify-content: center; align-items: center; } .libo-shadow { position: absolute; transition-duration: 0.3s; transition-property: transform; display: block; } .libo-shadow.zoomed { position: static; margin: 0 auto; max-width: 100%; width: auto; height: auto; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3); }