/*
*  Story Show Gallery (SSG) ver: 2.6.0
*  Copyright (C) 2018 Roman Flössler - flor@flor.cz
*
*  Try Story Show Gallery at - http://ssg.flor.cz/
*  SSG on Github: https://github.com/Roman-Flossler/Simple-Scroll-Gallery.git
*
*  This Source Code Form is subject to the terms of the Mozilla Public
*  License, v. 2.0. If a copy of the MPL was not distributed with this
*  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*  There is one exception from license:
*  Distributing Story Show Gallery within a Wordpress plugin or theme 
*  is only allowed for the author of Story Show Gallery.
*/

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFW50d.woff) format("woff");
}

#SSG_gallery,
#SSG_gallery *,
#SSG_exit,
#SSG_exit *,
#SSG_tip,
#SSG_galBg,
#SSG_tip * {
    font-size: 100%;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: normal;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    background: none;
    width: auto;
    height: auto;
    border: none;
    vertical-align: initial;
    font-style: normal;
    -webkit-backface-visibility: hidden;
    text-align: inherit;
    line-height: inherit;
    text-decoration: unset;
    text-shadow: none;
    /* combination of * and inherit(unset) cause forcing each element inherit from parent.
    So SSG_ * overwrites * from other CSS and leaves original selectors priority.
    it is possible bug, * {text-align:left} overwrites more specific selector  */
}

/****************************************************************
 * Table of contents:
 *
 *     1. Basic styles
 *     2. The bottom menu
 *     3. The tip Window & exit icon
 *     4. Portrait mode
 *     5. Landscape mode 
 *     6. Smartphones - all 
 *     7. Smartphones - small
 *     8. Smartphones - portrait
 *     9. Iphone X
 *     10. Scrollbars & cursors
 * 
*/

/****************************************************************
 * 1. Basic styles
 *
 * Gallery overlay, Images, captions, error image, logo container
 */

#SSG_gallery,
#SSG_tip {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

#SSG_galBg {
    background: #131313;
    color: #a0a0a0;
    width: 100%;
    font-size: 33px;
    text-align: center;
    padding-top: 75vh;
    position: fixed;
    height: 111%;
    z-index: 9999990;
    top: 0;
    left: 0px;
}

#SSG_galBg b {
    font-weight: normal; 
    transform: scaleX(1.5);
    display: inline-block;
    font-size: 86%;
    margin-left: 0.1em;
    margin-right: 0.2em;
}


#SSG_gallery {
    background: #131313;
    position: absolute;
    top: 0px;
    z-index: 9999991;
    width: 100%;
    text-align: center;
    line-height: 1.4em;
    left: 0px;
    padding-top: 33vh;
}

#SSG_gallery img {
    max-width: 96vw;
    max-height: 91vh;
    display: inline;
    margin: 0.4em 0 0.2em 0;
    border: 1px solid black;
}

#SSG_gallery span.SSG_forlogo {
    position: relative;
    vertical-align: bottom;
    -webkit-transform: translate3d(0,0,0);
}

#SSG_gallery div.SSG_imgWrap {
    line-height: 1.4em;
}

#SSG_gallery span.SSG_logo {
    display: inline-block;
    width: 16vw;
    max-width: 147px;
    min-width: 100px;
    height: 47px;
    position: absolute;
    bottom: 0.2em;
    left: 0px;
    opacity: 0.6;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
}

#SSG_gallery p,
#SSG_lastone p {
    display: block;
    margin: auto;
    line-height: 1.44em;
    color: #b2b2b2;
    text-align: center;
    background: #282828;
    padding: 0.4em;
    padding-bottom: 0.3em;
    margin-bottom: 28vh;
    font-size: 108%;
}

#SSG_menu a.SSG_link {
    text-shadow: #000 0px 0px 16px;
}

#SSG_gallery .notitle p.title,
#SSG_gallery .SSG_uwide p.title {
    padding: 1px;   
    margin: 16vh 0;
    display: inline-block;
    border-radius: 0.1em;
}

#SSG_gallery p.uwtitle {
    display: none;
}

#SSG_gallery div.notitle img {
    margin-bottom: 0;
}

#SSG_gallery div.notitle span.SSG_logo {
    bottom: -0.1em;
}

