/**
 * Image Slider Widget Styles
 */

.image-slider-widget {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-slider-container {
    position: relative;
    width: 100%;
}

/* Images Container */
.image-slider-images {
    display: flex;
    width: 100%;
    gap: 0;
    position: relative;
    z-index: 2;
}

.image-slider-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-slider-image:hover {
    opacity: 0.9;
}

.image-slider-image.active {
    opacity: 0.7;
}

.image-slider-image.hidden {
    opacity: 0;
    visibility: hidden;
    width: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, width 0.5s ease, flex 0.5s ease;
}

.image-slider-image.hovered {
    flex: 0 0 40% !important;
    width: 40% !important;
    z-index: 15 !important;
    position: relative;
}

/* When one image is hidden, the other should expand to 40% width */
.image-slider-image.expanded {
    flex: 0 0 40% !important;
    width: 40% !important;
    z-index: 15 !important;
    position: relative;
}

.image-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


/* Layout Variations */
.image-slider-layout-50-50 .image-slider-left,
.image-slider-layout-50-50 .image-slider-right {
    width: 50%;
    flex: 0 0 50%;
}

.image-slider-layout-40-60 .image-slider-left {
    width: 40%;
    flex: 0 0 40%;
}

.image-slider-layout-40-60 .image-slider-right {
    width: 60%;
    flex: 0 0 60%;
}

.image-slider-layout-60-40 .image-slider-left {
    width: 60%;
    flex: 0 0 60%;
}

.image-slider-layout-60-40 .image-slider-right {
    width: 40%;
    flex: 0 0 40%;
}

.image-slider-layout-33-67 .image-slider-left {
    width: 33.333%;
    flex: 0 0 33.333%;
}

.image-slider-layout-33-67 .image-slider-right {
    width: 66.667%;
    flex: 0 0 66.667%;
}

.image-slider-layout-67-33 .image-slider-left {
    width: 66.667%;
    flex: 0 0 66.667%;
}

.image-slider-layout-67-33 .image-slider-right {
    width: 33.333%;
    flex: 0 0 33.333%;
}

/* Content Container */
.image-slider-container {
    position: relative;
}

.image-slider-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.image-slider-content-wrapper .image-slider-content.active {
    pointer-events: auto;
}

.image-slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease, left 0.5s ease, right 0.5s ease, width 0.5s ease;
    z-index: 1;
}

.image-slider-content.image-slider-content-right {
    transform: translateX(100%);
}

.image-slider-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    z-index: 3;
}

/* When left content is shown on right side */
.image-slider-content.show-on-right {
    left: 40% !important;
    right: 0 !important;
    width: 60% !important;
    transform: translateX(0) !important;
}

/* When right content is shown on left side */
.image-slider-content.show-on-left {
    left: 0 !important;
    right: 40% !important;
    width: 60% !important;
    transform: translateX(0) !important;
}

.image-slider-content-inner {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 767px) {
    .image-slider-images {
        flex-direction: column;
    }

    .image-slider-image {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .image-slider-content {
        transform: translateY(-100%);
    }

    .image-slider-content.image-slider-content-right {
        transform: translateY(100%);
    }

    .image-slider-content.active {
        transform: translateY(0);
    }
}

/* Smooth scrolling for content */
.image-slider-content {
    scroll-behavior: smooth;
    /* Hide scrollbar for Firefox */
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none;

}

/* Overlay Content Styles */
.image-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 5;
    box-sizing: border-box;
    padding: 55px;
}

.image-slider-overlay-heading {
    margin: 0 0 15px 0;
    padding: 0;
    font-weight: bold;
}

.image-slider-overlay-content {
    margin: 0;
}

.image-slider-overlay-content p {
    margin: 0 0 10px 0;
}

.image-slider-overlay-content p:last-child {
    margin-bottom: 0;
}

/* Accordion Styles */
.image-slider-accordion {
    width: 100%;
    margin: 0;
    padding: 0;
    padding: 0;
    height: 100%;
    margin-bottom: 50px;
    overflow-y: auto;
    padding-right: 50px;
}

.image-slider-accordion-item {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.image-slider-accordion-item:last-child {
    margin-bottom: 0;
}

.image-slider-accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px 0;
    transition: background 0.3s ease;
    pointer-events: none;
}
.image-slider-accordion-title {
    flex: 1;
    pointer-events: none;
    user-select: none;
    color: #1B365D;
}

.image-slider-accordion-icon-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.image-slider-accordion-icon-toggle:hover {
    opacity: 0.7;
}

.image-slider-accordion-item.active .image-slider-accordion-icon-toggle {
    transform: rotate(180deg);
}

.image-slider-accordion-icon-toggle i {
    margin-right: 0;
    color: #666;
}

.image-slider-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    position: relative;
}

.image-slider-accordion-item.active .image-slider-accordion-content {
    max-height: 2000px;
    padding: 10px 20px 20px;
}

.image-slider-accordion-content-inner {
    color: #1B365D;
    color: #000000;
    line-height: 1.6;
}

.image-slider-accordion-content-inner p {
    margin: 0 0 15px 0;
}

.image-slider-accordion-content-inner p:last-child {
    margin-bottom: 0;
}

.image-slider-accordion-content-inner ul,
.image-slider-accordion-content-inner ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.image-slider-accordion-content-inner h1,
.image-slider-accordion-content-inner h2,
.image-slider-accordion-content-inner h3,
.image-slider-accordion-content-inner h4,
.image-slider-accordion-content-inner h5,
.image-slider-accordion-content-inner h6 {
    margin: 0 0 10px 0;
    color: #333;
}
.right-image-hovered {
    justify-content: flex-end !important;
}

