﻿div.lightbox-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 20;
    pointer-events: none; /*let click events fall through to the greyout div*/
}

div.lightbox {
    background-color: #FFF;
    position: relative;
    top: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    z-index: 20;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: auto;
    max-height: calc(100vh - 8px);
    pointer-events: auto; /* make sure clicks are captured*/
}

div.dialog-grayout {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: black;
    filter: alpha(opacity=50);
    opacity: 0.3;
    z-index: 20;
}

div.lightbox.dialog, 
#template .lightbox /* #template is the id on the template editor page body tag */ 
{
    top: 20%;
    filter: drop-shadow(0px 0px 8px black);
    border: 1px solid black;
}

    /* ie 11 hack to stop dialog going full width */
    @media (-ms-high-contrast: active), (-ms-high-contrast: none) {
        div.lightbox {
            display: table;
        }
    }
/* microsoft edge up to ver 15 hack to stop dialog going full width */
    @supports (-ms-ime-align:auto) {
        div.lightbox {
            display: table;
        }
    }



    div .lightbox div.lightbox-content 
{
    margin: 4px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    height: auto;
    padding: 1px; /* IE hack to hide scroll bars */
}

div.lightbox div.lightbox-content.no-overflow 
{
    overflow: hidden;
}

div.lightbox h4 
{
    font-size: 13px;
    line-height: 13px;
}

div.lightbox-close {
    position: absolute;
    right: 0px;
    top: 0px;
    border: 1px solid #d00000;
    background: #E00000;
    background: linear-gradient(to bottom, #FF4020 0%,#F02010 100%);
    border-radius: 3px;
    cursor: pointer;
    margin: 2px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    padding: 2px;
    z-index: 21;
}
    div.lightbox-close:hover {
        /* background-image: url(/content/images/ui/close-24-on.png);*/
        background: #FF4020;
        background: linear-gradient(to bottom, #FF4020 0%,#d00000 100%);
    }

div.lightbox div.lightbox-header h1
{
    text-align: center;
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

/* grayout div */
div#grayout-div
{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    display: none;    
    z-index: 19;
}

div#grayout-div>div
{
    background-color: #000;
    height: 100%;
    width: 100%;

    filter: alpha(opacity=50);
    opacity: 0.5;
}

/* Light box elements */
div.lightbox div.lightbox-content div.toolbar 
{
    margin: 0;
    margin-bottom: 1px;
    padding: 0;
}
div.lightbox div.lightbox-content div.toolbar>div 
{
    margin: 0;
    margin-right: 0.5em;
    padding: 0;
}


div.lightbox a.print
{
    height: 25px;
    width: 25px;
    background-image: url(/content/images/printer24.png);
    display: inline-block;
    vertical-align: top;
}
div.lightbox a.print:hover 
{
    background-image: url(/content/images/printer24h.png);
}

div.lightbox a.newtab {
    background-image: url(/content/images/OpenNewWindow.png);
    background-size: contain;
    height: 25px;
    width: 25px;
    display: inline-block;
}




    body, html {
        margin: 0;
        padding: 0;
    }

div.lightbox-scroll {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
}


/*************************************************
    Loading spinner
**************************************************/
.loader {
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid #3498db; /* Blue */
    border-radius: 50%;

    width: 24px;
    height: 24px;
 
    animation: spin 2s linear infinite;
}

.loader.big {
     width: 96px;
     height: 96px;
}

.loader.small {
     width: 10px;
     height: 10px;
     border-width: 2px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.center {
    margin: auto auto auto auto; /* horizontal center if width: and height: set */
    text-align:center;
}
/**************************************************/





@media print {
    div .lightbox-scroll 
    {
        position: static;
        top: auto;
        bottom: auto;
    }
    
    a.button 
    {
        display: none;
    }
}