/* Custom Style */

*[itemprop="articleBody"] a {
    color: #005e8d;
}

.d-block {
	display: block;
}

.w-100 {
	width: 100%;
}

.py-1 {
	padding-top: .5rem;
	padding-bottom: 2rem;
}

.text-justify {
	text-align: justify;
}

.div-wrapper {
  	display: inline-block;
}

body.site {
  border-top: none;
}

hr.dark {
	border-top-color: #d5d3d3;
	border-bottom-width: 0;
}

.nav-list > .active > a,
.nav-list > .active > a:hover,
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover,
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.btn-primary {
	background: #0e6b9c;
}

.nav-pills > :not(.active) > a,
.nav-pills > :not(.active) > a:hover,
.nav-pills > :not(.active) > a:focus {
    color: #453637;
}

.menunav > li > a {
	font-family: 'Franklin Gothic', sans-serif;
    font-size: 16px;
	line-height: 1.2;
}
		

.header-bottom {
    min-height: 40px;
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
  	margin-bottom: 5px;
}

.header-bottom img {
    height: 30px;
    width: auto;
}

.header-bottom .visualy {
 	/* background-color: #e7dcbc; */
    border-radius: 2px;
  	padding: 5px 5px;
}

.header {
    margin-bottom: 20px;
}

.navigation {
    border-top: none;
  	border-bottom: none;
}
    
/* Таблица в Анонсах мероприятий */
#content table {
  width: 100%;
  text-align: center;
}

#content table p:last-child {
  margin-bottom: 0;
}

#content tbody tr:nth-child(odd) {
  background-color: #dddfe0;
}

#content tbody tr:nth-child(even) {
  background-color: #e8f3f6;
}

#content thead {
  border-bottom: 1px solid #c3c3c3;
  font-weight: bolder;
}

#content thead tr {
  background-color: #e8f3f6;
}

#content th {
  font-weight: bolder;
}

/* Список новостей */
@media (max-width: 576px) {
	*[itemprop="blogPost"] img,
  	*[itemprop="articleBody"] img {
    	width: 100%;
      	margin-left: 0!important;
      	margin-right: 0!important;
      	margin-bottom: 10px;
  	}  
}

.blog.page-grid {
	padding-top: 2rem;
}

.blog.page-grid [itemprop="blogPost"] + [itemprop="blogPost"] {
	margin-top: 2rem;
}
.blog.page-grid [itemprop="blogPost"] {
	border-bottom: 1px solid #eee;
	padding-bottom: 1.5rem;
	
	display: -webkit-box;
	
	display: -ms-flexbox;
	
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	
	row-gap: 12px;
	-webkit-column-gap: 20px;
	   -moz-column-gap: 20px;
	        column-gap: 20px;
}
.blog.page-grid [itemprop="blogPost"] > .page-header {
	grid-area: title;
	padding: 0 0 6px 0;
	margin: 0;
	border: none;
}
.blog.page-grid [itemprop="blogPost"] > .page-header > h2 {
	margin: 0;
}
.blog.page-grid [itemprop="blogPost"] > .item-image {
	margin: 0;
	float: none;
}
.blog.page-grid [itemprop="blogPost"] > .page-header + .item-image {
	-ms-grid-column: 1;
	-ms-grid-column-span: 1;
	grid-column: 1/2;
}
.blog.page-grid [itemprop="blogPost"] > .item-image img {
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	width: 100%;
	border-radius: 10px;
}
.blog.page-grid [itemprop="blogPost"] > .introtext {
	overflow: hidden;
	-ms-grid-column: 1;
	-ms-grid-column-span: 2;
	grid-column: 1/3;
}
.blog.page-grid [itemprop="blogPost"] > .item-image + .introtext {
	-ms-grid-column: 2;
	-ms-grid-column-span: 1;
	grid-column: 2/3;
}
.blog.page-grid [itemprop="blogPost"] > .introtext p:last-child {
	margin-bottom: 0;
}
.blog.page-grid [itemprop="blogPost"] > .article-info {
	margin: 0;
	grid-area: more;
	-ms-grid-row-align: center;
	    align-self: center;
}
.blog.page-grid [itemprop="blogPost"] > .article-info .published {
	margin: 0;
}
.blog.page-grid [itemprop="blogPost"] > p.readmore {
	grid-area: date;
	margin: 0;
}
.item-page.page-grid .item-image.pull-none {
	margin-bottom: 20px;
}
.item-page.page-grid .item-image.pull-none img {
	width: 100%;
	border-radius: 10px;
}

