
/* Text */

.has-large-font-size,
.has-large-font-size > * {
    font-family: europa, sans-serif;
    font-size: 1.5625rem;
	line-height: 1.2;
}

@media (min-width: 768px) {
    .has-large-font-size,
	.has-large-font-size > * {
        font-size: 1.999396rem;
    }
}

.has-x-large-font-size,
.has-x-large-font-size > * {
    font-family: europa, sans-serif;
    font-size: 2.44140625rem!important;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .has-x-large-font-size,
	.has-x-large-font-size > * {
        font-size: 3.9975843648rem!important;
    }
}

/* Images */

.full-width-image {
	figure,
	img { 
		width: 100%; 
	}
}

/* Margins */

body .margin-top-0 { margin-top: 0; }
body .margin-bottom-0 { margin-bottom: 0; }

/* Group */

.wp-block-group,
.wp-block-cover {
	&.no-padding {
		padding-top: 0;
		padding-bottom: 0;
	}

	/* Height */

	&.full-height {
		height: calc(100dvh - 80px);
	}

	/* Wraps */

	&.default-wrap {
		>* {
			max-width: 540px;
			margin-left: auto;
			margin-right: auto;
		}
	}

	&.full-width {
		padding-left: 0;
		padding-right: 0;
	}

	&.tiny-wrap {
		>* {
			max-width: 250px;
			margin-left: auto;
			margin-right: auto;
		}
	}
}

@media (min-width: 768px) {
	.wp-block-group,
	.wp-block-cover {
		&.default-wrap {
			>* {
				max-width: 720px;
			}
		}

		&.small-wrap {
			>* {
				max-width: 83.33%;
				margin-left: auto;
				margin-right: auto;
			}
		}
	}
}

@media (min-width: 992px) {
	.wp-block-group,
	.wp-block-cover {
		&.default-wrap {
			>* {
				max-width: 960px;
			}
		}

		&.small-wrap {
			>* {
				max-width: 66.67%;
			}
		}

		&.medium-wrap {
			>* {
				max-width: 83.33%;
				margin-left: auto;
				margin-right: auto;
			}
		}
	}
}

@media (min-width: 1200px) {
	.wp-block-group,
	.wp-block-cover {
		&.default-wrap {
			>* {
				max-width: 1140px;
			}
		}

		&.small-wrap {
			>* {
				max-width: 50%;
			}
		}

		&.medium-wrap {
			>* {
				max-width: 66.67%;
			}
		}
	}
}

article > .wp-block-group:first-of-type:not(.has-background),
main > .wp-block-group:first-of-type:not(.has-background),
.wp-block-group.has-background + .wp-block-group.has-background,
.wp-block-group:not(.has-background):not(.no-padding) + .wp-block-group:not(.has-background) {
	padding-top: 0;
}

.wp-block-group {
    width: 100%;
    padding: 60px 15px;

    &.small-padding {
    	padding: 30px 15px;
    }

    .wp-block-group__inner-container {
    	>*:first-child {
    		margin-top: 0;
    	}

    	>*:last-child {
    		margin-bottom: 0;
    	}
    }

    &.hero {
	    .wp-block-group__inner-container {
		    padding-top: 60px;
		    padding-bottom: 60px;
	    }
    }

    .wp-block-group {
    	padding: 0;
    }
}

@media (min-width: 768px) {
    .wp-block-group {
        padding: 90px 55px;

	    &.hero {
	    	.wp-block-group__inner-container {
			    padding-top: 90px;
			    padding-bottom: 90px;
	    	}
	    }
    }
}

@media (min-width: 992px) {
    .wp-block-group.featured .c__card--post {
        flex: 0 0 25%;
    }
}

/* Columns */

