/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* copied from /wp-content/themes/blocksy/static/bundle/sidebar.min.css?ver=1.8.69 */
/* changed min-width:1000px to 834px; max-width:999.98px to 833.98px */
@media (min-width: 834px) {
    [data-sidebar="right"] {
        --grid-template-columns: minmax(100px, 1fr) var(--sidebar-width, 27%);
    }

    [data-sidebar="left"] {
        --sidebar-order: -1;
        --grid-template-columns: var(--sidebar-width, 27%) minmax(100px, 1fr);
    }

    [data-sidebar="left"]>section {
        grid-column: 2;
    }
}

@media (min-width: 834px) {
    .ct-sidebar[data-sticky="widgets"] {
        height: 100%;
    }
}

@media (max-width: 833.98px) {
    aside[data-type="type-4"] .ct-sidebar {
        padding: var(--sidebar-inner-spacing, 35px);
        background: var(--sidebar-background-color, var(--paletteColor8));
    }
}

@media (min-width: 834px) {

    aside[data-type="type-3"],
    aside[data-type="type-4"] {
        position: relative;
    }

    aside[data-type="type-3"]:after,
    aside[data-type="type-4"]:after {
        position: absolute;
        content: "";
        top: var(--sidebar-helper-top, 0);
        height: var(--sidebar-helper-height, 100%);
    }

    aside[data-type="type-3"]:after {
        border-right: var(--border);
    }

    aside[data-type="type-4"]:after {
        background: var(--sidebar-background-color, var(--paletteColor8));
        width: calc((100% + (max(100vw - var(--frame-size, 0px) * 2 - var(--normal-container-max-width),
                            10vw) - var(--scrollbar-width, 0px)) / 2) * var(--has-scrollbar, 0));
    }

    [data-sidebar="right"] [data-type="type-3"],
    [data-sidebar="right"] [data-type="type-4"] {
        padding-inline-start: var(--sidebar-inner-spacing, 35px);
    }

    [data-sidebar="right"] [data-type="type-3"]:after,
    [data-sidebar="right"] [data-type="type-4"]:after {
        left: 0;
    }

    [data-sidebar="left"] [data-type="type-3"],
    [data-sidebar="left"] [data-type="type-4"] {
        padding-inline-end: var(--sidebar-inner-spacing, 35px);
    }

    [data-sidebar="left"] [data-type="type-3"]:after,
    [data-sidebar="left"] [data-type="type-4"]:after {
        right: 0;
    }
}

@media (min-width: 834px) {
    [data-vertical-spacing="top:bottom"] {
        --sidebar-helper-top: calc(var(--content-vertical-spacing) * -1);
        --sidebar-helper-height: calc(100% + var(--content-vertical-spacing) * 2);
    }

    [data-vertical-spacing="top"] {
        --sidebar-helper-top: calc(var(--content-vertical-spacing) * -1);
    }

    [data-vertical-spacing="top"],
    [data-vertical-spacing="bottom"] {
        --sidebar-helper-height: calc(100% + var(--content-vertical-spacing));
    }
}


/* bottom and top = anno pictures */
.bottom-image {
    width: 100%;
    height: auto;
    filter: brightness(1) saturate(1);
}

.top-image img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.top-image img:hover {
    cursor: pointer;
}

.bottom-image img:hover {
    cursor: pointer;
}

.inverted {
    filter: invert(1);
}

/* anno & invert slider bars */
.slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 14px;
    background-color: #ccc;
    border-radius: 21px;
    /*transition: background-color 0.5s;*/
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    background-color: background-color;
    border-radius: 50%;
    transition: transform 0.5s;
}

/* input:checked + .slider {
    background-color: #2196F3;
  } */

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.slider-container label {
    margin-bottom: 10px;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 100;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    /*width: 100%; /* Full width */
    /*height: 100%; /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: #0F141A;
    /* footer color */
}

/* Modal Content (Image) */
.modal-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto auto;
    /*width: 80vw;*/
    /* max-width: 90vw; */
    /*object-fit: contain;*/
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto auto;
    opacity: 1;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    pointer-events: none;
}

/* Add Animation - Zoom in the Modal */
.modal-content,
#caption {
    animation-name: opac;
    animation-duration: 0.6s;
}

@keyframes opac {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* .modal-content {
    transform: scale(1.15);
    transition:
      transform 0.4s cubic-bezier(0.465, 0.183, 0.153, 0.946),
      opacity 0.4s cubic-bezier(0.465, 0.183, 0.153, 0.946);
  } */

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #C44536;
    font-size: 40px;
    font-weight: normal;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #772E25;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* toggle switch */
/* inspired by https://uiverse.io/KINGFRESS/gentle-chicken-96 */
/* The switch - the box around the slider */
.fkl-switch {
    font-size: 12px;
    position: relative;
    display: inline-block;
    width: 2.5em;
    height: .5em;
}

/* Hide default HTML checkbox */
.fkl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.fkl-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #DE9E36;
    transition: .4s;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.fkl-slider .fkl-circle {
    background-color: #141b22;
    height: 2em;
    width: 2em;
    border-radius: 50%;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    transition: .4s;
}

.fkl-slider .fkl-circle::before {
    position: absolute;
    content: "";
    height: 1.3em;
    width: 1.3em;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #DE9E36;
    transition: .4s;
}

.fkl-slider .fkl-circle::after {
    content: '';
    background-color: #141b22;
    height: 0em;
    width: 0em;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .4s;
}

input:checked+.fkl-slider .fkl-circle {
    transform: translateX(1.5em);
    transition: .4s;
}

input:checked+.fkl-slider .fkl-circle::before {
    background-color: #772E25;
    transition: .4s;
}

input:checked+.fkl-slider .fkl-circle::after {
    width: 0;
    height: 0;
    transition: .4s;
}

/*fkl range slider */
/* the slider */
.fkl-range-slider {
    -webkit-appearance: none;
    appearance: none;
    font-size: 12px;
    width: 100%;
    height: 0.5em;
    border-radius: 2.5px;
    background: #DE9E36;
    outline: none;
    opacity: 1.0;
    -webkit-transition: .2s;
    transition: opacity .2s;
}


/* the button */
.fkl-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2.0em;
    height: 2.0em;
    border: 0.33em solid #141b22;
    border-radius: 50%;
    background: #DE9E36;
    cursor: pointer;
}

.fkl-range-slider::-webkit-slider-thumb:hover {
    background: #772E25;
}

.fkl-range-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #DE9E36;
    cursor: pointer;
}

/* reduce margin for labels */
p.fkl-label {
    margin-bottom: 12px !important;
}

/* change bildeinstellungen accordeon icon color */
.fkl-astro-accordion .kt-blocks-accordion-header .kb-svg-icon-wrap svg {
    color: #772E25;
    margin-right: 8px;
    height: 30px;
    width: 30px;
}

.fkl-astro-accordion .kt-blocks-accordion-title-wrap {
    flex-wrap: wrap;
    align-items: center;
}

/* justify text in notes section*/
.fkl-astro-notes .kt-inside-inner-col { 
    text-align: justify; 
}

/* fix leaflet tile border */
.leaflet-tile-container img {
    width: 257px !important;
    height: 257px !important;
}