/*
	Theme Name: Buurthuis Van der Pek
	Theme URI: 
	Description: Thema voor Buurthuis Van der Pek
	Author: Emile Zeldenrust
	Author URI: https://www.emilezeldenrust.nl/
	Version: 1.0
	Tags: 
*/

* {
    padding: 0px;
    margin: 0px;
}

:root {
	--bg: #fff7e8;
	--tekst: #000;
	--kleur1: #91a2a2;
	--kleur2: #dea65d;
	--kleur3: #678c61;
	--kleur4: #d77558;
}

body {
	position: relative;
	background-color: var(--bg);
	color: var(--tekst);
	font-size: 16px;
	line-height: 1.7;
	font-family: 'Nunito', sans-serif;
}

div {
	display: block;
}

a img {
	border: none;
	outline: none;
}

:focus, a:focus {
    outline: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
	position: fixed;
	width: 100%;
	height: 100vh;
	height: 100lvh; /* Oplossing voor Safari iOS bug */
	top: 0;
	left: 0;
	background-image: url('images/bg.jpg');
	background-size: cover;
	background-position: center center;
	overflow: hidden;
	z-index: -1;
}

/* ==========================================================================
   TEKST
   ========================================================================== */
   
p {
	margin: 0 0 10px 0;
}

p:empty {
	display: none;
}

a, a:visited {
	color: inherit;
	text-decoration: underline;
}

a:hover, a:active, a:focus {
	color: inherit;
	text-decoration: none;
}

h1 {
	font-size: 3.5vw;
	font-weight: bold;
	margin: 0 0 10px 0;
	color: var(--kleur1);
	-webkit-text-fill-color: var(--kleur1); /* Will override color (regardless of order) */
	-webkit-text-stroke: 1px var(--tekst);
}

h1.entry-title {
	position: relative;
	width: fit-content;
	margin-bottom: 2vw;
}

h1.entry-title:after {
	content: "";
	position: absolute;
	display: block;
	width: 100%;
	height: 0.25vw;
	background-color: var(--tekst);
	margin: 0.5vw 0 0 -2vw;
}

h2 {
	font-size: 32px;
	font-weight: bold;
	margin: 0 0 10px 0;
}

h3 {
	font-size: 28px;
	margin: 0 0 10px 0;
}

h4 {
	font-size: 24px;
	margin: 0 0 10px 0;
}

h5 {
	font-size: 20px;
	margin: 0 0 10px 0;
}

h6 {
	font-size: 16px;
	margin: 0 0 10px 0;
}

hr {
	border: none !important;
	height: 0.25vw !important;
	background-color: var(--tekst);
	margin: 0 0 36px 0;
	width: 100%;
	opacity: 1;
}

.entry-content i {
	font-size: 40px;
	margin: 0 10px 0 0;
}

/* ==========================================================================
   ALIGNMENT
   ========================================================================== */

div.spacer {
	width: 100%;
	clear: both;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

#content {
	max-width: 1200px;
	padding-top: 10vh;
	padding-bottom: 10vh;
	min-height: 100dvh;
}

.main-col {
	background-color: var(--bg);
	padding: 2vw;
	border: 0.25vw solid var(--tekst);
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-block-columns {
	gap: 2vw;
	margin-bottom: 2vw;
}

/* YOUTUBE */

.wp-block-embed-youtube, .wp-block-embed-vimeo {
	display: inline-block;
	width: 100%;
	margin: 0 0 10px 0 !important;
}

.wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	width: 100%;
	overflow: hidden;
}

.wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   PROGRAMMA
   ========================================================================== */

.programma {
}

.datum {
	font-weight: bold;
	font-size: 28px;
	padding-left: calc(1vw + 130px);
	color: var(--kleur4);
}

.datum:first-letter {
	text-transform: uppercase;
}

.agenda-item + .datum {
	margin-top: 40px;
}

.agenda-item {
	margin: 0 -2vw;
}

.agenda-item > a {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	text-decoration: none;
	color: var(--tekst);
	padding: 0.8vw 3vw 0.7vw 3vw;
	-webkit-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
}

.agenda-item:nth-of-type(2n) > a {
	background-color: rgba(145, 162, 162, 0.2);
}

.agenda-item.maandelijks > a {
	background-color: rgba(103, 140, 97, 0.2);
}

.agenda-item.eenmalig > a {
	background-color: rgba(215, 117, 88, 0.2);
}

.agenda-item > a:hover, .agenda-item > a[aria-expanded="true"] {
	background-color: rgba(145, 162, 162, 0.4);
}

.agenda-item.maandelijks > a:hover, .agenda-item.maandelijks > a[aria-expanded="true"] {
	background-color: rgba(103, 140, 97, 0.4);
}

.agenda-item.eenmalig > a:hover, .agenda-item.eenmalig > a[aria-expanded="true"] {
	background-color: rgba(215, 117, 88, 0.4);
}

.agenda-item .tijd {
	width: 130px;
	font-size: 13px;
	margin-bottom: -22px;
}

