/* ------------------------------------------------------------------------------------------------------------------- */
/* -  Gemeinsame Modal Styles ---------------------------------------------------------------------------------------- */

.modal, .mymodal {
    -webkit-backdrop-filter: blur(var(--blur-effekt, 5px));
    backdrop-filter: blur(var(--blur-effekt, 5px)) ;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal ul, .mymodal ul {
    list-style: circle;
    padding-left: 2.5rem;
    display: flow-root;
}
/* Sonstiges ----------------------------------------------------------------- */
.bg-modal-content {
    background-color: #d1d1d1;
}

.modal.fancybox-lock {
  pointer-events: none;
}

.modal.fancybox-lock .fancybox-overlay,
.modal.fancybox-lock .fancybox-container {
  pointer-events: auto;
}

/* Fancybox 3.5 WENN Bootstrap-Modal offen ist */
.modal.show ~ .fancybox-container .fancybox-bg, body.modal-open .fancybox-bg {
    background: rgba(0, 0, 0, 0.50);
}

body.modal-open .fancybox-caption {
    background: transparent;
    bottom: 2%;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "wght" 700;
    font-size: clamp(16px, 1.9vw, 4em);
    padding: 25px;
    text-align: center;
    pointer-events: none;
    z-index: 99996;
}

/* ------------------------------------------------------------------------------------------------------------------- */
/* - MYMODAL --------------------------------------------------------------------------------------------------------- */
.mymodal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Aktivieren */
.mymodal.is-active {
    display: flex;
}

/*   Modal Content -------------------------------------------------------- */
.modal-content, .mymodal .modal-content {
    --bs-border-color: var(--border-color);
    --bs-modal-bg: var(--modal-bg);
    --bs-modal-border-radius: var(--border-radius);

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    margin: 10px;
	
    color: var(--modal-font-color);
    pointer-events: auto;
    background: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-modal-border-radius);
	
    outline: 0;
    animation-name: fadeIn; /* animate.css */
    animation-duration: 0.5s;
	animation-fill-mode: forwards; 
	animation-timing-function: linear;
}
.mo/dal-content, .mymodal .modal-content {
    width: 95% !important;
}

/* Breite Modal Content (eigentliches Modal- Fenster!! ) */
@media (max-width: 992px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 98%;
    }
}

/* Modal Header ----------------------------------------------------------------- */
.modal-header, .mymodal .modal-header {
    border-bottom: 1px solid #ffffff20;
}

.modal-header p.newsEntry-topic {
    margin: 0;
    padding: 0;
}

.modal-header .btn-close {
    transition: transform 0.6s ease;
}

.modal-header .btn-close:hover {
    transform: rotate(180deg);
}

/*Modal  Body ----------------------------------------------------------------- */
.modal-body, .mymodal .modal-body {
    padding: 15px;
}

.modal-body div {
    text-align: justify;
}

.modal-body .isotope-gallery {
    margin: 0;
    margin-top: 10px;
}

[id^="news-detail-modal-"] .modal-body a {
    color: #7464ea;
}

.modal-body h3 {
    color: deepskyblue;
    margin-bottom: .3rem;
}

.modal-body h4 {
    color: darkgray;
    font-size: clamp(1.1rem, 2.1vw, 1.2rem);
    margin-left: 10px;
}

/* Modal Footer ----------------------------------------------------------------- */
.modal-footer, .mymodal .modal-footer {
    justify-content: flex-end;
    padding-top: 4px;
    padding-bottom: 0px;
    background-color: var(--bs-modal-footer-bg);
    border-top: 1px solid #ffffff20;
}

/* Modal Buttons ----------------------------------------------------------------- */
button.modal-btn {
    background-color: rgba(0, 128, 0, 0.3) !important;

}
button.modal-btn:hover {
    background-color: rgba(0, 0, 255, 0.2) !important;
}
.modal .btn-facebook, .mymodal .btn-facebook {
    background-color: #4C67A1;
}

.modal .btn-facebook:hover, .mymodal .btn-facebook:hover {
    background-color: rgba(0, 0, 255, 0.50);
}

/* Modal Gallery ----------------------------------------------------------------- */

.mymodal .image-gallery, .modal .image-gallery {
    width: 100%;
}

.mymodal .image-gallery-item, .modal .image-gallery-item {
    width: 19.8%;
    margin-right: 0.2%;
    margin-bottom: 0.2%;
    float: left;
}

.modal-gallery .image-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tablets -------------------------------------------------------------- */

@media (max-width: 992px) {
    .mymodal .image-gallery-item, .modal .image-gallery-item {
        width: 32.8%;
    }
}

@media (max-width: 768px) {
    .mymodal .image-gallery-item, .modal .image-gallery-item {
         width: 24.8%;
    }
}

@media (max-width: 576px) {
    .mymodal .image-gallery-item, .modal .image-gallery-item {
        width: 49.8%;
    }
}

@media (max-width: 820px) {
    .newsEntry .image-gallery .image-gallery-item:nth-child(n+8) {
        display: none;
    }
}



/* ------------------------------------------------------------------------------------------------------------------- */




