/*
Theme Name: Gambit Child
Theme URI: https://themezee.com/themes/gambit/
Template: gambit
Author: ThemeZee
Description: Дочерняя тема Gambit со стилем новостей как на uprkult32.ru — сетка карточек с изображением, заголовком, анонсом и кнопкой «Читать далее», а также список архива с миниатюрой слева.
Version: 1.0.0
Requires at least: 5.2
Tested up to: 7.0
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gambit-child
*/


/*--------------------------------------------------------------
# - Сетка новостей (Magazine Grid, medium-post)
#   Как на главной: картинка → заголовок → анонс → «Читать далее»
#   Цвета — дефолтные Gambit (#1585b5)
--------------------------------------------------------------*/
.widget-magazine-posts .medium-post .entry-title {
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.widget-magazine-posts .medium-post .entry-title a:link,
.widget-magazine-posts .medium-post .entry-title a:visited {
	color: #252525;
	color: var(--title-color);
}

.widget-magazine-posts .medium-post .entry-title a:hover,
.widget-magazine-posts .medium-post .entry-title a:active {
	color: #1585b5;
	color: var(--title-hover-color);
}

.widget-magazine-posts .medium-post .entry-content {
	margin-top: 0.5em;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.75;
}

.widget-magazine-posts .medium-post .entry-content p {
	margin: 0.5em 0 0;
}

.widget-magazine-posts .medium-post .more-link {
	margin: 0.8em 0 0;
}


/*--------------------------------------------------------------
# - Архив / лента новостей (small-image)
#   Картинка слева, текст справа, кнопка «Читать далее»
--------------------------------------------------------------*/
.small-archive-post {
	padding: 0 0 1.5em;
	margin: 0 0 1.5em;
	border-bottom: 1px solid #ddd;
	border-bottom-color: var(--light-border-color);
}

.small-archive-post .wp-post-image {
	float: left;
	margin: 0 1.5em 0.5em 0;
	max-width: 45%;
}

.small-archive-post .entry-title {
	font-size: 22px;
	font-size: 1.375rem;
}

.small-archive-post .entry-title a:link,
.small-archive-post .entry-title a:visited {
	color: #1585b5;
	color: var(--link-color);
}

.small-archive-post .entry-title a:hover,
.small-archive-post .entry-title a:active {
	color: #252525;
	color: var(--link-hover-color);
}

.small-archive-post .entry-content {
	font-size: 15px;
	font-size: 0.9375rem;
}

.small-archive-post .more-link,
.content-area .type-post .more-link {
	display: inline-block;
	margin-top: 0.75em;
	padding: 0.5em 1em;
	background-color: #1585b5;
	background-color: var(--button-color);
	color: #fff;
	color: var(--button-text-color);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 13px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.small-archive-post .more-link:hover,
.small-archive-post .more-link:active,
.content-area .type-post .more-link:hover,
.content-area .type-post .more-link:active {
	background-color: #252525;
	background-color: var(--button-hover-color);
	color: #fff;
}


/*--------------------------------------------------------------
# - Адаптив
--------------------------------------------------------------*/
@media only screen and (max-width: 60em) {
	.widget-magazine-posts .medium-post {
		width: 50%;
	}

	.widget-magazine-posts .magazine-grid .post-column:nth-child(3n+1) .medium-post {
		clear: none;
	}

	.widget-magazine-posts .magazine-grid .post-column:nth-child(2n+1) .medium-post {
		clear: left;
	}
}

@media only screen and (max-width: 40em) {
	.widget-magazine-posts .medium-post {
		float: none;
		width: 100%;
		padding-right: 0;
	}

	.small-archive-post .wp-post-image {
		float: none;
		display: block;
		max-width: 100%;
		margin: 0 0 0.75em;
	}
}
