.jgallery .jgallery-thumbnails.full-screen {
    width: auto !important;
    height: auto !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    
    img.thumb-on-full-screen-horizontal {
        max-height: 100%;
        max-width: none;
    }
    
    img.thumb-on-full-screen-vertical {
        max-height: none;
        max-width: 100%;
    }

    .jgallery-container {
        text-align: left;
        white-space: normal;
    }

    .jgallery-container-inner {
        padding: 60px 45px 45px;

        &:after {
            width: auto;
            height: 45px;
            content: "";
            display: block;
        }
    }

    .jgallery-close {
        right: 0;
        top: 0;
        opacity: 1;
        position: absolute;
        display: block;
    }

    .prev {
        background: #000;

        &:before {
            #gradient > .vertical( ~"rgba(0,0,0,1)", ~"rgba(0,0,0,0)" );
        }
    }

    .next {
        background: #000;

        &:before {
            #gradient > .vertical( ~"rgba(0,0,0,0)", ~"rgba(0,0,0,1)" );
        }
    }

    .change-album {
        right: 40px;
        top: 0;
        position: absolute;
        display: block;

        .title {
            right: 48px;
            top: 0;
            left: auto;
            bottom: auto;
        }

        .menu {
            right: 0;
            top: 42px;
            left: auto;
            bottom: auto;
            position: absolute;
        }
    }

    img {
        display: inline-block;
    }
}