/*
 Theme Name:   Het Ongebaande Pad Theme
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Het Ongebaande Pad custom theme
 Author:       Vincent van den Brink
 Author URI:   https://pixelwrk.nl
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-child
*/

/*** GENERAL ***/
html {
	font-size: 1rem;
	scroll-behavior: smooth;
}

body * {
	outline: none;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

font {
    font-family: inherit;
}

/* Sharpen images in Chrome */
img {
	image-rendering: -webkit-optimize-contrast !important;
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
    contain-intrinsic-size: auto !important;
}

/* Headings */
h1 { font-size: 3.5rem }
h2 { font-size: 3rem }
h3 { font-size: 2.66rem }
h4 { font-size: 2.33rem }
h5 { font-size: 2rem }
h6 { font-size: 1.75rem }

h1 b, h1 strong,
h2 b, h2 strong,
h3 b, h3 strong,
h4 b, h4 strong,
h5 b, h5 strong,
h6 b, h6 strong {
	font-weight: bold;
}

/* Paragraphs */
p {
	margin-top: 0;
}

/* List */
.elementor-widget-text-editor ul,
.elementor-widget-theme-post-content ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ol {
	margin: 0 0 24px 0;
}

.elementor-widget-text-editor :last-child,
.elementor-widget-theme-post-content :last-child {
	margin-bottom: 0;
}

/* Hide inner shadow on inputs */
input,
textarea {   
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	outline: none;
}



/*** POP-UPS & LIGHTBOX ***/
.elementor-popup-modal,
.elementor-lightbox {
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.elementor-lightbox .elementor-slideshow__footer {
	padding: 16px;
	width: calc(100% - 32px);
}



/*** HEADER ***/
#header > .e-con-inner {
	position: relative;
}

/** Logo **/
#header #logo {
  top: 16px;
  left: 50%;
  transform: translate(-50%, 0);
  position: absolute;
}


/** Language Switch **/
#header #language-switch-container {
	right: 0;
	top: 29px;
	position: absolute;
}

#header .language-switch {
    position: relative;
    display: inline-block;
}

#header .language-switch button {
	background-color: transparent !important;
	border: none;
}

#header .language-switch__toggle {
	padding: 0;
    font-size: 18px;
    color: var(--e-global-color-text);
	cursor: pointer;
	display: flex;
    align-items: center;
    gap: 4px
}

#header .language-switch__toggle svg {
	margin-right: 4px;
    width: 18px;
    height: 18px;
    display: block;
    color: var(--e-global-color-primary);
}

#header .language-switch__toggle svg:last-child {
	margin: 0;
	color: var(--e-global-color-text);
}

#header .language-switch[data-open] .language-switch__toggle svg:last-child {
    transform: rotate(180deg);
}

#header .language-switch__current {
    font-weight: 600;
}

#header .language-switch__menu {
	top: 100%;
	right: 0;
	margin-top: 8px;
	padding: 0;
	position: absolute;
	min-width: 70px;
	border-radius: 4px;
	border: 1px solid var(--e-global-color-57eb96e);
	background: var(--e-global-color-3bd2cc8);
	list-style: none;
	z-index: 9999;
}

#header .language-switch__menu[hidden] {
    display: none;
}

#header .language-switch__menu li {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--e-global-color-text);
    white-space: nowrap;
}

#header .language-switch__menu li:hover,
#header .language-switch__menu li[aria-selected="true"] {
    background: var(--e-global-color-89ef684);
}

/* Verberg de standaard GTranslate widget visueel, maar laat 'm wel op de pagina staan/laden — anders bestaat doGTranslate() niet. */
.gtranslate_wrapper,
#gtranslate_selector_wrapper {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/** Main Menu **/
#menu {
	border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, #9CAF9D, transparent) 1;
}

#header #menu .elementor-nav-menu--main .elementor-nav-menu {
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr) 228px repeat(3, 1fr);
	align-items: center;
}

