/*
Theme Name: ErfgoedPamflet-thema
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: De Amsterdams Mediafabriek
Author URI: https://deamsterdamsemediafabriek.nl/
Description: ErfgoedPamflet-thema is a child-theme made from the Twenty Twenty-Five theme developed for the erfgoedpamflet from kunsten92.
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
Version: 1.4
Updated: 2025-12-02 10:18:34

*/

/* =========================================================
   Accessibility
   ========================================================= */
:where(.wp-site-blocks *:focus), .wp-block-navigation a:focus,
.wp-block-navigation button:focus {
    outline: none !important;
    outline-offset: 2px;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: .1em;
}


/* =========================================================
   block arrow emoji on ios, use text
   ========================================================= */
summary::-webkit-details-marker {
    display: none;
}
summary {
    display:flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5em;
}

summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid currentColor;
    transform: translateY(-50%);
    transition: transform 0.4s ease;
	flex-shrink: 0;
	margin-top: 0.1em;
}

details[open] summary::before {
    transform: rotate(180deg);
}

/* header nav */
.has-modal-open .is-menu-open .wp-block-navigation__responsive-dialog {
    margin-top: 46px !important;
    margin-right: 20px !important;
}

/* marges mobile */
@media (max-width: 781px) {
	/* 	marges intro text home */
	.intro-tekst > *{
		margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important;
	}
	main > div > div > *{
		max-width: 100vw !important;
	}
	.wp-block-group:has(.search-filter-results){
		padding-left:3.5vw !important;
		padding-right:3.5vw !important;
	}
	/* marges footer logo images	 */
	footer img {
    width: 250px !important;
}
}
/* marges xl screens */
@media (min-width: 1920px) {
	/* 	marges intro text home */
	.intro-tekst > *{
        max-width: 50vw !important;
	}
	.wp-block-childtheme-newest-per-category{
        max-width: 50vw !important;
	}
	main > div > div > *{
		max-width: 50vw !important;
	}
	.wp-block-group:has(.search-filter-results){
		padding-left:12vw !important;
		padding-right:12vw !important;
	}
	footer > div{
		padding-left:25% !important;
		padding-right:25% !important;
	}
}

/* =========================================================
   Footer: half-height gradient + mobile column order
   ========================================================= */

/* Base holder */
.footer-gradient-bottom {
    position: relative;
    overflow: hidden;
    z-index: 0; /* create stacking context so ::after with z-index:-1 goes behind */
}

/* Bottom-half gradient overlay, behind content */
.footer-gradient-bottom.is-style-footer-multicolor::after {
    content: "";
    position: absolute;
    inset: 50% 0 0 0; /* top=50%, right=0, bottom=0, left=0 */
    background: var(--wp--preset--gradient--footer-multicolor);
    z-index: -1;
    pointer-events: none;
}

/* Remove the full-height gradient background WP applies */
.footer-gradient-bottom.has-footer-multicolor-gradient-background {
    background: none !important;
}
/* zwevend blok op footer "wat is erfgoed" */
.blok_erfgoed_uitleg_footer{
	box-shadow: 6px 11px 24px rgba(0, 0, 0, 0.11);
}

@media (max-width: 781px) {
	footer > div{
		padding-left:7% !important;
		padding-right:7% !important;
	}
	footer .rij-maker-credit{
		justify-content: center !important;
	}
	/* 	reverse stacking order on mobile, keep white block overlapping the gradient */
    .footer-columns-mobile-reverse {
        flex-direction: column-reverse;
    }
}

@media (min-width: 781px){
	/* Dropdown styling navigatie footer */
	footer .wp-block-navigation-submenu{
		color: var(--wp--preset--color--base, #ffffff) !important;
		background: none !important;
		border: none !important;
	}
	/* Witruimte voor de dropdown items	 */
	footer .wp-block-navigation-submenu a{
		padding: .5em 0 !important;
	}
	/* Alleen items in de dropdown dikker maken en niet de rest ook	 */
	footer 	.wp-block-navigation__submenu-container a{
		font-weight: 500;
	}
	
}

/* =========================================================
   Home block: "Newest per category (1+3)" (custom block)
   Uses --category-accent set inline on each <article> in PHP
   ========================================================= */
@media (max-width: 600px) {
.wp-block-childtheme-newest-per-category{
	max-width: none !important;
}
}
.wp-block-childtheme-newest-per-category .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--style--block-gap, 1.5rem);
}

