/* СПОЙЛЕР */

.collapser:hover {
	opacity: 0.8;
	text-decoration: none;
}

.spoiler-title {
	cursor: pointer;
	text-decoration: underline;
	font-weight: bold;
	color: #337ab7;
}

.spoiler-title:hover {
	color: #23527c;
}

.spoiler-content {
	display: none;
}

.spoiler {
	margin-bottom: 10px;
}

.spoiler-toggle {
	display: inline-block;
	font-family: fontawesome;
	font-size: 14px;
	font-weight: normal;
}

.spoiler-toggle.show-icon:before {
	content: "";
}

.spoiler-toggle.hide-icon:before {
	content: "";
}


/* FLEXBOX */

.flex-row {
	display: flex;
	flex-wrap: wrap;
}

.flex-row > [class*='col-'] {
	display: flex;
	flex-direction: column;
}


/* ДОП. СТИЛИ */

img.right
{
	border: 1px solid #ccc;
	float: right;
	margin-left: 15px;
	padding: 5px;
}

img.left
{
	border: 1px solid #ccc;
	float: left;
	margin-right: 15px;
	padding: 5px;
}

.margins {
	margin: 20px 0;
}

.border-top {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(0,0,0,0.15);
}

.ya-share2 {
	display: inline-block;
	vertical-align: middle;
}

summary {
	cursor: pointer;
	user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
  display: list-item;
}

summary:hover {
	opacity: 0.8;
	text-decoration: underline;
}

summary.h1, summary.h2, summary.h3, summary.h4, summary.h5 {
	margin: 3px 0;
}

hr, .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
	border-color: rgba(0,0,0,0.1);
}

.color-vk {
	color: #507299;
}

.color-fb {
	color: #3B5998;
}

.form-control-sm {
	width: 6em;
	max-width: 100%;
}

.badge-white {
  background-color: #fff;
	color: #333;
	border: 1px solid #333;
}

.form.is-offline .btn {
	filter: grayscale(100%);
}

/* БЛОК "ФАЙЛЫ И ССЫЛКИ" */

.attachments {
	list-style: none;
	padding-left: 0;
}

.attachments  ul {
	list-style: none;
	padding-left: 20px;
}

.attachments li {
	padding: 3px 0;
	position: relative;
}

.attachments h4 {
	color: #666;
	margin-bottom: 3px;
}

.popover-audio {
	display: block !important;
	max-width: 400px !important;
	width:auto;
}

.popover-audio .popover-content {
	padding: 5px 5px 0;
}

.att-icon, .att-text {
	display: table-cell;
}

.att-text {
	vertical-align: middle;
	padding-left: 5px;
}

.attachments .collapser i {
	display: inline-block;
}

.att-icon i {
	padding-right: 5px;
	padding-top: 2px;
}

.att-text {
	line-height: 1.2;
}

.icon-bg .att-icon i {
	border-radius: 50%;
	background-color: #EEE;
	width: 2em;
	min-width: 2em;
	height: 2em;
	text-align:center;
	vertical-align:middle;
	padding: 0;
	display: table-cell;
}

.icon-bg .media-body {
	vertical-align:middle;
	padding-left: 5px;
	width: auto;
}

.icon-bg a, .att-description a {
	font-weight: bold;
}

.table p {
	margin-bottom: 0;
}


/* БЛОК "ГАЛЕРЕЯ" */

.gallery > img, .gallery > a img {
	padding: 2px;
	max-height: 120px;
}

.gallery figure {
	margin-bottom: 15px;
}

.gallery .img-responsive {
	max-height: 100vh;
	display: inline-block;
}

.lazyload,
.lazyloading {
	opacity: 0;
}

.lazyloaded {
	opacity: 1;
	transition: opacity 600ms;
}


/* БЛОК "КАРТОЧКИ" */

.cards-grid {
	display: grid;
	grid-gap: 30px;
}