#header #menu .elementor-nav-menu--main .elementor-nav-menu > li,
#header #menu .elementor-nav-menu--main .elementor-nav-menu > li > a {
	display: flex;
	justify-content: center;
	align-items: center;
}

#header #menu .elementor-nav-menu--main .elementor-nav-menu > li > a {
	flex: 0 0 auto;
	width: auto;
}

#header #menu .elementor-nav-menu--main .elementor-nav-menu > li:nth-child(4) { grid-column: 5; }
#header #menu .elementor-nav-menu--main .elementor-nav-menu > li:nth-child(5) { grid-column: 6; }
#header #menu .elementor-nav-menu--main .elementor-nav-menu > li:nth-child(6) { grid-column: 7; }


/* Call to Action */
#header #menu li.follow-us a {
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--e-global-color-accent);
	display: inline-flex;
	align-items: center;
    gap: 8px;
}

#header #menu li.follow-us a:hover {
	background: var(--e-global-color-a2a2537);
}

#header #menu li.follow-us a:after {
    content: "";
    display: inline-flex;
	position: relative;
	opacity: 1;
    width: 1em;
    height: 1em;
    background-color: currentcolor;
    -webkit-mask: url('/wp-content/themes/hello-child/img/icons/heart.svg') no-repeat center / contain;
            mask: url('/wp-content/themes/hello-child/img/icons/heart.svg') no-repeat center / contain;
}

/* Call to Action — mobiel (dropdown-menu) */
#header #menu .elementor-nav-menu--dropdown li.follow-us {
	text-align: center;
	margin-bottom: 16px;
}

#header #menu .elementor-nav-menu--dropdown li.follow-us a {
	padding: 8px 12px;
	display: inline-flex; /* nodig zodat text-align: center de knop centreert */
}

#header #menu .elementor-nav-menu--dropdown li.follow-us a:hover {
	color: var(--e-global-color-text);
}



/*** POST ***/

/** Album filters **/
.album-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

/* HOP select */
.hop-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	color: var(--e-global-color-text);
}

.hop-select select {
	margin: 0;
	padding: 8px 40px 8px 16px;
	max-width: 100%;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.66em;
	color: inherit;
	border-radius: 8px;
	border: none;
	background: var(--e-global-color-3bd2cc8);
	box-shadow: 0 3px 8px 0 rgba(0,0,0,.1);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .3s ease;
}

/* Chevron down */
.hop-select:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	pointer-events: none;
	background-color: currentColor;
	-webkit-mask: url('/wp-content/themes/hello-child/img/icons/chevron-down.svg') no-repeat center / contain;
	mask: url('/wp-content/themes/hello-child/img/icons/chevron-down.svg') no-repeat center / contain;
}

.hop-select select:hover {
	border-color: var(--e-global-color-primary);
}

.hop-select select:focus-visible {
	outline: 2px solid var(--e-global-color-primary);
	outline-offset: 2px;
}


.album-filters__field--toggle {
	display: inline-flex;
	align-items: center;
}

/* Toggle */
.album-filters__field--toggle {
	display: inline-flex;
	align-items: center;
}

.album-loc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	line-height: 1.66;
	color: var(--e-global-color-text);
	text-decoration: none;
	cursor: pointer;
	user-select: none;
}

.album-loc-toggle__text {
	color: var(--e-global-color-text);
}

.album-loc-toggle__switch {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
	border-radius: 24px;
	background: var(--e-global-color-57eb96e);
	transition: background .3s ease;
}

.album-loc-toggle__switch::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--e-global-color-3bd2cc8);
	transition: transform .3s ease;
}

.album-loc-toggle.is-on .album-loc-toggle__switch {
	background: var(--e-global-color-primary);
}

.album-loc-toggle.is-on .album-loc-toggle__switch::after {
	transform: translateX(20px);
}

/* Reset knop */
.album-filters__field--reset {
	margin-left: auto;
}

