body {
    overflow-y: scroll;
}

body {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #eee;
}

.movie.img-polaroid.thumbnail.ng-scope {
    margin: 0;
    padding: 0;
}

/* css grid */
.thumbnails-container {
	margin-top: 15px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 10px;
}

/* Small Devices, Tablets */
@media only screen and (max-width : 1024px) {
	.thumbnails-container {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
	.thumbnails-container {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.modal-dialog.modal-lg {
		margin: 0;
		border-radius: 0 !important;
	}

	.modal-content {
		border-radius: 0;
	}

	a.img {
		display: none;
	}

	h3.ng-binding {
		font-size: 18px;
	}

	div#moviedata {
		z-index: -1;
	}

	button.close {
		font-size: 26px;
		z-index: 1000000000000;
		position: absolute;
		right: 0;
		top: 0;
		background-color: gray;
		padding: 9px;
		color: black;
	}

	a.btn.btn-default.btn-sm.ng-binding {
		width: 27px;
		overflow: hidden;
	}

	iframe.embed-responsive-item.rotate-full-screen {
		rotate: 90deg;
		/*
		height: 100% !important;
		width: 100% !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		bottom: 0 !important;
		right: 0 !important;
		 */
	}
}

/* Small Devices, Tablets */
@media only screen and (max-width : 736px) {
	.thumbnails-container {
		grid-template-columns: 1fr 1fr;
	}
}

/* Custom, iPhone Retina */ 
@media only screen and (max-width : 320px) {
	.thumbnails-container {
		grid-template-columns: 1fr;
	}
}

.image-holders {
	position: relative;
}

.movie-title {
    margin: 4px;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
	overflow: hidden;
    max-height: 61px;
}

.img-wrapper-grid a {
	color: black;
	text-decoration: none !important;
	display: grid;
	grid-template-rows: 5fr 2fr;
	grid-template-areas: 
	  "image"
	  "title";
}

.img-wrapper-grid a:hover {
    background-color: lightgray;
}

.movie-title {
	grid-area: title;
}

.image-holders {
	grid-area: image;
}

.status-bar {
	background-color: lightblue;
    border: 1px solid black;
    padding: 15px;
    position: fixed;
    width: auto;
    margin: 15px;
    display: block;
}

.form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}
.form-signin .checkbox {
  font-weight: normal;
}
.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.loading {
    background: url(data:image/png;base64,iVBORw0KGgoAAA...;) no-repeat center center; 
}

.loaded {
    background-size:cover;
    background-position:center center;
}

li.img-polaroid {
	height: auto;
	overflow: hidden;
	text-align: center;
	width: 235px;
	margin-bottom: 5px !important;
	float: left;
	position: relative;
}

li.img-polaroid strong {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    width: 100%;
}

img.cover-img {
	/* margin: 10px; */
	/* height: 248px !important; */
	/* width: auto !important; */
	width: 100% !important;
	background-size: cover;
	/* background-size: contain; */
	background-repeat: no-repeat;
	height: 176px !important;
}

.portrait img.cover-img {
	height: 300px !important;	
}

img.nohosts {
    -webkit-filter: grayscale(100%) opacity(20%);
}

img.unscanned {
    -webkit-filter: opacity(50%);
}

div.img-wrapper {
	/* float: left; */
	height: 248px;
	width: 100%;
	overflow: hidden;
	margin: auto;
}

.portrait div.img-wrapper {
	height: auto !important;
}

ul {
	list-style-position: inside;
	padding-left: 0 !important;
	margin-bottom: 10px;
}

div#moviedata ul li {
	list-style: none;
	/* margin-left: -15px !important; */
	display: inline;
	margin-right: 10px;
}

ul.tag {
}

ul.tag li {
	float: left;
	margin: 5px;
	margin-right: 20px;
}

movie {
	float: left;
}

.masonry-brick {
    /* display: none;
    padding: 0;*/
    float: left;
    position: relative;
}

.masonry-brick.loaded {
    display: block;
}

	
.thumb-modal {
	width: 100%;
	height: auto;
}

/* ----------- iPhone 5 ----------- */

@media only screen 
and (max-device-width : 760px) {
	
  	.img-polaroid strong {
  	  	font-size: 15px;
  	}
  	
  	.container {
  		padding: 0;
  	}

	li.img-polaroid {
		width: 100% !important;
		position: relative !important;
	 	left: 0 !important;
	 	top: 0 !important;	
	}
	
	ul.thumbnails {
		padding: 0;
	}
	
	.thumb {
		width: 100%;
		height: auto;
	}
	
	.loaded {
    	background-size: contain !important;
	}
	
}