/* O hai iPhone */

/*
	iPhone Stylesheet for <Wolf's Little Store>
	@author	name <johan.ronsse@gmail.com>
	@media screen > 480px
	@dependencies screen.css
*/

/*
	@overrides to make website readable on iPhone
*/

#container { width: 100%; }

/*
	Text styles
*/

body {
	background: #FFF;
	font-size: 14px;
	width: 300px;
	padding: 10px;
	-webkit-text-size-adjust:none;
	font-family: Helvetica, sans-serif;
}

.commentmetadata {
	position: relative;
	bottom: 19px;
	text-align: right;
	right: 10px;
}

#container, #homeSecondaryContent, #container ul.commentlist {
	padding: 0;
	width: 300px;
}

#header, #footer {
	padding: 20px 0;
}

h1, h2 {
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	padding: 6px 0 6px;
}

/*
	Forms
*/
input, textarea, select, button { font-family: Arial, sans-serif; font-size: 13px; }

/*
	A very simple column system
*/
.cols { padding: 0; float: none; }
.col { width: auto; padding-right: 10px; float: none; }
.col-2 { width: auto; } /* Double column */
#commentform .col-2 { width: auto;}
.col-3 { width: auto; } /* Triple column */
.col-4 { width: auto; } /* Four columns */
.col-5 { width: auto; } /* Five columns */
.col-6 { width: auto; } /* Six columns */

/*
	The Legendary Clearfix
*/
.clearfix:after, .cols:after, #controls:after, p.meta:after, #grid:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/*
	General purpose
*/

.w1 { width: auto; }
.w2 { width: auto; }
.w3 { width: auto; }
.w4 { width: auto; }
.w5 { width: auto; }
.w6 { width: auto; }
.h1 { height: auto; }
.h2 { height: auto; }
.h3 { height: auto; }
.h4 { height: auto; }

.setRight { float: none; }
.r1 { margin-right: 0; }
.r2 { margin-right: 0; }
.r3 { margin-right: 0; }
.r4 { margin-right: 0; }

.setLeft { float: none; }
.l1 { margin-left: 0; }
.l2 { margin-left: 0; }
.l3 { margin-left: 0; }
.l4 { margin-left: 0; }


#footer { padding: 36px 0; }
textarea { width: 180px;}

input#author { width: 132px; }
input#email { width: 200px;}
input#url { width: 200px;}

#commentform {
	width: 276px;
	padding: 10px 10px 0;
}

/* Other */


input {
	font-family: "Lucida Grande", Verdana, Arial, sans-serif;
	font-size: 11px; padding: 3px 2px;
}

textarea { 
	padding: 4px;
	min-height: 170px;
	width: 100%;
}

/*
	Buttons
*/
input.input-submit {
	padding: 0px 14px;
	height: 22px;
	line-height: 22px;
}

#controls {
	position: fixed;
	top: 10px;
	right: 10px;
}

#controls #nextItem {
	background: url('../images/controls_iphone.png') no-repeat 0 0;
	margin-right: 20px;
}
	#controls #nextItem:empty {
		background: url('../images/controls_iphone.png') no-repeat -120px 0;
	}

#controls #previousItem {
	background: url('../images/controls_iphone.png') no-repeat -60px 0;
}
	#controls #previousItem:empty {
		background: url('../images/controls_iphone.png') no-repeat -180px 0;
	}

.colorInverse #controls #nextItem { background: url('../images/controls_iphone_i.png') no-repeat 0 0; }
.colorInverse #controls #nextItem:empty { background: url('../images/controls_iphone_i.png') no-repeat -120px 0; }
.colorInverse #controls #previousItem { background: url('../images/controls_iphone_i.png') no-repeat -60px 0; }
.colorInverse #controls #previousItem:empty { background: url('../images/controls_iphone_i.png') no-repeat -180px 0; }

/*
	Rebuild the grid to give it more of an iPhone style
*/

#grid { 
	margin: 0 0 18px;
	clear: both;
	width: 300px;
	padding: 0;
	border: none;
}

#container #grid td {
	vertical-align: top;
	padding: 0 10px;
	display: block;
	width: 278px;
	border: 1px solid #CDCDCD;
	border-bottom: none;
}

	#container #grid tr:first-child td.date {
		-webkit-border-top-right-radius: 5px;
		-webkit-border-top-left-radius: 5px;
	}
	#container #grid tr:last-child td.comments {
		-webkit-border-bottom-right-radius: 5px;
		-webkit-border-bottom-left-radius: 5px;
	}

	#container #grid td.date {
		padding-top: 10px;
	}
	
	#container #grid td.comments {
		padding-bottom: 10px;
	}

	#container #grid td.comments,
	#container #grid td.article {
		border-top: none;
	}

	#container #grid tr:last-child td.comments {
		border-bottom: 1px solid #CDCDCD;
	}

td.comments {
	display: none;
}
.avatar {
	display: none;
}

#fakeGrid {
	display: none;
}

.p-col-2 {
	padding: 0;
}

#photoOtm img {
  max-width: 320px;
  width: 320px;
  display: block;
}