#SSG_gallery p.title {
    display: inline-block;
    padding-left: 3em;
    padding-right: 3em;
    border-radius: 0.3em;
    min-width: 22vw;
}

#SSG_gallery::before,
#SSG_tip span,
#SSG_gallery .SSG_text {
    font-size: 108%;
}

#SSG_gallery figure .serror img {
    border: none;
    height: 40px;
    max-width: 83vw;
    padding: 8vw;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;    
    box-sizing: content-box;
    background: linear-gradient(-8deg, #006575d1 18%, #0b1617f0 47%, #00a0d061 276%), repeating-linear-gradient(292deg, #00a8b1 0px, #000000 3px, #00000000 26px),  repeating-linear-gradient(476deg, #00a8b1 0px, #000000 11px, #000000 18px);
    /* background: linear-gradient(-6deg, #005967cc 18%, #0b1617f0 49%, #00a0d000 276%), repeating-linear-gradient(292deg, #00a8b1c4 0px, #001919 11px, #00000000 30px),  repeating-linear-gradient(477deg, #00a8b1 0px, #001919 11px, #000000 8px);    */
}

#SSG_gallery figure .serror span.SSG_logo {
    background: none;
}

@media (min-width: 900px) {
    #SSG_gallery span.SSG_logo {
        width: 11vw;
        min-width: 130px;
    }
}


/****************************************************************
 * 2. The bottom menu
 *
 * The end menu of Story Show Gallery. No media queries
 */

#SSG_lastone p {
    margin-bottom: 1em !important;
}

#SSG_lastone {
    width: 100%;
    margin-top: 0;
    padding-bottom: 4vh;
}

#SSG_gallery::after {
    content: '';
    height: 18vh;
    display: block;
}


@media (pointer: coarse) {
    #SSG_gallery::after {
        content: '';
        background: linear-gradient(0deg, rgba(255,255,255,0) 44%, #131313 100%);
        height: 44vh;
        display: block;
        position: relative;
        top: 44vh;
        margin-top: -40vh;
    }
}

#SSG_lastone #SSG_menu a:hover {
    text-decoration: underline;
}

#SSG_lastone #SSG_menu {
    overflow: auto;
    text-align: right;
}

#SSG_menu a.SSG_link {
    display: inline-block;
    width: 33%;
    cursor: pointer;
    color: #FF706C;
    padding-top: 0.2em;
    line-height: 1.4;
    text-align: center;
    vertical-align: text-top;
}

#SSG_menu a.SSG_link b {
    font-weight: normal;
    transform: scaleX(1.6);
    display: inline-block;
    margin-right: 4px;
    font-size: 88%;
}

#SSG_menu #SSGL {
    color: #989898;
    text-decoration: none;
}

#SSG_first span {
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='18px' %3E%3Cg fill='none' stroke='%23FF706C' stroke-width='1.5' %3E%3Cpolyline points='1,9 6,4 11,9 '/%3E%3Cline x1='6' y1='7' x2='6' y2='16'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 11px;
    width: 0.7em;
    shape-rendering: crispEdges;
}


/****************************************************************
 * 3. The tip Window & exit icon
 *
 * Window with a little help how to use Story Show Gallery. No media queries
 */

#SSG_gallery .SSG_tipCall {
    color: #a1a1a1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    padding: 2em 26px 10px 3em;
    letter-spacing: 0.01em;
    top: -1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='18px' %3E%3Cg fill='none' stroke='%239a9a9a' stroke-width='1.4' %3E%3Cpolyline points='1,11 6,16 11,11 '/%3E%3Cline x1='6' y1='2' x2='6' y2='13'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px bottom 9px;
    background-size: 15px;
    text-shadow: #000 0px 0px 6px;
    font-weight: normal;
    position: relative;
}

#SSG_gallery .SSG_tipCall:after {
    content: "";
    width: 5em;
    position: absolute;
    left: 3em;
    bottom: 12px;
    border-width: 0 0 1.3px;
    border-style: solid;
    border-color: #6f6f6f;
}

#SSG_gallery .SSG_tipCall:hover {
    text-decoration: underline;
    text-decoration-style: wavy;
}

#SSG_gallery .SSG_tipCall:hover::after {
    content: "";
    border: none;
}

