/*
 Theme Name:     Mach Theme
 Theme URI:      https://www.dinited.com
 Description:    Mach Theme
 Author:         DiNITED GmbH
 Author URI:     https://www.dinited.com
 Template:       Divi
 Version:        0.1.0
*/

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

@import "../Divi/style.css";
@import "mach.css";


/* JLM 56 */

.jlm_56-pagination {
    width: 100%; /* Ensure full width */
    transition: top 0.5s ease-in-out, padding 0.5s ease-in-out, background-color 0.5s ease-in-out;
	position: fixed;
    top: 82px;
    background-color: transparent;
	z-index: 9;
    padding: 10px 0;
    display: none;
}
.admin-bar .jlm_56-pagination {
    top: 114px;
}
.admin-bar .jlm_56-pagination.fixed {
    top: 114px;
}

.jlm_56-pagination.fixed {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    background-color: rgba(237, 237, 237, 0.8);
    padding: 10px 0;
    display: inherit;
}

.jlm_56-pagination.fixed .et_pb_row {
    padding: 0;
}

.jlm_56_header {
display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.5s ease-in-out;
    border-radius: 0;
}

.jlm_56-pagination.et_pb_row {
    transition: all 0.5s;
}


.jlm_56_header a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    padding: 10px 20px;
    transition: all 0.5s;
    border-radius: 5px;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    max-width: 33.33%;
    flex: 0 0 33.33%;
}

.jlm_56_header a:hover {color: #9d9079;}

.jlm_56_header a span {
    margin-right: 10px;
}

.jlm_56_header .prev_btn span {
    transform: rotate(0deg);
}

.jlm_56_header .next_btn span {
    margin-left: 10px;
    transform: rotate(0deg);
}

.jlm_56_header .prev_btn,
.jlm_56_header .next_btn {
	 font-size: 20px;
    color: #9D9079;
    display: flex;
    align-items: center;
    cursor: pointer;
}
a.jlm_56_btn {
    justify-content: center;
}

a.jlm_56_btn span {
    font-size: 20px;
    color: #9D9079;
    font-weight: bold;
    text-align: center;
    margin-right: 0;
    transition: all 0.5s;
    padding: 15px;
}

a.jlm_56_btn span:hover { opacity: 0.8;}

.jlm_56_header .prev_btn span, .jlm_56_header .next_btn span {
    display: flex;
    align-items: center;
}
.jlm_56_header a span svg polyline,
.jlm_56_header a span svg line {
    stroke: #9D9079;
}

.jlm_56_header a:hover span svg polyline,
.jlm_56_header a:hover span svg line {
    stroke: #9d9079;
}

.jlm_56_header a span svg polyline,
.jlm_56_header a span svg line {
    transition: all 0.5s;
}

/* Custom Alignment based on buttons */
.taxonomy-navigation:has(.prev_btn):not(:has(.next_btn)) {
    justify-content: flex-start;
}

.taxonomy-navigation:has(.next_btn):not(:has(.prev_btn)) {
    justify-content: flex-end;
}

/* Fix the alignment for next and previous buttons */
.jlm_56_header .next_btn {
    justify-content: flex-end;
}

.jlm_56_header .prev_btn {
    justify-content: flex-start;
}

/* JLM 56 */


@media only screen and (max-width: 900px) {
    .jlm_56-pagination.fixed {
        top: 72px;
    }
    .admin-bar .jlm_56-pagination.fixed {
        top: 104px;
    }
    .jlm_56_header a {
        font-size: 16px;
    }
}
@media only screen and (max-width: 782px) {
    .jlm_56-pagination {
        top: 72px;
    }
    .admin-bar .jlm_56-pagination.fixed {
        top: 114px;
    }
    .jlm_56-pagination.fixed {
        top: 72px;
    }
}
@media only screen and (max-width: 767px) {
    .jlm_56_header .prev_btn, .jlm_56_header .next_btn {
        font-size: 0;
    }
    .jlm_56_header .prev_btn svg, .jlm_56_header .next_btn svg {
        width: 30px;
        height: 30px;
    }

    a.jlm_56_btn span {
        padding: 0;
    }

    a.jlm_56_btn:hover span {
        color: #9d9079;
    }
    a.jlm_56_btn span {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* JLM 91 */

.zoomed_image_container .et_pb_image, .jlm-21-referenzen-modul-bottom .et_pb_image {
	overflow: hidden;
}

.zoomed_image_container .et_pb_image img, .jlm-21-referenzen-modul-bottom .et_pb_image img {
	transition: transform 500ms ease-in-out 0ms, margin 500ms ease-in-out 0ms, padding 500ms ease-in-out 0ms, border-radius 500ms ease-in-out 0ms, border 500ms ease-in-out 0ms;
}

.zoomed_image_container .et_pb_image:hover img, .jlm-21-referenzen-modul-bottom .et_pb_image:hover img {
	transform: scaleX(1.2) scaleY(1.2) translateX(0%) translateY(0%) !important;
}

.dinited_goto:hover:after {
    margin: 0 !important;
}
.dinited_goto:after {
    margin: 0 !important;
    line-height: 1 !important;
    left: -22px !important;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%23D5CBBE'/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    transform: rotate(90deg);
}

@media only screen and (max-width: 767px) {
    .jlm-14-module-slide .et_pb_image {
        transform: none;
    }
    
    /* Fix mobile burger menu image jump */
    .wp-image-28933 {
        transform: none !important;
        position: relative !important;
    }
}