@media (min-width: 577px) {
	.blog.page-grid [itemprop="blogPost"] {
		display: -ms-grid;
		display: grid;
		grid-auto-flow: row;
		-ms-grid-columns: (auto)[2];
		grid-template-columns: repeat(auto-fit, 50%);
	        grid-template-areas:
			"title title"
			"image image"
			"text text"
			"more date";
	}
	.blog.page-grid [itemprop="blogPost"] > p.readmore {
		text-align: right;
		padding-top: 12px;
	}
	.blog.page-grid [itemprop="blogPost"] > .page-header {
		-ms-grid-row: 1;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .item-image {
		-ms-grid-row: 2;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .introtext {
		-ms-grid-row: 3;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .article-info {
		-ms-grid-row: 4;
		-ms-grid-column: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > p.readmore {
		-ms-grid-row: 4;
		-ms-grid-column: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .page-header {
		-ms-grid-row: 1;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .article-info {
		-ms-grid-row: 4;
		-ms-grid-column: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > p.readmore {
		-ms-grid-row: 4;
		-ms-grid-column: 2;
	}
}
@media (max-width: 576px) {
	.blog.page-grid [itemprop="blogPost"] > p.readmore > a {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
        height: 30px;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
	}
}
@media (min-width: 768px) {
	.blog.page-grid [itemprop="blogPost"] {
		-ms-grid-rows: auto 200px auto;
		grid-template-rows: auto 200px auto;
		        grid-template-areas:
			"title title"
			"image text"
			"more date";
	}
	.blog.page-grid [itemprop="blogPost"] > .introtext {
		padding-top: .4rem;
	}
	.blog.page-grid [itemprop="blogPost"] > .page-header {
		-ms-grid-row: 1;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .item-image {
		-ms-grid-row: 2;
		-ms-grid-column: 1;
		-ms-grid-column-span: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > .introtext {
		-ms-grid-row: 2;
		-ms-grid-column: 2;
		-ms-grid-column-span: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > .article-info {
		-ms-grid-row: 3;
		-ms-grid-column: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > p.readmore {
		-ms-grid-row: 3;
		-ms-grid-column: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .page-header {
		-ms-grid-row: 1;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
	}
	.blog.page-grid [itemprop="blogPost"] > .article-info {
		-ms-grid-row: 3;
		-ms-grid-column: 1;
	}
	.blog.page-grid [itemprop="blogPost"] > p.readmore {
		-ms-grid-row: 3;
		-ms-grid-column: 2;
	}
}

.header-search {
  display: flex;
  clear: both;
  justify-content: space-between;
  align-items: center;
}

.navbar-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 8px
}

.navigation .nav li {
	text-wrap: nowrap;
}

.navigation {
  	position: sticky;
    top: 0;
	z-index: 100;
}
.navigation.fixed1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #e8e1d5bd;
  	margin-bottom: 0;
}

.navigation.fixed1 .nav-collapse {
  	max-width: 982px;
  	margin: 0 auto;
}

.navigation.fixed1 .navbar {
	margin-bottom: 5px;
}


@media (max-width: 979px) {
	.nav-collapse .nav {
      flex-direction: column;
  }
}

#content tfooter tr {
  background-color: #e6dbba;
}

#content td,
#content th {
  padding: 10px 5px;
}

/* 100-летие района */
.events input[type="radio"] { 
    display: none;
}

.events__tab_title {
    display: inline-block;
    padding: 5px 10px;;
    margin: 0 -5px -1px 0;
    text-align: center;
    color: #666666;
    border: 1px solid #ccc;
    background: #ccc;
    cursor: pointer;
}

.events :checked + .events__tab_title {
    color: #000000;
    border: 1px solid #C0C0C0;
    border-bottom: 1px solid #FFFFFF;
    background: #FFFFFF;
}

.events__tab_content {
    padding: 1rem 0;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    display: none;
}

#tab1:checked ~ #txt1,
#tab2:checked ~ #txt2,
#tab3:checked ~ #txt3,
#tab4:checked ~ #txt4,
#tab5:checked ~ #txt5,
#tab6:checked ~ #txt6,
#tab7:checked ~ #txt7,
#tab8:checked ~ #txt8,
#tab9:checked ~ #txt9,
#tab10:checked ~ #txt10 { 
	display: block;
}

.event {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    border-bottom: 2px solid #057637;
}
.event:last-child {
    border-bottom: none;
}
.event > div {
    padding: 1rem 0;
}
.event__number,
.event__date {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 15%;
            flex: 0 0 15%;
    max-width: 15%;
}
.event__number {
    color: #990000;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 2px 2px 3px #808080;
    text-align: center;
    border-right: 2px solid #057637;
	overflow: hidden;
}
.event__date {
    color: #057637;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    text-shadow: 1px 1px 1px #d1d1d1;
}
.event .event__content {
    line-height: 1.55;
    padding-left: 15px;
}
.event__content p {
    padding: 0;
    -webkit-margin-before: 1em;
            margin-block-start: 1em;
    -webkit-margin-after: 1em;
            margin-block-end: 1em;
    -webkit-margin-start: 0px;
            margin-inline-start: 0px;
    -webkit-margin-end: 0px;
            margin-inline-end: 0px;
}
.event__content p:last-child {
    -webkit-margin-after: 0;
            margin-block-end: 0;
}
.event__title {
    color: #057637;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 767px) {
	.event {
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
	}
	.event:first-child {
		border-top: 2px solid #057637;
	}
	.event__number {
		-ms-flex-preferred-size: 20%;
		    flex-basis: 20%;
		max-width: 20%;
	}
	.event__date {
		-ms-flex-preferred-size: auto;
		    flex-basis: auto;
		max-width: 100%;
		-webkit-box-flex: 1;
		    -ms-flex-positive: 1;
		        flex-grow: 1;
		text-align: left;
	}
}
/* Определенная дата */
.specific {
	position: relative;
	padding: 18px 15px 10px;
	background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
	border-radius: 4px;
    margin-bottom: 2rem;
}
.specific a {
	text-align: right;
    display: block;
	margin-top: 10px;
}
.specific__logo {
	position: absolute;
    width: 40px;
    right: 10px;
    top: 10px;
}
.specific__content::before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background-color: #59432b;
}
.specific__content {
    position: relative;
    line-height: 1.55;
	padding-right: 20px;
}
.specific__content div + div {
    margin-top: .3em;
}
.specific__date {
    font-size: 1.4em;
    color: #057637;
    font-weight: 600;
}
.specific__text {
	font-size: 1.1em;
}
/* \ Определенная дата */

/* \ 100-летие района */

/* Виджет ПроКультуры для Книжного дозора*/
@media (max-width: 767px) {
  #eipsk-widget-0yspte1wom6g94de {display: none!important;}
}
/* \ Виджет ПроКультуры для Книжного дозора*/

/* Книга Памяти Презентации */
.presentation {
	text-align: center;
}
.presentation__title {
    text-align: center;
	margin: 2em 0;
}
.presentation__author {
	font-size: 1.1rem;
    text-align: center;
}
.presentation__gal {
    padding-bottom: 1rem;
}
.presentation__desc {
	font-size: 1.2em;
    line-height: 1.55;
    margin: 1.5em 0;
	text-align: justify;
}
.presentation__desc p {
	margin-top: 1.5em;
}

.presentation__ext {
	display: inline-block;
    background: #e8f3f6;
    color: #333 !important;
    padding: 10px 35px 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    line-height: 1.2;
	transition: .6s;
	transition-property: background-color;
	position: relative;
}
.presentation__ext:hover, .presentation__ext:focus {
	text-decoration: none;
	background-color: #b7e8f5;
}
.presentation__ext:after {
	content: '';
	display: block;
	color: white;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100' height='100' viewBox='0 0 48 48'%3E%3Cpath d='M 40.960938 4.9804688 A 2.0002 2.0002 0 0 0 40.740234 5 L 28 5 A 2.0002 2.0002 0 1 0 28 9 L 36.171875 9 L 22.585938 22.585938 A 2.0002 2.0002 0 1 0 25.414062 25.414062 L 39 11.828125 L 39 20 A 2.0002 2.0002 0 1 0 43 20 L 43 7.2460938 A 2.0002 2.0002 0 0 0 40.960938 4.9804688 z M 12.5 8 C 8.3826878 8 5 11.382688 5 15.5 L 5 35.5 C 5 39.617312 8.3826878 43 12.5 43 L 32.5 43 C 36.617312 43 40 39.617312 40 35.5 L 40 26 A 2.0002 2.0002 0 1 0 36 26 L 36 35.5 C 36 37.446688 34.446688 39 32.5 39 L 12.5 39 C 10.553312 39 9 37.446688 9 35.5 L 9 15.5 C 9 13.553312 10.553312 12 12.5 12 L 22 12 A 2.0002 2.0002 0 1 0 22 8 L 12.5 8 z' fill='%23333'%3E%3C/path%3E%3C/svg%3E");
	position: absolute;
	width: 18px;
    height: 18px;
    top: 5px;
    right: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.presentation__list {
	padding: 0;
    margin: 0;
    list-style: none;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
	gap: 5px;
}
.presentation__item {
	padding: 10px 15px;
    /* background-color: #0e6b9c; */
	background-color: #fafafa;
	background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
	background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
    border-radius: 5px;
	border: 1px solid #c7d5dc;
	-webkit-transition-property: background-color;
	-o-transition-property: background-color;
	transition-property: background-color;
	-webkit-transition-duration: .6s;
	     -o-transition-duration: .6s;
	        transition-duration: .6s;
}
.presentation__item:last-child {
	margin-bottom: 2rem;
}
a.presentation__link {
	/* color: white; */
	color: inherit;
    font-size: 1.1em;
	font-family: 'Franklin Gothic', sans-serif;
	text-transform: uppercase;
    line-height: 1.55;
	display: block;
	text-align: left;
	opacity: .5;
}
a.presentation__link:hover, a.presentation__link:focus {
	text-decoration: none;
}

a.presentation__link[href] {
	opacity: 1;
}

.presentation__item:hover {
	background-color: #00476d;
	opacity: .7;
}

.presentation .accordion {
	padding: 12px 15px;
	margin-bottom: 12px;
    /* background-color: #0e6b9c; */
	background-color: #fafafa;
	background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
	background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
	background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
    border-radius: 5px;
	-webkit-transition-property: background-color;
	-o-transition-property: background-color;
	transition-property: background-color;
	-webkit-transition-duration: .6s;
	     -o-transition-duration: .6s;
	        transition-duration: .6s;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: 1px solid #c7d5dc;
    outline: none;
	
	/* color: white; */
    font-size: 1.1em;
	font-family: 'Franklin Gothic', sans-serif;
	text-transform: uppercase;
    line-height: 1.55;
}
.presentation .accordion:after {
    content: '\02795';
    font-size: 15px;
    float: right;
    margin-left: 5px;
}

.presentation .active:after {
    content: "\2796";
}

.presentation .active, .presentation .accordion:hover {
    background-color: #043651;
	opacity: .7;
}

.presentation .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.gal {
    --gal-gap: 1rem;
    --gal-column: 4;
    --gal-item-width: calc((100% - (var(--gal-column) - 1) * var(--gal-gap)) / var(--gal-column));

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: var(--gal-gap);
}
.gal__item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 var(--gal-item-width);
    flex: 0 0 var(--gal-item-width);
    max-width: var(--gal-item-width);
    overflow: hidden;
	box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, .15);
}
.gal__link {
    display: block;
    height: 100%;
}
.gal__thumb {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: left;
    object-position: left;
    height: 100%;
    width: 100%;
}
@media (max-width: 979px) {
    .gal {
        --gal-column: 2;
    }
}
@media (max-width: 576px) {
    .gal {
        --gal-column: 1;
    }
}
/* \Книга Памяти Презентации */

iframe {
	display: block;
	width: 100% !important;
	height: unset !important;
	aspect-ratio: 16 / 9;
}

.item-page img {
	display: inline-block;
}

