﻿.office-img
{
    background-repeat:no-repeat!important;
    background-size:cover!important;
    background-position:top center!important;
    -webkit-background-size: cover!important;
    -moz-background-size: cover!important;
    -o-background-size: cover!important;
    position:absolute;
    cursor:pointer;
    top:0;
    left:15px;
    right:15px;
    bottom:0;
}

td.dan-img
{
    width:85px;
    height:85px;
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

#hidden-img .hidden-fullscreen-img
{
    display:none;
}

#hidden-img .current-displayed-img
{
    display:block!important;
}

#hidden-img
{
    overflow-y:initial;
    height:100%;
    max-height:100%;
}

#hidden-img > div
{
    max-width:100%; 
    max-height:100%; 
    width:100%; 
    height:100%; 
    padding:40px;
}

#hidden-img > div > div
{
    max-width:100%; 
    max-height:100%; 
    width:100%; 
    height:100%; 

    background-repeat:no-repeat;
    background-size:contain;
    background-position:center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
}

#hidden-img .hidden-img-close
{
    width:auto;
    height:auto;
    position:absolute;
    padding:0;
    top:15px;
    right:15px;
}

@media (min-width: 1001px) 
{
    .row.office-imgs .square,
    .row.office-imgs:first-of-type
    {
        margin-bottom:30px;
    }
}

@media(max-width: 1000px)
{
    .row.office-imgs:first-of-type
    {
        margin-top:15px;
        margin-bottom:15px;
        padding-left:0px!important;
        padding-right:0px!important;
    }

    .row.office-imgs
    {
        padding-left:7.5px;
        padding-right:7.5px;
    }

    .col-md-4.col-sm-6.col-xs-6.square
    {
        padding-left:7.5px;
        padding-right:7.5px;
    }

    .office-img
    {
        left:7.5px;
        right:7.5px;
    }

    .row.office-imgs .square
    {
        margin-bottom:15px;
    }
}