.background { width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 9; background: transparent; border: none; } .component { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0.5rem; gap: 0.5rem; display: flex; flex-direction: column; z-index: 10; animation: animateIn forwards 200ms ease-in-out; interpolate-size: allow-keywords; transition: max-width var(--uk-sys-motion-duration-500) var(--uk-sys-motion-easing-emphasized-normal), height var(--uk-sys-motion-duration-500) var(--uk-sys-motion-easing-emphasized-normal); max-width: 1024px; max-height: calc(100% - 2rem); height: max-content; width: calc(100% - 2rem); &.expanded { max-width: 100%; } } @keyframes animateIn { from { transform: translate(-50%, -50%) scale(0.75); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } } .header { display: flex; flex-direction: row; gap: 0.5rem; } .title { margin-right: auto; user-select: none; } .previewContentContainer { width: 100%; height: 100%; display: flex; overflow: hidden; position: relative; > img { object-fit: contain; object-position: center; max-width: 100%; max-height: 100%; width: 100%; } } .pixelate { > img { image-rendering: pixelated; } } .originalPreview { position: absolute; top: 0; left: 0; max-width: max-content; height: 100%; border-radius: calc(var(--uk-sys-shape-corner-medium) - 0.5rem); transition: opacity var(--uk-sys-motion-duration-500) var(--uk-sys-motion-easing-emphasized-decelerate); opacity: 0; z-index: 2; } .smallPreview { border-radius: calc(var(--uk-sys-shape-corner-medium) - 0.5rem); } .originalHasLoaded { opacity: 1; } .generalContent { display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 1rem; width: 100%; padding-top: 2rem; padding-bottom: 2rem; .generalIcon { --icon-size: 8rem; } .metadata { display: flex; flex-direction: column; gap: 0.25rem; } }