#SSG_tip {
    top: 50vh;
    width: 99vw;
    padding: 0.33em 1em;
    position: fixed;
    z-index: 9999992;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 1px;
    padding: 0;
}

#SSG_tip div.touch {
    display: none;
}

#SSG_tip a {
    text-decoration: underline;
    color: #FFEB3B;
    background: none;
    text-underline-position: under;
}

#SSG_tip hr {
    opacity: 0.5;
    margin: 0.5em 0;
    border-bottom: 1px solid white;
}

#SSG_tip strong {
    color: #6bddff;
    background: none;
    font-family: Consolas, Menlo, "Lucida Console", monospace !important;
    font-size: 141%;
    font-weight: normal;
}

#SSG_tip #SSG_tipClose {
    position: absolute;
    top: 0px;
    right: 0px;
    font-family: "Times New Roman", monospace !important;
    font-size: 181%;
    color: #bbb;
    background: #000;
    padding: 0 6px;
    border-radius: 0px 4px 0 11px;
    height: 26px;
    width: 28px;
    line-height: 27px;
}

#SSG_tip span {
    padding: 1em 2em;
    background: #2f2f2f;
    color: #fff;
    border: 1px solid black;
    border-radius: 5px;
    line-height: 2em;
    display: inline-block;
    cursor: pointer;
    position: relative;
    box-shadow: 0px 5px 19px 1px rgba(0, 0, 0, 0.9);
}

#SSG_exit.notchright {
    left: -9px;
    background-position: 25px 25px;
}

#SSG_exit {
    top: -9px;
    right: -9px;
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    z-index: 9999993;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13px' height='13px'%3E%3Cg fill='none' stroke='%23bbbbbb' stroke-width='1' %3E%3Cline x1='0' y1='0' x2='13' y2='13'/%3E%3Cline x1='0' y1='13' x2='13' y2='0'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 13px 23px;
    background-size: 14px;
    opacity: 0.55;
}

#SSG_exit:hover {
    opacity: 1;
    background-color: black;
}


/****************************************************************
 * 4. Portrait mode
 *
 * Basic elements in portrait mode.
 */

@media (orientation: portrait) {

    #SSG_gallery img {
        max-width: 100%;
        border-left: none;
        border-right: none; 
    }

    #SSG_gallery #f0:after {
        content: "photos look better in landscape mode \1F609";
        color: #bdbdbd;
        margin-bottom: 3.2em;        
        display: block;
        margin-top: -4.3vh;
        font-style: italic;
        opacity: 0.55;
        filter: invert(0%) grayscale(100%) contrast(160%);
    }

   .SSG_tipCall,
    #SSG_arrowdown {
        display: none;
    }

    html.ssg-active body {
        overflow-y: auto;
    }

    #SSG_gallery p.title {
        display: block;
        padding-left: 1em;
        padding-right: 1em;
        border-radius: 0;
    }

    #SSG_gallery p,
    #SSG_lastone p {
        margin-bottom: 8.8vh;
    }
    
    #SSG_gallery .notitle p.title {
        margin: 4.4vh 0;
    }

    #SSG_gallery .SSG_uwide p.title {
        margin: 0 0 13vh 0;
        display: block;
        padding: 0.4em;
    }
}


/****************************************************************
 * 5. Landscape mode
 *
 * ultrawide & standard landscape mode. A lot of media queries
 */

