@import url('https://fonts.googleapis.com/css?family=Open+Sans:300');

html{
  font-family: 'Open Sans', sans-serif;
  height: 100%;
}

body{
  height:100%;
  background-color: #ccc;
}

#container{
  min-height:100%;
  min-width:100%;
}

#footer{
   position:fixed;
   bottom:0;
   width:100%;
   height:60px;
   background-color: #333;
}

#footer span{
  display: block;
  color: #fff;
  margin: 0 auto;
  margin-top: 15px;
  width: 200px;
  font-size:1.5em;
}

#images-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 100px;
}

.thumbnail-wrapper {
  background-color: #333;
  min-width: 22rem;
  min-height: 18rem;
  position: relative;
  flex: 1;
  flex-basis: 10rem;
  margin: 8px;
  margin-left:0px;
  margin-bottom:0px;
  transition: all .2s ease-in-out;
}

.thumbnail-wrapper:hover {
  transform: scale(1.025);
}

/* For an uneven grid in the gallery */
/*  
.thumbnail-wrapper:nth-child(5n) {
  flex-basis: 24rem;
}

.thumbnail-wrapper:nth-child(2n+1) {
  flex-basis: 23rem;
}

.thumbnail-wrapper:nth-child(7n+4) {
  flex-basis: 26rem;
  min-height: 22rem;
}*/

.thumbnailElem {
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: .3s ease-in-out;
}

.thumbnailElem:hover {
  opacity: 0.9;
  /*background-size: contain;*/
  
}

.text-wrapper{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(80, 80, 80, 0.7);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .2s ease;
}

.thumbnailElem:hover .text-wrapper{
  height: 1.8rem;
}

span.image-text{
  position: absolute;
  top: 0px;
  left: 5px;
  font-size: .9em;
  color: white;
}

.modal-content{
  background-color: #444;
  color: #fff;
}

.modal-content  img.img-responsive{
  border: 1px solid #333;
  border-radius: 7px;
}

.modal-body .img-responsive{
  min-height: 200px;
}

.imageLink{
  
  margin-right: 30%;
}

.modal-header {
  border-bottom: none;
  padding: 15px 20px 0px 20px;
  /*border-bottom: 1px solid #333;*/
}

.modal-title{
  font-size: 1.75em;
}

.modal-footer {
  border-top: 1px solid #333;
}

.close{
  color: #ddd;
  opacity: .7;
  font-weight: 400;
  transition: all .2s ease-in-out;
}

#loadMoreBtn {
  display: block;
  margin: 0 auto;
  margin-top: 8px;
  text-align: center;
  font-size: 1.3em;
  font-weight: 700;
  
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
    
  transition: all .2s ease-in-out;
}

#loadMoreBtn:hover{
  background-color: #bcbcbc;
}

.btn-primary{
  border: 1px solid #ccc;
  transition: all .2s ease-in-out;
}

.btn:hover{
  background-color: #bcbcbc;
}