body {
    margin:0;
    padding:0;
}
.gallery-wrapper {
    width: 100%;
    overflow: hidden;
}
#gallery-popup {
    background-color: rgba(37,37,37,0.9);
    height: 100%;
    width: 100%;
    position: fixed;
    left:0;
    top:0;
    z-index: 20000;
    display: none;
    text-align:center;
}
#gallery-popup-box {
    display: inline-block;
    margin-top: 1%;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    max-width: calc(100% - 520px);
}
#gallery-popup-box  img{
    max-width: 100%;

}
#gallery-popup-box-close {
    background-color: #222;
    height: 40px;
    width: 40px;
    font-size: 32px;
    line-height: 40px;
    color: rgba(255,255,255,1);
    text-align: center;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    float: left;
    position: absolute;
    top: 0px;
    right: -40px;
    font-family: Courier;
}
#gallery-popup-box-close span {
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    font-weight:bold;
    display:block;
}
#gallery-popup-box-close:hover {
    background-color: #EF5A42;
    cursor: pointer;
}
#rotated-gallery {
    float: left;
    width: 110%;
    overflow-x: hidden;
    padding-bottom:40px;
}
.gallery-tab {
    float: left;
    width: 100%;
    /*transform: rotate(-6deg);
    -ms-transform: rotate(-6deg);
    -webkit-transform: rotate(-6deg);*/
    margin-left:-50px;
}
.gallery-tab-title {
    float: left;
    width: 100%;
    height: 50px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    margin-top: 20px;
    position: relative;
}
.gallery-tab-title-holder {
    float: left;
    height: 50px;
    position: absolute;
    left: -45px;
}
.gallery-tab-title-holder-controls {
    height: 50px;
    float: left;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.gallery-tab-title-holder-controls-button {
    float: left;
    height: 40px;
    width: 40px;
    text-align: center;
    font-size: 26px;
    background-color: #5F656E;
    line-height: 40px;
    color: rgba(243,241,233,1);
    margin-right: 5px;
    margin-top: 5px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    font-family: Courier;
    font-weight:bold;
}
.gallery-tab-title-holder-controls-button:hover {
    background-color: #EF5A42;
    cursor: pointer;
}
.gallery-tab-title-holder-text {
    float: left;
    height: 50px;
    font-weight: bold;
    color: #5F656E;
    font-size: 24px;
    text-transform: uppercase;
    font-family: verdana;
    line-height: 45px;
    margin-left: 5px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}
.gallery-tab-title-holder-text:hover {
    color: #EF5A42;
    cursor: pointer;
}
.gallery-tab-images {
    float: left;
    height: 220px;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
    display: none;
    padding: 10px;
    background: #F3F3F3F3;
}
.gallery-tab-images-slider {
    float: left;
    width: 30px;
    overflow: hidden;
    height: 220px;
    position: absolute;
}
.gallery-tab-images-slider img {
    float: left;
    height: 220px;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
    filter: grayscale(100%);
}
.gallery-tab-images-slider img:hover {
    filter: grayscale(0);
}

@media screen and (max-width: 480px){
    #gallery-popup-box {
    display: inline-block;
    margin-top: 1%;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    max-width: calc(100% - 100px);
    }
}
@media screen and (max-width: 820px){
    #gallery-popup-box {
    display: inline-block;
    margin-top: 1%;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    max-width: calc(100% - 100px);
    }
}
