.websites .block_6 {margin: 5rem 0 3rem; padding: 0 2rem; scroll-margin-top: 7rem;}
.websites .block_6 h2 {line-height: 1; font-size: 3rem; font-weight: bold; color: #0c2833;}
.websites .block_6 h2 + p {margin-bottom: 3rem; font-size: 18px; color: #0c2833;}

.websites .block_6 .templates:not(.slick-initialized) .template + .template {display: none;}
.websites .block_6 .templates .template {margin: 0 1rem;}

.websites .block_6 .templates .template .header {
	position: relative; height: 60px; border-radius: 30px 30px 0 0; background-color: #aab7c0;
}
.websites .block_6 .templates .template .header:before {
	content: ''; position: absolute; top: 22px; left: 30px; width: 16px; height: 16px;
	border-radius: 50%; background-color: #8f9aa2; box-shadow: 26px 0 0 #8f9aa2, 52px 0 0 #8f9aa2;
}

.websites .block_6 .templates .template .preview {
	height: 400px; position: relative;
	border-radius: 0 0 30px 30px; box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
	background-color: white; background-size: cover; background-position-y: 0;
}
.websites .block_6 .templates .template:nth-child(1) .preview {background-image: url('../../../image/module/websites/example-1.png');}
.websites .block_6 .templates .template:nth-child(2) .preview {background-image: url('../../../image/module/websites/example-2.png');}
.websites .block_6 .templates .template:nth-child(3) .preview {background-image: url('../../../image/module/websites/example-3.png');}
.websites .block_6 .templates .template:nth-child(4) .preview {background-image: url('../../../image/module/websites/example-1.png');}

.websites .block_6 .templates .template .preview .button {
	position: absolute; top: 50%; right: 50%; margin: -25px -90px 0 0; box-shadow: 0 0 50px 0 rgba(0, 0, 0, .5);
}

.websites .block_6 .templates .template h5 {margin: 10px 30px 0; font-size: 1.5rem; color: #0c2833;}

@media screen and (min-width: 40em) {
	.websites .block_6 {margin: 3rem 0; padding: 0; scroll-margin-top: 8rem;}
	.websites .block_6 h2 {font-size: 3.5rem;}
	.websites .block_6 h2 + p {margin-bottom: 4rem;}

	.websites .block_6 .templates {
		display: grid; margin-top: 2rem;
		grid-template-columns: repeat(2, 1fr);
		grid-column-gap: 3rem;
		grid-row-gap: 3rem;
	}
	.websites .block_6 .templates .template {display: block !important; margin: 0;}

	.websites .block_6 .templates .template .preview {transition: background-position 2s ease;}
	.websites .block_6 .templates .template .preview:before {
		content: ''; position: absolute; inset: 0; border-radius: inherit;
		background-color: #00000000; transition: background-color 1s ease; transition-delay: 0s;
	}
	.websites .block_6 .templates .template .preview:hover {background-position-y: 100%;}
	.websites .block_6 .templates .template .preview:hover:before {background-color: #00000088; transition-delay: 1s;}
	.websites .block_6 .templates .template .preview .button {
		opacity: 0; transition: opacity 1s ease; transition-delay: 0s; box-shadow: none;
	}
	.websites .block_6 .templates .template .preview:hover .button {opacity: 1; transition-delay: 1s;}
}
