Spaces:
Sleeping
Sleeping
| /* | |
| <!----- V container -----> | |
| <div class='has-carousel'> | |
| <!--- H container ---> | |
| <div class='carousel'> | |
| <div>---- <div>---- <div>---- <div>---- <div>---- | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| ---</div> | | ---</div> | | ---</div> | |
| ---</div> ---</div> | |
| </div> | |
| <div> | |
| */ | |
| .hero { | |
| display: flex; | |
| position: relative; | |
| } | |
| .hero__image { | |
| display: flex; | |
| position: -webkit-sticky; | |
| position: sticky; | |
| top: 0; | |
| float: left; | |
| height: calc(var(--vbody) - 14.8rem - 1rem - 2ex); | |
| max-height: 1024px; | |
| } | |
| .hero > * { | |
| width: 50%; | |
| } | |
| .hero img { | |
| margin-left: auto; | |
| padding: 2rem; | |
| max-width: 100%; | |
| max-height: calc(var(--vbody) - 14.8rem - 1rem - 2ex); | |
| object-fit: cover; | |
| } | |
| .hero__content { | |
| --col: 27rem; | |
| padding: 2rem 0; | |
| max-width: var(--col); | |
| font-size: var(--small); | |
| } | |
| .hero__content h1, | |
| .hero__content h2, | |
| .hero__content h3 { | |
| margin: 4pt 0; | |
| font: italic var(--Large) var(--rm), serif; | |
| line-height: 1.618; | |
| } | |
| @media only screen and (max-width: 960px) { | |
| .hero { | |
| width: 100%; | |
| } | |
| } | |
| @media only screen and (max-width: 640px) { | |
| .hero { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .hero > * { | |
| align-self: center; | |
| width: 86%; | |
| } | |
| .hero__image { | |
| position: inherit; | |
| width: unset; | |
| height: unset; | |
| } | |
| } | |
| @media only screen and (max-width: 480px) { | |
| .hero img { | |
| padding: 1rem; | |
| } | |
| } |