.ei-slider {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 540px;
    min-width: 300px; /* Set a minimum width */
    min-height: 200px; /* Set a minimum height */
    margin: 0 auto;
    overflow: hidden; /* Ensures images do not overflow */
}

.ei-slider-loading {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 999;
    background: rgba(0,0,0,0.9);
    color: #fff;
    text-align: center;
    line-height: 400px;
}

.ei-slider-large {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .ei-slider-large li {
        position: absolute;
        top: 0px;
        left: 0px;
        overflow: hidden;
        height: 100%;
        width: 100%;
    }

        .ei-slider-large li img {
            /* Ensure image maintains its aspect ratio */
            object-fit: contain; /* Keeps aspect ratio intact while filling container */
            width: 100%;
            height: 100%;
            display: block;
            margin: 0 auto;
            
            /* width: 100%;
            height: auto !important;
            margin-top: auto !important;
            margin-left: auto !important;*/
        }

.ei-title {
    position: absolute;
    left: 5%;
    margin-right: 10%;
    top: 70%;
}

    .ei-title h2, 
    .ei-title h3 {
        text-align: left;
    }

    .ei-title h2 {
        font-size: 30px;
        line-height: 30px;
        font-family: 'Playfair Display', sans-serif, 'Open Sans Condensed';
        /*text-transform: uppercase;*/
        color: #ededed;
    }

    .ei-title h3 {
        font-size: 30px;
        line-height: 40px;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        color: #ededed;
    }

.ei-slider-thumbs {
    height: 13px;
    margin: 0 auto;
    position: relative;
}

    .ei-slider-thumbs li {
        position: relative;
        float: left;
        height: 100%;
    }

        .ei-slider-thumbs li.ei-slider-element {
            top: 0px;
            left: 0px;
            position: absolute;
            height: 100%;
            z-index: 10;
            text-indent: -9000px;
            background: rgba(0,0,0,0.9);
        }

        .ei-slider-thumbs li a {
            display: block;
            text-indent: -9000px;
            background: #666;
            width: 100%;
            height: 100%;
            cursor: pointer;
            box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3), 0px 1px 0px 1px rgba(255,255,255,0.5);
            transition: background 0.2s ease;
        }

            .ei-slider-thumbs li a:hover {
                background-color: #f0f0f0;
            }

        .ei-slider-thumbs li img {
            position: absolute;
            bottom: 50px;
            opacity: 0;
            z-index: 999;
            max-width: 100%;
            transition: all 0.4s ease;
            -webkit-box-reflect: below 0px -webkit-gradient( linear, left top, left bottom, from(transparent), color-stop(50%, transparent), to(rgba(255,255,255,0.3)) );
        }

        .ei-slider-thumbs li:hover img {
            opacity: 1;
            bottom: 13px;
        }

@@media screen and (max-width: 830px) {
    .ei-title {
        position: absolute;
        right: 0px;
        margin-right: 0px;
        width: 100%;
        text-align: center;
        top: auto;
        bottom: 10px;
        background: rgba(255,255,255,0.9);
        padding: 5px 0;
    }

        .ei-title h2, 
        .ei-title h3 {
            text-align: center;
        }

        .ei-title h2 {
            font-size: 20px;
            line-height: 24px;
        }

        .ei-title h3 {
            font-size: 20px;
            line-height: 30px;
        }
}
