/* 
Theme Name: Ooit aan de Maas
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

::selection {
    background-color: var( --e-global-color-1c315f3 );
    color: white;
}

:root {
	accent-color: var(--e-global-color-accent);
	outline-color: var(--e-global-color-accent);
}

body {
    overflow-x: clip;
}
.page {
	min-height: 50vh;
}

/****************/
/*  TYPOGRAPHY  */
/****************/

.elementor-widget-text-editor > *:last-child,
.elementor-widget-text-editor .elementor-widget-container *:last-child {
	margin-bottom: 0;
}
.elementor-widget-text-editor .elementor-widget-container ol,
.elementor-widget-text-editor .elementor-widget-container ul {
	margin-bottom: 1rem;
}
.elementor-widget-image a {
	width: 100%;
}

.elementor-heading-title {
	text-wrap: balance;	
	line-height: 1.1;
}
.balance {
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
h3 {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
h4 {
	font-size: clamp(1.125rem, 0.9375rem + 0.75vw, 1.5rem);
}
h5 {
	font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
}
h6 {
	font-size: clamp(0.9125rem, 0.8062rem + 0.425vw, 1.125rem);
}


/*****************/
/*   GUTENBERG   */
/*****************/
.gutenberg {
    font-size: 1.125rem;
    line-height: 1.5;
}

.gutenberg p {
    margin-bottom: 1.25rem;
}

.gutenberg p a {
    text-decoration: underline 0.05em dotted;
    text-underline-offset: .25em;
    
    &:hover {
        text-decoration-style: solid;
    }
}

.gutenberg figure {
	text-align: center;
}
.gutenberg figure.is-provider-spotify {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

@media screen and (min-width: 767px) {
	.gutenberg figure {
		margin-inline: -4rem;
		padding-inline: 1rem;
	}

	.gutenberg figure figcaption {
		padding-inline: 3rem;
	}
}

@media screen and (max-width: 767px) {
	.gutenberg figure {
		margin-inline: -1rem;
		padding-inline: 0;
	}
	.gutenberg figure img {
		border-radius: 0;
		width: calc(100% + 2rem);
	}
	.gutenberg figure figcaption {
		padding-inline: 1rem;
	}
}

.gutenberg img {
    border-radius: 4px;
}

.gutenberg .wp-block-image {
	display: flex;
    flex-direction: column;
    align-items: center;
	text-align: center;	
}
.gutenberg .wp-block-image figcaption {
	min-width: 300px;
    opacity: 70%;
    font-size: .875rem;
    line-height: 1.25;
    font-style: italic;
    text-wrap: pretty;
    margin-block: .75em 1em;
}
.gutenberg .wp-block-image figure {
	text-align: center;	
}
.gutenberg .wp-block-image figure.alignright {
	text-align: right;
}
.gutenberg .wp-block-image figure.alignleft {
	text-align: left;
}
.gutenberg .wp-block-image figure:not(:has(figcaption)),
.gutenberg figure.wp-block-image:not(:has(figcaption)) {
	margin-bottom: 1.5rem;
}

.gutenberg .wp-block-buttons {
	margin-bottom: 1.5rem;
}

/* Advanced Gutenberg Blocks */
.wp-block-advanced-gutenberg-blocks-post {
	border-radius: 1rem !important;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.wp-block-advanced-gutenberg-blocks-post__content {
	padding-left: 1.25rem;
}
.wp-block-advanced-gutenberg-blocks-post__content::before {
    content: "Lees ook dit verhaal:";
    color: #ec6a2a;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: .75rem;
}
.wp-block-advanced-gutenberg-blocks-post__title {
	line-height: 1.5 !important;
}
.wp-block-advanced-gutenberg-blocks-post__metas {
	display: none;
}
.wp-block-advanced-gutenberg-blocks-post__excerpt p {
    margin-top: 0 !important;
	max-height: 5.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.wp-block-advanced-gutenberg-blocks-post__excerpt p:emtpy {
	display: none !important;
}
.wp-block-advanced-gutenberg-blocks-product__actions {
	margin-bottom: 1rem !important;
}

/* Quote */
.gutenberg .wp-block-quote {
	--quote-padding-inline: 2.5rem;
    position: relative;
    margin: 3rem auto 2rem;
    padding: 4.5rem var(--quote-padding-inline) 1rem;
    font-size: clamp(1.5rem, 1.375rem + 0.5vw, 1.75rem);
	line-height: 1.25;
	font-weight: bold;
    font-style: normal;
    text-wrap: balance;
    border-left: 4px solid var(--e-global-color-accent);
}

.gutenberg .wp-block-quote::before {
    content: '“';
    font-size: 8rem;
    position: absolute;
    top: -1.125rem;
    left: calc(var(--quote-padding-inline) - 0.25rem);
    color: var(--e-global-color-accent);
	pointer-events: none;
}
.gutenberg .wp-block-quote > :last-child {
	margin-bottom: 0 !important;
}
.gutenberg .wp-block-quote p {
    margin: 0;
}

.gutenberg .wp-block-quote cite,
.gutenberg .wp-block-quote footer {
    display: block;
    margin-top: 1em;
    font-size: 1rem;
    font-weight: normal;
    font-style: italic;
}

.gutenberg .wp-block-quote cite:before,
.gutenberg .wp-block-quote footer:before {
	content: '— ';
}

@media (max-width: 767px) {
	.gutenberg .wp-block-quote {	
		--quote-padding-inline: 1.5rem;
	}
}

/*************/
/*  BUTTONS  */
/*************/

[type=button], [type=submit], button {
    background-color: transparent;
    border-color: var(--e-global-color-accent);
    border-radius: 4px;
    color: var(--e-global-color-accent);
}

.wp-element-button {
    font-family: var(--e-global-typography-accent-font-family), serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    border-radius: 4px;
}

/*************/
/*  WIDGETS  */
/*************/

.alignwide {
	margin-inline: calc(-1 * clamp(0rem, -2.5rem + 10vw, 5rem));
}

.elementor-pagination {
	display: flex;
	justify-content: center;
    align-items: center;
    flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 2rem;
}
.elementor-pagination .page-numbers:not(.dots) {
    display: grid;
    place-items: center;
    width: 1.625em;
	height: 1.625em;
    font-weight: 500;
    color: white;
	background: var( --e-global-color-1c315f3 );
    border-radius: 50%;
    aspect-ratio: 1;
}
.elementor-pagination .page-numbers.current,
.elementor-pagination .page-numbers:not(.dots):hover,
.elementor-pagination .page-numbers:not(.dots):focus {
    background: var(--e-global-color-accent);
}
.elementor-pagination .page-numbers svg {
	fill: currentColor;
	height: 1em;
}
.elementor-pagination span.page-numbers:is(.prev, .next) {
	opacity: .5;
}


.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
	content: none;
}


/*****************/
/*  WOOCOMMERCE  */
/*****************/

.woocommerce span.onsale {
    min-height: auto;
    min-width: auto;
    border-radius: 4px;
    line-height: 1;
    padding: .375rem .625rem !important;
    background-color: var(--e-global-color-accent);
}

.woocommerce-tabs .tabs {
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.woocommerce-tabs .tabs li {
	border: none !important;
	margin: 0 !important;
	background-color: transparent !important;	
	border-bottom: 2px solid transparent !important;
    text-align: center;
}
.woocommerce-tabs .tabs li.active {
	border-bottom: 2px solid var(--e-global-color-accent) !important;
}

.woocommerce table.shop_attributes {
	max-width: 800px;
	margin: 0 auto;
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    text-align: left;
	vertical-align: middle;
	padding: .625rem .75rem;
	border-left: none;
	border-right: none;
}
.woocommerce table.shop_attributes th {
    border-right: 1px dotted rgba(0, 0, 0, 0.1);
}
.woocommerce table.shop_attributes td p {
	padding: 0;
}

.price {
    margin: 0;
}
.price .woocommerce-Price-amount {
    font-size: 1.25rem;
    font-weight: bold;
	white-space: nowrap;
}
.price ins {
    text-decoration: none;
}
.price del {
    opacity: 0.5;
	font-size: 1rem;
    margin-right: .375rem;
}
.price del .woocommerce-Price-amount {
    font-size: inherit;
    font-style: italic;
}


.pswp__bg {
	opacity: .85 !important;
}


/****************
 *     MODAL    *
****************/
 
.modal {
	display: none;
}
.modal.modal-visible {
	display: block;
}
.modal-trigger {
	cursor: pointer;
}
.modal-backdrop {
	z-index: 998;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0,0,0,0.5);
}
.modal-container {
	z-index: 999;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 5rem 2rem 1rem;
	display: flex;
    justify-content: center;
    align-items: center;
	pointer-events: none;
}
.modal-dialog {
	display: flex;
	flex-direction: column;
	align-items: center;
    position: relative;
    width: 600px;
    max-width: 70%;
	max-height: 90%;
    overflow: auto;
    background: white;
    padding: 2rem;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
	pointer-events: all;
}
@media only screen and (max-width: 768px) {
	.modal-dialog { width: 100%; max-width: unset; }
}
.modal-close {
	position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.3rem;
    text-align: center;
    cursor: pointer;
}