.dialog--close .dialog__overlay {
	-webkit-transition-delay: 0.25s;
	transition-delay: 0.25s;
}

.dialog.dialog--open .dialog__content,
.dialog.dialog--close .dialog__content {
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	-webkit-animation-timing-function: ease-out;
	animation-timing-function: ease-out;
}

.dialog.dialog--open .dialog__content {
	-webkit-animation-name: anim-open;
	animation-name: anim-open;
}

.dialog.dialog--close .dialog__content {
	-webkit-animation-name: anim-close;
	animation-name: anim-close;
}

@-webkit-keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(calc(-100vw - 50%), 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(100px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(calc(-100vw - 50%), 0, 0); transform: translate3d(calc(-100vw - 50%), 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(100px, 0, 0); transform: translate3d(100px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

@-webkit-keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); }
	100% { opacity: 0; -webkit-transform: translate3d(calc(100vw + 50%), 0, 0); }
}

@keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); }
	100% { opacity: 0; -webkit-transform: translate3d(calc(100vw + 50%), 0, 0); transform: translate3d(calc(100vw + 50%), 0, 0); }
}