.wp-block-columns {
	.wp-block-column {
    	>*:first-child { margin-top: 0 }
    	>*:last-child { margin-bottom: 0 }
	}

	&.cols-wrap-stretch,
	&.cols-stretch-wrap,
	&.cols-centred-stretch,
	&.cols-stretch-centred {
		gap: 0;
	}

	&.cols-wrap-stretch .wp-block-column:first-of-type,
	&.cols-stretch-wrap .wp-block-column:last-of-type,
	&.cols-centred-stretch .wp-block-column:first-of-type,
	&.cols-stretch-centred .wp-block-column:last-of-type {
		padding: 60px 0;
	}

	&.cols-wrap-stretch .wp-block-column:last-of-type,
	&.cols-stretch-wrap .wp-block-column:first-of-type,
	&.cols-centred-stretch .wp-block-column:last-of-type,
	&.cols-stretch-centred .wp-block-column:first-of-type {
	    margin-left: -15px;
	    margin-right: -15px;
		video,
		img {
			aspect-ratio: 1/1;
			object-fit: cover;
		}
	}

	@media (min-width: 768px) {
		&.cols-wrap-stretch,
		&.cols-stretch-wrap,
		&.cols-centred-stretch,
		&.cols-stretch-centred {
			gap: 30px;
		}

		&.cols-wrap-stretch .wp-block-column:first-of-type,
		&.cols-stretch-wrap .wp-block-column:last-of-type {
			padding: 90px 0;
			flex-basis: 50%;
    		padding-left: calc((100vw - 1140px - 130px) / 2);
		}

		&.cols-centred-stretch .wp-block-column:first-of-type,
		&.cols-stretch-centred .wp-block-column:last-of-type {
			padding: 90px 0;
			flex-basis: 50%;
    		padding-left: calc((100vw - 1140px - 130px) / 4);
    		padding-right: calc((100vw - 1140px - 130px) / 4);
		}

		&.cols-wrap-stretch .wp-block-column:last-of-type,
		&.cols-stretch-wrap .wp-block-column:first-of-type,
		&.cols-centred-stretch .wp-block-column:last-of-type,
		&.cols-stretch-centred .wp-block-column:first-of-type {
			margin: 0;
			flex-basis: calc(50% + 70px);
            min-height: 100dvh;

			.wp-block-video,
			.wp-block-image {
				height: 100%
			}

			video,
			img {
				height: 100%;
				aspect-ratio: unset;
			}
		}

		&.cols-wrap-stretch .wp-block-column:last-of-type,
		&.cols-centred-stretch .wp-block-column:last-of-type {
		    margin-right: -55px;
		}

		&.cols-stretch-wrap .wp-block-column:first-of-type,
		&.cols-stretch-centred .wp-block-column:first-of-type {
		    margin-left: -55px;
		}
	}

	@media (min-width: 1200px) {
		&.cols-wrap-stretch,
		&.cols-stretch-wrap {
			gap: 90px;
		}

		&.cols-wrap-stretch .wp-block-column:last-of-type,
		&.cols-stretch-wrap .wp-block-column:first-of-type {
			flex-basis: calc(50% + 160px);
		}

		&.cols-centred-stretch .wp-block-column:last-of-type,
		&.cols-stretch-centred .wp-block-column:first-of-type {
			flex-basis: calc(50% + 80px);
		}
	}
}

/* Cover */

.wp-block-cover {
	width: 100%;
	min-height: 500px;
	aspect-ratio: 3/2;
	margin-bottom: 35px;
	.wp-block-cover__background,
	.wp-block-cover__image-background {
		width: 100%;
		max-width: none;
	}

	.wp-block-cover__inner-container {
	    padding-top: 60px;
	    padding-bottom: 60px;

    	>*:first-child {
    		margin-top: 0;
    	}

    	>*:last-child {
    		margin-bottom: 0;
    	}
    }
}

/* Button */

a.wp-block-button__link {
	position: relative;
    font-family: europa, sans-serif;
    line-height: 50px;
    font-weight: 400;
    font-size: 1rem;
    padding: 0;
    padding-left: 0;
    padding-right: 50px;
	border-radius: 0;
	background-color: transparent !important;
	text-decoration: none;
	color: #222;
    transition: all .25s;
    z-index: 1;
	&:before {
	    content: "";
	    display: block;
	    position: absolute;
	    z-index: -1;
	    width: 100%;
	    bottom: 0;
	    left: 0;
	    height: 3px;
	    background-color: #222;
	    transition: height .25s;
	}

	&:hover {
		color: white;
	    padding: 0 25px;
		&::before {
		    height: 50px;
		    transition: height .25s;
		}
	}

	&.has-white-color {
		&::before {
	    	background-color: white;
		}

		&:hover {
			color: #222!important;
		}
	}
}

/* Posts List */

.wp-block-posts-list {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
	&.has-columns--1 > .c__card--post { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
    .wp-block-posts-list {
		&.has-columns--1 > .c__card--post { flex: 0 0 100%; max-width: 100%; }
		&.has-columns--2 > .c__card--post { flex: 0 0 50%; max-width: 50%; }
		&.has-columns--4 > .c__card--post { flex: 0 0 25%; max-width: 25%; }
    }
}

/* Taxonomy List */

.wp-block-taxonomy-list {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

/* Forms */

#subForm .e__input-holder {
	&.focused,
	&.filled {
		label {
			margin-top: 0px;
			font-size: .7rem;
		}
	}
}
