html, #preview { scrollbar-gutter: stable; scrollbar-width: thin; } body { font-family: sans-serif; margin: 0; padding: 0; background-color: black; } #gallery { display: flex; flex-wrap: wrap; } #gallery::after { content: ''; flex-grow: 999999999; min-width: 200px; height: 0; } #gallery div { position: relative; margin: .1em; } #gallery i { display: block; } #gallery img { position: absolute; top: 0; height: 100%; width: 100%; vertical-align: bottom; background-color: rgb(50, 50, 50); } #gallery i span { background-image: linear-gradient(to bottom, transparent 90%, rgba(0, 0, 0, 0.5)); position: absolute; pointer-events: none; width: 100%; height: 100%; z-index: 1; padding: .05em; } #gallery i p { position: absolute; bottom: 0; right: 0; padding: .4em; margin: 0; font-size: .8em; font-style: normal; line-height: 1em; overflow: hidden; color: white; } @media (prefers-color-scheme: dark) { html { color: white; } #gallery img { mask-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); } } #info-box { padding: 1em; flex-grow: 999999999; align-items: center; background-color: rgb(30, 30, 30); color: white; } #info-box p { margin: 0; line-break: anywhere; } #info-box a { color: aquamarine; text-decoration: none; }