#rst-modal {
    width: 100%;
    height: 100%;
    z-index: 10000;
    top: 0px;
    left: 0px;
    position: fixed;
    display: none;
    
}

    #rst-modal > #rst-modal-shadow {
        width: 100%;
        height: 100%;
        text-align: center;
        position: relative;
    }

    #rst-modal > #rst-modal-nav-next {
        display: none;
        position: absolute;
        left: auto;
        right: 0px;
        top: 50%;
        margin: 0px;
        margin-top: -25px;
        height: 50px;
        min-width: 50px;
        z-index: 10011;
    }

    #rst-modal > #rst-modal-nav-prev {
        display: none;
        position: absolute;
        left: 0px;
        top: 50%;
        margin: 0px;
        margin-top: -25px;
        height: 50px;
        min-width: 50px;
        z-index: 10011;
    }

    #rst-modal > #rst-modal-title {
        text-align: center;
        max-width: 100%;
        display: none;
        position: absolute;
        width: 100%;
        top: 0px;
        left: 0px;
        z-index: 10011;
    }

    #rst-modal > #rst-modal-close {
        position: fixed;
        left: auto;
        right: 0px;
        top: 0px;
        bottom: auto;
        z-index: 10011;
        margin: 0px;
    }

#rst-modal-shadow > #rst-modal-content {
    opacity: 0;
    display: block;
    /*max-height: 100%;
    max-width: 95%;*/
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .rst-modal-iframecontent, .rst-modal-inlinecontent, .rst-modal-ajaxcontent {
        max-width: 90%;
        max-height: 90%;
        overflow: scroll;
    }

    .rst-modal-imagecontent {
        max-height: 90%;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .rst-modal-iframecontent, .rst-modal-inlinecontent, .rst-modal-ajaxcontent {
        max-width: 90%;
        max-height: 90%;
        overflow: scroll;
    }

    .rst-modal-imagecontent {
        max-height: 90%;
    }
}

@media (max-width: 767px) {
    #rst-modal > #rst-modal-shadow {
        padding-top: 0px;
    }

    .rst-modal-iframecontent, .rst-modal-inlinecontent, .rst-modal-ajaxcontent {
        max-width: 100%;
        max-height: 95%;
        overflow: scroll;
    }

    .rst-modal-imagecontent {
        max-height: 90%;
    }
}

@media (max-width: 600px) {

    #rst-modal-shadow > #rst-modal-content {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }


    .rst-modal-iframecontent, .rst-modal-inlinecontent, .rst-modal-ajaxcontent {
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    #rst-modal > #rst-modal-shadow {
        padding-top: 0px;
    }

    #rst-modal-shadow > #rst-modal-content, .rst-modal-imagecontent {
        width: 100%;
        max-width: 100%;
    }

    .rst-modal-imagecontent {
        max-height: 90%;
    }
}

#rst-modal > #rst-modal-loadimg {
    display: none;
    position: fixed;
    z-index: 10995;
    top: 50%;
    left: 50%;
    margin-top: -16px;
    margin-left: -16px;
    background-image: url(https://www.baystate.com/images/clipart/loading.gif);
    background-repeat: no-repeat;
    height: 32px;
    width: 32px;
}

    #rst-modal > #rst-modal-loadimg > img {
        width: auto\9;
        height: auto;
        max-width: 100%;
    }

/****************Modal Content CSS******************/
.rst-modal-imagecontent img {
    background-color: #fff;
    width: auto\9;
    height: auto;
    max-width: 100%;
}

.rst-modal-iframecontent iframe {
    background-color: #fff;
    border: none;
    width: 100%;
    height: 100%;
}

.rst-modal-inlinecontent {
    background-color: #fff;
    z-index: 11000;
    position: relative;
    overflow: hidden;
    opacity: 0;
    max-width: 80%;
    color: #000;
    text-align: left;
}

.rst-modal-ajaxcontent {
    background-color: #fff;
    max-width: 100%;
    max-height: 100%;
    color: #000;
    overflow: hidden;
    text-align: left;
}

/*****Alert*****/
#rst-alert {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10100;
    display: none;
    top: 0px;
    left: 0px;
}

#rst-alert {
    background-color: rgba(213, 213, 213, 0.7);
}

    #rst-alert > #rst-alert-content {
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
    }

    #rst-alert > #rst-alert-content {
        border: 1px solid #C1C1C1;
        background-color: #fff;
        padding: 0px;
        border-radius: 5px;
        min-width: 300px;
        max-width: 95%;
        max-height: 90%;
        min-height: 100px;
        overflow: hidden;
    }

        #rst-alert > #rst-alert-content > #rst-alert-msg {
            padding: 30px;
            font-family: Arial, Verdana;
            font-size: 1em;
        }

            #rst-alert > #rst-alert-content > #rst-alert-msg > #rst-alert-input {
                border-width: 1px;
                width: 100%;
                margin: 10px 10px 10px 0px;
            }

        #rst-alert > #rst-alert-content > #rst-alert-ctrl {
            border-top: 1px solid #E5E5E5;
            text-align: center;
            padding: 10px;
        }

            #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-okbtn, #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-yesbtn,
            #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-nobtn, #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-cancelbtn {
                display: inline-block;
                *display: inline;
                padding: 4px 12px;
                margin-bottom: 0;
                margin-right: 5px;
                *margin-left: .3em;
                font-size: 14px;
                line-height: 20px;
                color: #333333;
                text-align: center;
                text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
                vertical-align: middle;
                cursor: pointer;
                background-color: #f5f5f5;
                *background-color: #e6e6e6;
                background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
                background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
                background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
                background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
                background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
                background-repeat: repeat-x;
                border: 1px solid #cccccc;
                *border: 0;
                border-color: #e6e6e6 #e6e6e6 #bfbfbf;
                border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
                border-bottom-color: #b3b3b3;
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                border-radius: 4px;
                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
                filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
                *zoom: 1;
                -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
            }

                #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-okbtn:hover, #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-yesbtn:hover,
                #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-nobtn:hover, #rst-alert > #rst-alert-content > #rst-alert-ctrl > #rst-alert-cancelbtn:hover {
                    color: #333333;
                    background-color: #e6e6e6;
                    *background-color: #d9d9d9;
                }
