/*
Theme Name: Ministerie van de Toekomst
Theme URI: 
Author: De Design Politie
Author URI: 
Description: Custom theme voor ministerie van de toekomst
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ministerie-van-de-toekomst
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
:root {
  interpolate-size: allow-keywords;
}


a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}
:where(.wp-site-blocks *:focus) {
	opacity:0.6;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.agenda-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 20px;
}

.agenda-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
}

.agenda-image img {
	aspect-ratio:1/1;
	object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
/* visual styling of mailchimp input form */
.mc_form_inside {
    margin:10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc_signup_submit {
  margin-left:10px;
}
.mc_form_inside #mc_message {
    margin-right:0px!important;
}

.mc_container h2 {
  margin-top:0;
  margin-bottom:0;
  text-align:center;
  color:#fff;
}
.mc_container h3 {
  font-family: var(--wp--preset--font-family--roboto);
  color:#fff;
  font-size:1em;
  text-transform: none;
  line-height:1.1;
  font-weight: 400;
  text-align:center;
}
#mc_mv_EMAIL {
    min-width: 300px;
    max-width:80%;
    height:30px;
    border:none;
    font-family: var(--wp--preset--font-family--roboto);
    font-weight:bold;
}
#mc_mv_EMAIL:focus {
    opacity: 1;
}
#mc_signup_submit {
    font-family: var(--wp--preset--font-family--barlow-condensed), sans-serif;
    text-transform:uppercase;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 9px 20px;
    cursor: pointer;
}
.mc_var_label {
    display:none;
}
#mc_signup_submit:hover {
    background-color: #fff;
    color: #000;
}
.mc_custom_border_hdr {
    font-family: var(--wp--preset--font-family--barlow-condensed), sans-serif;
    text-transform:uppercase;
    font-weight: bold;
}
#mc_subheader {
    max-width:400px;
    margin:0 auto 0 auto;
}
.mc_custom_border_hdr {
    font-family: var(--wp--preset--font-family--barlow-condensed), sans-serif;
    text-transform:uppercase;
    font-weight: bold;
}
#mc_signup {
  margin:0 auto 0 auto;
}


.is-masonry {
    position: relative; /* needed for Masonry */
    min-height: 200px;
    width:100%;
    margin:0;
  }
  .is-masonry > .wp-block-post {
    width:calc(33.3% - 20px);
    min-width:20%;
    margin-left: 1rem;
    margin-bottom: 1rem;
  }

  .ministers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .minister-card {
    transition:cubic-bezier(0.6, -0.28, 0.735, 0.045) 0.3s;
    padding:10px;
    text-align: center;
    fill:var(--wp--preset--color--base);
  }
  
  .minister-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    height: auto;
  }
  
  .minister-card h3, .minister-card h5 {
    margin-top: 0.5rem;
    margin-bottom:0;
  }
  .minister-card p {
    margin: 3px 0 3px 0;
    color:var(--wp--preset--color--base);
  }
  .minister-card:hover {
    transform: translateY(-10px);
    background-color:var(--wp--preset--color--base);
    color:#fff;
  }
  .minister-card:hover *  {
    color:#fff;
    fill:#fff;
  }


  @media (max-width: 1000px) {
    .masonry-item {
      width: 46%;
    }
    .ministers-grid { 
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 768px) {
    .masonry-item {
      width: 47%;
    }
    .ministers-grid { 
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 480px) {
    .masonry-item {
      width: 100%;
    }
    .ministers-grid { 
      grid-template-columns: repeat(1, 1fr);
    }
  }

.minister-submission-form input {
	padding: 8px;
 	border: 1px solid #ccc;
 	border-radius: 0;	
}
.minister-submission-form button {
	padding:10px 20px;
	color: white;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	background-color: #000;
	border: 0px;
 	border-radius: 0;
	font-size:25px;
	text-transform: uppercase;
}
.minister-submission-form button:hover {
	opacity:0.7;	
	cursor: pointer;
}
/* accordion styling */
/* Base styles */
details {
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  color:#ffffff;
}

/* Styling the summary */
summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  transition: transform 0.3s ease;
	padding: 10px 10px 10px 10px;

}

/* Hover effect for summary */
details:hover {
	opacity:0.85;
}

/* Opened accordion details */
details[open] {
  background-color: #f9f9f9;
}

/* Paragraph inside details */
details p {
  margin: 10px 0 0;
}

/* Add arrow before summary */
summary::before {
  content: "\25B6"; /* Right-pointing arrow */
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

/* Rotate arrow when details is open */
details[open] summary::before {
  transform: rotate(90deg);
}
/* This won't work yet */
details::details-content {
  overflow: hidden;
  height: 0;
  /* Enable transitioning of `content-visibility` */
  transition: height 0.3s, content-visibility 0.3s;  
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  height: auto;
}

.donation-mollie input[type=text], .donation-mollie input[type=email], .donation-mollie input[type=number], .donation-mollie input[type=password], .donation-mollie textarea {
  width: 100%;
  padding: 12px 12px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}
.donation-mollie input[type=text]:focus {
  border: 3px solid #555;
}
.donation-mollie select {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 4px;
  background-color: #f1f1f1;
}
.donation-mollie input[type=submit] {
  margin-top:20px;
  background-color: #000;
  color: white;
  padding: 20px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size:25px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
}
.donation-mollie input[type=submit]:hover {
  background-color: #555;
}