.cards-max-4 {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-max-5 {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards-max-6 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
	position: relative;
}

.flex-row .card {
	flex-grow: 1;
	margin-bottom: 25px;
}

.cards-grid .card {
	margin-bottom: 0;
}

.card-caption {
	flex-direction: column;
	display: flex;
	flex: 1 0 auto;
	height: 100%;
	justify-content: flex-start;
}

.card-overlay .card-text {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	color: #fff;
	background-image: linear-gradient(-180deg, rgba(0,0,0,0.5) 5%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.1) 100%);
	height: 100%;
	overflow: hidden;
	transition: all 0.3s;
}

.card-overlay.card-noshade .card-text {
	background-image: none;
}

.card-overlay.card-hover .card-text {
	opacity: 0;
}

.card-overlay.card-hover .card-text:hover {
	opacity: 1;
}

.card-overlay .card-caption {
	padding-bottom: 0;
}

.card-description {
	color: #333;
	padding: 0 0 10px;
}

.card-overlay .card-description, .card-overlay .card-date {
	color: #fff;
}

.card-overlay h4 {
	text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}

.card-overlay.card-noshade h4 {
	background-color: rgba(0,0,0,0.5);
}

.card-overlay .card-description {
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	font-weight: 400;
}

.card-overlay.card-noshade .card-description {
	background-color: rgba(0,0,0,0.5);
}

.card-overlay .card-date {
	text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.panel .card-caption .card-description, .panel .card-caption h4, .panel .card-caption .card-btn, .panel .card-caption .card-header,
.card-overlay .card-caption .card-description, .card-overlay .card-caption h4, .card-overlay .card-caption .card-btn, .card-overlay .card-caption .card-header, .panel .card-caption .card-category {
	padding-left: 15px;
	padding-right: 15px;
}

.card-overlay h4 {
	margin: 0;
	padding: 10px 15px;
}

.number-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
}

.card-category {
	margin-top: 4px;
	margin-bottom: -4px;
}

.category-overlay {
	position: absolute;
	top: 7px;
	left: 10px;
}

.category-center {
	margin: -12px auto 0;
	text-align: center;
}

.card.panel {
	overflow: hidden;
}

.card-date {
	color: rgba(0,0,0,0.5);
	font-size: smaller;
	margin-top: 5px;
}

.card-img {
	padding-right: 0;
}

.card img {
	min-width: 0;
	max-width: 100%;
}

.card.cards-round img {
	border-radius: 50%;
	max-width: 80%;
	margin: 10px auto;
}

.cardfooter:not(.card-overlay) {
	padding-bottom: 40px;
}

.card-btn {
	margin-top: auto;
	margin-bottom: 10px;
}

.card-overlay .card-btn .btn-card {
	border: 0px;
	background-color: #fff;
	color: #444;
}

.card-btn .btn-card {
	display: block;
}

.card-btn .btn-card.btn-inline {
	display: inline-block;
}

.cards-v .card.cardfooter {
	padding-bottom: 50px;
}

.cards-v .card-footer {
	margin: 0;
}

.card-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	border-top: 1px solid rgba(0,0,0,0.1);
	padding: 5px 0 10px;
	max-height: 40px;
	overflow: hidden;
}

.card-overlay .card-footer {
	border-top: 0;
}

.panel .card-footer, .card-overlay .card-footer {
	margin: 0 15px;
}

.flex-row .cards-padding-s {
	padding: 0 2px;
}

.flex-row .cards-padding-0 {
	padding: 0;
}

.flex-row .cards-padding-s .card {
	margin-bottom: 4px;
}

.flex-row .cards-padding-0 .card {
	margin-bottom: 0;
}

.cards-grid .cards-padding-0 {
	grid-gap: 0;
}

.cards-grid .cards-padding-s {
	grid-gap: 4px;
}

.card-header {
	margin-top: 10px;
}

.card.panel:not(.cardfooter):not(.card-overlay)  {
	padding-bottom: 8px;
}

.flex-row .card > a:hover {
	opacity: 0.8;
	text-decoration: none;
}

.card.card-overlay > a:hover {
	opacity: 1;
}

.card-overlay > a:hover .card-text {
	background-color: rgba(0, 0, 0, 0.2);
}

.card-nocaption .card-caption {
	display: none;
}

.cards-start {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  text-align: start;
}

