#sb-title-inner,
#sb-info-inner,
#sb-loading-inner,
div.sb-message {
    font-family: "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
}
#sb-container {
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 999;
    text-align: left;
    visibility: hidden;
    display: none;
}
#sb-overlay {
    position: relative;
    height: 100%;
    width: 100%;
	cursor: pointer;
}
#sb-wrapper {
    position: absolute;
    visibility: hidden;
    width: 100px;
}
#sb-wrapper-inner {
    position: relative;
    overflow: hidden;
    height: 100px;
}
#sb-body {
    position: relative;
    height: 100%;
}
#sb-body-inner {
    position: absolute;
    height: 100%;
    width: 100%;
}
#sb-player.html {
    height: 100%;
    overflow: auto;
}
#sb-body img {
    border: none;
}
#sb-loading {
    position: relative;
    height: 100%;
	color: #fff;
}
#sb-loading-inner {
    position: absolute;
    font-size: 14px;
    line-height: 24px;
    height: 24px;
    top: 50%;
    margin-top: -12px;
    width: 100%;
    text-align: center;
}
#sb-loading-inner span {
    background: url(loading-white.gif) no-repeat;
    padding-left: 34px;
    display: inline-block;
}
#sb-body,
#sb-loading {
    /*background-color: #060606;*/
}
#sb-title,
#sb-info {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
#sb-title,
#sb-title-inner {
    height: 26px;
    line-height: 26px;
}
#sb-title-inner {
    font-size: 16px;
}
#sb-counter {
    float: left;
    width: 45%;
}
#sb-counter a {
    padding: 0 4px 0 0;
    text-decoration: none;
    cursor: pointer;
}
#sb-counter a.sb-counter-current {
    text-decoration: underline;
}
div.sb-message {
    font-size: 12px;
    padding: 10px;
    text-align: center;
}
div.sb-message a:link,
div.sb-message a:visited {
    color: #000;
    text-decoration: underline;
}


/******************************* Wrapper ********************************/
#sb-wrapper
{
/*
width: 80% !important;
height: 80% !important;
left: 10% !important;
top: 10% !important;
*/
height: calc(100% - 100px) !important;
width: calc(100% - 200px) !important;
left: 100px !important;
top: 50px !important;
}

#sb-wrapper-inner { height: 100% !important; }

#sb-title { display: none !important; }


/******************************* Body ********************************/
#sb-body
{
position: relative;
z-index: 2;
width: 75%
}

/*#sb-body-inner { display: flex; align-content: center; }*/

#sb-body img {
max-width: 100%;
max-height: 100%;
position: static !important;
margin: auto;
}


/******************************* Info ********************************/
#sb-info,
#sb-info-inner
{
/*height:100%*/
height: auto;
}

#sb-info
{
float: right;
width: 25%;
background-color: #fff;
color: #000;
box-sizing: border-box;
padding: 20px;
position: relative;
z-index: 2;
}

#sb-nav-close
{
position: absolute;
right: 3px;
top: 3px;
cursor: pointer;
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI%2BCjxnIGlkPSJpY29tb29uLWlnbm9yZSI%2BCjwvZz4KPHBhdGggZD0iTTQ0Ni42MjcgMTEwLjYyN2wtNDUuMjU0LTQ1LjI1NC0xNDUuMzczIDE0NS4zNzItMTQ1LjM3My0xNDUuMzcyLTQ1LjI1NCA0NS4yNTMgMTQ1LjM3MyAxNDUuMzc0LTE0NS4zNzMgMTQ1LjM3MyA0NS4yNTQgNDUuMjU0IDE0NS4zNzMtMTQ1LjM3MyAxNDUuMzczIDE0NS4zNzMgNDUuMjU0LTQ1LjI1NS0xNDUuMzcyLTE0NS4zNzJ6Ij48L3BhdGg%2BCjwvc3ZnPgo%3D");
background-size: 60% 60%;
background-position: center center;
background-repeat: no-repeat;
height: 20px;
width: 20px;
}

#sb-wrapper-inner-close
{
cursor: pointer;
position: absolute;
left: 0px;
top: 0px;
height: 100%;
width: 100%;
z-index: 1;
}


/******************************* Caption ********************************/
#sb-caption { font-size: 13px; }


/******************************* Social ********************************/
#sb-social { margin-top: 12px; }
#sb-social:empty { display: none; }

#sb-wrapper-inner [class*=pin_it],
.sb-pinterest,
#sb-wrapper-inner iframe[src*=houzz],
.sb-houzz, .sb-hj
{
height: 20px;
float: left;
margin-right: 12px;
}

.sb-hj
{
color: #003057;
line-height: 20px;
}

/******************************* Counter ********************************/
#sb-counter
{
color: #000;
float: none;
width: auto;
margin: 12px 0px;
display: none !important;
}

#sb-counter:before { content: "Photo: " }


/*******************************  ********************************/
#sb-nav { display: none; }

#sb-nav-next,
#sb-nav-previous
{
position: absolute;
top: 50%;
background-image: none;
background-color: rgba(255,255,255,0);
border-style: solid;
border-width: 2px;
border-color: #fff;
border-color: rgba(255,255,255,0.8);
cursor: pointer;
display: block;
height: 62px;
width: 40px;
margin-top: -31px;
z-index: 3;
}

#sb-nav-next { right: 25px; }
#sb-nav-previous { left: 25px; }

#sb-nav-next:hover,
#sb-nav-previous:hover { background-color: rgba(255,255,255,0.1); }

#sb-nav-previous:before,
#sb-nav-next:before
{
color: #fff;
content: '\f060';
display: block;
font-family: hjmartin;
font-size: 24px;
line-height: 62px;
text-align: center;
}

#sb-nav-previous:before { content: '\f060'; }
#sb-nav-next:before { content: '\f061'; }


/******************************* Responsive ********************************/
@media (max-width: 990px){

#sb-wrapper {
height: calc(100% - 20px) !important;
width: calc(100% - 20px) !important;
left: 10px !important;
top: 10px !important;
}

#sb-wrapper-inner
{
display: flex;
flex-direction: column;
justify-content: flex-start;
}

#sb-info
{
float: none;
height: auto;
width: 100%;
order: 2;
padding: 10px 20px 10px 10px;
}

#sb-body
{
height: auto;
width: 100%;
max-height: 80vh; /* Crops photo */
overflow: hidden;
order: 1;
}

#sb-body-inner
{
height: auto;
width: auto;
position: static;
}

#sb-nav-next,
#sb-nav-previous
{
top: 100px;
margin-top: 0px;
}

}
