/* GT 2026-11-28: show the whole product photo on the mobile card.
   Cause: theme media.css (max-width:600px) sets .item_slider .slides to height:260px
   with padding 25px 0 5px and overflow:hidden, while the image/link stays 260px tall,
   so the bottom (and wide sides) get clipped. The resize file itself is proportional,
   not BX_RESIZE_IMAGE_EXACT. Desktop rules are unchanged.
   r=pimg2: keep flexslider slides in a horizontal row (max-width:none) so the gallery
   does not stack, and contain images inside a 320px box with horizontal padding on the link. */

@media (max-width: 767px) {
	.catalog_detail .item_main_info .item_slider.flex {
		background: #fff;
	}
	.catalog_detail .item_main_info .item_slider.flex .flex-viewport {
		height: 328px !important;
		max-height: 328px !important;
		overflow: hidden !important;
		max-width: 100% !important;
	}
	.catalog_detail .item_main_info .item_slider.flex .slides {
		height: 328px !important;
		max-width: none !important;
		padding: 8px 0 0 !important;
		overflow: hidden !important;
		background: #fff;
		box-sizing: border-box !important;
		line-height: normal !important;
	}
	.catalog_detail .item_main_info .item_slider.flex .slides > li {
		height: 320px !important;
		overflow: hidden !important;
		background: #fff;
	}
	.catalog_detail .item_main_info .item_slider.flex .slides > li > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 320px !important;
		max-height: none !important;
		padding: 0 12px !important;
		box-sizing: border-box !important;
		background: #fff;
	}
	.catalog_detail .item_main_info .item_slider.flex .slides > li > a img {
		position: static !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
		margin: 0 auto !important;
	}
}
