@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px),
all
and (min-width: 320px)
and (max-width: 480px)
{

/* Structural Changes */

header > section, nav > section, section > section, footer > section {
	width: 100%;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

body > header {
	height: 86px;
}

body > header a#logo {
	width: 104px;
	height: 41px;
	background-size: 100% auto;
	top: 5px;
	left: 5px;
}

body > header section {
	height: 70px;
}

nav#main {
	height: 32px;
	overflow: hidden;
}

nav#main a {
	font-size: 8px;
	margin-right: 1px;
	padding: 5px 3px;
}

section#content {
	padding-top: 0;
	margin-top: 0;
}

#feed footer  {
	width: 92%;
	padding: 4%;
	margin: 20px 0 0 0;
}

#feed footer a#logo, aside.sm {
	display: none;
}

/* Feed Adjustments */

#posts, #feed, #posts .post {
	max-width: 100%;
}

#posts {
	margin: 0;
}

#posts .post {
	max-width: 98%;
	margin-top: 12px;
}

#feed h1 {
	max-width: 94%;
	padding-left: 3%;
	padding-right: 3%;
	margin-top: 12px;
} 

h2 {
	font-size: 16px;
}

#comments {
	max-width: 100%;
	margin-left: 0px;
}

#comments .post {
	max-width: 98%; 
}

/* Posts Listing */

#posts .post article span.image {
	width: 50px;
	height: 50px;
}
#posts .post article span.image img {
	height: 50px;
}
#posts .post article div {
	width: 70%;
}
#posts .post article div.full-article {
	width: 90%;
}
#posts .post article aside span, #posts .post article aside a {
	width: 98%;
}

/* S5 Listing */

#s5-logo {
	width: 150px;
	left: 0px !important;
}

table.fields tr th, table.fields tr td {
	padding: 5px 3px;
	background: none;
}

table.fields {
	font-size: 8px;
}

#comments.mobile-view {
	display: block;
	clear: left;
}

table#prize-table, table.verse {
	display: none;
}

/* Raceday */

#full-width {
	margin: 10px 0;
	padding-top: 5px;
	max-width: 100%;
	
	#raceday-logo {
		width: 240px;
		margin-left: 5%;
	}
}

div.race-title h2 {
	font-size: 16px;
}

#raceday {
	.block-buffer {
		margin-left: 5%;
	}
	.block,.block.ladder {
		width: 100%;
		overflow: hidden;
		margin: 2% 0 0 5%;
		h2 {
			width: 100%;
			padding: 2%;
		}
	}
	
	.races {
		max-width: 100%;
	}
	
	.selections {
		padding: 0px;
		width: 90%;
		margin: 2% 0 10px 5%;
		overflow: hidden;
		.tabs {
			margin-top: 0px;
		}
	}
	
	#balance {
		top: 15px;
		font-size: 10px;
		h2 {
			font-size: 20px;
		}
	}
}

#raceday .intro .block, #raceday .selections .block, #raceday .races {
	width: 90%;
}

.tabs li {
	margin: 10px 0 0 5px;
}

.tabs li > a {
	padding: 0 5px;
}

/* Hidden Elements */

#login, #comments, nav#settings, #posts .post article aside div, #posts .post article #article-column, div.banner, .hide, #balance, #settings{ 
	display: none;
}

}