/* CSS Document */

:root {
	/* wordpress spacing */
	--wp--preset--spacing--20: 0.44rem;
	--wp--preset--spacing--30: 0.67rem;
	--wp--preset--spacing--40: 1rem;
	--wp--preset--spacing--50: 1.5rem;
	--wp--preset--spacing--60: 2.25rem;
	--wp--preset--spacing--70: 3.38rem;
	--wp--preset--spacing--80: 5.06rem;
	
	/* styling */
	--wp--preset--color--accent-6: #CCC
}

/* objects ------------------------------ */
figure {
	display: inline;
}

/* blocks & containers ------------------------------ */
.wp-block-group {
	display: block
}

/* styling of objects ------------------------------ */
.is-style-rounded,
.is-style-rounded img {
	border-radius: 1rem
}

/* GALLERY */
/* Gutenberg FIX – image gallery item on last row too big */
figure.wp-block-gallery.has-nested-images .wp-block-image {
    flex-grow:inherit;
}

/* Move gallery captions below image */
figure.wp-block-gallery.has-nested-images .wp-block-image figure {
    flex-direction: column;
}

figure.wp-block-gallery.has-nested-images .wp-block-image figcaption {
    position: relative;
    bottom: auto;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 10px 0 20px 0;
    text-align: center;
}

/* Padding inbetween gallery images */
figure.wp-block-gallery.has-nested-images .wp-block-image {
  padding: 0 2.5% 5% 2.5%; 
    flex-grow: unset !important;
}

.wp-block-group p {
	display: inline-block;
	width: 100%;
}

.wp-block-image img, #wordpress_contents img {
	display: block
}

@media (min-width: 600px) {
    figure.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
        margin-right: 40px;
        width: calc(25% - (40px * 0.75));
    }
}

@media all and (min-width: 769px) { 
	.wp-block-column:not(:last-child) {
		margin-right: 2rem;
	}
}

@media all and (min-width: 1201px) { 

}

blockquote > p {
	width: 100% !important; 
}

.is-vertically-aligned-center {
	align-items: center!important;
}

/* for sizing of images in wordpress */
.full-width {
	width: 100%;
}
.wp-block-gallery {}
.wp-block-gallery .wp-block-image {
	width: 33%;
	display: inline-block;
	padding: 0 2rem 1rem 0
}
.full-width img {
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 2em;
}
.wp-block-image img, #wordpress_contents img {
	width: 100%;
	height: auto
}
.half-width {
	width: 50%;
	margin: auto
}
.half-width img {
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 2em;
}

.wp-block-columns {
	display: flex;
}
.wp-block-column {
	flex: 1;
}
.wp-block-media-text {
	display: grid;
	column-gap: 3em;
	grid-template-columns: 50% 50%;
}
.wp-block-media-text__media {
	flex-shrink: 0!important;
	width: calc(100% - 2em);
}
.wp-block-media-text__media img {
	width: 100%;
}
.wp-block-cover img,
.wp-block-media-text__content {
	align-content: center;
	width: 100%;
}
.wp-block-media-text__content h1:first-child,
.wp-block-media-text__content h2:first-child,
.wp-block-media-text__content h3:first-child,
.wp-block-media-text__content h4:first-child,
.wp-block-media-text__content h5:first-child {
	margin-top: 0
}

.wp-block-column img {
	width: 100%;
	height: auto;
}
.wp-block-video {
	text-align: center;
	margin: 3rem 1rem;
}

.has-text-align-center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.has-text-align-right {
	text-align: end;
}
.has-text-align-left {
	text-align: start
}
.has-white-color {
	color: white !important
}
.wp-block {
	margin-block-start: var(--wp--preset--spacing--40);
	margin-block-end: 0;
}
.wp-block-buttons,
.wp-block-heading{
	display: block;
	margin: .5em 0 .5em 0;
	width: 100%;
}
.wp-block-button__width-100,
.wp-block-button__width-100 a {
	display: block;
	width: 100%
}
.wp-element-button {
	background: #000;
	color: white;
	text-align: center;
	padding-left: 3em;
	padding-right: 3em;
	display: inline-block
}
.wp-element-button:hover {
	background-color: rgba(0,0,0,0.6);
	color: white !important
}
.has-border-color {
	border: solid 1px #CCC
}
.has-large-font-size {
	font-size: 1.5em
}

.is-layout-flex,
.wp-block-buttons{
	display: flex
}
.is-content-justification-center,
.wp-block-buttons{
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.is-style-section-1 {
	background-color: #EFEFEF
}
.is-style-section-2 {
	background-color: #EDEDED
}
.is-style-section-3 {
	background-color: #E5E5E5
}
.justify-content-lg-end {
	align-items: flex-end;
}
.wp-block-cover {
	position: relative;
	padding: 0 !important;
	overflow: hidden
}
.wp-block-cover__inner-container {
	position: absolute;
	bottom: 0;
	padding: 3em;
}
.wp-block-heading > .wp-block-heading {
	margin: 0 !important;
	color: white
}
.wp-block-cover .wp-block-cover__image-background {
   object-fit: contain;
}
.wp-block-cover__background {
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
	display: block;
	opacity: .5;
}