/*!
Theme Name: VanPark
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* BLOCK OVERRIDES */
#wrapper {
    background: url(assets/images/pattern-p-green-vanpark.webp) 50% 50vh no-repeat white;
    @media (max-width: 797px) {
        background-size: 900px auto;
    }
    @media (max-width: 1024px) {
        background-repeat: repeat-y;
        background-size: 1200px auto;
    }

    a {
        text-underline-offset: 2px;
        text-decoration-thickness: 1px;
    }

    .wp-block-list {
        /* list-style-type: none; */
        list-style-image: none;
        padding-left: 24px;
        /* li {
            &:before {
                content: '> ';
                margin: 0 0 0 -15px;
                @media (min-width: 991px) {
                    margin: 0 0 0 -17px;
                }
                @media (min-width: 1024px) {
                    margin: 0 0 0 -18px;
                }
            }
        } */
    }
}

body:not(.home) {
    #wrapper {
        background-position: 50% 30vh;
    }
    /* &.header-image-hidden {
        #wrapper {background-position: 50% 30vh;}
    } */
}

/* GLOBAL STYLES */
body:not(.home) {
    h1 {
        text-wrap: balance;
    }
}

.is-style-h1 {
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    @media (min-width: 991px) {
            font-size: 40px;
    }
    @media (min-width: 1024px) {
            font-size: 50px;
    }
    :is(h1,h2,h3,h4,h5,h6) {font-size: inherit;}
}

.is-style-h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    @media (min-width: 991px) {
            font-size: 30px;
    }
    @media (min-width: 1024px) {
            font-size: 40px;
    }
    :is(h1,h2,h3,h4,h5,h6) {font-size: inherit;}
}

.is-style-h3 {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    @media (min-width: 991px) {
            font-size: 22px;
    }
    @media (min-width: 1024px) {
            font-size: 30px;
    }
    :is(h1,h2,h3,h4,h5,h6) {font-size: inherit;}
}

.is-style-h4 {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    @media (min-width: 991px) {
            font-size: 22px;
    }
    @media (min-width: 1024px) {
            font-size: 24px;
    }
    :is(h1,h2,h3,h4,h5,h6) {font-size: inherit;}
}