@media (orientation: landscape) {

    #SSG_gallery figure:not(.SSG_uwide):not(.notitle) p.title span {
        display: inline-block;
    }

    #SSG_gallery .SSG_uwide .SSG_uwBlock {
        display: flex;
        align-items: center;
        justify-content: space-around; /* fallback for IE11*/
        justify-content: space-evenly;
        flex-direction: row-reverse;
    }

    /* fixing MS Edge bug */
    @supports (-ms-ime-align:auto) {
        #SSG_gallery .SSG_uwide .SSG_uwBlock {
            justify-content: space-around;
        }
    }

    #SSG_gallery.notchright .SSG_uwide .SSG_uwBlock {
        flex-direction: row;
    }
    

    #SSG_gallery .SSG_uwide span.SSG_logo {
        bottom: 0px;
    }

    #SSG_gallery .SSG_uwide img {
        max-width: 77vw;
    }

    #SSG_gallery :not(#f0).SSG_uwide.notitle img {
        max-width: 99vw;
    }

    #SSG_gallery :not(#f0).SSG_uwide.notitle .SSG_imgWrap {
        margin: 0;
    }

    #SSG_gallery .SSG_uwide p.uwtitle {
        display: block;
        width: 20vw;
        padding: 1em 0.5em;
        left: 0;
        margin-bottom: 0;
        margin: 0;
        z-index: 2;
        max-height: 96vh;
        -ms-overflow-style: scrollbar;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }

    #SSG_gallery .SSG_uwide p.uwtitle .SSG_tipCall {
        padding-left: 0;
        padding-top: 1em;
    }

    #SSG_gallery .SSG_uwide p.uwtitle>span {
        background-color: #282828;
        position: sticky;
        bottom: 0;
        padding: 1.5em 0 1em 0;
        display: block;
        text-align: center;
    }

    #SSG_gallery .SSG_uwide p.uwtitle .SSG_tipCall:after {
        left: 0em;
    }

    #SSG_gallery .SSG_uwide p.title {        
        display: inline-block;
        border-radius: 0.1em;
    }

    #SSG_gallery .SSG_uwide p.title span,
    .SSG_uwide p.title .SSG_tipCall {
        display: none;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap {
        width: auto;
    }

    #SSG_gallery .SSG_uwide.SSG_captionShift .SSG_imgWrap {
        margin: 0 0 0 6vw;
    }

    #SSG_gallery .SSG_uwide.SSG_captionShift p.uwtitle {
       margin: 0 2vw 0 0;
    }

    #SSG_gallery.notchright .SSG_uwide.SSG_captionShift .SSG_imgWrap {
        margin: 0 6vw 0 0;
    }

    #SSG_gallery.notchright .SSG_uwide.SSG_captionShift p.uwtitle {
        margin: 0 0 0 2vw;
    }

    #SSG_gallery.notchright .SSG_uwide .SSG_imgWrap {
        margin: 0 1vw 0 0;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap {
        margin: 0 0 0 1vw;
    }    

    #SSG_gallery .SSG_uwide .SSG_imgWrap img,
    #SSG_gallery .notitle .SSG_imgWrap img {
        max-height: 96.6vh;
        margin: 0;
    }

    #SSG_gallery #f0.notitle:not(.SSG_uwide) .SSG_imgWrap img {
        max-height: 91vh;
        margin-bottom: 0.3em;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap::after {
        content: none;
    }

    /* ************** p0 styles ************** */

    #SSG_gallery figure.notitle:not(.SSG_uwide) #p0 {
        padding: 0.4em;
        margin: 0 0 28vh 0;
        padding-bottom: 0.3em;
    }

    #SSG_gallery .SSG_uwide #uwp0 {
        padding-bottom: 0em;
        position: relative;
    }

    #SSG_gallery .SSG_uwide.notitle #uwp0 span {
        margin-bottom: 1.66em;
    }

    #SSG_gallery figure:not(.SSG_uwide):not(.notitle) #p0 {
        position: relative;
        display: inline-block;
        border-radius: 0.3em;
    }

    #SSG_gallery #p0 .SSG_tipCall {
        padding: 0.3em 26px 10px 3em;
        position: absolute;
        right: 3em;
        top: 48%;
        margin-top: -1em;
        line-height: normal;
        line-height: initial;
    }

    #SSG_gallery #p0 span {
        padding-right: 10em;
    }

    #SSG_gallery figure.notitle #p0 .SSG_tipCall {
        left: -6em;
        position: relative;
        top: -0.1em;
    }
}

@media (orientation: landscape) and (min-width: 1222px) {

    /* extra padding for higher resolutions */
    #SSG_gallery .SSG_uwide p.uwtitle {
        padding: 1.5em 1em;
    }
}

@media (orientation: landscape) and (min-width: 1333px) {

    /* smaller title block for higher resolutions */
    #SSG_gallery .SSG_uwide p.uwtitle {
        width: 15vw;
    }

    #SSG_gallery .SSG_uwide img {
        max-width: 82vw;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap {
        width: auto;
    }
}

