/*  
---------------------------------------------------
Lightbox
---------------------------------------------------  
*/

/*
#site { 
    transition: filter 0.3s ease-in-out 0s;
}

body.modal-open #site { 
    filter: blur(2px);
}
*/

html:has(.modal-open),
body.modal-open {
	overflow: hidden !important;
}

.modal-backdrop.show { 
    opacity: var(--modal-opacity);
}

html.windows body.modal-open,
html.windows body.modal-open .modal {
    padding-right: 0 !important;
}

.modal .modal-dialog {
    margin:0 auto; padding: 50px 0;
    max-width: 100%; width:100%;
    max-width: var(--modal-components-max-width);
}

.modal.modal-pods .modal-dialog {
    max-width: var(--modal-pods-max-width);
}

.modal-content {
    box-shadow: var(--base-box-shadow_h) var(--base-box-shadow_v) var(--base-box-shadow_b) rgba(var(--true-black), var(--base-box-shadow_o));
    border-radius: calc(var(--base-border-radius) + 2px);
}

.modal.lightbox .carousel-inner { 
	overflow: visible;
}

.lightbox-title .heading,
.lightbox-caption .text > p {
	color: rgba(var(--true-white), 1);
}

.carousel-control {
    width: 100px;
	z-index: 501;
}

html[dir="ltr"] .carousel-control.carousel-control-prev {
    left: 0;
}

html[dir="ltr"] .carousel-control.carousel-control-next {
    right: 0;
}

html[dir="rtl"] .carousel-control.carousel-control-prev {
    right: 0;
}

html[dir="rtl"] .carousel-control.carousel-control-next {
    left: 0;
}

.carousel-control .carousel-control-icon {
	background-image: none;
}

.carousel-control .carousel-control-icon { 
    position: absolute;
    top:50%; 
    width:40px; height:40px;
    text-align:center;
    font-size:20px; line-height: 40px;
    color: rgba(var(--base-link), 1);
    background-color: rgba(var(--base-bg-color1), 1);
    transform: translateY(-50%);
}
.carousel-control .carousel-control-icon:hover {
    color: rgba(var(--base-link-hover), 1);
}

.carousel-control.carousel-control-prev .carousel-control-icon {
    border-radius: 0 var(--btn-border-radius) var(--btn-border-radius) 0;
}

.carousel-control.carousel-control-next .carousel-control-icon {
    border-radius: var(--btn-border-radius) 0 0 var(--btn-border-radius);
}

html[dir="ltr"] .carousel-control.carousel-control-prev .carousel-control-icon {
    left:0;
}

html[dir="ltr"] .carousel-control.carousel-control-next .carousel-control-icon {
    right: 0;
}

html[dir="rtl"] .carousel-control.carousel-control-prev .carousel-control-icon {
    right: 0;
    transform: rotate(180deg);
}

html[dir="rtl"] .carousel-control.carousel-control-next .carousel-control-icon {
    left: 0;
    transform: rotate(180deg);
}

/* Close icon */
.modal::before { 
    content: "\f2c0";
    display: inline-block;
    font-family: "Ionicons";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    position: fixed; top:0; z-index:1001;
    font-size:35px; line-height: 50px; text-align: center;
    width:50px; height:50px;
    cursor:pointer;
    transition: all 0.2s ease-in-out 0s;
}

.modal .close {
    position: fixed; top:0; z-index:1002;
    width:50px; height:50px;
    background: none; border: 0 none;
	padding:0; box-shadow: none;
}

html[dir="ltr"] .modal::before,
html[dir="ltr"] .modal .close {
    right: 0;
    border-radius: 0 0 0 var(--btn-border-radius);
}

html[dir="rtl"] .modal::before,
html[dir="rtl"] .modal .close {
    left: 0;
    border-radius: 0 0 var(--btn-border-radius) 0;
}

.modal .close:focus-visible {
    outline-offset: -6px!important;
}

@media (min-width:0) and (max-width:1349px) {
    .modal::before {
        color: rgba(var(--base-link), 1);
        background-color: rgba(var(--base-bg-color1), 1);
        box-shadow: 0 0 var(--base-half-spacing) rgba(var(--true-black), 0.15);
    }
}

@media (min-width:1350px) {   
    .modal .modal-dialog {
        padding: 50px;
    }
    .modal::before {
        color: rgba(var(--true-white), 1);
    }
}