.kb-nav-link-content {
    .link-media-container {
        background: var(--global-palette7, #7fc461);
        border-radius: 50%;
        margin-left: 10px;
    }
}

.is-style-lead {
    font-size: 16px;
    @media (min-width: 767px) {
        font-size: 20px;
    }
    @media (min-width: 1024px) {
        font-size: 24px;
    }

}

.is-style-split-content {
    .wp-block-kadence-column {
        &:first-child {
            &:has(.wp-block-kadence-image) {        
                .kt-inside-inner-col {
                    background-image: linear-gradient(270deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                    @media (max-width: 1024px) {
                        background-image: linear-gradient(0deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                    }
                }
            }
        }
        &:last-child {
            &:has(.wp-block-kadence-image) {   
                .kt-inside-inner-col {
                    background-image: linear-gradient(90deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                    @media (max-width: 1024px) {
                        background-image: linear-gradient(0deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                    }
                }
            }    
        }
    }
}

.kb-row-layout-wrap  {
    &.is-style-narrow {
        max-width: var(--global-content-narrow-width);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Navigation */
#primary-menu {
    li {
        &.current-menu-item {
            a {
                text-decoration: underline;
                text-decoration-thickness: 1px;
            }
        }
    }
}

/* Breadcrumb */
#breadcrumb {
    a {
        text-decoration: none;
        font-weight: bold;
    }
}

/* Blog */

.blog {
    #primary {
        margin-top: 0;
        #archive-container {
            gap: 1rem;
        }
    }
}

:is(.blog, .wp-block-kadence-query) {
    :is(.custom-archive-loop-item, .kb-query-item) {
        container: split-content / inline-size;
        &:nth-child(even),
        &.even {
            &:has(.vanpark-split-content) {
                .content-wrapper {
                    grid-auto-flow: dense;
                    direction: rtl;
                    .image:not(:has(.circle)) {
                        @container split-content (width < 767px) {
                            margin-left: calc(var(--global-content-edge-padding) * -1);
                            margin-right: 0;
                        }
                        @media(min-width: 1300px) {
                            margin-right: calc(var(--global-content-edge-padding) * -1);
                            margin-left: 0;
                        }
                        @media(min-width: 1400px) {
                            margin-right: -60px;
                            margin-left: 0;
                        }
                        background-image: linear-gradient(0deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                        @container split-content (width > 767px) {
                            background-image: linear-gradient(90deg, var(--global-palette9) 50%, rgba(255, 255, 255, 0) 50%);
                        }
                        img {
                            border-top-left-radius: 0px;
                            border-top-right-radius: 999px;
                            border-bottom-right-radius: 999px;
                            border-bottom-left-radius: 0px;
                        }
                    }
                }
            }
        }
        .details {
            p {
                margin-block-start: 1em;
                margin-block-end: 1em;
                margin-inline-start: 0px;
                margin-inline-end: 0px;
            }
        }
    }
}

.custom-archive-loop-item {
    .wp-block-kadence-column {
        &:first-child {
            &:has(.wp-block-kadence-image) {
                @media (min-width: 1024px) {
                    margin-left: calc(var(--global-content-edge-padding) * -1);
                    margin-right: 0;
                }
                @media(min-width: 1400px) {
                    margin-left: -60px;
                }
                .kt-inside-inner-col {
                    @media (min-width: 1024px) {
                        background-image: linear-gradient(270deg, var(--global-palette9) #ffffff 50%, rgba(255, 255, 255, 0) 50%);
                    }
                }
            }
        }
    }
    &:nth-child(even) {
        .wp-block-kadence-column {
            &:first-child {
                &:has(.wp-block-kadence-image) {
                    @media (min-width: 1024px) {
                        margin-right: calc(var(--global-content-edge-padding) * -1);
                        margin-left: 0;
                    }
                    @media(min-width: 1400px) {
                        margin-right: -60px;
                    }
                }
            }
        }
    }
    &:nth-child(even) {
        .wp-block-kadence-column {
            .wp-block-kadence-image {
                img {
                    @media(max-width: 1023px) {
                        margin-right: calc(var(--global-content-edge-padding) * -1);
                    }
                }
            }
            &:first-child {
                @media (min-width: 1024px) {
                    order: 10;
                }
                &:has(.wp-block-kadence-image) {
                    .kt-inside-inner-col {
                        @media (min-width: 1024px) {
                            background-image: linear-gradient(90deg, #ffffff 50%, rgba(255, 255, 255, 0) 50%);
                        }
                        img {
                            border-top-left-radius: 0px;
                            border-top-right-radius: 999px;
                            border-bottom-right-radius: 999px;
                            border-bottom-left-radius: 0px;
                            @media(max-width: 1023px) {
                                margin-left: calc(var(--global-content-edge-padding) * -1);
                            }
                        }
                    }
                }
            }
        }
    }
}

.pagination {
    .nav-links {
        display: flex;
        gap: 16px;
        .page-numbers {
            margin: 0;
            border-radius: 50%;
            background: transparent;
            border: 2px solid var(--global-palette3, #1A202C);
            color: var(--global-palette3, #1A202C);
            font-size: 30px;
            font-weight: bold;
            line-height: calc(54px - 2px);
            min-width: 54px;
            &.current {
                border: 2px solid var(--global-palette7, #7fc461);
                background: var(--global-palette7, #7fc461);
                color: white;
            }
            &:not(.current) {
                &:hover {
                    background: var(--global-palette3, #1A202C);
                    color: white;
                }
            }
        }
    }
}

/* FOOTER */
footer {
    a {
        text-decoration-thickness: 1px;
    }
}

#footer-navigation {
    a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        &:hover {
            text-decoration: none;
        }
    }
}

.aurora {
  /* Stacking multiple radial gradients for a diffused, glowing effect */
  background: radial-gradient(circle at 20% 20%, #ff00cc, transparent 40%),
              radial-gradient(circle at 80% 30%, #00f0ff, transparent 40%),
              radial-gradient(circle at 50% 80%, #ffea00, transparent 40%);
  background-color: #05010f;
  /* Use animation to shift the gradients for a mesmerizing loop */
  background-size: 200% 200%;
  animation: aurora 12s linear infinite;
}

@keyframes aurora {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

