.mainContent { /* Calculate height for large screens and displays */ height: calc(100dvh - 402px); min-height: 480px; display: flex; align-items: center; justify-content: center; position: relative; } .backdrop { position: absolute; inset: 0; display: block; height: 100%; width: 100%; object-fit: cover; }