/* sp-square.css — единый жёсткий квадрат 1:1 + object-fit:cover
   Грузится последним. Бьёт img{height:auto !important} из additional_102024
   через absolute fill внутри aspect-ratio контейнера. */

:root {
	--sp-sq: 1 / 1;
}

/* ---- контейнер слота ---- */
html.gw-p-blog .content-area .blog-items .item .img,
html.gw-p-blog .blog_lead-img,
html.gw-p-blog-article .article_header_card-img,
html.gw-p-blog-article .fg-blog-article__img,
html.gw-p-blog-article .article_latest .item .img,
html.gw-p-afisha .content-area .blog-items.afisha-items .item .img,
html.gw-p-afisha .blog_lead-img,
html.gw-p-edinstvo .blog-items .item .img,
html.gw-p-edinstvo .blog_lead-img,
html.gw-p-specials .specials-card__img,
body.newsblog-category .blog-items .item .img,
body.newsblog-category .blog_lead-img,
body.newsblog-article .article_header_card-img,
body.newsblog-article .fg-blog-article__img,
body.product-category-all .cat_hero-cat__thumb,
body .fg .bc__media {
	position: relative !important;
	aspect-ratio: 1 / 1 !important;
	overflow: hidden !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	background: #eef3f9 !important;
	box-sizing: border-box !important;
}

html.gw-p-blog-article .article_header_card-img,
body.newsblog-article .article_header_card-img,
html.gw-p-blog-article .fg-blog-article__img {
	flex: 0 0 380px !important;
	width: 380px !important;
	max-width: 40% !important;
}

@media (max-width: 767px) {
	html.gw-p-blog-article .article_header_card-img,
	body.newsblog-article .article_header_card-img,
	html.gw-p-blog-article .fg-blog-article__img {
		flex: none !important;
		width: 100% !important;
		max-width: none !important;
	}
}

/* ---- картинка заполняет слот ---- */
html.gw-p-blog .content-area .blog-items .item .img img,
html.gw-p-blog .blog_lead-img img,
html.gw-p-blog-article .article_header_card-img img,
html.gw-p-blog-article .fg-blog-article__img img,
html.gw-p-blog-article .article_latest .item .img img,
html.gw-p-afisha .content-area .blog-items.afisha-items .item .img img,
html.gw-p-afisha .blog_lead-img img,
html.gw-p-edinstvo .blog-items .item .img img,
html.gw-p-edinstvo .blog_lead-img img,
html.gw-p-specials .specials-card__img img,
body.newsblog-category .blog-items .item .img img,
body.newsblog-category .blog_lead-img img,
body.newsblog-article .article_header_card-img img,
body.newsblog-article .fg-blog-article__img img,
body.product-category-all .cat_hero-cat__thumb img,
body .fg .bc__img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
}

/* ссылка внутри слота тоже на весь квадрат */
html.gw-p-blog .content-area .blog-items .item .img a,
html.gw-p-afisha .content-area .blog-items.afisha-items .item .img a,
html.gw-p-edinstvo .blog-items .item .img a,
body.newsblog-category .blog-items .item .img a {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

/* Article hero: show the whole poster. cover was clipping the left of wide banners. */
html.gw-p-blog-article .article_header_card-img img,
html.gw-p-blog-article .fg-blog-article__img img,
body.newsblog-article .article_header_card-img img,
body.newsblog-article .fg-blog-article__img img {
	object-fit: contain !important;
	object-position: center center !important;
	background: #fff !important;
}
