/**-------------------**
| YEARBOOK CSS
**--------------------**/

body {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: auto;
}



.container{
  grid-area: c;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 20px;
  grid-auto-flow: dense;
  overflow: scroll;
  padding-right: 20px;  /*fix box-shadow on right side cutting off*/
  padding-left: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  
  


}

/*scrollbar stuff*/
.container {
    -ms-overflow-style: none;  // IE 10+
    overflow: -moz-scrollbars-none;  // Firefox
}

/*Keeps the shaking away.*/

.container::-webkit-scrollbar { 
    display: none;  // Safari and Chrome
}

.container div{
  z-index: 1;
  position: relative;
  padding: 0;
  overflow: hidden;
  box-shadow: 5px 5px 10px rgba(0,0,0,.2), 
              5px 5px 25px rgba(0,0,0,.1);
            
  transition: all .3s ease-in-out;
}
.container div img{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  transition: all .3s ease-in-out;
  
}

/*make big*/
.container>div:hover, .container>div:hover img{
  transition: all 1s;
  transform: scale(1.05);
}

/* How the images are positioned*/

.vertical{
  grid-row: span 2;
}
.horizontal{
  grid-column: span 2;
}
.big{
  grid-row: span 2;
  grid-column: span 2;
}
