/* -------------------- gallery.css -------------------- */
/* js-gallery */
.js-gallery-resizable {
	overflow: hidden;
	height: 0;
}

.gallery {
	position: relative;
	font: 0/0 a;
	margin: 0 0 10px 0;
}
.gallery__header .article_name {
	font: bold 22px/24px Georgia, serif;
	display: block;
	margin-bottom: 6px;
}

@media only screen and (min-width: 980px), not screen {
	.gallery__header .article_name {
		font-size: 24px;
	}
}
.gallery__header .intro,
.gallery__header .intro a {
	color: #666;
}

.gallery__header .intro {
	display: block;
	font: 16px/18px Georgia, serif;
	margin: 12px 0 15px;
}
.gallery__header .b-more_link {
	font: 16px/1 Georgia, serif;
	margin: 17px 0;
}
.gallery__canvas {
	background-color: #eee;
	position: relative;
	overflow: hidden;
	height: 0;
	padding-bottom: 56.25%;
}
@media only screen and (min-width: 980px) {
	.gallery__canvas {
		padding-bottom: 0;
	}
	.gallery__canvas,
	.doc_widewithleft .gallery__canvas {
		width: 690px;
		height: 388px;
		margin-left: auto;
		margin-right: auto;
	}
	.doc_widewithright .gallery__canvas {
		width: 645px;
		height: 333px;
	}
	.doc_normal .gallery__canvas {
		width: 420px;
		height: 236px;
	}
	.doc_wide .gallery__canvas {
		width: 915px;
		height: 514px;
	}
}
@media only screen and (min-width: 1200px), not screen {
	.gallery__canvas,
	.doc_widewithleft .gallery__canvas {
		width: 870px;
		height: 489px;
	}
		.doc_widewithleft .adv_marker .gallery__canvas {
			width: 660px;
			height: 371px;
		}
	.doc_widewithright .gallery__canvas {
		width: 720px;
		height: 405px;
	}
		.doc_widewithright .adv_marker .gallery__canvas {
			width: 690px;
			height: 388px;
		}

	.doc_normal .gallery__canvas {
		width: 600px;
		height: 338px;
	}
		.doc_normal .adv_marker .gallery__canvas {
			width: 570px;
			height: 321px;
		}

	.doc_wide .gallery__canvas {
		width: 1095px;
		height: 616px;
	}
		.doc_wide .adv_marker .gallery__canvas {
			width: 1095px;
			height: 599px;
		}
}

