/* https://stackoverflow.com/questions/7273338/how-to-vertically-align-an-image-inside-a-div */


#divViewer .divBody {
	position: relative;
	left: 50%;
	margin-left: -400px;
/*
border: 1px solid #ccc;
*/
	width: 800px;
	height: 600px;
}
#divViewer .divBody img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: inline-block;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}
#divViewer .divButtons { text-align: center; }
#divViewer2 .divButtons .button { margin: 10px 5px 30px; }
#divViewer #btnPrev { position: absolute; top: 260px; left: 50%; margin-left: -455px; z-index: 1010; }
#divViewer #btnNext { position: absolute; top: 260px; left: 50%; margin-left: 405px; z-index: 1010; }


.ulGroup {
	margin: 5px 0;
	padding: 10px;
	list-style: none;
	border: 1px solid #ccc;
	background-color: rgba(0,0,0,0.05);
}
.ulGroup2:last-child { border-bottom-width: 1px; }
.ulGroup li.Title {
	display: block;
	padding-left: 10px;
	font-size: 24px;
	border-bottom: 1px solid black;
	text-align: left;
}
.ulGroup li.Image {
	position: relative;
	display: inline-block;
	margin: 5px;
	padding: 0;
	width: 120px;
	height: 120px;
	background-color: #ccc;
	border: 1px solid black;
}
.ulGroup li.Image:hover { background-color: #808080; cursor: pointer; }
.ulGroup li.Image img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: inline-block;
	margin: auto;
	max-width: 100px;
	max-height: 100px;
}

.ulGroup li.Selected { background-color: #eb96a9; }










/* MOBILE */

/*
	NOTE: the widths for larger screens are based on a 16:9 resolution

	http://stackoverflow.com/questions/18477016/switching-css-classes-based-on-screen-size
	https://en.wikipedia.org/wiki/Display_resolution#/media/File:Vector_Video_Standards8.svg
	http://stackoverflow.com/questions/6747242/what-is-the-difference-between-max-device-width-and-max-width-for-mobile-web
	http://www.javascriptkit.com/dhtmltutors/cssmediaqueries2.shtml
	https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
	http://stackoverflow.com/questions/6370690/media-queries-how-to-target-desktop-tablet-and-mobile
*/

/* Smartphone (portrait and landscape) - CGA (320) to HVGA (480) */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 736px) {
	#divViewer .divBody {
		left: 0;
		margin-left: 0;
		width: 100%;
		height: 350px;
	}

	#divViewer #btnPrev { position: static; top: auto; left: auto; margin-left: 10px; z-index: 1010; }
	#divViewer #btnNext { position: static; top: auto; left: auto; margin-left: 10px; z-index: 1010; }
}


/* Smartphone (landscape) */
@media only screen 
and (max-device-width: 736px)
and (orientation: landscape) {
}


/* Smartphone (portrait) */
@media only screen 
and (max-device-width: 736px)
and (orientation: portrait) {
}


/* Tablet (portrait and landscape) - PAL (768) to PAL+ (1024) */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
}


/* Tablet (landscape) */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: landscape) {
}


/* Tablet (portrait) */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: portrait) {
}


/* Desktop/Laptop (landscape) - HD 720 (1280x720), Unnamed (1366x768), WXGA (1280x800) */
/* Anything else - Unnamed (1440x900), Unnamed (1600x900), WSXGA+ (1680x1050), HD 1080 (1920x1080), WUXGA (1920x1200) */
/* NOTE: we 'min-device-width > 736' so that cell phones aren't triggered */
@media only screen 
and (min-device-width: 737px)
and (min-height: 720px) {
}

