@charset "UTF-8"; .artwork { position: absolute; right: 0; top: 0; height: 100%; width: calc(43vw - 160px); @media(max-width: 1199px) { width: 50vw; margin: 1% -18%; max-height: 90vw; } @media(max-width: 767px) { margin: 3% -24%; height: 94%; } @media(max-width: 567px) { margin: 5% -32%; height: 90%; } .foreground, .background { position: absolute; left: 0; right: 0; top: 0; transform-origin: right top; height: 75%; transform: rotate(-3deg); overflow: hidden; &:before { content: ""; @include fullsize; background-color: $color-primary; background-color: var(--theme-color-primary, $color-primary); margin: -16% 0; border-top-left-radius: 26% 50%; border-bottom-left-radius: 26% 50%; } } .background { transform: rotate(-9deg); left: -3vw; margin-left: -60px; @media(max-width: 999px) { margin-left: -45px; margin-top: 5px; } @media(max-width: 567px) { margin-left: -30px; margin-top: 10px; } &:before { background: linear-gradient(-10deg, $color-gradient-01 10%, $color-gradient-02 55%, $color-gradient-03 90%); background: linear-gradient(-10deg, var(--theme-color-gradient-01, $color-gradient-01) 10%, var(--theme-color-gradient-02, $color-gradient-02) 55%, var(--theme-color-gradient-03, $color-gradient-03) 90%); } } } section[data-type="artwork-background-image"] { color: white; &:before { content: ""; position: relative; display: block; height: 20px; } .image-box { @include fullsize; &:after { content: ""; @include fullsize; background: linear-gradient(120deg, rgba($color-primary, 1) 0%, rgba($color-primary, 0.2) 100%); background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.2) 100%); } img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; } } .artwork { z-index: 1; margin-top: 20px; .foreground, .background { &:before { background: $color-white; opacity: 0.7; } } .background:before { opacity: 0.3; } } } section[data-type="artwork-image"] { .image-box { position: absolute; display: block; width: calc(43vw - 160px); right: 0; top: 0; transform-origin: right top; height: 75%; transform: rotate(-3deg); overflow: hidden; @media(max-width: 1199px) { width: 50vw; margin: 1% -18%; max-height: 90vw; } @media(max-width: 767px) { margin: 3% -24%; max-height: 94%; } @media(max-width: 567px) { margin: 5% -32%; max-height: 90%; height: 70vw; } picture { @include fullsize; margin: -16% 0; border-top-left-radius: 26% 50%; border-bottom-left-radius: 26% 50%; overflow: hidden; } img { position: absolute; display: block; top: 10%; width: 130%; height: 84%; object-fit: cover; transform: rotate(3deg); max-width: none; } } .artwork .foreground { opacity: 0; } } [data-browser="ie"] section[data-type="artwork-image"] .image-box img { width: auto; max-width: none; left: 50%; height: 84%; transform: rotate(3deg) translate(-50%, 0); }