@charset "utf-8";
/* CSS Document */
* { box-sizing: border-box; }

/* only #gridContainer should scroll, not the page itself */
html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
}

body {
    font-family: sans-serif; 
    background: #000;
/*    width: auto;*/
}

/* ---- grid ---- */

.grid {
  background: #000;
  margin: 0 auto;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer{
    width: vw;
    margin: 0 auto;
}

#gridContainer {
    background-color:#000;	
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;      /* allow this flex child to shrink so its own scrollbar (not the page) handles overflow */
    height: 100%;
    margin: 10px auto 0;
    overflow:hidden;
    overflow-y:scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
/*    margin-top:50px;*/
}

img {
    max-width:100%;
    max-height:100%;
}

/*
.grid-item {
  width: 33.333%;
}
*/
.grid-item {
    width: 400px;	
    height: 300px;    /* keep a fixed height otherwise masonry will not keep height the same for all images */
    padding:5px;
    float: left;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
}

.grid-item img {
    display: block;
  max-width: 100%;
/*    width: 100%;	*/
    margin:0 auto;

}

/* https://css-tricks.com/custom-scrollbars-in-webkit/ */
::-webkit-scrollbar {
    width: 30px;      
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 30px;
    background-color: #111;
 /*     -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,1); gives button look, remove for flat look*/
}

::-webkit-scrollbar-thumb {
    border-radius: 30px;
    height: 40px;
    background-color: #888;
}

/* hide #gridContainer scrollbars on mobile/tablet but keep it scrollable */
@media (max-width: 1024px) {
    #gridContainer {
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* IE/Edge */
    }
    #gridContainer::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;              /* Chrome/Safari */
    }
}

.selected img{
    transform: scale(.95);
    border-style: solid;
    border-color: deepskyblue;
    border-width: 5px;
}
.imgClass {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 400px;
    height: 300px;
}
.imgTitle {
    color: #fff;
    display: block;
    position: absolute;
    text-align: center;
    width: 90%;
    height: 25px;
    top: 10px;
    text-shadow: 5px 3px 13px #000;
}
