.grid {
	list-style: none;
	/*padding:0 0 20px 0;
	margin: 0 auto;
	text-align: center;*/
	margin: 0 auto 0 -10px;
	width: 100%;
}

.grid li {
	display: inline-block;
	margin: 5px;
	vertical-align: top;
	height: 260px;
}

.grid li > a,
.grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
}

.grid li.expanded > a::after {
	top: auto;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #ddd;
	border-width: 15px;
	left: 50%;
	margin: -15px 0 0 -15px;
}

.expander {
	position: absolute;
	background: #f2efea;
	top: auto;
	left: 0;
	width: 100%;
	margin-top: 15px;
	text-align: left;
	height: 0;
	overflow: hidden;
	border: 1px solid #D2D2D2;
	z-index:999;
	padding: 10px 0px;
}

.expander-inner {
	margin: 0px 30px;
	height: 100%;
}

.close {
	position: absolute;
	width: 25px;
	height: 25px;
	top: 10px;
	right:8px;
	cursor: pointer;
    z-index:9;
	background:url(//www.smithandnoble.com/files/?closeGrid.png) no-repeat ;;
}

.image-container,
.details {
	float: left;
	overflow: hidden;
	position: relative;
}

.details {
    width:44%;
	height:100%;
}
.details  table{ 
	height:100%;
}
.details table td {
	vertical-align:middle;
}
.image-container {
	height: 100%;
    width: 55%;
}
.image-container .fullimg  {
	height: 100%;
}
.image-container .fullimg table  {
	width:100%;
	height: 100%;
}
.image-container .fullimg table td  {
	vertical-align:middle;
}
.image-container img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.image-container .portrait .large-img{
	width: 360px;
	height: 450px;
	margin:0 auto;
	position: relative;
}
.image-container .landscape .large-img{
	width: 450px;
	height: 360px;
	margin:0 auto;
	position: relative;
}

.details h3 {
	font-size: 15px;
	margin-bottom: 4px;
	color:#2b3450;
	padding-left:5px;
}

.details p {
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #999;
}

.details a {
	color: #ff575d;
	line-height: 22px;
}

.details a:hover {
	border-color: #999;
}

.loading {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ddd;
	box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -25px 0 0 -25px;
	-webkit-animation: loader 0.5s infinite ease-in-out both;
	-moz-animation: loader 0.5s infinite ease-in-out both;
	animation: loader 0.5s infinite ease-in-out both;
}

@-webkit-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@-moz-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@media screen and (max-width: 830px) {
	.expander p { font-size: 13px; }
	.expander a { font-size: 12px; }
}

@media screen and (max-width: 650px) {
	.image-container { display: none; }
	.details { float: none; width: 100%; }
}

.arrow-link{
	cursor:pointer;
	position: absolute;
	top: 41%;
	z-index: 99999;
	background:url(//www.smithandnoble.com/files/?arrows.png) no-repeat ;
	width:35px;
	height:70px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.prev-link{
	left:3px;
	background-position:left center;
}
.next-link{
	right:5px;
	background-position:right center;
}
.photo-gallery-contents{
	float:left;
}
.photo-gallery .portrait > a > img{
	width:216px;
	height:260px;
}
.photo-gallery .landscape > a > img{
	width:442px;
	height:260px;
}

.photo-gallery .expander .portrait img.sample-img{

   width:360px;
   height:450px;
   position: relative;
}
.photo-gallery .expander .landscape img.sample-img{

   width:450px;
   height:360px;
   position: relative;
}

.browsepanel{
   background:none;
   height:auto;
   border:0;
   margin-bottom:0;
   padding:7px 0 7px 50px;
}
.browsepanel select {
/* 	font-size: 12px;  */
}
.browsepanel td{
	text-align:center;
}
.inspirationGalleryTitle{
	text-align:center;
}

.loading-overlay{
	background:#000;
	opacity:0.6;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:9999;
	display:none;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.form-control {
  height: 30px;
  padding: 3px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #2c3e50;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #2b3450;
}
.form-control:focus {
  border-color: #2b3450;
  outline: 0;
/*
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(44, 62, 80, 0.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(44, 62, 80, 0.6);
*/
}
.form-control::-moz-placeholder {
  color: #ece8e1;
  opacity: 1;
}
.form-control:-ms-input-placeholder {
  color: #ece8e1;
}
.form-control::-webkit-input-placeholder {
  color: #ece8e1;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  background-color: #ece8e1;
  opacity: 1;
}
.form-control,
input {
  border-width: 1px;
  -webkit-box-shadow: none;
  box-shadow: none;
}