/*   
Theme Name: Railway 2
Author: Сергей Попов
Version: 1.0.2
*/
html, body{
    width:100%;
    min-height:100%;
    padding:0;
    margin:0;
}
body {
    background-image:url('images/back.jpg');
    background-repeat:repeat;
}
body .row {
    width:101%;
}
header{
    font-family: Constantia, 'Book Antiqua', Times, serif !important;
    height:100px;
    background-color: #07082E;
	outline:1px solid #07082E;
	padding-bottom: 10px;
    padding-top: 10px;
    height: 114px;

}
header>div{
    height:100%;
}
header h1 {
    font-size: 1.8em;
    color: #fff;
    text-shadow: 0 0 1px #000;
    margin-top:0.5em;
}
header h2 {
    font-size: 1.5em;
    font-weight: bold;
	color: #eee;
    text-shadow: 0 0 1px #000;
}
.mobile-header {
    display:none;
}

img.logo {
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
    margin:auto;
    height:160%;
}
.gallery {
    background-color: #5E5E5E;
    color: #fff;
    font-size:14px;
    font-family: "Helvetica Neue",Helvetica, Arial,sans-serif;
	border-top: 2px solid #2f2f2f;
    border-bottom: 1px solid #2f2f2f;
   /* box-shadow:2px 2px 2px 2px #aaa;*/
}
.gallery a {
    font-size:0.9em;
    color:#fff;
}
.frames-container{
    /*width: calc(100% - 90px);*/
    width:100%;
    float:left;
    height:100%;
    overflow:hidden;
}
.frames {
    background-color: rgba(0, 0, 0, 0.8);
    height:128px;
}
.frames a.frame {
    display:inline-block;
    height:120px;
    width:195px;
    position:relative;
    overflow:hidden;
    text-align:center;
    margin:4px;
}
.frames a.frame img{
    width:100% !important;
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	top:0;
	margin:auto;
}

.film-side {
    background-repeat:repeat-x;
    background-color:#000;
    opacity:0.8;
    height:16px;
}
.film-side-top {
    background-image:url('images/film-hole.png');
    background-position:bottom;
    background-size: 16px;
}
.film-side-bottom {
    background-image:url('images/film-hole-bottom.png');
    background-position:top;
    background-size: 16px;
}
a.more-frames {
    text-align:left;
    width:120px !important;
    position:absolute !important;
	right:-1px !important;
	top:0;
	text-shadow:0 0 1px #000;
	background: -moz-linear-gradient(left,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,1) 100%);
	background: -webkit-linear-gradient(left,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.2) 5%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,1) 100%);
	background: linear-gradient(to right,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.2) 5%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=1 );

}
a.more-frames>span{
	position:absolute;
	top:36px;
	left:0;
	bottom:0;
	right:0;
	margin:auto;
}
a.more-frames:hover>span {
	text-decoration:underline;
}

