/**
 * The following styles get applied both on the front of your site and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */

.wp-block-alecan-widget-cta {
    background-color: #216ebf;
    border: 3px solid #30a9f0;
    display: grid;
}

.wp-block-alecan-widget-cta h2,
.wp-block-alecan-widget-cta figure {
	background-color: #fff;
}

.wp-block-alecan-widget-cta h2,
.wp-block-alecan-widget-cta figure,
.wp-block-alecan-widget-cta p {
	margin: 0;
}

.wp-block-alecan-widget-cta h2 {
    color: #216ebf;
    grid-area: header;
    padding: 15px;
}

.wp-block-alecan-widget-cta figure {
    grid-area: img;
    grid-column: img;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-alecan-widget-cta figure > img {
    display: block;
}

.wp-block-alecan-widget-cta p {
    background-color: #32363D;
    color: #fff;
    grid-area: sub;
    padding: 15px;
}

.wp-block-alecan-widget-cta .wp-block-alecan-button {
    align-self: center;
    font-weight: 600;
    grid-area: btn;
    justify-self: center;
    margin: 15px;
    padding: 15px 8px;
    text-transform: uppercase;
}

@media screen and (max-width: 1299px) {
	.wp-block-alecan-widget-cta {
	    grid-template-areas:
	    	'img' 'header' 'sub' 'btn';
	    grid-template-rows: auto auto auto auto;
	    grid-template-columns: 1fr;
	}

	.wp-block-alecan-widget-cta h2,
	.wp-block-alecan-widget-cta p {
	    text-align: center;
	}
}

@media screen and (min-width: 1300px) {
	.wp-block-alecan-widget-cta {
	    grid-template-areas:
	        'header img'
	        'sub btn';
	    grid-template-rows: auto auto;
	    grid-template-columns: auto 1fr;
	}

	.wp-block-alecan-widget-cta h2 {
	    grid-column: header;
	    line-height: 1.25;
	    padding: 25px;
	}

	.wp-block-alecan-widget-cta figure:not(.no-border) {
	    padding: 10px;
	}

	.wp-block-alecan-widget-cta p {
	    grid-column: sub;
	}

	.wp-block-alecan-widget-cta .wp-block-alecan-button {
	    grid-column: btn;
	}
}
