.flow-container { display: flex; flex-wrap: wrap; width: 80%; margin: auto; } .poster { font-size: 2rem; aspect-ratio: 3/4.5; width: 25rem; } .overlay { margin: 0; height: 100%; width: 100%; font-size: inherit; color: white; background-color: rgba(0, 0, 0, 0.5); opacity: 0; p { font-size: 0.8em; } h1 { font-size: 1.6em; margin: 0; } } .overlay:hover { opacity: 1; }