@media (orientation: landscape) and (min-height: 1033px) {

    #SSG_gallery p.title,
    #SSG_gallery figure.notitle:not(.SSG_uwide) #p0 {
        margin-bottom: 30vh;
    }

    #SSG_gallery .SSG_uwide p.title,
    #SSG_gallery .notitle p.title {
        margin: 20vh 0;
    }

    #SSG_gallery span.SSG_logo {
        bottom: 1.3em;
    }

    #SSG_gallery :not(#f0).notitle span.SSG_logo {
        bottom: 0em;
    }

    #SSG_gallery img,
    #SSG_gallery #f0.notitle:not(.SSG_uwide) .SSG_imgWrap img {
        margin-bottom: 1.3em;
    }
}


@media (orientation: landscape) and (max-width: 900px) {

    #SSG_gallery figure.notitle:not(.SSG_uwide) #p0 {
        margin-bottom: 6em;
        padding: 0.2em;
    }
}


/****************************************************************
 * 6. Smartphones - all
 *
 * Media query for all smartphones
 */

@media (max-width: 900px) and (orientation: landscape),
(max-width: 550px) and (orientation: portrait) {

    #SSG_gallery img {
        max-width: 100vw;
        max-height: 89vh;
        margin: 0.3em 0 0em 0;
    }

    #SSG_gallery {
        padding-top: 8em;
    }

    #SSG_gallery p.title {
        padding-left: 1.5em;
        padding-right: 1.5em;
        min-width: 33vw;
    }

    #SSG_gallery #p0 {
        padding-left: 1.3em;
        padding-right: 1em;
    }    

    #SSG_gallery span.SSG_logo {
        background-size: 100%;
        width: 16vw;
        max-width: 133px;
        height: 44px;
        bottom: 0px;
        left: -3px;
    }

    #SSG_gallery .SSG_uwBlock {
        margin-bottom: -0.1em;
    }

    #SSG_gallery p {
        line-height: 1.2em;
    }
    
    #SSG_gallery #f0:after {
        margin-bottom: 2.2em;        
        margin-top: -3.3vh;
    }

    #SSG_gallery p,
    #SSG_lastone p {
        padding-top: 0.3em;
        padding-bottom: 0.2em;
        letter-spacing: -0.01em;
    }

    #SSG_gallery p.notitle {
        padding: 0.13em;
        display: inline-block;
        border-radius: 0.1em;
    }

    #SSG_gallery #f0.notitle:not(.SSG_uwide) .SSG_imgWrap img {
        max-height: 89vh;
        margin-top: 0.3em;
        margin-bottom: 0.05em;
    }

    #SSG_gallery #p0 .SSG_tipCall {
        right: 1.3em;
    }

    #SSG_gallery p,
    #SSG_lastone p,
    #SSG_gallery::before,
    #SSG_tip span,
    #SSG_gallery .SSG_text {
        font-size: 100%;
    }

    #SSG_exit {
        top: -6px;
        right: -6px;
        opacity: 0.49;
        border-radius: 13px;        
        background-position: 11px 26px;
    }

    #SSG_exit.notchright {
        left: -6px;
        background-position: 26px 26px;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap {
        margin: 0 0 0 2vw;
    }

    #SSG_gallery.notchright .SSG_uwide .SSG_imgWrap {
        margin: 0 2vw 0 0;
    }

    #SSG_gallery .SSG_uwide .SSG_imgWrap img,
    #SSG_gallery .notitle .SSG_imgWrap img {
        max-height: 97.8vh;
        margin: 0;
    }
    
    #SSG_galBg {
        font-size: 24px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {

    #SSG_gallery :not(.notitle) #p0 span {
        padding-right: 9.6em;
    }
}



/****************************************************************
 * 7. Smartphones - small
 *
 * Media query for smaller smartphones (outdated models)
 */

@media (max-width: 660px) and (orientation: landscape),
(max-width: 350px) and (orientation: portrait) {

    #SSG_exit {
        border-radius: 11px;
        top: -18px;
        right: -19px;
        background-position: 8px 30px;
        background-size: 12px;
    }

    #SSG_exit.notchright {
        left: -19px;
        background-position: 30px 30px;
    }

    #SSG_gallery::before,
    #SSG_tip span,
    #SSG_gallery .SSG_text {
        font-size: 90%;
    }

    #SSG_gallery p,
    #SSG_lastone p {
        font-size: 90%;
    }

    #SSG_gallery .SSG_tipCall {
        background-size: 12px;
        background-position: right 6px bottom 10px;
    }

    #SSG_first span {
        background-size: 9px;
    }
}