.wp-block-childtheme-newest-per-category .wp-block-post {
    padding: 50px 30px;
    background-color: var(--category-accent, #f5f5f5);
    color: var(--wp--preset--color--base, #ffffff) !important;
}

.wp-block-childtheme-newest-per-category .wp-block-post-title {
    margin: 0;
	color: var(--wp--preset--color--base, #ffffff) !important;
}
.wp-block-childtheme-newest-per-category .wp-block-post-title a {
    color: var(--wp--preset--color--base, #ffffff) !important;
}

.wp-block-childtheme-newest-per-category .wp-block-post-excerpt {
    margin: 1.2rem 0;
}

.wp-block-childtheme-newest-per-category .wp-block-post-excerpt p {
    margin: 0;
}

/* First post: full width */
.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 200px;
}

.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(n+2) {
    min-height: 140px;
	display:flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Hide excerpt on the 3 small posts */
.wp-block-childtheme-newest-per-category
.wp-block-post:nth-child(n+2)
.wp-block-post-excerpt {
    display: none;
}

/* Typography tweaks */
.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(1) .wp-block-post-title {
    font-size: 2rem;
    line-height: 1.2;
}

.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(n+2) .wp-block-post-title {
    font-size: 1.8rem;
}

/* Buttons: scoped only inside this block */  /* Button 1e blok wat meer ruimte */
.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(1) .wp-block-button {
    margin: 1.5em 0 0;
}

/* Buttons op 3 kleine blokken houden zelfde marge */
.wp-block-childtheme-newest-per-category .wp-block-post:nth-child(n+2) .wp-block-button {
    margin: 1em 0 0;
}

/* IMPORTANT: scoped properly (no accidental global styling) */
.wp-block-childtheme-newest-per-category .wp-block-post :is(.wp-element-button, .wp-block-button__link) {
    background-color: var(--wp--preset--color--base, #ffffff);
    border-width: 0;
    border-radius: 44px;
    color: var(--category-accent, #000000);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--normal);
    font-style: inherit;
    font-weight: 600;
    letter-spacing: inherit;
    line-height: inherit;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: inherit;
}

/* Mobile: stack all cards */
@media (max-width: 600px) {
    .wp-block-childtheme-newest-per-category .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .wp-block-childtheme-newest-per-category .wp-block-post:nth-child(1) {
        grid-column: auto;
        min-height: auto;
    }

    .wp-block-childtheme-newest-per-category .wp-block-post:nth-child(n+2) {
        min-height: auto;
    }
}

/* =========================================================
   Archive cards (Search & Filter results ONLY)
   - define --category-accent per category
   - apply accent ONLY to the post title
   - keep "lees-meer" link default blauw
   ========================================================= */

/* Define accent per category */
.wp-block-post-template .has-category-accent.category-europees-parlement {
  --category-accent: var(--wp--preset--color--blauw);
}
.wp-block-post-template .has-category-accent.category-waterschappen {
  --category-accent: var(--wp--preset--color--blauw);
}
.wp-block-post-template .has-category-accent.category-tweede-kamer {
  --category-accent: var(--wp--preset--color--paars);
}
.wp-block-post-template .has-category-accent.category-provinciale-staten {
  --category-accent: var(--wp--preset--color--groen);
}
.wp-block-post-template .has-category-accent.category-gemeenteraad {
  --category-accent: var(--wp--preset--color--rood);
}
.wp-block-post-template .has-category-accent.category-inbreng {
  --category-accent: var(--wp--preset--color--blauw);
}
.wp-block-post-template .has-category-accent.category-kennisdossier {
  --category-accent: var(--wp--preset--color--blauw);
}

/* Apply accent ONLY to title/link — still scoped to archive results */
.search-filter-results .wp-block-post-template .has-category-accent .wp-block-post-title,
.search-filter-results .wp-block-post-template .has-category-accent .wp-block-post-title a {
  color: var(--category-accent);
}

/* Archive: "lees-meer" link should stay blauw (not category accent) */
.search-filter-results .wp-block-post-template .has-category-accent .lees-meer a {
  color: var(--wp--preset--color--blauw);
}

/* =========================================================
   category accent for headings + links
   (Uses --category-accent set on body via functions.php)
   ========================================================= */
/* Single post-page:  */
body.has-category-accent .wp-block-post-content :is(h1,h2,h3,h4,h5,h6) {
    color: var(--category-accent);
}

body.has-category-accent .wp-block-post-content a:where(:not(.wp-element-button)) {
    color: var(--category-accent);
}
/* pages witch posts placed on them: */

body.wp-singular .wp-block-post :is(h1,h2,h3,h4,h5,h6) {
    color: var(--category-accent);
}
body.wp-singular .wp-block-post a:where(:not(.wp-element-button)) {
    color: var(--category-accent);
}
/* search pages:  */
body.search .wp-block-post :is(h1,h2,h3,h4,h5,h6) {
    color: var(--category-accent);
}
body.search .wp-block-post a:where(:not(.wp-element-button)) {
    color: var(--category-accent);
}