.album-filters__reset {
	font-size: 18px;
	line-height: 1.66;
	color: var(--e-global-color-primary);
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.album-filters__reset:hover,
.album-filters__reset:focus-visible {
	color: var(--e-global-color-primary);
	text-decoration: none !important;
}

/** Blog Overview **/
#blog-overview {
	position: relative;
}

#blog-overview::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom,var(--e-global-color-primary) 0 16px, transparent 16px 32px);
}

#blog-overview .post {
	max-width: 768px;
	position: relative;
}

#blog-overview .post:nth-child(even)  {
	margin-top: -120px;
}

#blog-overview .post:nth-child(odd)  {
	margin-top: 320px;
}

#blog-overview .post-tile::before {
	top: 50%;
	right: -80px;
	left: auto;
	width: 80px;
	height: 2px;
	background: var(--e-global-color-57eb96e);
	transform: translateY(-50%);
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

#blog-overview .post-tile::after {
	top: 50%;
	right: -86px;
	width: 12px;
	height: 12px;
	content: '';
	position: absolute;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 2;
	border-radius: 50%;
	background: var(--e-global-color-primary);
	box-shadow: 0 0 0 4px var(--e-global-color-f892837) ,0 0 0 6px var(--e-global-color-57eb96e);
}

/* Linkerkant */
#blog-overview .post:nth-child(odd) .post-tile::before {
	right: auto;
	left: -80px;
}

#blog-overview .post:nth-child(odd) .post-tile::after {
	right: auto;
	left: -86px;
}


/** POST TILE **/
a.post-tile {
	position: relative;
}

.post-tile__featured-image {
	aspect-ratio: 3 / 2;
	position: relative;
	display: flex;
	overflow: hidden;
}

/* Featured image */
.post-tile__featured-image img {
	transition: transform .3s ease;
}

a:hover.post-tile .post-tile__featured-image img {
	transform: scale(1.15) rotate(2deg);
}

/* Blog post title */
.post-title .elementor-heading-title {
	line-height: 1em !important;
}

a:hover.post-tile .post-title .elementor-heading-title {
	color: var(--e-global-color-primary);
}

/* Blog post meta */
.blog-post-meta {
	display: flex;
	font-family: var(--e-global-typography-text-font-family);
	font-size: 1rem;
	color: var(--e-global-color-text);
}



/*** BLOG POST ***/

/* Blog post meta */
.single-post .blog-post-meta {
	font-size: 18px;
}

/* Back button */
.single-post a.back-button {
	top: -32px;
	left: -16px;
	width: 48px;
	height: 48px;
	border-top-left-radius: 8px;
	border-bottom-right-radius: 24px;
	background: var(--e-global-color-3bd2cc8);
	justify-content: center;
	align-items: center;
	display: flex;
	transition: background-color 0.3s ease;
	position: absolute;
	transform: rotate(2deg);
}

.single-post a.back-button svg {
	width: 24px;
	height: 24px;
	color: var(--e-global-color-text);
}

.single-post a:hover.back-button svg {
	color: var(--e-global-color-primary);
}

/* Headings */
.single-post .wp-block-heading {
	margin: 0 0 24px 0;
	font-family: var(--e-global-typography-primary-font-family);
	font-weight: var(--e-global-typography-primary-font-weight);
	line-height: var(--e-global-typography-primary-line-height);
}

/* Links */
.single-post .wp-block-paragraph a,
.elementor-widget-text-editor p a {
	text-decoration: underline;
}

.single-post .wp-block-paragraph a:hover,
.elementor-widget-text-editor p a:hover {
	text-decoration: none;
}

/* Icon button fix */
.icon-button svg {
	width: 24px;
	height: 24px;
}

/* Comments */
.single-post .hop-comments--empty {
	margin: 0 !important;
}

.e-load-more-spinner svg {
	margin: 0 auto;
	width: 1.5em !important;
	height: 1.5em !important;
}

.e-load-more-message {
	display: none !important;
}



/*** CONTACT ***/
.contact-map {
	padding: 8px;
	border-radius: 8px;
	background: var(--e-global-color-3bd2cc8);
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1);
	transform: rotate(1deg);
}