/****************************************************************
 * 8. Smartphones - portrait
 *
 * Media query for all smartphones in portrait mode
 */

@media (max-width: 550px) and (orientation: portrait) {

    #SSG_gallery p,
    #SSG_lastone p {
        line-height: 1.44em;
        margin-bottom: 4em;
    }
    
    #SSG_gallery .notitle p.title {
        margin: 1.8em 0;
    }

    #SSG_lastone p {
        padding: 0.3em;
    }

    #SSG_gallery img {
        margin: 0.1em 0 0.5em 0;
        margin-bottom: 0;
    }
    
    #SSG_menu a.SSG_link {
        width: 38%;
    }

    #SSG_menu #SSGL {
        width: 23%;
    }

    #SSG_gallery p.title {
        padding: 0.6em 1.5em 0.5em 1.5em;
    }
}


/****************************************************************
 * 9. Iphone X
 *
 * secure safe area for Iphone X, media query for Iphone X models
 */

@supports (-webkit-overflow-scrolling: touch) {
    @media only screen and (min-width: 700px) and (max-width: 900px) and (orientation: landscape) {
        #SSG_gallery figure:not(.SSG_uwide):not(.notitle) p.title {
            padding-bottom: 1em;
        }

        #SSG_gallery figure.notitle:not(.SSG_uwide) #p0 {
            padding-bottom: 1.2em;
        }

        #SSG_gallery,
        #SSG_tip {
            font-size: 18px;
        }

        #SSG_gallery {
            padding-top: 11em;
        }

        #SSG_exit {
            top: 0;
            right: 0;
        }
    }
}


/****************************************************************
 * 10. Scrollbars & cursors
 *
 * media query for touch devices, no scrollbar for IE and FF
 */

html.ssg-active {
    scrollbar-color: #505050 #0e0e0e;
    scrollbar-width: thin;
}

html.ssg-active ::-webkit-scrollbar {
    background: #0e0e0e;
    /* prev #191919; */
    width: 9px;
}

html.ssg-active ::-webkit-scrollbar-thumb {
    -webkit-border-radius: 3px;
    background: #505050;
    background-size: 100%;
    margin-top: 6px;
    min-height: 81px;
}

html.ssg-active ::-webkit-scrollbar-button {
    height: 20px;
    background: black;
    height: 2px;
}