.left-image-hovered {
    justify-content: flex-start !important;
}
.image-slider-images .image-slider-image {
    border-radius: 20px 0 0 20px;
}
.image-slider-images .image-slider-right {
    border-radius: 0 20px 20px 0 !important;
}
.right-image-hovered .image-slider-image .image-slider-overlay {
    padding: 50px !important;
}
.left-image-hovered .image-slider-image  {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-radius: 20px;
}
.right-image-hovered .image-slider-image {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-radius: 20px;
}
.image-slider-content.show-on-left {
    border-radius: 20px;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border: 2px solid transparent;
    border-right: none !important;
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease, left 0.5s ease, right 0.5s ease, width 0.5s ease, border-color 0.25s ease 0.25s;
}

.image-slider-content.show-on-left.active {
    border-color: #1B365D;
    border-right: none !important;
}

.image-slider-content.show-on-right {
    border-radius: 20px;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border: 2px solid transparent;
    border-left: none !important;
    transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease, left 0.5s ease, right 0.5s ease, width 0.5s ease, border-color 0.25s ease 0.25s;
}

.image-slider-content.show-on-right.active {
    border-color: #1B365D;
    border-left: none !important;
}

.image-slider-content {
    border: 2px solid transparent;
}
.image-slider-content.active {
    border-color: #1B365D !important;
}
.image-slider-accordion-icon-toggle {
    display: none;
}
@media (max-width: 1023px) {
    .image-slider-accordion-title {
        font-size: 20px;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        line-height: 100%;
    }
    .image-slider-accordion-content-inner {
        font-size: 18px;
        font-weight: 400;
        font-family: 'Inter', sans-serif;
        line-height: 1.5;
        padding-right: 10px;
    }    
    .image-slider-overlay-heading {
        font-size: 34px;
        font-weight: 700;
        font-family: Caslon pro;
        line-height: 100%;
    }
    .image-slider-overlay-content {
        font-size: 18px;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
        line-height: 1.5;
    }
}
@media (min-width: 1024px) {
    .image-slider-accordion-title {
        font-size: 26px;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        line-height: 100%;
    }
    .image-slider-accordion-content-inner {
        font-size: 20px;
        font-weight: 400;
        font-family: 'Inter', sans-serif;
        line-height: 1.5;
        padding-right: 15px;
    }
    .image-slider-overlay-heading {
        font-size: 64px;
        font-weight: 700;
        font-family: Caslon pro;
        line-height: 100%;
        text-align: left;
        width: 100%;
    }
    .image-slider-overlay-content {
        font-size: 26px;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
        line-height: 1.5;
    }
}
.image-slider-left .image-slider-overlay {
    background: transparent !important;
    text-align: left !important;
}
.image-slider-right  .image-slider-overlay {
    background: transparent !important;
    text-align: left !important;
}
.image-slider-content-left {
	padding: 50px 5px 50px 50px !important;
}
.image-slider-content-right {
	padding: 50px 5px 50px 0 !important;
}

/* Hover Text Overlay Styles */
.image-slider-hover-text {
    position: absolute;
    z-index: 25;
    pointer-events: auto;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    letter-spacing: 1px;
    white-space: normal;
    /*animation: pulseHoverText 2s ease-in-out infinite;*/
    word-wrap: break-word;
    word-break: break-word;
    padding: 0 40px 0px 55px;
    cursor: pointer;
}
.image-slider-left-hover-text
{
	    background: url('https://captives.revyrie.co/wp-content/themes/hello-elementor-affinity-new/image-slider-widget/arrow-new1.png');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: right center;
    opacity: .6;
}
.image-slider-right-hover-text
{
	    background: url('https://captives.revyrie.co/wp-content/themes/hello-elementor-affinity-new/image-slider-widget/arrow-new2.png');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: left center;
    opacity: .6;
    
}
.image-slider-hover-text:hover {
	opacity: .8 !important;
}
.image-slider-right-hover-text {
	padding: 0 50px 0px 40px !important;
    left: 55px;
}
.image-slider-accordion-title {
    color: #0066b2;
}

.image-slider-accordion-content-inner .content-hidden-by-default {
    color: #000000;
}


@media (max-width: 767px) {
	.site-id-6 #sec-executives .elementor-background-slideshow::before {
        background: #2064C9 !important;
        opacity: 1;
        mix-blend-mode: multiply;
    }
    .site-id-6 .about-img-shadow-2 .elementor-background-slideshow::before {
    	    background: #006B78 !important;
    opacity: 90%;
    mix-blend-mode: multiply;
    }
    .site-id-7 #sec-executives .elementor-background-slideshow::before {
        background: #16254d !important;
        opacity: .9;
        mix-blend-mode: multiply;
    }
    .site-id-7 .about-img-shadow-2 .elementor-background-slideshow::before {
    	    background: #8f6d4f !important;
    opacity: 90%;
    mix-blend-mode: multiply;
    }
   .elementor-element-3d7d19cf {
   	display: block !important;
    padding: 20px 0px !important;
   }
}
@media (min-width: 1024px) and (max-width: 1165px) {
	.image-slider-overlay-heading {
    	font-size: 45px !important;
    }
}
.site-id-7 .image-slider-overlay.image-slider--overlay {
	opacity: .9 !important;
}