.header-type nav .galereya a {
  border-bottom: solid 1px #ffffff !important;
}

.page-content p {
	text-align: center;
}

.page-content article > div {
	width: 80%;
	margin: auto;
}

.page-content .phones {
	text-align: center;
}

.page-content article:nth-child(2n) {
  /*background-color: #ffffff30;*/
}

#pre-gallery div.tableGalleryRowGroup { 
	margin-left:auto;
	margin-right:auto;
	border-spacing:10px;
	border-width:0;
}

#pre-gallery .tableGalleryRow > div {
	display:table-cell;
	width:1%;
	border-width:0;
	vertical-align:middle;
}

#pre-gallery.gallery a,
#pre-gallery.gallery img {
	cursor:pointer;
}

#pre-gallery img, image {
	display:block;
	margin:auto;
	width:100%;
}

#pre-gallery .tableGalleryRow > div a, div#gallery-container a {
	display:block;
}

.tableGalleryRow div:hover {
	outline:rgb(255, 0, 128) solid 6px;
	outline:rgb(0, 255, 64) solid 6px;
}

#alert-container-gallery > img:first-of-type.active, #alert-container-gallery > img:nth-of-type(2).active {
	border-bottom:solid 3px red;
}

div#gallery-container div.tableGalleryRowGroupContainer {
	position:relative;
	margin:10px;
}

div#gallery-container div.tableGalleryRowGroup {
	display:inline-table;
	width:100%;
	font-style:italic;
	font-size:14pt;
}

div#gallery-container div.tableGalleryRow {
	display:table-row;
	width:100%;
	height:100%;
}

div#gallery-container .tableGalleryRow > div, div#gallery-container .tableGalleryRow > div~div, div#gallery-container .tableGalleryRow ~ .tableGalleryRow > div {
	display:table-cell;
	width:33%;
	padding:5px;
	vertical-align:middle;
}

div#gallery-container .tableGalleryRow > div~div 
{
	border-left-width:0;
}

div#gallery-container .tableGalleryRow ~.tableGalleryRow > div {
	border-top-width:0;
}

div#gallery-container .tableGalleryRow ~ .tableGalleryRow > div ~ div {
	display:table-cell;
	width:33%;
	border-top-width:0;
	border-left-width:0;
	vertical-align:middle;
	padding:5px;
}

div#gallery-container .tableGalleryRow img {
	width:100%;
}

div#gallery-container img, image {
	display:block;
}

#actual-image-container {
	position:fixed;
	top:0;
	left:0;
	z-index:9999;
	display:none;
	width:100%;
	height:100%;
	text-align:center;
	background-color:rgba(66,66,66,.7);
}

#actual-image-container:before {
	display:inline-block;
	height:100%;
	content:'';
	vertical-align:middle;
}

#alert-container-gallery {
	position:relative;
	display:inline-block;
	vertical-align:middle;
	width:90%;
	margin-bottom:20px;
	outline:#000 solid 1px;
	outline-offset:10px;
}

#alert-container-gallery > img {
	display:block;
	width:70%;
	max-width:none;
	margin-left:auto;
	margin-right:auto;
}

#alert-container-gallery > image {
	display:block;
	width:100%;
}

#gallery-container:before, #thumbs_panel {
	display:inline-block;
	vertical-align:middle;
}

#alert-container-gallery #alertContentContainer {
	margin-top:15%;
}

#alert-container-gallery > img:first-of-type {
	position:absolute;
	top:40%;
	width:10%;
}

#alert-container-gallery > img:nth-of-type(2) {
	position:absolute;
	right:0;
	top:40%;
	width:10%;
}

#cover-gallery, #gallery-container {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

#thumbs_panel {
	position:relative;
	width:70%;
	max-width:1000px;
	max-height:85%;
	overflow-y:auto;
	background:0 0;
}

#gallery-container {
	z-index:9999;
	text-align:center;
	background-color:rgba(66,66,66,0);
	transition:background-color .5s ease-in-out;
}

#gallery-container:before {
	height:100%;
	content:'';
}

#cover-gallery {
	z-index:9000;
	background-color:#424242;
	opacity:0;
	filter:alpha(opacity=30);
}

#gallery-container.background-1 {
	background-color:rgba(66,66,66,.9);
}

#gallery-container.background-lighter {
	background-color:rgba(66,66,66,.8);
}