/*** LOCATION MAP ***/
.hop-location-map {
    width: 100%;
    aspect-ratio: 4 / 3;
}



/*** FOOTER ***/

#footer .elementor-icon-wrapper {
	display: flex;
}


/* Footer menu: 2 kolommen */
#footer nav ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    column-gap: 32px;
    row-gap: 8px;
}

/* Chevron vóór elke link */
#footer nav ul a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

#footer nav ul a:before {
    content: '';
    position: static;
    display: inline-block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('/wp-content/themes/hello-child/img/icons/chevron-right.svg') no-repeat center / contain;
    mask: url('/wp-content/themes/hello-child/img/icons/chevron-right.svg') no-repeat center / contain;
	opacity: 1;
}

/* Hover: underline */
#footer nav ul a:hover,
#footer nav ul a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}



/*** LIGHTBOX ***/

/* Elementor lightbox = dialog wrapper */
.dialog-lightbox-widget .swiper-lazy-preloader {
  width: 48px;
  height: 48px;
  border-width: 4px;
  border-color: rgba(255,255,255,.25) !important;
  border-top-color: rgba(255,255,255,1) !important;
}

/* Elementor lightbox: verberg img zolang hij nog geen echte src heeft */
.dialog-lightbox-widget img[src=""],
.dialog-lightbox-widget img:not([src]) {
  display: none !important;
}



@media only screen and (max-width: 1024px) {
	
	/*** HEADER ***/
	
	/* Language Switch */
	#header #language-switch-container {
		left: 16px;
		right: auto;
		top: 100px;
	}
	
	#header #language-switch-container .language-switch__menu {
		left: 0;
		right: auto;
	}
	
	/** Menu **/
	
	/* Toggle */
	#header #menu .elementor-menu-toggle .elementor-menu-toggle__icon--open,
	#header #menu .elementor-menu-toggle .elementor-menu-toggle__icon--close {
		height: 24px;
	}
	
	/* Dropdown */
	#header #menu .elementor-nav-menu--dropdown {
		left: 0;
		padding-top: 68px;
	}
	
	
	
	/** Blog Overview **/
	#blog-overview .post:nth-child(even)  {
		margin-top: 0;
	}

	#blog-overview .post:nth-child(odd)  {
		margin-top: 0;
	}

	#blog-overview .post-tile::before,
	#blog-overview .post:nth-child(odd) .post-tile::before {
		left: 50%;
		top: -40px;
		right: auto;
		width: 2px;
		height: 40px;
		transform: translateX(-50%);
	}

	#blog-overview .post-tile::after,
	#blog-overview .post:nth-child(odd) .post-tile::after {
		top: -46px;
		left: 50%;
		transform: translateX(-50%);
	}

	/*** BLOG POST ***/
	
	/* Back button */
	.single-post a.back-button {
		top: -30px;
	}
	
	
	
	/*** FOOTER ***/
	
	/* Footer menu: 2 kolommen */
	#footer nav ul {
		grid-template-columns: repeat(1, auto);
	}
	
}

@media only screen and (max-width: 767px) {

	/* HEADINGS */
	h1 { font-size: 3rem }
	h2 { font-size: 2.5rem }
	h3 { font-size: 2.33rem }
	h4 { font-size: 2rem }
	h5 { font-size: 1.66rem }
	h6 { font-size: 1.5rem }
	
	
	/*** FILTERS ****/
	.album-filters {
		gap: 16px;
	}

	.album-filters__field {
		flex: 1 1 100%;
	}
	
	.hop-select select {
		width: 100%;
	}
	
	
	
	/*** BLOG POST ***/
	#featured-image {
		margin: 0 -16px;
		width: calc(100% + 32px);
		position: relative;
	}

	/* Back button */
	.single-post a.back-button {
		display: none;
	}
	
	
	
	/*** FOOTER ***/
	
	/* Footer menu: 2 kolommen */
	#footer nav ul {
		grid-template-columns: repeat(2, auto);
	}
}