/* stacking invisible items on each other. */
.gallery__item {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
	.gallery__item.gallery__item .photo {
		position: absolute;
		left: 0;
		top: 0;
		text-align: center;
		background-color: #eee;
		white-space: nowrap;
		font: 0/0 a;
		width: 100%;
		height: 100%;
		margin: 0;
	}
		.gallery__item.gallery__item .photo::before {
			content: "";
			display: inline-block;
			vertical-align: middle;
			height: 100%;
		}
	.gallery__item .photo img {
		width: auto;
		height: 100%;
		max-width: none;
		max-height: 100%;
		display: inline-block;
		vertical-align: middle;
	}
	@supports (object-fit: contain) {
		.gallery__item .photo img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: contain;
			object-position: 50% 50%;
		}
	}

	/* photo figcaption-info */
	.gallery__photo_description {
		padding: 15px 60px;
		color: #fff;
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		will-change: opacity, visibility;
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease-in-out 0s,
					visibility 0s linear .25s;
		cursor: default;
		background-color: rgba(0, 0, 0, .6);
		display: none;
		max-height: 100%;
		overflow: auto;
		box-sizing: border-box;
	}
		.js-gallery-info .gallery__photo_description {
			opacity: 1;
			visibility: visible;
			transition-delay: .0s, 0s;
		}

	@media only screen and (min-width: 640px) {
		.js-gallery-gallery .gallery__photo_description,
		.doc_wide .col:not(.col-small) .gallery .gallery__photo_description,
		.doc_widewithleft .col:not(.col-small) .gallery .gallery__photo_description,
		.doc_wide .grid_cell:not(.grid_cell_small) .gallery .gallery__photo_description,
		.doc_widewithleft .grid_cell:not(.grid_cell_small) .gallery .gallery__photo_description,
		.doc_widehtml .gallery .gallery__photo_description {
			display: block;
		}
		.js-gallery-gallery .gallery__info,
		.doc_wide .col:not(.col-small) .gallery .gallery__info,
		.doc_widewithleft .col:not(.col-small) .gallery .gallery__info,
		.doc_wide .grid_cell:not(.grid_cell_small) .gallery .gallery__info,
		.doc_widewithleft .grid_cell:not(.grid_cell_small) .gallery .gallery__info,
		.doc_widehtml .gallery .gallery__info {
			display: none;
		}
	}
	@media only screen and (min-width: 980px) {
		.js-gallery-gallery .gallery__photo_description,
		.doc_widewithrighthtml .col:not(.col-small) .gallery .gallery__photo_description,
		.doc_widewithright .col:not(.col-small) .gallery .gallery__photo_description,
		.doc_widewithrighthtml .grid_cell:not(.grid_cell_small) .gallery .gallery__photo_description,
		.doc_widewithright .grid_cell:not(.grid_cell_small) .gallery .gallery__photo_description {
			display: block;
		}
		.js-gallery-gallery .gallery__info,
		.doc_widewithrighthtml .col:not(.col-small) .gallery .gallery__info,
		.doc_widewithright .col:not(.col-small) .gallery .gallery__info,
		.doc_widewithrighthtml .grid_cell:not(.grid_cell_small) .gallery .gallery__info,
		.doc_widewithright .grid_cell:not(.grid_cell_small) .gallery .gallery__info {
			display: none;
		}
	}
	@media only screen and (min-width: 1200px) {
		.doc_normal .gallery__photo_description {
			display: block;
		}
		.doc_normal .gallery__info {
			display: none;
		}
	}

	.gallery__photo_description_text {
		font: normal 14px/18px Arial, sans-serif;
		margin-bottom: 3px;
	}
		.gallery__photo_description_text a {
			color: currentcolor;
			text-decoration: underline;
			font-weight: bold;
		}
		/* search marks in description */
		.gallery__photo_description_text mark {
			background-color: rgba(90, 167, 237, .8);
			color: #fff;
		}
		.gallery__photo_description .buy_photo {
			font-weight: normal;
			color: currentcolor;
			text-decoration: underline;
		}
	.gallery__photo_src {
		font: 12px/16px Arial, sans-serif;
		color: #999;
	}
		.gallery__photo_src a,
		.gallery__photo_link a {
			color: inherit;
			text-decoration: underline;
		}
	.gallery__photo_link {
		font: 12px/16px Arial, sans-serif;
	}
	.gallery__photo_src_buy {
		color: #000;
	}

	@media only screen and (min-width: 640px) {
		.gallery__photo_src {
			color: #ccc;
		}
		.gallery__photo_src_buy {
			color: #fff;
		}
	}

/* photo info. signature and source */
.gallery__info {
	display: block;
	margin-top: 14px;
	padding: 0 0 20px;
	font: 0/0 a;
}
	.gallery__info_item {
		display: inline-block;
		vertical-align: top;
		width: 100%;
		margin-right: -100%;
		visibility: hidden;
		/*
		opacity: 0;
		transition: opacity .25s linear 0s,
					visibility 0s linear .25s;
		*/
	}

@media only screen and (min-width: 640px) {
	.doc_wide .col:not(.col-small) .gallery .gallery__info,
	.doc_widehtml .gallery .gallery__info,
	.doc_widewithleft .col:not(.col-small) .gallery .gallery__info {
		display: none;
	}
}
@media only screen and (min-width: 980px) {
	.doc_widewithright .col:not(.col-small) .gallery .gallery__info,
	.doc_widewithrighthtml .col:not(.col-small) .gallery .gallery__info {
		display: none;
	}
}
@media only screen and (min-width: 1200px) {
	.doc_normal .col:not(.col-small) .gallery .gallery__info {
		display: none;
	}
}

/* common prev & next big photogallery controls */
.gallery__nav {
	position: absolute;
	top: 50%;
	bottom: 0;
	width: 38px;
	height: 38px;
	background-color: rgba(0,0,0,.3);
	transition: background-color .25s ease-in-out 0s;
	z-index: 1;
	font: 0/0 a;
	text-align: center;
	transform: translateY(-50%);
}
	@media only screen and (min-width: 1200px) {
		.gallery__nav {
			width: 50px;
			height: 50px;
		}
	}
	.gallery__nav:hover {
		background-color: rgba(0,0,0,.6);
	}
	.gallery__nav_link {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		outline: none;
	}
		.gallery__nav_link::before {
			content: '';
			height: 100%;
			display: inline-block;
			vertical-align: middle;
			width: 0;
		}