html.ssg-active body {
    cursor: url('data:image/gif;base64,R0lGODlhEwATAJECAAAAAJeXlwAAAAAAACH5BAEAAAIALAAAAAATABMAAAInlH+AyxcNU4xvNmVZzQhz93UREJBmiZ7mGIKt4IVbGH/zV3M3lx8FADs='), url(https://www.flor.cz/js/SSG/cross-ssg.cur), text;
    cursor: -webkit-image-set(
        url('data:image/gif;base64,R0lGODlhEwATAJECAAAAAJeXlwAAAAAAACH5BAEAAAIALAAAAAATABMAAAInlH+AyxcNU4xvNmVZzQhz93UREJBmiZ7mGIKt4IVbGH/zV3M3lx8FADs=') 1x,
        url('data:image/gif;base64,R0lGODlhJgAmAJECAAAAAJeXlwAAAAAAACH5BAEAAAIALAAAAAAmACYAAAJklI95AOoPFYu0nhCshnj7NH1iKHpdaWboRq5V60ZnTM00BN9So3Nq77ABEbmhoEhhYJQBphOwhDalz2h1Gs1it1dkxNsD64RGAdkovqVp52EbuI7FXe9eXTdf5VH3W5+2VxJYAAA7') 2x
), auto;
    overflow-x: hidden;
    background-color: #0e0e0e;
}

html.ssg-active .wait {
    cursor: wait;
}

@media (pointer: coarse) {

    /* loading icon for touch devices */
    html.ssg-active .wait #SSG_gallery::after {
        content: "";
        background-image: url("data:image/gif;base64,R0lGODlhGADQALMPAKOjo3Nzc0dHR42Nja2trcTExBISEjY2Nra2tmZmZpmZmSUlJYCAgFZWVszMzAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFDQAPACwAAAAAGADQAAAEUvDJSau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uu9/wuHyuiwAAIfkEBQ0ADwAsAQADABcALgAABPrwydkYIBirsKaXBlM4ZGk6xPE9B3K+ZuIZI2w7sqS8AOMzilqpYHgsTojOx7AzBR4BE6K4kgBMhMe1lKsaTw+Ciep9CB1hU3kiLqXd6zdJ7hDE2/Mm6bnGo6NDd2pHJgp9ag96JIZxM2cOjI0SAi+RkgmVkhOYJ5aNnFJkny9Tmg8Cj6WaB6micaxIrmuwoaa0QyqrrbaPAKYsjw0PAxlZZbcOBXRxDScHfo1+AdBxgCTEiGuUJRjZZdsk3XDaWH52a80lAIqeK34MoCRdKwPOZicEDWQGCX7JEvFuvDiXSCCMeQ8SPLJRQNgKfv6GAEDoZYGAixeVrIgAACH5BAUNAA8ALAoAMAAFACEAAAQN0MlJq7046827/2DIRQAh+QQFDQAPACwBAFAAFwAuAAAE9PDJ2RhwGKuwppcGU2QkSRzfcyBlSyaeMbq0A0tKCzA8o8yZguGxKCE6H0OOFHgESIhhSnLJEB5VzG1KLD0IJCn3AXR8SeMJOHNmp9sYuEPwXseXmGbabn4G62hFJAp7aA94Gm9JZQ6EihMCLY6PDwmSlBKWJZOPmlBiip4ZUZgCjKSUB6egb6pGrGmun5iyQSipq7SMAJgqjA0PAwTDV2O1DgVybw0lB3yKfAHPb34YwoZpkVbT2SbcY9oYwyR0acwZAIicU3wMojZjA81kJQQNYgYJfMiZNf7lh/y52JKJEY0CwFLk2xcEAMExCwRIlIgkRQQAIfkEBQ0ADwAsCgB9AAUAIQAABA3QyUmrvTjrzbv/YMhFACH5BAUoAA8ALAEAnQAXADAAAATC8Mn5lqBPGMzXKE4oikiwccyoqkWDKWs8MlMq3467rESyTIsEaFQwBFQBzgQ2ShBGACXlKQKoXFJJYoRQnbICXHZiEI8l5nN6vD5PVG4OPE6Z09Gj+zuvf9jvf3SBcYM4MXKGhYl8dYsiiI4OhDeTMpWHbm1SmkqckJhqlGc7omMNnhRMMgemK0MhCVkHr1VEUg20IltQP0CqDrQPuQ4IBARdKgKqGZGxYSFaiQWxEkMTB1YyBL1axhhBDMYECgHcHBEAOw==");
        position: fixed;
        background-color: #001418;
        border-radius: 5px;
        top: auto;
        bottom: 7vh;
        right: 13px;
        width: 22px;
        height: 88px;
		z-index: 6;
        filter: opacity(0.81);
        background-repeat: no-repeat;
        background-size: 8px;
        background-position: center;
    }

    #SSG_tip div.touch {
        display: block;
        padding-left: 55px;
        background: no-repeat url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAABVCAMAAAArMteoAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRF/f39RklLr6+v3d3dfd3+Z6rAcHV3Nzc3Ry55RQAAAAh0Uk5T/////////wDeg71ZAAACLklEQVR42tSW22LlIAhFASv5/z+uF4LGG9h5Gl7anLjCBgWEZzBEjskY8TkaDFj8UYvoBnvMQnuQfyZjBzi6M5w2sHE5Oe3BAl+dKZ/FP8ez2hdEWdYpW/y0AOMiIok6nkBcfhwPLqF3OK3AvUs4L4hblz24yB8bYP8emUIg4vMXBYxNKQaoRji8OYPKCekGOROc5Ka/fAOGuv55Ekk2qMnJSmuOkutgJwcVTMtnEO0DMILWAZBQcAQxGkeuutyBaJXVBoxmIW9ANFvHGmS7WS3B6GiPK9DRHtPaGWTnCJhA/9AZTs7/AgJlY7wHxfivIPBtjJwtvP98NdvJQXUc+A4MS80+jyW9WTNm83usPxXXIVkZDxdgbrWtyfukNjA5LHnCLYi1kw8e001NxsMWfHTfWEZeAXU87MHZFMxh/BuIKusI4lspAnLZH7lQncCPLtAyKAP4AszbFKg4xSuQylKkSl6A7+wuivkPYCXpSirJCamF5wVZz7CUrDurQV1qivz7yB3pBp/PYi0FB9iL9ZmAH7Eu0+rwRfapr1rIpQNegEFbx53Y0r5AnYerEPVKduOynFJoD+DMD5a6gO6JLkLsrmRusbXHQ6/ct5m1S8JHOrmV9kPHKVamEXw1OMRKy4Ahz+TbjGGwesSyyIJRhiX2bW4wZYxcSsdRztbJ08EOc6kdxWobhsUX2aF0Ao38sL6F1TcJd9YGBizDPxnvwO4CtTTcgkjhYG/mfgUYAIPOZqKpW0DKAAAAAElFTkSuQmCC');
        background-size: 28px;
        background-position-y: 10px;                
    }

    #SSG_tip div.classic {
        display: none;
    }

	@media (max-width: 900px) and (orientation: landscape),
            (max-width: 550px) and (orientation: portrait) {
	    html.ssg-active .wait #SSG_gallery::after {
			width: 14px;
	        height: 80px;
	        filter: opacity(0.66);
		}	
	}    

}

