div.smallPhotos {
	margin: 0;
	padding: 2px 0 0 0;
}
#largePhoto {
	min-height:417px;
	height:417px;
	max-height:417px;
	line-height:417px;
	text-align: center;
	margin: 0 auto;
	padding: 0;
	background: black;
	position:absolute;
	top:0;
	z-index:-30;
}
body[orient="landscape"]  #largePhoto {
	min-height:270px;
	height:270px;
	max-height:270px;
	line-height:270px;
}
#photoNav {
	background: url(../images/controls.png) transparent repeat-x;
	height:45px;
	line-height:45px;
	position:absolute;
	bottom:0px;
	display:none;
	width:300px;
	margin:0;
	padding:0 10px;
	text-align:center;
}
body[orient="landscape"] #photoNav {
	width:460px;
}
#photoNav li {
	list-style-type:none;
	display:inline;
	color:white;
}
.left {
	float:left;
	text-align:left;
	margin:0 0 0 4px;
	padding:0;
}
.left * {
	margin:0 10px 0 0;
	vertical-align:middle;
}
.right {
	text-align:right;
	float:right;
	margin:0 4px 0 0;
	padding:0;
}
.right * {
	margin:0 0 0 10px;
	vertical-align:middle;
}
#playPause {
	position:absolute;
	bottom:0;
	left:45%;
}
#photoOptions {
	background: url(../images/controls.png) #000000 repeat-x top left;
	position:absolute;
	bottom:0;
	display:none;
	min-width:280px;
	width:280px;
	max-width:280px;
	margin:0;
	padding:20px;
	line-height:normal;
}
body[orient="landscape"] #photoOptions {
	min-width:440px;
	width:440px;
	max-width:440px;
	padding:10px 20px;
}
#photoOptions .whiteButton {
	margin: 0 0 5px 0;
}
body[orient="landscape"] #photoOptions .whiteButton {
	margin: 0 5px 1px 0;
}
#photoOptions .grayButton {
	margin: 5px 0 0 0;
}
img.large {
	margin: 0 auto;
	padding: 0;
	max-width: 320px;
	max-height:417px;
	vertical-align:middle;
	position:relative;
	top:-2px;
}
body[orient="landscape"] img.large {
	max-width: 480px;
	max-height: 270px;
}
img.small {
	border: none;
	padding: 0;
	margin: 0 4px 0 0;
	width: 76px;
	min-height: 76px;
	position: relative;
	left: 2px;
	background: black;
}	
.loadMore {
	display: block;
	width: 100%;
	text-align: center;
	margin: 0 auto;
	padding: 0 0 2px 0;
}

/************************************************************************************************/

a {
	text-decoration: none;
	color: inherit;
	font-weight: bold;
}
.grayButton[selected], .grayButton:active , .whiteButton[selected], .whiteButton:active{
	background: none !important;
	color: #ffffff;
	text-shadow: #333 0px 1px 1px;
	-webkit-border-image: url(../images/blueButton2.png) 0 14 0 14 !important;
}
img.reset {
	position: relative;
	top: -25px;
	left: -5px;
}

/************************************************************************************************/

h2.contact {
	height: 60px;
	color: #333333;
	line-height: 60px;
	text-align: center;
	position: relative;
	margin: 0 0 20px 8px;
	background: transparent url(../images/contact.png) no-repeat center left;
}
ul.roundRect {
	font-size: 17px;
	padding: 0;
	margin: 0 0 20px 0;
	background-color: white;
	-webkit-border-radius: 8px;
	border: 1px solid #999999; 
}
ul.roundRect li  {
	min-height:40px;
	margin:0;
	list-style-type: none;
	color:black;
	border-bottom: 1px #999999 solid;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
ul.roundRect li a {
	font-weight: bold;
    margin: 0;
	padding:10px 10px 14px 10px;
	line-height:17px;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
	font-size:small;
	color:#324F85;
}
ul.roundRect li a span {
	font-weight:bold;
	font-size:17px;
	float:right;		  
	margin-right:10px;	  
	color: black;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
ul.roundRect li strong {
    margin: 0;
	padding:10px 10px 14px 10px;
	line-height:17px;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
ul.roundRect li[selected="true"],ul.roundRect li.active {
	background: url(../images/iPhoneChecked.png) center right no-repeat;
	color: #324F85;
}
ul.roundRect li a:active, ul.roundRect li a[selected]  {
	color: inherit !important;
	background:none !important;
}
ul.roundRect li:first-child {
	border-top:0;    /* Remove border above the first item of the list */
}
ul.links li {
	background: transparent url(../images/listArrow.png) no-repeat right center;
}
ul.links li a {
	font-weight: bold;
	font-size:17px;
    margin: 0;
	padding: 10px 10px 17px 10px;
	line-height:17px;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
	color:black;
}
ul.overflow {
	
}
/************************************************************************************************/

.albumPhotoCount {
	font-weight:normal;
	color:gray;
}
.description {
	font-size: 12px;
	font-weight:normal;
	line-height:12px;
	color: gray;
}
.albumPhotoCount:active, .description :active, .albumPhotoCount[selected], .description [selected] {
	color:white;
}

/*******************************************Overwriting iUI***********************************************/

a.image:active , a.image[selected], a.image[selected="progress"]{
	background: none !important;
	color: #FFFFFF !important;
}
#backButton {
    -webkit-tap-highlight-color:rgba(0,0,0,0.0);
}
.blueButton:active {
	-webkit-border-image: url(../images/toolButton.png) 0 5 0 5;
	border-width: 0 5px;
}
a[target="_replace"] {
    background: #ffffff;
    width: 100%;
	display: block;
}
a[target="_replace"]:hover {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 18px;
    background-color: #194fdb;
    background-image: url(../images/loading.gif), url(../images/selection.png);
    background-repeat: no-repeat, repeat-x;
    background-position: right center, left top;
    color: #FFFFFF;
}
form > h1 {
    margin: 0 10px 0 10px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: #ffffff 0px -1px 0;
    text-align: left;
}
.row > input {
	-webkit-tap-highlight-color:rgba(0,0,0,0.0);
	color:gray;
}
.row > input:active {
	color:black;
}
.panel > p {
	text-align: justify;
	margin: 5px 0;
	padding: .1em;
}
.panel  p a {
	color: black;
}
.panel p  a:active, .panel p  a[selected]  {
	background-color: transparent !important;
    background-image: none !important;
    color: black !important;
}
.grayButton {
	color: white !important;
}
#preloader {
    background-image: url(../images/loading.gif), url(../images/selection.png),
        url(../images/blueButton.png), url(../images/listArrowSel.png), 
		url(../images/listGroup.png), url(../images/iPhoneChecked.png), url(../images/blueButton2.png), 
		url(../images/grayButton.png), url(../images/whiteButton.png), url(../images/controls.png), 
		url(../images/newpage.png), url(../images/play.png), url(../images/pause.png), url(../images/prevPhoto.png), url(../images/nextPhoto.png);
}

/********************************************************************************************************/

.white {
	background: none !important;
	background-color: white;
	text-align: center;
	font-size: 20px;
	color: #cccccc;
}
.white a, .white a:active, .white a[selected], .white a[selected="progress"] {
	color: #cccccc !important;
}
#extraButton {
	display: none;
}