.cards-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

.cards-end {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  text-align: end;
}

.cards-around {
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.cards-between {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.navdots {
	text-align: center;
}

.navdot {
	background-color: rgba(0,0,0,0.5);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin: 5px 8px;
	vertical-align: middle;
	transition: all 0.5s;
	position: relative;
}

.navdot.active {
	background-color: rgba(0,0,0,0.3);
	width: 16px;
	height: 16px;
	margin: 5px 6px;
}

.navdot:hover:not(.active) {
	background-color: rgba(0,0,0,0.3);
}

.cardsnav {
	flex: 1 100%;
	padding-top: 15px;
}

.btn-card {
	margin-top: 5px;
}

.cards-v h4 {
	margin-top: 0;
}

.img-article {
	margin: 0 20px 5px 0;
	float: left;
	max-width: 40%;
	border: 1px solid #ddd;
	padding: 3px;
}

.article-description {
	font-weight: bold;
}

.svg {
	width: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	height: 0;
	padding-bottom: 100%;
}

.svg-s, .svg-r {
	padding-bottom: 100%;
}

.card-tags .label {
	padding-bottom: .2em;
}

.label-bordered {
	color: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(0, 0, 0, 0.5);
}

.card-overlay .label:not(.label-bordered):not(.label-transparent):not(.label-alt) {
	background-color: #fff;
	color: #777;
}

.card-overlay .label-bordered {
	color: #fff;
	border: 1px solid #fff;
}

.card-overlay .category-center {
	margin-top: 10px;
}

.label-alt {
	color: #333;
	background-color: rgba(0, 0, 0, 0.15);
}

.card-overlay .label-alt {
	color: #fff;
	background-color: rgba(0, 0, 0, 0.4);
}

.label-transparent {
	color: rgba(0, 0, 0, 0.5);
	padding-left: 0;
	padding-right: 0;
	text-transform: uppercase;
}

.card-overlay .label-transparent {
	color: #fff;
}

.card-overlay .number-overlay {
	z-index: 2;
}

.label-transparent:after { 
	content: "\00a0\00a0\00b7\00a0"; 
}

.label-transparent:last-child:after { 
	content: none; 
}

.card-passepartout:not(.card-overlay) img {
	margin: 15px 15px 0 15px;
}

.card-passepartout .number-overlay {
	margin: 15px 15px 0 0;
}

.card-passepartout .category-overlay {
	padding:  15px 0 15px 0;
}

.card-divider {
  flex-basis: 100%;
	padding: 0 15px;
}


/* КАРТЫ */

.leaflet_div {
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 1px #fff inset, 0 -1px 0px #ccc inset;
  line-height: 0;
  margin-right: 1em;
  margin-bottom: 1em;
}

.leaflet_div.align-left {
  float: left;
}

.leaflet_div.align-right {
  float: right;
}

.leaflet_div.align-center {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.responsive-map {
  height: 0;
  padding-bottom: 56.25%;
  padding-top: 25px;
  position: relative;
  width:100%;
}

.responsive-map-iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}


/* ADMINPANEL */

#adminpanel {
	position: fixed;
	right: 10px;
	bottom: 10px;
	opacity: 0.8;
	color: #000;
}

#adminpanel:hover {
	opacity: 1;
}

#adminpanel a {
	color: #000;
}

.btn-admin {
	display: none !important;
	color: #000 !important;
	background-color: #eee;
	border: 1px solid #ccc;
	padding: 1px 4px 0;
	border-radius: 4px;
	margin-left: 5px;
	position: absolute;
	right: 0;
}

.card .btn-admin {
	right: 5px;
	top: 5px;
}

.attachments li:hover > .btn-admin, .card:hover .btn-admin {
	display: block !important;
}



/* АДАПТИВНЫЙ ДИЗАЙН */

@media (min-width:1200px) {
	.cards.flex-row > .col-lg-1 {
		width: 12.5%;
	}
}

@media (max-width:420px) {
	.flex-row > .col-xxs-12 {
		width: 100%
	}
	.flex-row > .col-xxs-6 {
		width: 50%
	}
}