:host { background: var(--grayscale-background-box); display: flex; margin-bottom: 32px; margin-right: 0; max-width: 100%; position: relative; width: 100%; @include breakpoint($narrow) { margin-right: var(--gutter-narrow); } @include breakpoint($wide) { margin-right: var(--gutter-wide); } @include breakpoint($extrawide) { margin-right: var(--gutter-extrawide); } .hy-link-box__link { bottom: 12px; position: absolute; right: -6px; svg { background-color: var(--brand-main-light); box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1); fill: var(--grayscale-white); padding: 10.29px; } } article { position: relative; width: 100%; } } :host(.big) { display: flex; @include breakpoint($narrow) { flex-grow: 1; max-width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 4 + #{var(--gutter-narrow)} * 3); width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 4 + #{var(--gutter-narrow)} * 3); } @include breakpoint($wide) { max-width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 4 + #{var(--gutter-wide)} * 3); width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 4 + #{var(--gutter-wide)} * 3); } @include breakpoint($extrawide) { max-width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 4 + #{var(--gutter-extrawide)} * 3); width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 4 + #{var(--gutter-extrawide)} * 3); } } :host(.small) { display: flex; @include breakpoint($narrow) { flex-grow: 1; max-width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5); width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5); } @include breakpoint($wide) { max-width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 3 + #{var(--gutter-wide)} * 2); width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 3 + #{var(--gutter-wide)} * 2); } @include breakpoint($extrawide) { max-width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 3 + #{var(--gutter-extrawide)} * 2); width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 3 + #{var(--gutter-extrawide)} * 2); } } :host(.big:nth-of-type(3n + 0)) { display: flex; margin-right: 0; } :host(.small:nth-of-type(2n + 0)) { display: flex; @include breakpoint($narrow) { margin-right: 0; } @include breakpoint($wide) { margin-right: var(--gutter-wide); } @include breakpoint($extrawide) { margin-right: var(--gutter-extrawide); } } :host(.small:nth-of-type(4n + 0)) { display: flex; @include breakpoint($narrow) { margin-right: 0; } } :host(:last-of-type) { display: flex; margin-right: 0; } .hy-link-box { text-decoration: none; @include breakpoint($wide) { text-align: left; } &__image-container { display: flex; justify-content: stretch; margin-bottom: 0; min-height: 10rem; position: relative; &:before { content: ''; display: block; padding-top: (10 / 16) * 100%; width: 100%; } > img { bottom: 0; height: 100%; left: 0; object-fit: cover; position: absolute; right: 0; top: 0; width: 100%; } } } // placed in Landing pages .hy-link-box.landing { .hy-link-box__text-container { margin-bottom: 68px; padding: 0 16px; &__title { @include font-weight($bold); @include font-size(40px, 44px); color: var(--brand-main-nearly-black); font-family: var(--main-font-family); letter-spacing: -1.26px; margin-bottom: 20px; margin-top: 28px; } &__description { @include font-size(20px, 32px); color: var(--brand-main-nearly-black); font-family: var(--main-font-family); letter-spacing: -0.1px; } } } // placed in Content pages .hy-link-box.content { .hy-link-box__text-container { margin-bottom: 68px; padding: 0 12px; &__title { @include font-weight($bold); @include font-size(20px, 26px); color: var(--brand-main-nearly-black); font-family: var(--main-font-family); letter-spacing: -0.63px; margin-bottom: 11px; margin-top: 20px; } &__description { @include font-size(14px, 20px); color: var(--grayscale-dark); font-family: var(--main-font-family); letter-spacing: -0.2px; } } }