﻿body, html{
    box-sizing: border-box;
    margin:0;
    padding:0;
    text-align:center;
    background-color:#000;
}
body.open{
    padding:20px 0;
    background-color:#fff;
}

#wrapper{
    font-size:0;
    line-height:0;
    background-repeat:no-repeat;
    overflow:hidden;
    position: relative;
}

#wrapper.insensitive:before{
    content: "X";
    top:12px;
    right:16px;
    color:#000;
    font-size:25px;
    font-family:sans-serif;
    opacity:0.4;
    position:absolute;
}

#wrapper.insensitive:hover:before{
    opacity:0.6;
}

#wrapper.insensitive.loading:before {
    position:fixed;
    content: " ";
    z-index:0;
    top:50%;
    left:50%;
    border: 1px dashed #333;
    border-top: 1px dashed #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-left:-30px;
    margin-top:-30px;
    display:block;
    animation: spin 3s linear infinite;
}

#wrapper.insensitive:hover{
    cursor:pointer;
}

#wrapper.insensitive, #wrapper.insensitive:hover{
    background-color:#fff !important;
    cursor:pointer;
    background-size:contain;
    background-position:center center;
    max-height:625px !important;
    min-height:625px !important;
    height:625px !important;
}

#grid {
    box-sizing: border-box;
    -webkit-column-gap: 0;
    column-gap: 0;
    position: relative;
}
#grid > div  {
    width: 100%;
    height: auto;
    font-size:0;
    line-height:0;
    position: relative;
    text-align:center;
    background-color:#fff;
}

#grid > div img {
    width: 100%;
    height: auto;

}
#grid > div > .info > span{
    display:none;
}
#grid > div:hover > .info > span{
    display:block;
    font-size:16px;
    background-color:#fff;
    display:inline-block;
    font-family: serif;
    font-style:italic;
    line-height:1.2;
    border-radius:50%;
    width:18px;
    height:18px;
    position:absolute;
    opacity:0.7;
    padding:2px;
    right:5px;
    top:5px;
}

#grid > div:hover > .info .tooltip{
    display:none;
}

#grid > div:hover > .info:hover .tooltip{
    display:block;
}

#grid > div .tooltip {
    display: none;
    position: absolute;
    width: 100%;  
    height: 100%;    
    padding: 0;
    margin: 0; 
    top:0; 
    left:0;  
    z-index: 10000000;
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: left;
    font-weight: bold;
    font-size: 11px;
    font-family:Sans-Serif;
    overflow-y:auto;
}

#grid > div:hover .tooltip {
    display: inline;
}

#grid .tooltip img{
    max-height:40px !important;
    max-width:40px !important;
    float:right;
    border-radius:50%;
    margin:-2px -3px 0 3px;
    background-color:#fff;
}

#grid .tooltip a{
   color:#333;
   opacity:0.8;
   font-size: 0.7rem;
   display:block;
   text-decoration:none;
   background-color:#fff; 
   margin: 0 0 10px 0;
   padding: 12px;
   font-weight: normal;
    width:100px;
}

#grid  .tooltip a:hover{
   background-color:#111; 
   color:#fff;
}

#grid .tooltip:hover {
    cursor:pointer;
}

#grid .tooltip h1{
    font-size:0.8rem;
    display:block;
    line-height:1.2;
    margin:0;
    padding:8px;
    background-color:rgba(255,137,0,0.9);
    word-wrap: break-word;
}

#grid .tooltip h2{
    font-size:0.65rem;
    line-height:1.2;
    display:block;
    margin:0;
    padding: 6px 8px;
    color:rgba(255,137,0,0.9);
    background-color:rgba(0,0,0,0.5);
    word-wrap: break-word;
}

#grid .tooltip p{
    font-size:0.7rem;
    display:inline-block;
    margin:0;
    padding:4px 4px 8px 8px;
    line-height:1.3;
    font-weight:normal;
    word-wrap: break-word;
    max-width:100%;
    
}

@media (min-width: 0px) {
  #grid{
    -webkit-column-count: 2;
            column-count: 2;
  }
}

@media (min-width: 468px) {
  #grid{
    -webkit-column-count: 4;
            column-count: 4;
  }
}

@media (min-width: 768px) {
  #grid{
    -webkit-column-count: 6;
            column-count: 6;
  }
}

@media (min-width: 992px) {
  #grid {
    -webkit-column-count: 7;
            column-count: 7;
  }
}

@media (min-width: 1500px) {
  #grid {
    -webkit-column-count: 11;
            column-count: 11;
  }
}

@media (min-width: 2500px) {
  #grid {
    -webkit-column-count: 14;
            column-count: 14;
  }
}

@media (min-width: 5000px) {
  #grid {
    -webkit-column-count: 17;
            column-count: 17;
  }
}

@media (min-width: 9000px) {
  #grid {
    -webkit-column-count: 21;
            column-count: 21;
  }
}

@media (min-width: 768px) {
  #grid > div {
    -webkit-column-break-inside: avoid;
            break-inside: avoid;
  }
}
