/* Prevent flash of unstyled content */

.divi-image-carousel:not(.slick-initialized) {

    display: none;

}



.divi-image-carousel-wrapper {

    /*min-height: 200px;*/

    position: relative;

}



.divi-image-carousel-wrapper::before {

    content: '';

    display: block;

    position: absolute;

    top: 50%;

    left: 50%;

    width: 30px;

    height: 30px;

    margin: -15px 0 0 -15px;

    border: 3px solid #ccc;

    border-top-color: #000;

    border-radius: 50%;

    animation: carousel-loader 0.6s linear infinite;

}



.divi-image-carousel-wrapper .slick-initialized ~ .divi-image-carousel-wrapper::before,

.divi-image-carousel.slick-initialized + .divi-image-carousel-wrapper::before,

.divi-image-carousel-wrapper:has(.slick-initialized)::before {

    display: none;

}



@keyframes carousel-loader {

    to {

        transform: rotate(360deg);

    }

}



/* Existing styles */

.divi-image-carousel {

    position: relative;

    width: 80%;

    margin: 0 auto;

}



/* Anpassung für einheitliche Bildhöhe im Carousel */

.carousel-item {

    height: auto !important;

    padding: 20px 10px;

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    z-index: 1;

    transition: z-index 0.1s;

}



.carousel-item:hover {

    z-index: 10; /* Höherer z-index beim Hover */

}



.carousel-image-link {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    height: 100%;

    /*box-shadow: 0 7px 10px -5px rgba(0,0,0,0.15);*/

    border-radius: 4px;

    overflow: visible; /* Von 'hidden' zu 'visible' geändert */

    z-index: 1;

	background-color: rgba(255, 255, 255, 0.6);

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

	transition: transform 0.3s ease;

}



.carousel-image {

    width: auto;

    height: 100%;

    max-height: 100%;

    max-width: 100%;

    object-fit: contain;

    cursor: pointer;

    transition: transform 0.3s ease;

}



.carousel-image-link img

{

	box-shadow: 0 7px 10px -3px rgba(0,0,0,0.15);

}



.carousel-image-link:hover 

{

    transform: scale(1.05);

}



/* Navigation Arrows - Hide DIVI Default Arrows */

.et_pb_image_carousel .et-pb-slider-arrows,

.et_pb_image_carousel .et-pb-arrow-prev,

.et_pb_image_carousel .et-pb-arrow-next {

    display: none !important;

}



/* Custom Navigation Arrows */

.divi-image-carousel .slick-prev,

.divi-image-carousel .slick-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 28px;

    height: 28px;

    background: #004273 !important;

    border: none !important;

    border-radius: 50%;

    cursor: pointer;

    transition: background 0.3s ease;

    font-size: 0;

    line-height: 0;

    padding: 0;

    margin: 0;

}



.divi-image-carousel .slick-prev {

    left: -5%;

}



.divi-image-carousel .slick-next {

    right: -5%;

}



.divi-image-carousel .slick-prev:hover,

.divi-image-carousel .slick-next:hover {

    background: rgba(0, 0, 0, 0.8) !important;

}



/* Arrow Icons */

.divi-image-carousel .slick-prev:before,

.divi-image-carousel .slick-next:before {

    font-family: 'ETmodules' !important;

    color: white !important;

    font-size: 32px;

    line-height: 40px;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    text-align: center;

    display: block;

}



.divi-image-carousel .slick-prev:before {

    content: "" !important;

    width: 100%;

    height: 100%;

    background-image: url(https://creasoft.manaka-design.de/wp-content/uploads/2024/11/arrow-reference-slide-show.svg);

    background-repeat: no-repeat;

    background-position: center;

    opacity: 1;

}



.divi-image-carousel .slick-next:before {

    content: "" !important;

    width: 100%;

    height: 100%;

    background-image: url(https://creasoft.manaka-design.de/wp-content/uploads/2024/11/arrow-reference-slide-show.svg);

    background-repeat: no-repeat;

    background-position: center;

    opacity: 1;

    transform: rotate(180deg);

}



/* Slick Slider Adjustments */

.slick-list,

.slick-track {

    height: 100%;

}



.slick-list {

    overflow-x: hidden !important;

    overflow-y: visible !important; /* Wichtig für Hover-Effekt */

    padding: 4vh 0 !important;

    margin: -20px 0 !important;

}



.slick-track {

    padding: 10px 0;

    margin: -10px 0;

    display: flex !important;

    align-items: center;

}



.slick-slide {

    height: inherit !important;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1;

    transition: z-index 0.1s;

}



.slick-slide:hover {

    z-index: 10;

}



.slick-slide > div {

    width: 100%;

    height: 100%;

    display: flex;

}



/* Magnific Popup customization */

.mfp-fade.mfp-bg {

    opacity: 0;

    transition: opacity 0.3s ease-out;

}



.mfp-fade.mfp-bg.mfp-ready {

    opacity: 0.8;

}



.mfp-fade.mfp-bg.mfp-removing {

    opacity: 0;

}



.mfp-fade.mfp-wrap .mfp-content {

    opacity: 0;

    transition: opacity 0.3s ease-out;

}



.mfp-fade.mfp-wrap.mfp-ready .mfp-content {

    opacity: 1;

}



.mfp-fade.mfp-wrap.mfp-removing .mfp-content {

    opacity: 0;

}



.mfp-figure

{

	max-width:90vw;

}





/* Spezieller Fix für hochformatige Bilder */

.portrait-temp {

    width: 0 !important;

    height: 0 !important;

    opacity: 0 !important;

    position: absolute;

    visibility: hidden;

    overflow: hidden;

}







.portrait-image {

    opacity: 0;

    transition: opacity 0.5s ease-in;

}



.portrait-image.loaded {

    opacity: 1;

}



/* Responsive adjustments */

@media (max-width: 980px) {

    .divi-image-carousel .slick-prev {

        left: 0;

        width: 30px;

        height: 30px;

    }

    

    .divi-image-carousel .slick-next {

        right: 0;

        width: 30px;

        height: 30px;

    }

    

    .divi-image-carousel .slick-prev:before,

    .divi-image-carousel .slick-next:before {

        font-size: 24px;

        line-height: 30px;

    }



    .carousel-item {

        padding: 0 15px;

    }

}



@media (max-width: 767px) {

    .divi-image-carousel .slick-prev {

        left: 0;

        width: 25px;

        height: 25px;

    }

    

    .divi-image-carousel .slick-next {

        right: 0;

        width: 25px;

        height: 25px;

    }

    

    .divi-image-carousel .slick-prev:before,

    .divi-image-carousel .slick-next:before {

        font-size: 20px;

        line-height: 25px;

    }



    .carousel-item {

        padding: 0 12px;

    }

}