.poster { position: relative; border-radius: 6px; overflow: hidden; max-width: 326px; @include bp (md) { background-color: $color-primary-tertiary20; max-width: 600px; } & > a { display: block; pointer-events: none; } // Poster image :global(img) { pointer-events: auto; position: relative; z-index: 2; display: block; width: 100%; height: auto; box-shadow: 0 6px 6px rgba(#000, 0.08), 0 12px 12px rgba(#000, 0.08), 0 24px 24px rgba(#000, 0.08); border-radius: 4px; transition: transform 0.8s var(--ease-quart), border-radius 0.8s var(--ease-quart); } // Buttons .buttons { display: flex; margin-top: 32px; justify-content: center; @include bp (md) { position: absolute; z-index: 1; bottom: 4.25%; left: 0; width: 100%; align-items: center; justify-content: center; margin-top: 40px; transform: translate3d(0, 100%, 0); transition: transform 0.8s var(--ease-quart); } & > :global(*) { padding: 0; font-size: rem(14px); font-weight: 400; color: $color-tertiary; background: none; &:first-child { margin-right: 16px; &:hover { background: none; } } &:last-child { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; color: $color-secondary; border: 1px solid rgba($color-secondary, 0.4); @include bp (md) { border: none; color: #fff; background: $color-secondary; } &:hover { @include bp (md) { background-color: darken($color-secondary, 7); } } } } } // Hover effect &:hover { :global(img) { @include bp (md) { transform: scale(0.8) translate3d(0, -5%, 0); border-radius: 8px; } } .buttons { transform: translate3d(0,0,0); } } }