content {
    font-family: 'Microsoft Sans Serif', Arial, sans-serif;
}
.bg-darkblue {
    background-color:#07082E;
}
.bg-gray {
    background-color:#6F6F6F;
}
.text-white {
    color:#fff;
}
.text-tiny {
    font-size:0.6em;
}
.text-small {
    font-size:0.8em;
}
.relative {
    position:relative;
}
.main-page-block-link  {
	text-align:center;
	padding:1em;
	display:block;
    color:#fff;
    text-decoration:none;
}
.main-page-block-link:hover, .main-page-block-link:visited, .main-page-block-link:active {
    color:#fff;
    text-decoration:none;
}
.line{
	height:1px;
	width:100%;
	margin:auto;
	background-color:#666;
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2JiYmJiYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzU1NTU1NSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiYmJiYmIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(left,  #bbbbbb 0%, #555555 50%, #bbbbbb 100%);
	background: -webkit-gradient(linear, left top, right top, color-stop(0%,#bbbbbb), color-stop(50%,#555555), color-stop(100%,#bbbbbb));
	background: -webkit-linear-gradient(left,  #bbbbbb 0%,#555555 50%,#bbbbbb 100%);
	background: -o-linear-gradient(left,  #bbbbbb 0%,#555555 50%,#bbbbbb 100%);
	background: -ms-linear-gradient(left,  #bbbbbb 0%,#555555 50%,#bbbbbb 100%);
	background: linear-gradient(to right,  #bbbbbb 0%,#555555 50%,#bbbbbb 100%);
	/*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bbbbbb', endColorstr='#bbbbbb',GradientType=1 );*/
	margin-top:0.8em;
	margin-bottom:0.8em;
}
.line.dark{
    /*background:#444 !important;*/
}
ul.menu {
    padding-left:0.7em;
    line-height:1.8em;
    margin-top:1em;

}

ul.menu, ul.menu *  {
    color:#fff;
    list-style-type:none;
}
ul.menu li {
    padding-left:0em;
    margin-left:0em;
    cursor:pointer;
    display:block !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1em;
    font-weight:bold;
}
ul.menu>li {
    font-weight:bold;
    font-size:0.8em;
}
ul.sub-menu {
    padding-left:0.5em;
    display:none;
}
ul.sub-menu>li {
    font-weight:100;
    font-size:1em;
    line-height:1.8em;
}

h3.category-header{
    font-size:1.5em;
    margin-top:0.6em;
    margin-bottom:0;

}
h3.category-header{
    background-color:#555;
    color:#fafafa;
    padding:0.3em;
    width:102%;
    margin-left:-0.25%;
}
.newscontent{
    font-size:0.95em;
    text-align:justify;
    line-height:1.4em;
}
.newscontent .col-md-12 {
    padding-right:0;
}
.newscontent>div.single-news{
    min-height:180px;
}
.main-page-quick-links-container{
    margin-top:0.6em;
	
}
.main-page-quick-links-container a{
	font-size:1.15em;
}
article{
    text-align:justify;
}
.article-content{
    background-color:rgba(255, 255, 255, 0.3);

}
.article-content h3{
	margin-top:1em;
	margin-bottom:1em;
}
.main-page .article-content{
    padding:1em;
    margin-left:1em;
}
.blocks-gallery-caption {
    display:block;
    width:100%;
}
.article-content figure, .article-content figcaption, .blocks-gallery-caption {
    text-align:center;
}

time{
    display:block;
    text-align:right;
    margin:1em 0;
    font-weight:100;
    font-size:0.8em;
	font-style:italic;
}
.smi-category-header {
	background-color:#555;
	color:#fff;
	margin-bottom:0;
	width:102%;
	margin-left:-1%;
	padding:0.3em;
}
.smi-category-header a{
	color:#fff;
}
.smi-year-header{
	background-color:rgba(255, 255, 255, 0.5);
	width:102%;
	margin-left:-1%;
	padding:0.2em;
}
.smi-year-header a{ 
	color:#333 !important;

}
table{
    width:100%;
    border:1px solid #ddd;
    border-collapse:collapse;
    background-color: rgba(100, 100, 100, 0.2);
}
th{
    text-align:center;
}
td , th{
    border:1px solid #ddd;
    text-align:center;
}
/* a.frame:nth-child(5),
a.frame:nth-child(4),
a.frame:nth-child(3),
a.frame:nth-child(2),
a.frame:nth-child(1) {
    display:inline-block;
} */
a.scroll-top {
    position:fixed;
    right:2em;
    bottom:2em;
    width:50px;
    height:50px;
    text-align:center;
    line-height:56px;
    font-size:2em;
    font-weight:bold;
    border-radius:50%;
    background-color:rgba(0,0,0, 0.7);
    opacity: 0;
    text-decoration:none;
    color:#fff;
}
.scroll-top:hover,.scroll-top:visited,.scroll-top:active{
    text-decoration:none;
    color:#fff;
    background-color:rgba(0,0,0, 0.8);
}
.preview-link{
    font-size:9pt;
    cursor:pointer;
    color:#111;
}
span.preview-link{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    display:block;
}
span.preview-link:hover{
    text-decoration:underline;
    color:#000;
}
.window{
    width:600px;
    height:482px;
    position:fixed;
    z-index:1100;
    background-color:#fff;
    box-shadow:0 0 200em 50em rgba(0,0,0,0.7);
    top:0;
    left:0;
    right:0;
    bottom:0;
    margin:auto;
    display:none;
    
}
.window-header {
    height:2em;
    line-height:2em;
}
.window-header-text{
    margin-left:1em;
}
.window-header-close {
    cursor:pointer;
    position:absolute;
    right:0.5em;
    top:0.1em;
}
.window-content {
    height:100%;
    overflow:hidden;
}
#iframeVideoContainer{
    width:100%;
    height:100%;
}
.years-data-header {
    /*background-color:rgba(220, 220, 220, 0.5);*/
    background-color:#444;
    color:#fff;
    padding:0.1em;
   /* border-top:1px solid #555;
    border-bottom:1px solid #555;*/
}
.year_data_container{
    background-color:rgba(255, 255, 255, 0.2);
    padding-left:1em;
    padding-right:0em;
}
.year_name {
    border-right:1px solid #bbb;
    background-color:#555;
    color:#efefef;
}
.year_name h4 {
    margin-top:0.5em;
    margin-bottom:0.5em;
}
.lightline {
	height:0;
	border-top:1px solid rgba(70,70,70,0.2);
	clear:both;
	float:none;
	margin:5px 0 5px -0.5em;
	width:100%;
	
}
.nomargins {
    margin:0 !important;
}

.period-tile {
    height:180px;
    width:255px;
    margin:10px;
    display:inline-block;
    line-height:180px;
    text-align:center;
    padding:0;
    background-position:center center;
    background-size:cover;

}
.period-tile a {
    display:block;
    height:100%;
    width:100%;
    color:#fff;
    text-shadow:0 0 1px rgba(0,0,0,1), 0 0 5px rgba(0,0,0,1);
    font-size:1.5em
}
.period-tile a:hover {
    text-decoration:none;
    background-color: rgba(0,0,0,0.3);
    text-shadow:0 0 3px #000;
    transition:0.5s;
}

.period-tile.p1940{
    background-image:url('/gallery/photos/thumb_25042015_42319206.jpg');
}
.period-tile.p1950{
    background-image:url('/gallery/photos/thumb_18092016_23365458.jpg');
}
.period-tile.p1960{
    background-image:url('/gallery/photos/thumb_05102015_64066409.jpg');
}
.period-tile.p1970{
    background-image:url('/gallery/photos/thumb_29112015_31306500.jpg');
}
.period-tile.p1980{
    background-image:url('/gallery/photos/thumb_22082016_84264909.jpg');
}
.period-tile.p1990{
    background-image:url('/gallery/photos/thumb_24042015_93105185.jpg');
}
.period-tile.p2000{
    background-image:url('/gallery/photos/thumb_24012016_11918906.jpg');
}
.period-tile.p2010{
    background-image:url('/gallery/photos/thumb_06052016_53179075.JPG');
}
.period-tile.p2020{
    background-image:url('/gallery/photos/thumb_26012020_46176916.jpg');
}
div.register-as-rr-mob {
    display:none;
}

img.site-news-img {
	margin-right:7px;
	margin-bottom:7px;
	margin-top:4px;
	float:left;
	max-width:200px;
	
	height:auto;
}
img.smi-news {
	margin-bottom:0;
}

@media (max-width: 1250px) {

    ul.menu li {
        display:block !important;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:0.8em;
        font-weight:100;
    }

}

@media (max-width: 1000px) {
    
    ul.menu li {
        display:block !important;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:0.8em;
        font-weight:100;
    }

}

@media (max-width: 760px) {
    a.register-as-rr {
        display:none !important;
    }
    div.register-as-rr-mob {
        display:block !important;
    }
    div.register-as-rr-mob a.rr-image {
        display:block;
        border:1px solid #fff;
        position:relative;
        top:3em;
        text-align:center;
    }
    div.register-as-rr-mob .rr-text{
        
        position:absolute;
        bottom:0;
        text-shadow:0 0 10px #000;
        color:#fff;
        font-weight:500;
        text-align:center;
        background-color:rgba(0,0,0,0.4);
        width:100%;
    }
    .row.gallery{
        display:none;
    }
    .photo-block:nth-child(n+4){
        display:none;
    }

    ul.menu li {
        display:block !important;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:1em;
        font-weight:400;
        line-height:40px;
    }
    ul.menu li ul{
        text-indent:1em;
        background-color:rgba(255, 255, 255, 0.05);
        font-size:0.9em
    }
    header{
        display:none !important;
        
    }
    .content{
        margin:0 !important;
		padding:0;
		width:100%;
    }
    .content img{
        max-width:100% !important;
        height:auto !important;
    }
    .mobile-header {
        display:flex;
        margin:0;
        z-index:1001;
        position:fixed;
        width:100%;
        box-shadow:2px 0px 4px 1px rgba(0,0,0, 0.6);

    }
    .mobile-header #showMenu{
        background-color:#090B52;
        width:40px;
        height:40px;
        border:0;
        color:#fff;
        margin:0;
    }
    .mobile-header h4{
        color:#fff;
        font-size:18px;
        text-align:center;
        line-height:26px;
        margin-top:6px;
    } 
    .menu-container{
        display:none;
        width:70%;
        position:fixed;
        left:0;
        top:40px;
        z-index:1000;
        box-shadow:3px 2px 4px 1px rgba(0,0,0, 0.6), 0px -1px 4px 1px rgba(0,0,0, 0.4) inset;
        max-height:92%;
        overflow-y:auto;

    }
    .menu-container.opened{
        display:block;
    }
    .main-page-quick-links-container{
        margin-top:3em;
    }
    .article-content{
        margin-top:40px !important;
    }
	.main-page {
		width:100% !important;
	}
    .main-page .article-content{
        margin-top:1em !important;
    }
    
    a.scroll-top {
        position:fixed;
        right:0.6em;
        bottom:3em;
        width:26px;
        height:26px;
        text-align:center;
        line-height:30px;
        font-size:0.8em;
        font-weight:bold;
        border-radius:50%;
        background-color:rgba(0,0,0, 0.5);
        opacity: 0;
        text-decoration:none;
        color:#fff;

    }
    .scroll-top:hover,.scroll-top:visited,.scroll-top:active {
        text-decoration:none;
        color:#fff;
        background-color:rgba(0,0,0, 0.6);
    }
    .newscontent h5{
        font-size:1.1em;
        margin-top:0.5em;
    }
    body .row {
        width:104%;
    }
    .main-page .article-content {
        padding: 1em 1em 0 1em;
        margin-left: 1em;
    }
	img.site-news-img {
		max-width:100%;
		width:100%;
		margin-left:0;
		margin-right:0;
		float:none;
	}
	.main-page-block-link {
		margin-top:0.5em;
	}
	.main-page-quick-links-container:nth-child(2) {
		margin-top:0;
	}
}

.search-form{
    margin-top:0.4em;
}
.search-form button{
    height:1.6em;
    line-height:1em;
    
    font-size:0.8em !important;
}
input[type="search"]{
    border:1px solid #777 !important;
    font-size:0.8em !important;
}
input[type="search"]:focus{
    border:1px solid #111 !important;
    outline:none !important;
}
.header-social-icon {
	margin-left:6px;
	margin-top:20px;
	width:32px;
	height:32px;
}
.header-social-link:hover {
	text-decoration:none;
}
.event {
    text-indent:1em;
}
.photo-block{
    max-height:155px;
    overflow:hidden;
    text-align:center;
}
.photo-block img{ 
    max-height:149px;
}

.smi-link{
    text-indent:1em;
}
.year-data-container{
    display:none;
}
.year-data-container:nth-child(0){
    display:block;
}

a.register-as-rr {
    display:block;
    margin-top:0.6em;
    height:92%;
    width:104%;
    margin-left:-4%;
    background-image:url('/wp-content/uploads/2021/04/mju_10-e1619119357733.jpg');
    background-position:center center;
    background-size:cover;
    position:relative;
    border:1px solid #fff;
}
a.register-as-rr div{
    position:absolute;
    bottom:0;
    text-shadow:0 0 10px #000;
    color:#fff;
    font-weight:500;
    text-align:center;
    background-color:rgba(0,0,0,0.4)
    
}
#lightboxImage {
	max-width:100%;
}