/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 08 2026 | 12:06:39 */
/* =====================================================================
   Контент страниц и описаний: галереи, блоки файлов и PDF, вкладки,
   таблицы, 3D-модели, картинки.
   (08.10.2026, сведено из записей block-gallery, 3d-container,
   block-image | block-file, Tabs, img, Tables (обе), «Ссылка на файлы pdf
   в тексте»). Таблица вариаций в карточке товара — в product.css.
   ===================================================================== */

/* ===== Галерея (block-gallery: страницы, вкладка «Фотографии» товара) ===== */
.block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	margin-bottom: 1em;
	padding: 0;
	list-style: none;
}

/* Карточка галереи: 3 колонки с учётом gap */
.block-image {
	flex: 0 1 calc(33.333% - 14px);
	max-width: calc(33.333% - 14px);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid white;
	border-radius: 2px;
}
.block-image a {
	display: block;
	width: 100%;
}
.block-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 2px;
}

.block-gallery-with-zoom a {
	overflow: hidden;
}
.block-gallery-with-zoom a img {
	transition: transform 0.3s ease;
}
.block-gallery-with-zoom a:hover img {
	transform: scale(1.2);
}

/* Подпись */
.block-image figcaption {
	width: 100%;
}
.block-image figcaption a {
	font-size: 160%;
	font-weight: 400;
	padding: 0.5em 1em;
	border-top: 1px solid;
	border-image: linear-gradient(to right, transparent, white, transparent) 1;
}

@media (max-width: 768px) {
	.block-gallery {
		gap: 16px;
	}
	.block-image {
		flex-grow: 1;
		flex-shrink: 1;
		flex-basis: 100%;
		max-width: none;
	}
	.block-image figcaption a {
		font-size: 120%;
	}
}

/* ===== 3D-модель (шорткод [3d_model], сниппет 032) ===== */
.three-container {
	border: 1px dashed gray;
	border-radius: 2px;
	display: block;
	position: relative;
}
.three-container:fullscreen {
	width: 100vw !important;
	height: 100vh !important;
	background-color: black;
}
/* Кнопку «на весь экран» добавляет /threejs/viewer.js */
.three-container .full-screen-button {
	position: absolute;
	top: 0;
	right: 10px;
	background: transparent;
	color: white;
	cursor: pointer;
	font-size: 30px;
	z-index: 10;
	transition: background 0.3s;
	margin: 0;
	padding: 0;
}
.three-container .full-screen-button:hover {
	color: red;
}
@media (orientation: portrait) and (max-width: 1024px) {
	.three-container {
		width: 100% !important;
	}
}
@media (orientation: landscape) and (max-width: 1024px) {
	.three-container {
		width: 100% !important;
	}
}

/* ===== Картинка с увеличением (block-image) и блок файла (block-file, шорткод [pdf_file]) ===== */
.block-image a {
	overflow: hidden;
}
.block-image a img {
	transition: transform 0.3s ease;
	display: block;
}
.block-image a:hover img {
	transform: scale(1.1);
}

.block-file {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.5em;
	margin-bottom: 1em;
}
.block-file-image {
	flex-shrink: 0;
}
.block-file-image img {
	display: block;
	width: auto;
	height: 200px;
	transition: transform 0.3s ease;
}
.block-file-image a:hover img {
	transform: scale(1.1);
}
.block-file-text {
	flex: 1;
	min-width: 0; /* позволяет тексту корректно переноситься */
}
.block-file-text a {
	display: inline-flex;
	align-items: center;
	word-break: break-word;
}
@media (orientation: portrait) and (max-width: 1024px) {
	.block-file-image img {
		max-height: 100px;
		max-width: 70px;
		height: auto !important;
	}
}

/* ===== Вкладки (плагин Tabby Responsive Tabs) ===== */
#page .responsive-tabs .responsive-tabs__panel.transparent-content {
	background-color: transparent;
}
#page .responsive-tabs .responsive-tabs__panel {
	background-color: black;
	border: 1px solid white;
	border-radius: 0 2px 2px 2px;
}
#page .responsive-tabs ul.responsive-tabs__list {
	margin-left: 0;
}
#page .responsive-tabs ul.responsive-tabs__list span.fa {
	color: red;
}
#page .responsive-tabs .responsive-tabs__list__item {
	font-size: 1.3rem;
	color: black;
	background-color: darkgrey;
}
#page .responsive-tabs .responsive-tabs__list__item:hover {
	background-color: red;
}
#page .responsive-tabs .responsive-tabs__list__item:hover span.fa {
	color: wheat;
}
#page .responsive-tabs .responsive-tabs__list__item--active {
	background-color: black;
	color: white;
}
@media (orientation: portrait) and (max-width: 1024px) {
	#page #content h2 {
		font-size: 1.1rem;
	}
	#page #content h2.responsive-tabs__heading {
		color: black;
	}
	#page #content h2.responsive-tabs__heading--active {
		color: white;
		background-color: black;
		border: 1px solid white !important;
		border: 0;
	}
}

/* ===== Картинки ограниченной высоты (класс max-height-3) ===== */
.max-height-3 {
	max-width: none;
	flex-direction: row;
}
.max-height-3 img {
	max-height: 350px;
	object-fit: cover;
}

/* ===== Таблицы в тексте ===== */
#page .content-area table {
	background-color: black;
	color: white;
	border: 1px solid white;
}
#page .content-area table thead {
	background-color: wheat;
	color: black;
}
#page .content-area table tbody td {
	background-color: transparent;
}
#page .content-area table tbody tr:nth-child(2n) td {
	background-color: #5b5b5b;
}
#page .content-area table tbody tr:hover {
	background-color: gray;
}
#page table th {
	background-color: transparent;
}
#page table:not( .has-background ) th {
	background-color: transparent;
}
#page .content-area table.table-sm td {
	padding: 0.5em 1em;
}

/* ===== Ссылки на файлы (PDF и т. п.) в тексте ===== */
.wp-block-file a, a.pdf, a.download {
	font-size: 1.3rem;
}
a.pdf-big {
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
	border: 1px solid white;
}
a.pdf-big img {
	transition: transform 0.3s ease;
	display: block;
}
a.pdf-big:hover img {
	transform: scale(1.1);
}
@media (orientation: landscape) and (max-width: 1024px) {
	.wp-block-file a, a.pdf, a.download {
		font-size: 1rem;
	}
}
@media (orientation: portrait) and (max-width: 1024px) {
	.wp-block-file a, a.pdf, a.download {
		font-size: 1rem;
		line-height: 1.2;
	}
}

/* Вертикальная таблица характеристик (подпись слева) — используется в текстах
   товаров ../site-texts (<table class="vertical-table">), не удалять. */
.vertical-table { width: auto; max-width: 100%; }
.vertical-table td:first-child { font-weight: 600; padding-right: 1.5em; }
