/**
 * HoReCa image gallery (brelki foto, hub sections, future product galleries).
 * Markup: .horeca-brelki-gallery — class names kept for backward compatibility.
 */

.horeca-brelki-gallery.horeca-order {
	--ho-bg: var(--hc-bg, #f5f5f5);
	--ho-surface: var(--hc-bg-panel, #ffffff);
	--ho-text: var(--hc-text, #000000);
	--ho-muted: var(--hc-muted, #8b8e97);
	--ho-accent: var(--hc-accent, #f2e34c);
	--ho-accent-hover: var(--hc-accent-hover, #e6d63f);
	--ho-line: var(--hc-border, #e0e0e0);
	margin: 1.75rem 0 2rem;
	color: var(--ho-text);
	font-family: var(--hc-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
}

.horeca-brelki-gallery a:not(.horeca-order__cta-btn):not(.horeca-brelki-gallery__link):not(.horeca-brelki-foto__nav-chip) {
	color: var(--ho-text) !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ho-accent) !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 3px;
}

.horeca-brelki-gallery a:not(.horeca-order__cta-btn):not(.horeca-brelki-gallery__link):not(.horeca-brelki-foto__nav-chip):hover,
.horeca-brelki-gallery a:not(.horeca-order__cta-btn):not(.horeca-brelki-gallery__link):not(.horeca-brelki-foto__nav-chip):focus-visible {
	color: #333 !important;
}

.horeca-brelki-gallery a:not(.horeca-order__cta-btn):not(.horeca-brelki-gallery__link):not(.horeca-brelki-foto__nav-chip):visited {
	color: var(--ho-text) !important;
}

.horeca-brelki-gallery__grid {
	list-style: none !important;
	list-style-type: none !important;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.horeca-brelki-gallery__grid::marker {
	content: none;
}

@media (min-width: 640px) {
	.horeca-brelki-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.horeca-brelki-gallery__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.horeca-brelki-gallery__item {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.horeca-brelki-gallery__item::marker {
	content: none;
}

.horeca-brelki-gallery__item::before,
.horeca-brelki-gallery__item::after {
	content: none !important;
	display: none !important;
}

.horeca-brelki-gallery__figure {
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--ho-surface, #fff);
	border: 1px solid var(--ho-line, #e0e0e0);
	border-radius: 12px;
	overflow: hidden;
}

.horeca-brelki-gallery__link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	min-height: 10rem;
	padding: 0.65rem;
	box-sizing: border-box;
	background-color: #fff;
	background-image: none;
}

.horeca-brelki-gallery__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	margin: 0 auto;
}

/* Портреты (Чинар и др.): не сжимать до квадрата по атрибутам width/height */
.horeca-brelki-gallery__img--portrait {
	max-height: min(100%, 320px) !important;
}

.horeca-brelki-gallery__caption {
	margin: 0;
	padding: 0.55rem 0.65rem 0.7rem;
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
	border-top: 1px solid var(--ho-line, #e0e0e0);
}

.horeca-brelki-gallery__caption-text {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--ho-text, #222);
}

/* Мобильный: подписи под миниатюрами скрываем (alt в кнопке / лайтбоксе) */
@media (max-width: 639px) {
	.horeca-brelki-gallery__caption {
		display: none;
	}

	.horeca-brelki-gallery.horeca-order,
	.horeca-brelki-gallery__grid {
		margin-top: 0.85rem;
	}

	.horeca-brelki-gallery__grid {
		gap: 0.5rem;
	}

	.horeca-brelki-gallery__link {
		min-height: 7rem;
		padding: 0.4rem;
	}

	section.horeca-order .horeca-product__gallery-section.horeca-brelki-gallery {
		margin-top: 0.5rem;
		margin-bottom: 1rem;
	}
}

.horeca-brelki-foto__intro {
	margin: 0 0 1.25rem;
	text-align: center;
}

.horeca-brelki-foto__intro .horeca-order__text {
	margin: 0 0 0.75rem;
	line-height: 1.55;
	color: #444;
}

.horeca-brelki-foto__nav {
	margin: 1rem 0 0;
}

.horeca-brelki-foto__nav-title {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #555;
}

.horeca-brelki-foto__nav-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--ho-line, #e0e0e0);
	border-radius: 999px;
	background: var(--ho-surface, #fff);
	text-decoration: none;
	color: var(--ho-text, #222);
	font-weight: 600;
	font-size: 0.95rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.horeca-brelki-foto__nav-chip:hover,
.horeca-brelki-foto__nav-chip:focus-visible,
.horeca-brelki-foto__nav-chip.is-active,
.horeca-brelki-foto__nav-chip[aria-current="true"] {
	border-color: var(--ho-accent, #f2c200);
	box-shadow: 0 0 0 2px rgba(242, 194, 0, 0.25);
	text-decoration: none;
}

.horeca-brelki-foto__nav-chip.is-active,
.horeca-brelki-foto__nav-chip[aria-current="true"] {
	background: #fffef5;
}

.horeca-brelki-foto__nav-count {
	display: inline-block;
	min-width: 1.4rem;
	padding: 0.1rem 0.35rem;
	border-radius: 999px;
	background: #f5f5f5;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: #555;
}

.horeca-brelki-foto__section {
	margin-top: 2.5rem;
	scroll-margin-top: 5.5rem;
	padding-top: 0.25rem;
}

.horeca-brelki-foto__section-header {
	margin: 0 0 1.35rem;
	padding: 1.15rem 1.25rem 1.2rem;
	text-align: center;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	border-top: 5px solid var(--ho-accent);
}

.horeca-brelki-foto__section-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ho-text);
	letter-spacing: -0.01em;
}

.horeca-brelki-foto__section-meta {
	margin: 0;
	font-size: 1rem;
	color: #444;
	line-height: 1.45;
}

.horeca-brelki-foto__nav-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
}

.horeca-brelki-foto__nav-list::marker {
	content: none;
}

.horeca-brelki-foto__nav-list li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.horeca-brelki-foto__nav-list li::before,
.horeca-brelki-foto__nav-list li::after {
	content: none !important;
	display: none !important;
}

/* Lightbox trigger (shared with catalog product gallery) */
.horeca-brelki-gallery .horeca-product__gallery-link {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	box-shadow: none;
	transform: none;
}

.horeca-brelki-gallery .horeca-product__gallery-link:hover,
.horeca-brelki-gallery .horeca-product__gallery-link:focus {
	box-shadow: none;
	transform: none;
}

.horeca-brelki-gallery .horeca-product__gallery-link .horeca-brelki-gallery__link {
	width: 100%;
}

.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link,
.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:link,
.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:visited,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:visited,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:link,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:visited,
.bd-tagstyles .horeca-product-lightbox button.horeca-product-lightbox__close,
.bd-tagstyles .horeca-product-lightbox button.horeca-product-lightbox__nav,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:visited,
.bd-postcontent.bd-tagstyles .horeca-product-lightbox button.horeca-product-lightbox__close,
.bd-postcontent.bd-tagstyles .horeca-product-lightbox button.horeca-product-lightbox__nav {
	display: inline-block;
	margin: 0;
	padding: 0;
	border-width: 0;
	border-style: none;
	border-color: transparent;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none;
	color: inherit !important;
	text-align: inherit;
	vertical-align: baseline;
	text-decoration: none;
}

.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:link,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:visited,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:visited {
	display: block !important;
	width: 100%;
}

.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:hover,
.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:focus,
.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:active,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:hover,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:focus,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery a.horeca-brelki-gallery__link:active,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:hover,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:focus,
.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:active,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:hover,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:focus,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link:active {
	background-color: transparent !important;
	background-image: none !important;
	color: inherit !important;
	text-decoration: none;
}

.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link .horeca-brelki-gallery__link,
.bd-postcontent.bd-tagstyles .horeca-brelki-gallery button.horeca-product__gallery-link .horeca-brelki-gallery__link {
	background-color: #fff !important;
	background-image: none !important;
}

.horeca-brelki-gallery .horeca-product__gallery-link:focus-visible {
	outline: 2px solid var(--hc-accent, #f2e34c);
	outline-offset: 2px;
}

html.horeca-product-lightbox-open {
	overflow: hidden;
}

.horeca-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.horeca-product-lightbox[hidden] {
	display: none !important;
}

.horeca-product-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.horeca-product-lightbox__dialog {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem 2rem;
	pointer-events: none;
}

.horeca-product-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(92vw, 1100px);
	max-height: calc(100vh - 8rem);
	pointer-events: auto;
}

.horeca-product-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 8rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.bd-tagstyles .horeca-product-lightbox__close,
.bd-tagstyles .horeca-product-lightbox__nav,
.horeca-product-lightbox__close,
.horeca-product-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0.25rem;
	margin: 0;
	border: none !important;
	border-radius: 0;
	background: transparent !important;
	background-image: none !important;
	color: rgba(255, 255, 255, 0.88) !important;
	font-family: inherit;
	font-size: 2.25rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.bd-tagstyles .horeca-product-lightbox__close:hover,
.bd-tagstyles .horeca-product-lightbox__nav:hover,
.horeca-product-lightbox__close:hover,
.horeca-product-lightbox__nav:hover {
	color: var(--hc-accent, #f2e34c) !important;
	background: transparent !important;
	background-image: none !important;
}

.bd-tagstyles .horeca-product-lightbox__close:focus,
.bd-tagstyles .horeca-product-lightbox__nav:focus,
.horeca-product-lightbox__close:focus,
.horeca-product-lightbox__nav:focus {
	outline: none;
	background: transparent !important;
	background-image: none !important;
}

.bd-tagstyles .horeca-product-lightbox__close:focus-visible,
.bd-tagstyles .horeca-product-lightbox__nav:focus-visible,
.horeca-product-lightbox__close:focus-visible,
.horeca-product-lightbox__nav:focus-visible {
	outline: 2px solid var(--hc-accent, #f2e34c);
	outline-offset: 3px;
}

.bd-tagstyles .horeca-product-lightbox__close,
.horeca-product-lightbox__close {
	top: 0.5rem;
	right: 0.5rem;
	font-size: 2.5rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.88) !important;
}

.bd-tagstyles .horeca-product-lightbox__nav--prev,
.horeca-product-lightbox__nav--prev {
	left: max(0.25rem, env(safe-area-inset-left));
	top: 50%;
	transform: translateY(-50%);
}

.bd-tagstyles .horeca-product-lightbox__nav--next,
.horeca-product-lightbox__nav--next {
	right: max(0.25rem, env(safe-area-inset-right));
	top: 50%;
	transform: translateY(-50%);
}

.bd-tagstyles .horeca-product-lightbox__nav:disabled,
.horeca-product-lightbox__nav:disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.horeca-product-lightbox__counter {
	margin: 0.85rem 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	line-height: 1.4;
	pointer-events: none;
}

/* ==========================================================================
   Все галереи: без Themler #269ccb и без чёрных буллетов (никогда не возвращать).
   ========================================================================== */

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section
) :is(ul, ol) {
	list-style: none !important;
	list-style-type: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section
) :is(li, .gllr_image_row, .gllr_image_block) {
	list-style: none !important;
	list-style-type: none !important;
}

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section
) :is(li, .gllr_image_row, .gllr_image_block)::marker {
	content: none !important;
}

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section
) :is(li, .gllr_image_row, .gllr_image_block)::before,
:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section
) :is(li, .gllr_image_row, .gllr_image_block)::after {
	content: none !important;
	display: none !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	:is(li)::before,
.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	:is(li)::after,
.bd-postcontent.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	:is(li)::before,
.bd-postcontent.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	:is(li)::after {
	content: none !important;
	display: none !important;
}

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery],
	.horeca-product__gallery-section,
	.horeca-product__media
)
	:is(a, button, .horeca-brelki-gallery__link, .horeca-product__gallery-link, .horeca-intro__thumb-btn, .horeca-product__thumb-btn):is(
		:link,
		:visited,
		:hover,
		:focus,
		:focus-visible,
		:active
	) {
	background-color: #fff !important;
	background-image: none !important;
	color: inherit !important;
	border-color: var(--ho-line, #e0e0e0) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	a:is(:link, :visited, :hover, :focus, :active),
.bd-postcontent.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	a:is(:link, :visited, :hover, :focus, :active),
.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	button:is(:link, :visited, :hover, :focus, :active),
.bd-postcontent.bd-tagstyles :is(
		.horeca-brelki-gallery,
		.gallery_box_single,
		.gallery.gllr_grid,
		.horeca-intro__media,
		[data-horeca-intro-gallery],
		.horeca-product__gallery-section
	)
	button:is(:link, :visited, :hover, :focus, :active) {
	background-color: #fff !important;
	background-image: none !important;
	color: inherit !important;
	border-color: var(--ho-line, #e0e0e0) !important;
}

:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery]
)
	.gllr_image_block,
:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery]
)
	.horeca-brelki-gallery__figure,
:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery]
)
	.horeca-brelki-gallery__link,
:is(
	.horeca-brelki-gallery,
	.gallery_box_single,
	.gallery.gllr_grid,
	.horeca-intro__media,
	[data-horeca-intro-gallery]
)
	.horeca-intro__hero-stage {
	background-color: #fff !important;
	background-image: none !important;
}

.horeca-intro__thumb-btn,
.horeca-intro__thumb-btn:link,
.horeca-intro__thumb-btn:visited,
.horeca-intro__thumb-btn:hover,
.horeca-intro__thumb-btn:focus,
.horeca-intro__thumb-btn:active {
	background-color: #fff !important;
	background-image: none !important;
	color: inherit !important;
	padding: 0 !important;
	border-width: 2px !important;
}

.horeca-product__thumb-btn,
.horeca-product__thumb-btn:link,
.horeca-product__thumb-btn:visited,
.horeca-product__thumb-btn:hover,
.horeca-product__thumb-btn:focus,
.horeca-product__thumb-btn:focus-visible,
.horeca-product__thumb-btn:active {
	background-color: #fff !important;
	background-image: none !important;
	color: inherit !important;
}

.horeca-product__thumb-img {
	background-color: #fff !important;
	background-image: none !important;
}


.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn,
.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn:link,
.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn:visited,
.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn:hover,
.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn:focus,
.bd-tagstyles:not(.bd-custom-button):not(.shape-only) .horeca-intro__media button.horeca-intro__thumb-btn:active,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn:link,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn:visited,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn:hover,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn:focus,
.bd-postcontent.bd-tagstyles:not(.bd-custom-button) .horeca-intro__media button.horeca-intro__thumb-btn:active {
	background-color: #fff !important;
	background-image: none !important;
	color: inherit !important;
	padding: 0 !important;
}

.horeca-intro__thumb-btn.is-active {
	border-color: var(--ho-accent, #f2e34c) !important;
	background-color: #fff !important;
}

.horeca-intro__thumb-img {
	background-color: #fff !important;
}

/* Product gallery: uniform square cells; portrait fits inside (door-hanger tall: .horeca-product__gallery--portrait-tall) */
.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__grid,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__grid {
	align-items: stretch;
}

.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__item,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__item {
	min-width: 0;
}

.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__figure,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__figure {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link,
.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-product__gallery-link,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-product__gallery-link {
	display: block !important;
	width: 100% !important;
	flex: 0 0 auto;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	background: transparent !important;
	aspect-ratio: 1;
	min-height: 10rem;
	overflow: hidden;
	position: relative;
}

.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link .horeca-brelki-gallery__link,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link .horeca-brelki-gallery__link {
	display: block !important;
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: unset !important;
	padding: 0.65rem;
	box-sizing: border-box;
	overflow: hidden;
}

.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link .horeca-brelki-gallery__img,
.entry-content.bd-postcontent.bd-tagstyles .horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__img,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) button.horeca-product__gallery-link .horeca-brelki-gallery__img,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__img,
.horeca-product__gallery-section:not(.horeca-product__gallery--portrait-tall) .horeca-brelki-gallery__img--portrait {
	position: absolute;
	inset: 0.65rem;
	margin: auto;
	max-width: calc(100% - 1.3rem) !important;
	max-height: calc(100% - 1.3rem) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Door-hanger product galleries: taller portrait cells (prod mu-plugins parity) */
.horeca-product__gallery-section.horeca-product__gallery--portrait-tall .horeca-brelki-gallery__figure:has(.horeca-brelki-gallery__img--portrait) {
	overflow: visible;
}

.horeca-product__gallery-section.horeca-product__gallery--portrait-tall .horeca-brelki-gallery__link:has(.horeca-brelki-gallery__img--portrait) {
	aspect-ratio: auto;
	min-height: 12rem;
	height: auto;
}

.horeca-product__gallery-section.horeca-product__gallery--portrait-tall .horeca-brelki-gallery__img--portrait {
	max-width: 100% !important;
	max-height: min(320px, 100%) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Yandex Browser / Chrome Lens: «Поиск по картинке» цепляется к <img> — события на ссылках и lightbox. */
.horeca-brelki-gallery__link img,
.horeca-brelki-gallery__img,
.horeca-product-lightbox__img,
.gallery.gllr_grid .gllr_image_block img,
.horeca-brelki-gallery__link picture img {
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
	user-select: none;
}

.horeca-brelki-gallery__link,
.horeca-brelki-gallery__link.horeca-product__gallery-link {
	pointer-events: auto;
	cursor: zoom-in;
}
