@media screen and (min-width:921px) and (max-width:1200px) {
    .slideshow>a {
        min-width: 33vw !important;
    }
}

@media screen and (min-width:921px) {
	:root{
		--font-base-size: 16px;
	}
	
    html {
        font-size: 16px;
		font-size: var(--font-base-size, 16px);
    }
	
	.wrapper {
		flex-wrap: nowrap;
        display: grid;
		grid-template-columns: 252px calc(100% - 504px - 4em) 252px;
		gap: 2rem;
        max-width: 100vw;
        margin: 0 auto;
        padding: 0;
    }
	
	#main {
		margin-top: 12px;
		flex-shrink: 1;
		grid-column: 2;
        order: 2;
    }
	
	.sidebar {
        font-size: 15px;
		font-size: calc( var(--font-base-size, 16px) * 0.9375 );
		width: 100%;
		width: -webkit-fill-available;
		max-width: 270px;
    }

    #left-bar {
        order: 1;
    }

    #right-bar {
        margin: 0 -5px 0 -1px;
        order: 3;
    }

    #left-bar .widget {
        max-width: unset;
        margin-left: 0;
        margin-right: 0;
    }

    #right-bar .box {
        min-width: unset;
		padding: 10px 12px 10px;
    }
	
	#right-bar .foto-box img {
		max-height: 250px;
	}

    .counter {
        text-align: right;
    }

    #nav .breadcrumbs {
        width: calc(50vw - 340px);
        min-width: 100%;
		max-width: 450px;
		overflow: visible;
		flex-shrink: 0;
    }
	
	.breadcrumbs li>span {
		display: inline-block;
		vertical-align: -.2em;
		white-space: nowrap;
		overflow: hidden;
		max-width: 100%;
		text-overflow: ellipsis;
	}
	
	.nav__left .header-help-btn{
		padding: 3px 8px 4px;
		margin-left: 0;
	}
	
	.nav__left{
		margin-bottom: 8px;
	}
	
	.nav__right{
		margin-top: 16px;
		gap: 10px;
	}
	
	.nav__right .btn-settings{
		display: initial;
		top: 2px;
		right: 100%;
		margin-right: 10px;
		cursor: pointer;
	}
	
	#search{
		display: block;
	}
	
	.fa.speech{
		line-height: .8;
	}

    #main_title {
        font-size: min(calc(11px + 5.5vw), 60px);
        height: 1em;
		margin: 5px 0 0;
    }

    #main>h1 {
        margin-bottom: 20px;
    }

    .top-saints {
        line-height: inherit;
        margin-bottom: 0;
    }

    .desk-hide {
        display: none;
		}

    body {
        padding-top: 0 !important;
    }

    .mobnav {
        display: none !important;
    }

	#calendar_day .nav{
		line-height: .8;
	}
	
	#calendar_day .nav .weekday{
		font-size: 1em;
	}

	.day__text{
		width: fit-content;
		max-width: calc(100% - 35px);
		margin: auto;
	}

    .day__text p,
	.day__text ul{
        font-size: 15px;
		font-size: calc( var(--font-base-size, 16px) * 0.9375 );
        line-height: 17px;
        line-height: calc( var(--font-base-size, 16px) * 1.0625 );
    }
	
	.day__text ul li+li{
		margin-top: 5px;
	}

    .expandable {
        max-height: 17em;
    }

    .slideshow>a {
        min-width: 33%;
    }
	
    .boxer {
        padding: 12px 18px 20px;
        margin-top: 0;
		margin-bottom: 0;
    }

    .car-nav {
        opacity: 0;
    }

    #slider:hover .car-nav {
        opacity: 0.65;
    }

    #slider .car-nav:hover {
        opacity: 1;
    }

    .lightbox-body {
        min-width: 500px;
    }

    .lightbox-prev {
        left: 5vw;
    }

    .lightbox-next {
        right: 5vw;
    }
	
	.lightbox-img {
		cursor: zoom-in;
	}
	
	.lightbox-caption {
		font-size: 1rem;
		min-width: 300px;
		padding: 10px 15px;
	}
	
	.lightbox-wrap.fullscreen, 
	.lightbox-wrap.fullscreen .lightbox-body,
	.lightbox-wrap.fullscreen .lightbox-img-wrap{
		padding:0;
		height: 100%;
	}

	.lightbox-wrap.fullscreen .lightbox-body{
		overflow: auto;
		justify-content: unset;
	}

	.lightbox-wrap.fullscreen .lightbox-img-wrap{
		overflow: auto;
		height: 100%;
		width: 100%;
		background: transparent;
		display: block;
	}

	.lightbox-wrap.fullscreen .lightbox-caption{
		background: transparent;
		position: fixed;
		top:.5rem;
		right:0;
		z-index: 99;
	}
	.lightbox-wrap.fullscreen .lightbox-caption-text{
		display: none;
	}
	.lightbox-wrap.fullscreen .lightbox-close{
		background: #fafafa;
		background: var(--secondary-bg, #fafafa);
		line-height: 2rem;
		width: 2.2rem;
	}

	.lightbox-wrap.fullscreen .lightbox-img{
		object-fit: none;
		margin: auto;
		max-height: unset!important;
		max-width: unset;
		min-height: 100%;
		cursor: zoom-out;
		-webkit-user-drag: none;
		user-drag: none;
	}

    .book {
        flex-basis: 50%;
        text-align: left;
    }

    .block {
        margin-bottom: 1rem;
    }

    #main .block p {
        text-align: justify;
    }

    .brif .thumb {
        float: right;
    }
	
	.brif-video{
		max-width: 320px;
	}

    #main ul.cycles {
        width: 300px;
    }

    #calendar_day .cal {
        width: auto;
    }

    #calendar_day .oldstyle,
    #calendar_day .newstyle {
        font-size: 14px;
		font-size: calc( var(--font-base-size, 16px) * 0.875 );
    }
	
	#calendar_day .oldstyle br{
		display: initial;
	}

    #calendar_day .days {
        width: auto;
        font-size: 38px;
		order: 1;
    }

    .article p {
        text-align: inherit;
    }

    .image-right {
        float: right;
        margin-top: 2px;
        margin-right: 0;
        margin-bottom: 2px;
        margin-left: 8px;
    }

    .image-left {
        float: left;
        margin-top: 2px;
        margin-right: 8px;
        margin-bottom: 2px;
        margin-left: 0px;
    }

	.services-categories{
		column-count: 2;
	}
	.services-categories div{
		break-inside: avoid;
	}
    .services-inner h1 {
        font-size: 25px;
    }

    img.img-in-texts {
        width: 70px;
    }

    a.a-in-texts img {
        width: 70px !important;
    }

    #slider {
        padding: 0 30px;
        position: relative;
    }

    .slideshow {
        margin: 0 auto 0;
    }
	
	.slideshow.dragging{
		scroll-snap-type: none;
		scroll-behavior: initial;
	}

	.slideshow.dragging>a{
		scroll-snap-align: none;
	}

	.slideshow.dragging, .slideshow.dragging *{
		transition: none!important;
	}

    #holiday-description .holiday-image {
        float: right;
    }

    img[data-src] {
        min-height: unset;
    }

	.w-nav-top .row-fluid,
    #content {
        padding: 0 20px;
    }

    #main_title a {
        text-shadow: 0 0 8px #fff;
    }

    .readings {
        display: block;
    }

    .footer-container {
        justify-content: flex-end;
    }

    .otechnik {
        float: right;
        max-width: 50%;
    }
	
	.after-content-days-nav .nav.prev-day,
	.after-content-days-nav .nav.next-day{
		padding-bottom: 0;
	}
}

@media screen and (min-width:1201px) {
	.large-screen-show{
		display: initial;
	}
	.large-screen-hide{
		display: none;
	}
	
	.calendar__day__current{
		max-width: unset;
	}
	#calendar_day .oldstyle {
		text-align: right;
		order: unset;
	}
	#calendar_day .newstyle {
		text-align: left;
		order: 3;
	}
	
    .readings-inner {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .readings-text {
        flex-grow: 1;
    }

    .readings-video {
        flex-shrink: 0;
    }

    .holiday-video__container {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

@media screen and (min-width:1281px) {
	.nav.prev-day{
		padding-left: 40px;
	}
	.nav.next-day{
		padding-right: 40px;
	}
	
	.nav.prev-day .full,
	.nav.next-day .full{
		display: inline;
	}
	.nav.prev-day .short,
	.nav.next-day .short{
		display: none;
	}
}

@media (max-width:1400px) {
	#main_title .mob-hide{
		display: none;
	}
}

@media (min-width:1401px) {
	#main_title .mob-hide{
		display: initial;
	}
}

@media (min-width:1540px) {
	.wrapper{
		max-width: 1540px;
	}
}