._GalleriesBlock {
	position: relative;
	text-align: center;
	/*
	border: thin solid Gray;
	background-color: #eaeaea;
	background-color: white;
	*/
	border: none;
	padding: 1em;
	}

._GalleriesBlock ._GalleryBlock {
		padding: 2ex 0;
		}
		
._GalleriesBlock ._GalleryBlock ._title,
._GalleriesBlock ._GalleryBlock  ._subtitle {
	font-size: 150%;
	text-align: left;
	margin: 0 2em;
	color: black;
	float: left;
	}

._GalleriesBlock ._GalleryBlock  ._subtitle {
	float: right;
	}

._GalleriesBlock ._GalleryBlock ._thumbnails {
	border-top: 2px solid gray;
	clear: both;
	}
		
._GalleriesBlock ._GalleryBlock ._thumbnails  ._edit_sortable_placeholder {
	width:160px;
	height: 160px;
	}
		
._GalleryBlock ._tile {
	position: relative;
	display: inline-block;
	margin: 4px;
	border: 1px solid gray;
	width: 160px;
	height: 160px;
	background-color: White;
	cursor: pointer;
	}

._GalleryBlock ._tile.zoomed img {
	visibility: hidden;
	}
	
._GalleryBlock ._tile img {
	position: absolute;
	left: 0; top: 0;
	right: 0; 
	bottom: 0;
	margin: auto;
	
	max-width: 152px;
	max-height: 152px;
	}

._GalleryBlock ._tile img.fullsize {
	visibility: hidden;
	}
	
#_ZoomPanel {
	visibility: hidden;
	position: fixed;
	z-index: 99;
	left: 0; top: 0; right: 0; bottom: 0;
	}
	
#_ZoomPanel .fader {
	opacity: 0;
	position: absolute;
	top: 0; bottom: 0;
	left: 0; right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	}

#_ZoomPanel img.previous.control, #_ZoomPanel img.next.control {
	position: absolute;
	top: 0; bottom: 0;
	width: 64px;
	margin: auto;
	}
	
#_ZoomPanel .control {
	cursor: pointer;
	}
	
#_ZoomPanel .previous.control {
	left: 8px;
	}
	
#_ZoomPanel .next.control {
	right: 8px;
	}
	
#_ZoomPanel .exit.control {
	position: absolute;
	top: 8px;
	right: 16px;
	color: white;
	font: bold 24pt sans-serif;
	}
	
#_ZoomPanel .canvas {
	position: absolute;
	/*
	top: 0; bottom: 0;
	left: 0; right: 0;
	margin: 16px 96px 16px 80px;
	*/
	top: 24px; bottom: 24px;
	left: 96px; right: 96px;
	}
	
#_ZoomPanel .canvas .ZoomHelper {
	position: absolute;
	left: 0; top: 0;
	right: 0; bottom: 0;
	margin: auto;
	outline: 4px solid white;
	background-color: black;
	}
	
#_ZoomPanel .canvas .ZoomHelper img, #_ZoomPanel .canvas .ZoomHelper video {
	position: absolute;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	}
	
#_ZoomPanel .canvas .ZoomHelper img#ZoomImageThumbnail {
	opacity: 0.2;
	}

#_ZoomPanel .canvas .ZoomHelper img#ZoomImageExit.control {
	display: block;
	width: 32px;
	height: 32px;
	right: 4px;
	top: 4px;
	left: auto;
	}

/* rules for edit mode */

._GalleryBlock ._edit_container, ._GalleryBlock ._edit_sortable_placeholder {
	display: inline-block;
	}

