/*
Theme Name: Pageking Flex (child)
Template: pk-theme
Author: Pageking
Author URI: https://www.pageking.nl/
Description: Pageking is een thema voor WordPress dat is ontworpen voor Pageking websites.
Requires at least: 5.9
Tested up to: 6.7.2
Requires PHP: 8.3
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* LAYOUTS */

.pk-page {
    overflow: clip !important;
}

/* SPEED OPTIMIZATIONS */
/* Layout Shift Prevention - CLS Optimization */
img {
  max-width: 100%;
  height: auto;
  /* Preserve aspect ratio to prevent layout shifts */
  aspect-ratio: attr(width) / attr(height);
}

img[width][height] {
  /* Browser calculates aspect-ratio from width/height attributes */
  aspect-ratio: auto;
}

/* Ensure hero images maintain aspect ratio */

.hero-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* DEFAULTS PAGE-CONTENT */

.pk-page-content h1, .pk-page-content h2, .pk-page-content h3, .pk-page-content h4, .pk-page-content h5, .pk-page-content h6 {
  margin-top: 0;
  margin-bottom: max(1rem, calc(1 * var(--su)));
}

.pk-page-content p {
  margin-top: 0;
  margin-bottom: max(1.25rem, calc(1.25 * var(--su)));
}

.pk-page-content p:last-child {
  margin-bottom: 0;
}

.pk-page-content ul, .pk-page-content ol {
  margin-top: 0;
  margin-bottom: max(1.5rem, calc(1.5 * var(--su)));
  padding-left: max(1.1rem, calc(1.1 * var(--su)));
}

.pk-page-content li {
  margin-bottom: max(0.5rem, calc(0.5 * var(--su)));
}

.pk-page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pk-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: max(2rem, calc(2 * var(--su)));
}

.pk-page-content th, .pk-page-content td {
  padding: max(0.75rem, calc(0.75 * var(--su))) max(1rem, calc(1 * var(--su)));
  border: 1px solid #e0e0e0;
  text-align: left;
}

.pk-page-content blockquote {
  margin: max(1.5rem, calc(1.5 * var(--su))) 0;
  padding: max(1rem, calc(1 * var(--su))) max(1.5rem, calc(1.5 * var(--su)));
}

.pk-page-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: max(2rem, calc(2 * var(--su))) 0;
}

/* OPTIONAL, NO MARGIN TOP EXEPT FIRST ROW */
/* .flex-content > .flex-layout:not(:first-child) > .pk-row {
	padding-top: 0;
} */



.swiper-navigation{
    display: flex;
    gap: max(.5rem, calc(.5 * var(--su)));
}

.swiper-navigation button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: max(1.875rem, calc(2 * var(--su)));
    aspect-ratio: 1;
    color: var(--botergeel);
    background-color: var(--knalpaars);
    border-radius: 0;
    border: none;
    transition: opacity 150ms ease-in-out, scale 150ms ease-out;
    cursor: pointer;
}

.swiper-navigation button:active{
    scale: .9;
}

.swiper-navigation button.swiper-button-disabled{
    pointer-events: none;
    opacity: .6;
}

.swiper-navigation button .arrow{
    display: block;
    width: max(1rem, calc(1 * var(--su)));
    aspect-ratio: 1.32;
    background-color: currentColor;
    --mask-url: url("data:image/svg+xml,%3Csvg width='17' height='13' viewBox='0 0 17 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.1375 -5.49012e-05L16.335 6.1912L10.1375 12.3824L8.54621 10.7532L11.9707 7.3287L-3.96125e-05 7.32869L-3.94136e-05 5.05369L11.9707 5.0537L8.54621 1.62919L10.1375 -5.49012e-05Z' fill='%23FFFC9C'/%3E%3C/svg%3E%0A");
    mask: var(--mask-url) no-repeat center / contain;
    -webkit-mask: var(--mask-url) no-repeat center / contain;
}

.swiper-navigation .btn-prev .arrow{
    transform: scaleX(-1);
}

@media screen and (max-width: 1024px) {


}

@media screen and (min-width: 993px) {


}

@media screen and (max-width: 992px) {


}

@media screen and (min-width: 767px) {


}

@media screen and (max-width: 767px) {


}