@media (pointer: coarse) and  (orientation: portrait) {
        #SSG_tip div.touch {
            padding-top: 55px;
            padding-left: 3px;
            background-position-y: 0px;
            background-position-x: center;
        }

        #SSG_tip span {
            padding: 1em;
        }

        html.ssg-active .wait #SSG_gallery::after {
            position: fixed;
            right: 13px;
            top: 48vh;
        }
    }

html.ssg-active {
    scrollbar-base-color: #505050;
    scrollbar-3dlight-color: #505050;
    scrollbar-highlight-color: #505050;
    scrollbar-track-color: #0e0e0e;
    /* prev #191919; */
    scrollbar-arrow-color: #191919;
    scrollbar-shadow-color: black;
}

/* ***  
No scrollbar for Edge in landscape mode, 'cause it can't paint it black
and it is realy irritating. Set !important to overwrite site's styles. 
 */
@supports (-ms-ime-align:auto) {
    @media (orientation: landscape) {
        html.ssg-active body,
        html.ssg-active {
            overflow: hidden !important;
        }
    }
}

/* ***  IE10 & IE11 bug solution. IE doesn't change bg color back from black */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    html.ssg-active body {
        background-color: white;
    }
}


/************ Dark theme - default ********************************/


html #SSG_gallery {
    background: rgb(22, 22, 22);
}

@media (pointer: coarse) {
    html #SSG_gallery::after {
        background: linear-gradient(to top, rgba(22, 22, 22, 0) 44%, rgba(22, 22, 22, 1) 100%);
    }
}

html #SSG_galBg {
    background: rgb(22, 22, 22);
}

html #SSG_gallery img {
    border: 1px solid rgb(10, 10, 10);
    box-shadow: 0 0 8px 0px rgb(12, 12, 12);
}

html #SSG_gallery p, 
html #SSG_gallery p.title span {
	text-shadow: none;
	color:#b1b1b1;
	}

html #SSG_menu a.SSG_link {
	text-shadow: 0 0 16px black;
}

html #SSG_gallery .SSG_uwide p.uwtitle>span, 
html #SSG_gallery p, 
html #SSG_lastone p {
	box-shadow: none;
    background: rgb(38, 38, 38);
}

html #SSG_lastone p {
	box-shadow: none;
    background: rgb(44, 44, 44);
}


html.ssg-active ::-webkit-scrollbar, html.ssg-active ::-webkit-scrollbar-button {
    background: #0F0F0F;
}

html.ssg-active {
    scrollbar-color: #393939 #0F0F0F; 
}

html.ssg-active {
    scrollbar-base-color: #393939;
    scrollbar-track-color: #0F0F0F;
}

html.ssg-active ::-webkit-scrollbar-thumb {
    background: #393939;
}
