/* Responsive overlay for the static copy of prava44.ru.
   The legacy fixed-width theme remains untouched above the mobile breakpoint. */
@media (max-width: 1120px) {
	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	body {
		min-width: 0;
	}

	.top_cornor,
	.body-content {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		background-position: center top;
	}

	.container_24 {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 14px;
		padding-right: 14px;
	}

	.container_24 [class*="grid_"] {
		float: none;
		display: block;
		width: auto;
		max-width: 100%;
		box-sizing: border-box;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		left: auto;
		right: auto;
	}

	.header .logo {
		padding-top: 4px;
		text-align: center;
	}

	.header .logo a {
		display: inline-block;
		max-width: 100%;
		font-size: clamp(16px, 4.8vw, 22px);
		line-height: 1.25;
		vertical-align: middle;
	}

	.header .logo img {
		max-width: 52px;
		height: auto;
		vertical-align: middle;
	}

	#menu .ddsmoothmenu {
		float: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		margin-top: 12px;
		background-position: left bottom;
	}

	#menu .ddsmoothmenu > li {
		float: none;
		display: block;
		margin: 0;
	}

	#menu .ddsmoothmenu > li > a {
		float: none;
		display: block;
		padding: 9px 8px 10px;
		font-size: 14px;
		white-space: nowrap;
	}

	#menu .ddsmoothmenu li > ul {
		z-index: 10001;
		max-width: min(92vw, 320px);
	}

	#slides {
		width: 100%;
		margin-top: 12px;
	}

	#slides .slide {
		width: 100%;
		height: auto;
		min-height: 0;
		box-sizing: border-box;
		overflow: hidden;
		background-size: 24px 24px;
	}

	#slides .slide > div > img,
	#slides .slide img {
		display: block;
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	#slides .caption {
		position: relative;
		inset: auto;
		width: auto;
		height: auto;
		margin: -2px 0 0;
		padding: 12px 14px;
		border-left-width: 4px;
		box-sizing: border-box;
	}

	#slides .caption h2 {
		width: auto;
		font-size: clamp(19px, 5.3vw, 24px);
		line-height: 1.2;
	}

	#slides .caption p {
		font-size: 14px;
		line-height: 1.45;
		overflow-wrap: anywhere;
	}

	#slides span.shadow {
		display: none;
	}

	.home_content,
	.home_text,
	.feature_content,
	.content_wrapper,
	.content_wrapper .content,
	.content_wrapper .sidebar_wrapper,
	.sidebar_wrapper .sidebar {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.home_text iframe,
	.sidebar iframe,
	.feature_content img,
	.home_text img,
	.content img {
		max-width: 100%;
		height: auto;
		box-sizing: border-box;
	}

	.home_text iframe,
	.sidebar iframe {
		width: 100%;
	}

	.feature_content .two_third,
	.feature_content .one_third {
		float: none;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0 0 22px;
	}

	.footer-content,
	.footer-content .footer_wrap,
	.footer_title {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.footer-content {
		padding-left: 0;
	}

	.footer-content .footer_wrap {
		padding-top: 22px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.footer {
		background-image: none;
	}

	.footer_wrapper .footer .footer_widget .widget_inner,
	.footer_wrapper .footer .footer_widget .widget_inner.lebo {
		padding-left: 0;
		padding-right: 0;
		margin-top: 0;
	}

	.footer_wrapper .footer .copyright {
		float: none;
	}

	.footer_title {
		padding-left: 14px;
		padding-right: 14px;
	}

	.lg_gallery,
	.lg_gallery .lg_thumb_view,
	.lg_gallery .thumb_images {
		max-width: 100%;
		box-sizing: border-box;
	}

	.static-gallery-show {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.static-gallery-show img,
	.lg_gallery img {
		max-width: 100%;
		height: auto;
	}

	.static-gallery-show__controls {
		gap: 8px;
	}

	.static-gallery-show__controls button {
		max-width: 100%;
	}

	.lg_gallery table,
	.lg_gallery .imagedatatable {
		width: 100%;
		max-width: 100%;
		table-layout: fixed;
		word-break: break-word;
	}

	.lg_gallery table td,
	.lg_gallery table th {
		max-width: 100%;
		box-sizing: border-box;
		word-break: break-word;
	}

	.lg_gallery ul.lgi-list,
	.lg_gallery ul.lgf-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		max-width: 100%;
	}

	.lg_gallery ul.lgi-list li.lgi-item,
	.lg_gallery ul.lgf-list li.lgf-item {
		flex: 0 1 120px;
		width: auto !important;
		max-width: calc(50% - 8px);
		box-sizing: border-box;
		margin: 3px;
	}

	.lg_gallery .lg_thumb,
	.lg_gallery .lg_thumb_image {
		max-width: 100%;
		box-sizing: border-box;
	}

	.lg_gallery .lg_thumb img {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.lg_gallery .lg_image img,
	.lg_gallery img.lg_slide {
		display: block;
		width: auto;
		max-width: 100%;
		height: auto;
		margin-left: auto;
		margin-right: auto;
	}

	.content,
	.content p,
	.content a,
	.home_text,
	.sidebar {
		overflow-wrap: anywhere;
	}
}
