/*
Theme Name: Cream Magazine Child
Template: cream-magazine
*/

/*---------ТАБЛИЦЫ--------------------------------------------------------*/
.table-container {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

caption {		/*заголовок таблиц*/
  text-align: center !important;
  caption-side: top !important;
  font-weight: bold !important;
}

.entry-content tr td, .entry-content tr th {
	vertical-align: middle !important; /*выравнивание в таблицах*/
}
/**************************************************************************/

.the_content {
	font-size: 17px !important;
	text-align: justify !important; /* выравнивание по ширине на десктопе */
	hyphens: auto !important;       /* переносы */
	-webkit-hyphens: auto !important;
	-moz-hyphens: auto !important;
	word-break: normal !important;
}

@media (max-width: 768px) { /*правило, которое применяется только на экранах уже 768px (обычно мобильные)*/
  .the_content {
    text-align: left !important; /* на мобильных выравнивание по левому краю */
  }
}



.the_title h1 {
	font-size: 24px !important;
}

.the_content h2 {
	font-size: 22px !important;
	text-align: center !important;
}

.the_content h3 {
	font-size: 20px !important;
	text-align: center !important;
}

.post_title h2 {
	font-size: 18px !important;
}
.small_posts .card .post-holder .post_title h2 {
	font-size: 14px !important;
	padding: 0 !important; /* Поля вокруг текста */
	margin: 0 !important; /* Убираем внешний отступ */
	-webkit-line-clamp: 4 !important; /* Число отображаемых строк */
	display: -webkit-box !important; /* Включаем флексбоксы */
	-webkit-box-orient: vertical !important; /* Вертикальная ориентация */
	overflow: hidden !important; /* Обрезаем всё за пределами блока */
	color: #FFF !important;
}

.aligncenter {		/*центрирование картинок*/
	display: block;
	clear: both;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.fancybox-title-inside, .fancybox-title {		/*размер шрифта во всплывающем окне с картинкой*/
	font-size: 10px !important;
	line-height: 0.9 !important;
	text-align: justify !important;
	font-weight: bold !important;
	padding-bottom: 10px !important;
	padding-left: 5px !important;
	padding-right: 5px !important;
}