/*
 Theme Name:   LMPR (GeneratePress Child Theme)
 Theme URI:    https://lamper-design.nl
 Description:  GeneratePress child theme
 Author:       Team Lamper Design
 Author URI:   https://lamper-design.nl
 Template:     generatepress
 Version:      0.1
*/


/* @font-face {
	font-display: swap;
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/dm-sans-v15-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 500;
	src: url('assets/fonts/dm-sans-v15-latin-500.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 700;
	src: url('assets/fonts/dm-sans-v15-latin-700.woff2') format('woff2');
} */

/* Globals */

:root {
    --sitewidth: 1320px;
    --narrow-content: 78ch;
    --container-padding: 1rem;
    --border-radius: .3rem;
    --border-radius-small: .25rem;
    --max-text-width: 85ch;
    interpolate-size: allow-keywords;
}

@media (width >= 769px) {

    :root {
        --container-padding: 2.5rem;
    }

}

::selection {
    color: var(--text-base);
    background-color: var(--accent);
}

html {
    overflow-x: clip;
}

html.mobile-menu-open.slide-opened, 
html:has(.facetwp-flyout.active) {
    overflow: clip;
}

@media (prefers-reduced-motion: no-preference) {

    html {
        scroll-behavior: smooth;
    }

    @view-transition {
        navigation: auto;
    }

}

h1, h2, h3, h4, h5, h6, .h1-style, .h2-style, .h3-style, .h4-style {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

:is(h1,h2,h3,h4,h5,h6) a {
    text-decoration: none;
}

:is(h1,h2,h3,h4,h5,h6) a:hover {
    text-decoration: underline;
}

p,
li:not(.comment),
figcaption {
    text-wrap: pretty;
    /*max-width: 85ch;*/
}

a {
    text-underline-offset: .125em;
}

ul, ol {
	margin-left: 1.5em;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--accent);
}

a:not([href]) {
    cursor: pointer;
}

.container-padding {
    padding-inline: var(--container-padding);
}

.entry-content p+:is(h2,h3,h4) {
    margin-top: .75em;
}

.entry-content > figure:not(.wp-block-gallery) img {
    margin-bottom: 1.5rem;
}

.wp-block-gallery {
    margin-block: 1.25rem;
}

.wp-block-gallery img {
    transition: opacity 250ms ease-in-out;
}

.wp-block-gallery img:hover {
    opacity: .8;
}

.entry-content ol li::marker {
    font-weight: 600;
}

.entry-content .wp-block-embed {
    margin-block: 1.5em;
}

.gb-container p:last-child:last-of-type {
    margin-bottom: 0;
}

figcaption {
	margin-top: .375rem;
	font-weight: 500;
    text-align: center;
}

.list-nostyle {
	list-style-type: '';
	margin: 0;
}

.list-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}

.list-checkmark {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.list-checkmark li {
    display: flex;
    gap: .75rem;
    padding: .25rem 0;
}

.list-checkmark li::before {
    content: '';
    flex-shrink: 0;
    display: block;
    background-color: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") no-repeat 50% 50% / 1rem;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") no-repeat 50% 50% / 1rem;
    width: 1rem;
    height: 1rem;
    margin-top: .35rem;
}

.scroll-offset,
[id] {
    scroll-margin-top: 2rem;
}

.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-5 {
    -webkit-line-clamp: 5;
}

.featured-image img, .inside-article img {
    border-radius:var(--border-radius);
}

p a,
li > a {
    text-decoration: underline;
}

p a:hover,
li > a:hover {
    text-decoration: none;
}

/* Home */

.blog-grid .blog-grid-image {
    object-fit: cover;
}

.blog-grid .blog-grid-title {
    height: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-grid .blog-grid-text {
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.inside-article .blog-grid-featured a,
.inside-article .blog-grid a.gb-loop-item {
    text-decoration: none;
    color: var(--contrast);
}

.inside-article .blog-grid-featured a:hover h1,
.inside-article .blog-grid a.gb-loop-item:hover h2 {
    text-decoration: underline;
}

/* Sidebar */

.inside-right-sidebar .gb-loop-item:first-of-type {
    padding-top: 0px;
}

.inside-right-sidebar .gb-loop-item:last-of-type {
    padding-bottom: 0px;
    border-bottom: none;
}

/* Archive */

.archive .site-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 40px;
    padding: 0px 32px 0px 32px;
}

.archive .site-main > header,
.archive .site-main > nav {
    grid-column: 1 / -1;
    padding-inline: 0px;
}

@media only screen and (max-width:1024px) {
    .archive .site-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width:767px) {
    .archive .site-main {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        padding: 0px 16px 0px 16px;
    }
}

.archive .blog-grid-image {
    object-fit: cover;
    border-radius: var(--border-radius);
}

.archive .site-main article.post a {
    text-decoration: none;
    color: var(--contrast);
}

.archive .site-main article.post a:hover h2 {
    text-decoration: underline;
}

.archive .site-main article.post a h2 {
    height: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.archive .site-main article.post a .blog-grid-text {
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.archive .site-main article.post {
    margin-bottom: 0px;
}

.archive .page-numbers svg {
    width: 17px;
    height: 17px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-links .page-numbers {
    color: var(--text-base) !important;
    border-radius: 100vw;
    text-decoration: none;
    display: grid;
    place-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    transition: all 0.2s;
    transition-duration: 0.2s;
    font-weight: 400 !important;
    border: 1px solid var(--contrast);
}

.nav-links .page-numbers.next:hover,
.nav-links .page-numbers.prev:hover {
    fill: var(--base-3)
}

.nav-links .page-numbers.next span:last-child,
.nav-links .page-numbers.prev span:last-child {
    height: 30px;
}

.nav-links .page-numbers:not(.current, .dots):is(:hover,:focus-visible) {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--base-3) !important;
}

.nav-links .page-numbers.current {
    background-color: var(--accent);
    color: var(--base-3) !important;
    border: 0px;
}

.nav-links .page-numbers svg {
    width: 1rem;
    vertical-align: sub;
}

.nav-links .page-numbers.prev svg {
    transform: rotate(180deg);
}

@media only screen and (max-width:767px) {
    .nav-links .page-numbers {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Single blog */

.wp-block-button .wp-block-button__link:hover {
    color: var(--base-3);
    text-decoration: none;
}

/* Footer */

.site-footer ul {
    list-style-type: "";
    margin: 0px;
}

/* Contact */

.gform-body .ginput_container input,
.gform-body .ginput_container textarea {
    border: 1px solid var(--contrast); 
    border-radius: var(--border-radius);
    background-color: var(--base-3);
}

.gform-footer .gform_button {
    margin-bottom: 0px;
    background-color: var(--accent);
    border-radius: var(--border-radius);
}

.gform-footer .gform_button:hover {
    text-decoration: underline;
}