/* changing arrow opacity for inactive controls */
.gallery__nav.slider-inactive,
.gallery__nav.slider-inactive:hover {
	background-color: transparent;
	opacity: .25;
}
.gallery__nav .vicon {
	color: #fff;
}
	@media only screen and (min-width: 1200px) {
		.gallery__nav .vicon {
			font-size: 28px;
		}
	}
.gallery__previous {
	left: 0;
	border-radius: 0 5px 5px 0;
}
.gallery__next {
	right: 0;
	border-radius: 5px 0 0px 5px;
}
.gallery__nav_arrow_prev {
	transform: rotate(-90deg);
}
.gallery__nav_arrow_next {
	transform: rotate(90deg);
}

/* link to galleryName */
.gallery .gallery__link {
	background-color: #eee;
	padding: 15px;
	position: relative;
	font: 0/0 a;
}
@media only screen and (min-width: 640px) {
	.gallery .gallery__link {
		padding: 15px 60px 15px 43px;
	}
}
	.gallery__link .link__icons {
		position: absolute;
		right: 0;
		top: 50%;
		-webkit-transform: translateY(-50%);
		-moz-transform: translateY(-50%);
		-ms-transform: translateY(-50%);
		transform: translateY(-50%);
		padding-right: 15px;
		z-index: 1;
		will-change: transform;
	}
		.link__icons .vicon--network {
			fill: #9a9a9a;
		}
		.link__icons .vicon--network:hover {
			fill: #006697;
		}
	@media only screen and (min-width: 640px) {
		.gallery__link .link__icons {
			padding-right: 43px;
		}
	}

	.link__item {
		display: inline-block;
		width: 100%;
		vertical-align: top;
		margin-right: -100%;
		visibility: hidden;
		opacity: 0;
		transition: opacity .15s ease-in-out 0s,
					visibility 0s ease-in-out .15s;
		will-change: opacity, visibility;
	}
	.js-gallery-resizable-item-current {
		visibility: visible;
		/*
		opacity: 1;
		transition-delay: 0s, 0s;
		*/
	}
		.link__item .item__src {
			font: normal 16px/18px Georgia, serif;
			vertical-align: middle;
		}
		.link__item .vicon--photogallery {
			font-size: 16px;
			padding-right: 5px;
			vertical-align: middle;
		}

/* image nav_thumbs for gallery */
.gallery__thumbs_canvas {
	margin: 0;
	font: 0/0 a;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	width: 100%;
	height: 54px;
}
	.gallery__thumbs_item {
		display: inline-block;
		font: 0/0 a;
		margin-top: 10px;
		width: 60px;
		height: 34px;
		position: absolute;
		left: 0;
		top: 0;
	}
@media only screen and (min-width: 640px) {
	.js-gallery-gallery.js-gallery-gallery .gallery__thumbs_canvas,
	.gallery__thumbs_canvas {
		height: 88px;
	}
		.js-gallery-gallery.js-gallery-gallery .gallery__thumbs_item,
		.gallery__thumbs_item {
			width: 120px;
			height: 68px;
		}
}

@media only screen and (min-width: 980px) and (max-width: 1199px) {
	.doc_normal .gallery__thumbs_canvas {
		height: 54px;
	}
		.doc_normal .gallery__thumbs_item {
			width: 60px;
			height: 34px;
		}
}

	.gallery__thumbs_item.slider-item-nearest {
		outline: 10px solid #eee;
	}
		.gallery__thumbs_photo {
			width: 100%;
			height: 100%;
			background-color: #eee;
		}
		.gallery__thumbs_photo img {
			width: auto;
			height: 100%;
			display: block;
			margin-left: auto;
			margin-right: auto;
		}

/* nav_line */
.gallery__nav_line {
	height: 3px;
	background-color: #ccc;
	margin: 14px 0;
	overflow: hidden;
}
	.gallery__nav_scroll {
		background-color: #006697;
		width: 100%;
		height: 100%;
		transform-origin: 0 50%;
		will-change: transform;
	}
.gallery_single .gallery__nav_line,
.gallery_single .gallery__nav,
.gallery_single .gallery__thumbs {
	display: none;
}

.gallery .incut__read_more {
	margin-bottom: 16px;
}
