diff --git a/style.css b/style.css index 408afe7..4a27da2 100644 --- a/style.css +++ b/style.css @@ -139,7 +139,7 @@ a.tel { text-decoration: none; } z-index: 1; pointer-events: none; background: var(--paper); } .hero-media::after { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: .2; pointer-events: none; } -.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1s ease; } +.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; display: block; opacity: 0; transition: opacity 1s ease; transform: scale(1.45); transform-origin: 66% 66%; } .hero-video.is-playing { opacity: .5; } @media (max-width: 760px) { .hero { min-height: 88vh; padding: 120px 0 56px; display: block; } @@ -147,7 +147,7 @@ a.tel { text-decoration: none; } faded from the top so the headline reads over paper and the ambient shows lower. Tint ::after still applies. */ .hero-media { left: 0; width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%); } - .hero-video { position: absolute; top: 50%; left: 50%; width: 100vh; height: 100vw; object-fit: cover; transform: translate(-50%, -50%) rotate(90deg); } + .hero-video { position: absolute; top: 50%; left: 50%; width: 100vh; height: 100vw; object-fit: cover; object-position: 50% 50%; transform: translate(-50%, -50%) rotate(90deg); } } .actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }