/*Вспомогательная галерея на дропдаунах*/
	#gallery_prev > svg, #gallery_next > svg {fill: #1e88e5;width: 35px;height: 35px;position:absolute;top:0;bottom:0;margin:auto;padding:5px;opacity: 0.95;border-color: transparent;background-size: cover;background-color: #FFF;border-radius:50%;}
	#gallery_prev > svg:hover, #gallery_next > svg:hover {fill:#E01011;}

/*Общее*/
	#allcontent {margin-top:15px;}
	h1.myheader {font-size:1.4em;margin-bottom:30px;color:#444;}
	#leftcol5 {float:none;margin-top:0;flex:0 175px;display:inline-block;overflow:hidden;} /*Юзерское боковое меню для приватной части!*/
	#uwp #leftcol5 {margin-top:0px!important}

/*Новые комментарии к событиям*/
	#newcmnts {padding:5px 15px !important;}
	#newcmnts > div {position:relative;padding:7px 0;line-height:1.4;}
	#newcmnts > div:nth-last-child(n+2) {border-bottom:1px solid #EEE;}
	#newcmnts > div > div:hover + a > svg {opacity:0.4;}
	#newcmnts > div > a:hover > svg {opacity:0.5}
	#newcmnts > div > a:hover > svg {fill:#E01011;}
	#newcmnts > div > a > svg {position:absolute;top:0;bottom:0;height:16px;width:16px;right:0px;margin:auto;opacity: 0;transition: opacity ease .3s;}

/*Друзья online*/
	#fonline > div {display:inline-block;text-align:center;padding:5px 0;width:calc((100%/3.1) - 5px);}
	#fonline > div:nth-of-type(3n+2) {margin-left:5px;margin-right:5px;}

/*Плавное появление*/
	#fonline, #map, {will-change:opacity;opacity:0;animation: fadeIn 1s forwards;}

/*Настройки профиля*/
	#profile > div {margin-bottom:30px;}
	#profile > div:not(.prof-bg) > div:nth-of-type(1) {display:inline-block;width:20%;vertical-align:top;}
	#profile > div:not(.prof-bg) > div:nth-of-type(2) {display:inline-block;width:79%;vertical-align:top;}

/* Настройки ленты */
	div.setngs2 {padding:0 10px 10px 10px;}
	div.setngs2 input {margin-right:7px;}

	ul.eventsset > li {width:45%;display:inline-block;box-sizing:border-box;margin:10px;}
	ul.eventsset label {color:#1265b7;}
	ul.eventsset svg {vertical-align:top;}

/*Универсальная форма добавление чего-либо */
	#add_form > ul > li {margin-bottom:30px;display:flex;flex-flow:row wrap;justify-content:flex-start;}
	#add_form > ul > li > label {flex:0 200px;}
	#add_form > ul > li > div:not(.desc2r) {flex:1 1 0%;}
	#add_form > ul > li > div.desc2r {flex:0 100%;}

/*Добавление отзыва - статистика*/
	#add_form > ul.stat > li {border-bottom:1px solid #EEE;margin-bottom:10px !important;display:flex;flex-flow:row nowrap;justify-content:space-between;}
	#add_form >	ul.stat > li > label {flex: 1 1 25%;padding:5px}

/*Добавление отзыва*/
	ul.opopt > li {display:inline-block;margin-right:20px;} /*radio buttons*/

/*Настройка уведомлений*/
	.permod li {margin-bottom:10px;}
	.permod li > * {vertical-align:middle;}
	.permod li > input {margin-right:5px;}

/*Карта яндекса юзерская*/
	body[class^="ymaps"] > ymaps {z-index:20001 !important;} /*чтобы плавающая навигация не закрывала*/

/* Смартфоны ПОРТРЕТНЫЕ */
@media only screen and (max-width:500px) and (max-aspect-ratio: 13/9) {

	/*Общее*/
		h1.myheader {text-align:center;}

	/*red-line*/
		.red_line ul {display:flex;flex-flow:row wrap;} /*разрешаем перенос*/
		.red_line ul > li {flex:0 100%;margin:0 !important;padding:15px 0;display:inline-block;text-align:center;position:relative;}
		.red_line ul > li:nth-child(n+2):before {content: '';position: absolute;top: 0;left: 0;right: 0;margin: auto;width: 15%;border-top: 1px solid #EEE;}
		.red_line ul > li a:not(.selected) {border-bottom:none;}
		.red_line ul > li a:hover {padding:0;}

	/* Настройки ленты */
		ul.eventsset > li {width:100%;display:block;margin:30px 10px;}

	/* Новые комментарии к событиям */
		#newcmnts > div > a > svg {opacity:0.5} /* Закрывающий крестик всегда виден */

	/*Подпсики*/
		div[id^="hid"] {text-align:center;}
		div[id^="hid"] ul {list-style:none;}
		div[id^="hid"] ul:not(#car_type_subscr_form) > li {padding:20px 0;border-top:1px solid #EEE;}

		#hid1 .global-s > li > span {display:block;margin-bottom:20px;} /*глобальные подписки*/

		/*Глобальная подписка*/
		.car-type-subscr-carmodif-cont {background-color: #F9F9F9;padding: 20px;border:1px solid #EEE;}
		#car_type_subscr_form > li {width:100%;text-align:center;}
		#car_type_subscr_form  select {width:100%}
		#add_car_type_subscr {display:block;margin:0 auto;}

		/*Подписки на ТС юзеров*/
		ul.sty > li > a:first-of-type {max-width:100%;display:block;margin-bottom:10px;font-size:1.1em;}
		ul.sty > li * {vertical-align:middle;}
		ul.sty > li > a.sitebtn {display:table;margin:20px auto 0;}

		/*Подписики на людей*/
		.tab2le li {width:100% !important;margin:0 !important;}
		.tab2le li a.toe {max-width:80% !important;}

		/*Подписки на сообщества*/
		#social_list li > a:first-child {display:block;margin-bottom:20px;}

		div[id^="hid"] a.sitebtn  {float:none;display:inline-block;} /*кнопки Отписаться*/

	/*E-mail Уведомления*/
		.permod	li {margin-bottom:20px;}
		.all {margin:20px 0;}

	/*Настройки профиля*/
		#profile > div:not(.prof-bg) {border-bottom:1px solid #EEE;}
		#profile > div:not(.prof-bg) > div {display:block !important;margin-bottom:20px;width:100% !important;text-align:center;}
		#profile > div.prof-bg {text-align:center;}
		#profile > input[type="submit"] {display:table-cell;margin:20px auto;}
		#profile select {width:80%;}
		#profile input[type="text"] {width:60%;}
		#citiesui select {width:80%;}
		#citiesui a {display:inline-block;margin:10px 0;} /*выбор городов*/
		#profile .avax {margin-right:0 !important;}
		#profile input[name*="phone"], 	#profile input[name="foo"] {display: block;margin: 0 auto 10px;}
		#profile textarea {height:100px !important;} /*o себе*/

	/*Настройки PRO*/
		.pr1o {text-align:center;}
		.pr1o > div {padding:10px 0 20px;border-bottom:1px solid #EEE;}
		.pr1o label {display:block !important;margin-bottom:20px;width:initial !important;}
		.pr1o .w20 {width:80%;}
		.pr1o .redactor-box {text-align:left;}
		#probanner {padding:10px 0;margin-top:80px;}
		#probanner form.abs {position:relative;margin-top:20px;bottom:0 !important;right:0 !important;text-align:center;} /*кнопка удалить баннер*/

	/*Мои машины*/
		div[id*="garage_subscribe"] > div:nth-child(1) {height:200px !important;}
		div[id*="garage_subscribe"] > div:nth-child(2) {margin-top:10px;text-align:center;display:flex;flex-flow:row wrap;justify-content:center;} /*flex чтобы задать order*/
		div[id*="garage_subscribe"] .multbtn {display:table;float:none;margin: 20px auto 0;order:2;}

	/*Добавление БЖ, отзыва, расхода, поломки, offer, market и т.д.*/
		#add_form > ul {list-style:none;}
		#add_form > ul > li, ul.stat > li {text-align:center;border-top:1px solid #EEE;padding:20px 0;margin-bottom:0;}
		#add_form > ul > li > label {flex:0 100%;margin-bottom:20px;}
		#add_form > ul > li > div {flex: 0 100% !important;}
		#add_form .redactor-box {text-align:left;}
		#add_form > input[type="submit"] {display:table-cell;margin:20px auto;}

		/*Добавление отзыва - статистика*/
			ul.stat {padding:0 !important;border:none !important;}
			ul.stat > li {border:none;flex-flow:row wrap;}
			ul.stat > li > label {flex: 1 1 100%;margin-left:0 !important;background-color:transparent;}
			ul.stat > li > label:last-of-type {margin-bottom:0 !important;}
	/*Убираем лишние кнопки из редактора*/
		.redactor-toolbar > li > a {display:none !important;} /*выключаем все*/
		.redactor-toolbar > li > a.re-image {display:block !important;font-size:1.5em!important;}  /*включаем картинки*/
		.redactor-toolbar > li > a.re-video {display:block !important;font-size:1.5em!important;} /*включаем видео*/
}

/* ПЛАНШЕТЫ АЛЬБОМНЫЕ */
@media only screen and (max-device-width:1024px) and (orientation:landscape),
			screen and (max-device-width:1024px) and (orientation:portrait)
{
	#gallery div.rel {max-width:100% !important;} /*Вспомогательная галерея на дропдаунах*/
	#newcmnts > div > a > svg {opacity:0.5} /* Закрывающий крестик всегда виден */
}
