/* Desktop layout is 742px so good for 762 and bigger */

/* This bits for the desktop too */
.search form input {
	width: 202px;
}

.search form input#q {
	width: 200px;
}

@media only screen and ( max-width: 761px ) {
	body {
		background: none;
		padding: 0;
	}
   html {
      overflow-y: scroll;
   }

	table.rtable {
		border-spacing: 0;
		width: 400px;
      margin: auto;
	}

	ul.nav {
		background: #363030 url('https://media.007james.com/static/menu.png') 50% 0 repeat-x;
		display: block;
		height: 0;
		margin: 0 auto;
		padding: 40px 0 0;
		position: relative;
		width: 100%;
		text-align: left;
		z-index: 1;
	}

	ul.nav:hover > li {
		display: block;
	}

	ul.nav li a {
		display: block;
		height: auto;
	}

	ul.nav > li {
		background: #363030;
		display: none;
		padding: 0;
		text-align: left;
	}

	ul.nav > li ul {
		margin: 0;
		position: absolute;
		right: 0;
		top: 0;
		width: 50%;
	}

	ul.nav > li ul li {
		padding: 0;
	}

	ul.nav > li ul li a {
		padding: 10px;
	}

	.content {
		padding: 0 6px;
		z-index: 1;
	}

	.header {
		width: 100%;
		z-index: 2;
      text-align:center;
	}

	.main {
		width: 100%;
	}

	.related tr:first-child {
		float: left;
		width: 100%;
	}

	.related tr:first-child td {
		float: left;
		min-height: 195px;
		width: 50%;
	}

	.related tr td {
		display: block;
		width: 100%;
	}

	.search {
		background: url('https://media.007james.com/static/btn-search.png') 0 0 no-repeat;
		border: none;
		height: 18px;
		padding: 0;
		position: absolute;
		right: 0;
		top: 7px;
		width: 18px;
	}

	.search:hover {
		background: #b80808;
		border: 1px solid #000;
		height: auto;
		padding: 5px;
		width: auto;
	}

	.search:hover form {
		display: block;
	}

	.search form {
		display: none;
	}

	.space {
		border: none;
		float: none;
		height: 15px;
		margin: 0px auto 0;
		padding:7px 4px;
		width: 100%;
	}

	.space br {
		display: none;
	}

	.summary {
		padding: 0;
		width: 100%;
	}

	.summary div {
		padding: 0;
		width: 100% !important;
	}

	.summary div img {
		border: none;
		height: auto;
		width: 100%;
	}
   .foot span {
      display: block;
   }
   span.nomobile {
      display:none;
   }
}

@media only screen and ( max-width: 500px ) {
   h1 {
      font-size: 1.5em;
      margin-top:1px;
   }
	.iright, .ileft {
		float: none;
		margin: 0;
		padding: 0;
	}

	.header img {
		height: auto;
		margin: auto;
		padding: 2%;
		width: 96%;
	}

	.iright img, .ileft img {
		border: none;
		height: auto !important;
		width: 100% !important;
	}
	table.rtable {
		width: 100%;
	}
   .nomobile2 {
      display:none;
   }
}

/* 300 wide, for 320 and bigger */
@media only screen and ( max-width: 419px ) {
	.related tr:first-child td {
		min-height: 145px;
	}

	.related tr:first-child td span {
		height: 135px;
		overflow: hidden;
		width: 135px;
	}

	.space {
		font-size: 10px;
	}
}