.agenda-item .tijd span {
	font-size: 30px;
	font-weight: bold;
	line-height: 1;
}

.agenda-item .titel {
	width: calc(100% - 410px);
	align-self: flex-start;
	margin-top: 2px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: bold;
	color: var(--tekst);
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.agenda-item .kosten {
	width: 280px;
	align-self: flex-end;
}

.agenda-item .info {
	width: 100%;
	padding-left: 130px;
	font-weight: bold;
	opacity: 0.7;
}

.agenda-item .uitklap {
	padding: 0 1vw 0.7vw calc(130px + 3vw);
	background-color: rgba(145, 162, 162, 0.4);
}

.agenda-item.maandelijks .uitklap {
	background-color: rgba(103, 140, 97, 0.4);
}

.agenda-item.eenmalig .uitklap {
	background-color: rgba(215, 117, 88, 0.4);
}

.agenda-item .uitklap p {
	margin-bottom: 0;
}

.agenda-item .uitklap .organisatie {
	font-weight: bold;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

body.page-id-12 {
	overflow: hidden;
	height: 100vh;
	height: 100dvh; /* Oplossing voor Safari iOS bug */
}

.page-id-12 #content {
	height: 100%;
	max-width: none;
	padding: 0;
}

.page-id-12 div[class^="home-"] {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 10px;
	background-color: var(--bg);
	border: 0.25vw solid var(--tekst);
	overflow: hidden;
	animation: infaden 2s linear 2s 1 both;
}

@keyframes infaden {
	  0% {opacity: 0;}
	100% {opacity: 1;}
}

.page-id-12 h2 {
	font-size: 4vh;
	color: var(--kleur1);
	-webkit-text-fill-color: var(--kleur1); /* Will override color (regardless of order) */
	-webkit-text-stroke: 1px var(--tekst);
	margin: 0 0 0.5vh 0;
}

a.homeknop {
	position: absolute;
	right: 0;
	bottom: 0;
	width: auto;
	height: auto;
	padding: 0.8vh 1.2vh;
	background-color: var(--bg);
	color: var(--tekst);
	font-size: 2vh;
	font-weight: bold;
	text-decoration: none;
	border-top: 0.25vw solid var(--tekst);
	border-left: 0.25vw solid var(--tekst);
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

a.homeknop:hover {
	background-color: var(--kleur1);
	color: var(--bg);
}

a.homeknop i {
	vertical-align: -0.05vh;
}

.page-id-12 .home-binnenkort {
	width: 20%;
	height: 85%;
	top: 10%;
	left: 8%;
}

.page-id-12 .datum {
	font-size: 1.3vw;
	text-align: right;
	padding-left: 0;
}

.page-id-12 .agenda-item + .datum {
	margin-top: 0;
}

.page-id-12 .agenda-item {
	margin: 0 -10px;
}

.page-id-12 .agenda-item > a {
	padding: 0.5vw;
	align-items: flex-start;
}

.page-id-12 .agenda-item .tijd {
	width: 25%;
	font-size: 0.8vw;
	margin-bottom: 0;
}

.page-id-12 .agenda-item .tijd span {
	font-size: 1.1vw;
}

.page-id-12 .agenda-item .titel {
	width: 75%;
	font-size: 1.1vw;
	margin-top: 0;
}

.page-id-12 .home-nieuws {
	width: 20%;
	height: 60%;
	top: 33%;
	left: 30%;
}

.page-id-12 div.home-logo {
	width: auto;
	height: calc(20% - 2vw);
	top: 13%;
	left: 30%;
	max-width: 52%;
	animation: invliegen 1s ease-out 1s 1 both;
}

@keyframes invliegen {
	  0% {left: 100%;}
	100% {left: 30%;}
}

.page-id-12 .home-logo img {
	height: 100%;
	width: auto;
	object-fit: contain;
	aspect-ratio: 1200 / 168;
}

.page-id-12 .home-fotos {
	width: 40%;
	height: 50%;
	top: 33%;
	left: 52%;
}

.page-id-12 footer {
	display: none;
}

/* ==========================================================================
   UNDER CONSTRUCTION
   ========================================================================== */

.page-id-27 .navbar, .page-id-27 footer, .page-id-27 h1.entry-title {
	display: none;
}

.page-id-27 header {
	background-image: url('images/bg-uc.jpg');
}

.page-id-27 #content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
	height: 100dvh; /* Oplossing voor Safari iOS bug */
}

.page-id-27 .main-col {
	background-color: transparent;
	border: none;
}

.page-id-27 .entry-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.page-id-27 .entry-content p {
	background-color: rgba(0, 0, 0, 0.8);
	padding: 0 10px;
	margin: 0;
}

.page-id-27 .entry-content a {
	color: #fff;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.wp-block-buttons div.wp-block-button {
	margin: 0 0 20px 0;
}

a.wp-block-button__link, a.wp-block-button__link:visited {
	background-color: var(--tekst);
	border: 3px solid var(--tekst);
	-webkit-border-radius: 0;
	border-radius: 0;
	color: var(--bg);
	font-size: 16px;
	padding: 10px 20px;
	text-decoration: none;
	line-height: normal;
	font-family: inherit;
	font-weight: bold;
	text-transform: none;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

a.wp-block-button__link:hover, a.wp-block-button__link:active, a.wp-block-button__link:focus {
	background-color: var(--kleur1) !important;
	color: var(--tekst) !important;
}

/* ==========================================================================
   GALERIJ
   ========================================================================== */

.entry-content .wp-block-gallery {
	width: auto;
	margin: 0 -2vw 2vw -2vw;
	gap: 10px !important;
	flex-wrap: nowrap;
	overflow: hidden;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 0 0 10px 0 !important;
	width: auto !important;
	height: 240px;
	display: block !important;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: 240px;
	width: auto;
	max-width: none !important;
}

.entry-content .wp-block-gallery figure.wp-block-image:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	margin: 0;
	transition: all 0.5s;
	opacity: 0;
	background: rgba(255,255,255,1.00);
	-webkit-box-shadow: inset 0 0 100px 20px #000;
	box-shadow: inset 0 0 100px 20px #000;
	pointer-events: none;
}

.entry-content .wp-block-gallery figure.wp-block-image:hover:before {
	opacity: 0.4;
}

.entry-content .wp-block-gallery figure.wp-block-image figcaption {
	display: none !important;
}

/* ==========================================================================
	NIVO-LIGHTBOX
	========================================================================== */

body .nivo-lightbox-theme-default .nivo-lightbox-prev {
	top: 0;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square' stroke-linejoin='arcs'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
	background-size: contain;
	width: 70px;
	max-width: 8vw;
}

body .nivo-lightbox-theme-default .nivo-lightbox-next {
	top: 0;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square' stroke-linejoin='arcs'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
	background-size: contain;
	width: 70px;
	max-width: 8vw;
}

body .nivo-lightbox-theme-default .nivo-lightbox-close {
	width: 25px;
	height: 25px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square' stroke-linejoin='arcs'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
	background-size: contain;
	background-position: center center;
}

body .nivo-lightbox-theme-default.nivo-lightbox-overlay {
	background: #000;
	z-index: 12;
}

body .nivo-lightbox-wrap {
	top: 10px;
	bottom: 26px;
}

body .nivo-lightbox-theme-default .nivo-lightbox-title-wrap {
	bottom: -26px;
	height: 26px;
}

body .nivo-lightbox-theme-default .nivo-lightbox-title {
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	text-transform: none;
	padding: 5px;
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
	CONTACTFORMULIER
	========================================================================== */

.wpcf7-form label {
	width: 100%;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.6;
	margin-bottom: 0;
}

.wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 10px;
}

.wpcf7-form-control {
	width: 100%;
	height: auto;
	padding: 10px;
	border: 2px solid #000;
	display: block;
	font-size: 13px;
	line-height: 1;
	color: #000;
	background: rgba(255, 255, 255, 0.5);
	-webkit-border-radius: 0;
	border-radius: 0;
}

.wpcf7-form-control:focus {
	background: #fff;
	color: #000;
	border-color: #d51317;
	box-shadow: none;
}

input[type=button], input[type=submit], input[type=text], input[type=email], textarea {
	-webkit-appearance: none; /*Safari/Chrome*/
	-moz-appearance: none; /*Firefox*/
	-ms-appearance: none; /*IE*/
	-o-appearance: none; /*Opera*/
	appearance: none;
}

input.wpcf7-submit {
	width: 160px;
	margin: 10px 0;
	padding: 0 20px;
	color: #fff !important;
	background-color: #000;
	border: none;
	font-size: 14px;
	line-height: 44px;
	text-decoration: none;
	font-weight: normal;
	-webkit-border-radius: 0;
	border-radius: 0;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

input.wpcf7-submit:hover, input.wpcf7-submit:focus {
	background-color: #fff !important;
	color: #000 !important;
	border: none;
}

.wpcf7-response-output {
	clear: both;
	text-align: center;
	padding: 30px !important;
}

form.sent > div.row, form.sent > p, form.sent > h3 {
	display: none;
}

/* PLACEHOLDERS */
::-webkit-input-placeholder { /* WebKit browsers */
	 color: #999 !important;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
	 color: #999 !important;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
	 color: #999 !important;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
	 color: #999 !important;
}

/* SWITCH */
.form-switch {
	padding-left: 1.5em;
}
.form-switch .wpcf7-acceptance {
	border: none;
	background-color: transparent;
}
.form-switch .form-check-input {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
	font-size: 18px;
	margin-top: 1px;
	background-color: #d32f2f;
	border-color: white;
}
.form-switch .form-check-input:focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
	box-shadow: none;
}
.form-switch .form-check-input:checked {
	background-color: green;
	border-color: white;
}

.wpcf7-form.sent .form-switch {
	display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

body > footer {
	text-align: center;
	margin-top: -17px;
}

body > footer p {
	font-size: 10px;
	margin: 0;
}