.gallery-items a {
	display:inline-block;
	margin:0 3px;
	min-height:136px;
}
.gallery-items img {
	max-width:100px;
	max-height:136px;
	margin:0 3px;
}
.gallery-item-title {
	white-space:
	nowrap;overflow:
	hidden;text-overflow: ellipsis;
	font-weight:bold;
}

.img-container {
	margin-bottom:5em;
}
.img-container [class*="col-"] {
  text-align:center;
  padding:2em;
  font-size:.9em;
  min-height:150px;
  position:relative;
}
.img-container figcaption {
	padding-top:8px;
}

.img-position > * {
	vertical-align: bottom;
	line-height: normal;
}
.img-position a {
	display:inline-block;
	line-height:140px;
}
.img-position img {
	vertical-align:bottom !important;
	margin-left:auto;
	margin-right:auto;
	white-space:nowrap;
	overflow:hidden;
}

.nav-tabs .o2button {
	padding:0 !important;
	line-height:20px;
}
.nav-tabs > li > a {
	line-height:.8em;
	margin-right:0;
	padding-left:10px;
	padding-right:10px;
}
.nav > li.o2button > a:hover {
	/* override bootstrap hover */
	background-color:transparent !important;
	border-color:transparent !important;
}

.rotate90 {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	transform: rotate(90deg);
}


/* Styles for individual gallery pages */

#hardware-boxes .single-image img {
	max-width:200px;
}

#screenshots .img-container [class*="col-"] img {
  display:block;
  margin-left:auto;
  margin-right:auto;
}

/* Media queries */

@media screen and (max-width:480px) {
  .row {
	  padding-bottom:2em;
	  border-bottom:1px solid #555;
  }
  .img-container {
	margin-bottom:2em;
  }

  /* Center tabs on mobile */
  .nav-tabs > li {
	float:none;
	display:inline-block;
	zoom:1;
  }
  .nav-tabs {
	text-align:center;
  }
}