#gallery {
	margin-left: auto;
	margin-right: auto;
	width: 800px;
	max-width: 800px;
	max-height: 533px;
}

#gallery-options, #gallery-numbers {
	padding: 0px;
	margin: 0px;
	list-style-type: none;
	font-size: 8.5pt;
	cursor: default;
}

#gallery-options {
	width: inherit;
}

#gallery-options li {
	display: inline-block;
	margin-right: 20px;
	vertical-align: top;
	color: #666;
	cursor: pointer;
}

#gallery-options li.selected-gallery-image {
	color: #000;
	font-weight: bold;
	vertical-align: bottom;
}

#gallery-images-content {
	position: relative;
	width: inherit;
	height: 533px;
	overflow: hidden;
}

#gallery-images-selectors {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	max-width: 800px;
	height: calc(100%);
}

#gallery-images-prev, #gallery-images-next {
	height: inherit;
	width: 50%;
	/*z-index: 100;*/
}

#gallery-images-prev {
	float: left;
}

.left-arrow-cursor:hover {
	cursor: url('../images/cursor_arrow_left.png'), pointer;
}

#gallery-images-next {
	float: right;
}

.right-arrow-cursor:hover {
	cursor: url('../images/cursor_arrow_right.png'), pointer;
}

/* This padding percentage represents the height/width proportion, so the image will be shown on the padding area. */
.gallery-images {
	width: 100%;
	height: 0;
	max-width: 800px;
	max-height: 533px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 66.625%;
	background-size: contain;
	background-repeat: no-repeat;
}

#gallery-numbers {
	float: right;
	margin-top: 5px;
}

#gallery-numbers img {
	cursor: pointer;
}

#gallery-text {
	display: none;
	height: 533px;
	width: inherit;
	max-height: 533px;
	overflow: auto;
}

#gallery-gallery-image, #gallery-gallery-info {
	height: inherit;
}

#gallery-gallery-image {
	float: left;
	width: 300px;
	height: auto;
	max-width: 300px;
	max-height: 300px;
	margin-top: 80px;
	overflow: hidden;
}

#gallery-gallery-info {
	position: relative;
	float: right;
	width: 400px;
	max-height: 533px;
}

#gallery-gallery-info p {
	font-size: 9pt;
}

#gallery-gallery-info-title, #gallery-gallery-info-location, #gallery-gallery-info-year, #gallery-gallery-info-type {
	margin: 0;
}

#gallery-gallery-info-location, #gallery-gallery-info-year, #gallery-gallery-info-type {
	color: #666;
}

#gallery-gallery-info-text {
	position: absolute;
	bottom: 0px;
	height: 453px;
	width: inherit;
	font-size: 9pt;
	overflow: auto;
	white-space: pre-line;
}

#gallery-gallery-additional-text {
	white-space: normal;
}

#gallery-gallery-info-coauthors, #gallery-gallery-info-collaborations, #gallery-gallery-info-property, #gallery-gallery-info-builder, #gallery-gallery-info-awards, #gallery-gallery-info-publishings {
	color: #666;
	padding-top: 10px;
	margin: 0;
	font-size: 8pt !important;
}

.gallery-gallery-info-paragraph p {
	margin: 0;
	font-size: 8pt !important;
}

/* Media queries */

@media (max-width: 1115px){

	#gallery {
		max-height: initial;
	}

	#gallery-text {
		height: initial;
		max-height: initial;
	}

	#gallery-images-content {
		height: inherit;
	}

	#gallery-options, #gallery-numbers {
		font-size: 9pt;
	}

	#gallery-gallery-info {
		max-height: none;
	}

	#gallery-gallery-text {
		height: initial;
	}

	#gallery-gallery-info-text {
		position: initial;
		height: auto;
		margin-top: 35px;
	}
}

@media (max-width: 839px){

	#gallery, #gallery-images {
		width: 100%;
	}

	#gallery-numbers, #gallery-images-selectors {
		display: none !important;
	}

	#gallery-gallery-info {
		cursor: auto;
	}

	.gallery-images {
		margin: 10px 0;
	}
}

@media (max-width: 768px){

	#gallery-text {
		width: 100%;
	}

	#gallery-gallery-image {
		float: none;
		width: auto;
		max-width: 300px;
		margin-top: 0;
	}

	#gallery-gallery-image img {
		width: 100%;
		height: auto;
	}

	#gallery-gallery-info {
		float: none;
		width: 100%;
		margin-top: 20px;
	}
}