/**
 * GMEJS theme overrides for Bootstrap integration.
 */

:root {
	--gmejs-primary: #375c9e;
	--gmejs-accent: #fe8924;
}

body {
	font-family: inherit;
}

/* Language switcher */
.g-hd {
	position: relative;
}

.g-hd .langbtn {
	max-width: 1100px;
	width: 100%;
	margin: 5px auto 0;
	padding: 0 15px;
	text-align: right;
	box-sizing: border-box;
	line-height: 0;
}

.g-hd .langbtn a {
	display: inline-block;
	margin-left: 8px;
	line-height: 0;
}

.g-hd .langbtn img {
	height: 18px;
	width: auto;
	vertical-align: middle;
}

/* Header navigation */
.g-hd .navbar {
	background: transparent;
}

.g-hd .m-hdfix4 {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
}

.g-hd .m-hdnav {
	display: block;
	flex: 1 1 auto;
	margin-right: 10px;
	max-width: 870px;
	list-style: none;
}

.g-hd .m-hdnav::after {
	content: '';
	display: table;
	clear: both;
}

.g-hd .m-hdnav > .nav-item {
	position: relative;
	float: left;
	list-style: none;
}

.g-hd .m-hdnav > .nav-item > a {
	position: relative;
	display: block;
	padding: 20px 25px 25px;
	line-height: 26px;
	font-size: 1.6rem;
	color: #555;
	text-decoration: none;
}

.g-hd .m-hdnav > .nav-item > a:hover,
.g-hd .m-hdnav > .nav-item > a.active,
.g-hd .m-hdnav > .nav-item > a.current {
	color: var(--gmejs-primary);
}

.g-hd .m-hdnav > .nav-item > a:hover::before,
.g-hd .m-hdnav > .nav-item > a.active::before,
.g-hd .m-hdnav > .nav-item > a.current::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	margin: 0 auto;
	width: 25px;
	height: 2px;
	background-color: var(--gmejs-primary);
}

/* Submenu dropdown */
.g-hd .m-hdnav .sbnav-list {
	position: absolute;
	z-index: 1050;
	display: none;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, 0.75);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.g-hd .m-hdnav .sbnav-list1 {
	top: 100%;
	left: 50%;
	width: 240px;
	margin-left: -120px;
}

.g-hd .m-hdnav .sbnav-list2 {
	top: 0;
	left: 100%;
	width: 220px;
}

.g-hd .m-hdnav .sbnav-item {
	position: relative;
	list-style: none;
}

.g-hd .m-hdnav .sbnav-item > a {
	display: block;
	padding: 8px 16px 8px 34px;
	line-height: 26px;
	font-size: 1.4rem;
	color: #fff;
	text-decoration: none;
	white-space: normal;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.g-hd .m-hdnav .sbnav-item > a:hover,
.g-hd .m-hdnav .sbnav-item > a.active {
	color: var(--gmejs-primary);
	background-color: rgba(255, 255, 255, 0.08);
}

.g-hd .m-hdnav > .nav-item:hover > .sbnav-list,
.g-hd .m-hdnav > .nav-item:focus-within > .sbnav-list,
.g-hd .m-hdnav > .nav-item.is-open > .sbnav-list {
	display: block;
}

.g-hd .m-hdnav > .nav-item:hover > a,
.g-hd .m-hdnav > .nav-item:focus-within > a,
.g-hd .m-hdnav > .nav-item.is-open > a {
	color: var(--gmejs-primary);
}

.g-hd .m-hdnav > .nav-item:hover > a::before,
.g-hd .m-hdnav > .nav-item:focus-within > a::before,
.g-hd .m-hdnav > .nav-item.is-open > a::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	margin: 0 auto;
	width: 25px;
	height: 2px;
	background-color: var(--gmejs-primary);
}

@media screen and (max-width: 1219px) {
	.g-hd .m-hdnav {
		max-width: 700px;
	}

	.g-hd .m-hdnav > .nav-item > a {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* Bootstrap carousel styled as original banner */
.gmejs-home-banner .carousel {
	position: relative;
}

.gmejs-home-banner .carousel-inner {
	position: relative;
	z-index: 1;
}

.banner .carousel-item img {
	width: 100%;
	height: auto;
	display: block;
}

.banner .carousel-control-prev,
.banner .carousel-control-next {
	width: 48px;
	opacity: 1;
	z-index: 12;
}

/* Bootstrap indicators: centered and clickable above slide layer */
.banner .carousel-indicators.dotList {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 11px;
	z-index: 15;
	pointer-events: none;
}

.banner .carousel-indicators.dotList [data-bs-target] {
	box-sizing: border-box;
	position: relative;
	width: 36px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	opacity: 1;
	flex: 0 0 auto;
	text-indent: 0;
	cursor: pointer;
	pointer-events: auto;
	background: transparent;
}

.banner .carousel-indicators.dotList [data-bs-target]::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 5px;
	margin-top: -2.5px;
	background-color: #fff;
}

.banner .carousel-indicators.dotList [data-bs-target].active::before {
	background-color: #375c9e;
}

@media screen and (max-width: 991px) {
	.banner .carousel-indicators.dotList {
		bottom: 15px;
		gap: 5px;
	}

	.banner .carousel-indicators.dotList [data-bs-target] {
		width: 20px;
		height: 20px;
	}

	.banner .carousel-indicators.dotList [data-bs-target]::before {
		left: 50%;
		right: auto;
		width: 10px;
		height: 10px;
		margin: -5px 0 0 -5px;
		border-radius: 50%;
	}
}

/* Container width aligned with original f-box */
.f-box.container,
.f-box.container-fluid {
	max-width: 1200px;
}

/* About + News two-column layout (original float-based) */
.g-hfix1 .f-box.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.g-hfix1 .box-fix1 {
	float: left;
	margin-right: 3.5%;
	width: 47.25%;
}

.g-hfix1 .box-fix2 {
	overflow: hidden;
}

@media screen and (max-width: 991px) {
	.g-hfix1 .box-fix1 {
		float: none;
		margin-right: 0;
		margin-bottom: 30px;
		width: 100%;
	}
}

/* News list page layout */
.m-newsl.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.gmejs-empty {
	padding: 40px 0;
	text-align: center;
	color: #666;
}

/* Homepage OUR PRODUCTS carousel */
.m-hpro .list-item {
	box-sizing: border-box;
}

.m-hpro .list-item .item-top,
.m-hpro .gmejs-product-card {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid #eae7e7;
}

.m-hpro .list-item .item-top > .item-pic,
.m-hpro .gmejs-product-card > .item-pic {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	line-height: 0;
	border: 0;
	overflow: hidden;
}

.m-hpro .list-item .item-top > .item-pic img,
.m-hpro .gmejs-product-card > .item-pic img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	vertical-align: top;
}

.m-hpro .list-item .item-top > .item-modal,
.m-hpro .gmejs-product-card > .item-modal {
	z-index: 2;
}

.m-hpro .list-item .item-top:hover .item-modal {
	top: 0;
}

.m-hpro .list-item .item-title {
	overflow: hidden;
}

.m-hpro .j-listscroll .box-list {
	margin-left: 0;
}

.m-hpro .j-listscroll .box-btn {
	cursor: pointer;
	z-index: 2;
}

@media (max-width: 991.98px) {
	.g-hd .langbtn {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 3;
		width: auto;
		max-width: none;
		height: 64px;
		margin: 0;
		padding: 0 0 0 12px;
		display: flex;
		align-items: center;
		text-align: left;
	}

	.g-hd .langbtn a {
		margin-left: 0;
		margin-right: 8px;
	}

	.g-hd .langbtn img {
		height: 22px;
	}

	.g-hd .m-hdfix1 .row {
		position: relative;
		justify-content: center;
		min-height: 64px;
	}

	.g-hd .m-hdfix1 .row > .col-auto {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		float: none;
		width: auto;
		max-width: calc(100% - 120px);
		z-index: 1;
	}

	.g-hd .m-hdfix1 .row > .col {
		position: relative;
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.g-hd .m-hdlogo {
		float: none;
		width: auto;
		line-height: 0;
		text-align: center;
	}

	.g-hd .m-hdlogo img,
	.g-hd .m-hdlogo .custom-logo {
		max-height: 56px;
		width: auto;
	}

	.g-hd .m-hdfix2 {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		float: none;
	}

	.g-hd .navbar-collapse {
		display: none !important;
	}

	.g-hd .gmejs-mobile-menu-btn {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		margin-left: auto;
	}

	.g-hd .gmejs-menu-line {
		display: block;
		width: 24px;
		height: 3px;
		margin: 3px 0;
		background-color: var(--gmejs-primary);
		border-radius: 2px;
	}
}

@media (min-width: 992px) {
	#gmejsMobileNav,
	.g-hd .gmejs-mobile-menu-btn {
		display: none !important;
	}
}

/* Mobile offcanvas navigation */
.offcanvas.wap-nav {
	width: min(320px, 88vw) !important;
	background: #113b91;
	color: #fff;
	z-index: 1055;
}

.offcanvas.wap-nav .offcanvas-header {
	background: rgba(0, 0, 0, 0.15);
	color: #fff;
}

.offcanvas.wap-nav .offcanvas-title,
.offcanvas.wap-nav .btn-close {
	filter: invert(1);
}

.offcanvas.wap-nav .gmejs-mobile-nav-wrap {
	position: static;
	width: 100%;
	height: auto;
	overflow: visible;
	background: transparent;
}

.offcanvas.wap-nav .gmejs-mobile-search {
	padding: 16px;
}

.offcanvas.wap-nav .gmejs-mobile-nav {
	display: block !important;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.offcanvas.wap-nav .gmejs-mobile-nav-item,
.offcanvas.wap-nav .gmejs-mobile-subnav-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offcanvas.wap-nav .gmejs-mobile-nav-row {
	display: flex;
	align-items: center;
}

.offcanvas.wap-nav .gmejs-mobile-nav-row > a {
	flex: 1 1 auto;
	display: block;
	padding: 14px 16px;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
}

.offcanvas.wap-nav .gmejs-mobile-nav-row > a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.offcanvas.wap-nav .gmejs-mobile-nav-toggle {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	position: relative;
	cursor: pointer;
}

.offcanvas.wap-nav .gmejs-mobile-nav-toggle::before,
.offcanvas.wap-nav .gmejs-mobile-nav-toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: #fff;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.offcanvas.wap-nav .gmejs-mobile-nav-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.offcanvas.wap-nav .has-children.is-open > .gmejs-mobile-nav-row .gmejs-mobile-nav-toggle::after {
	transform: translate(-50%, -50%) rotate(0);
}

.offcanvas.wap-nav .gmejs-mobile-subnav {
	display: none;
	background: rgba(0, 0, 0, 0.18);
}

.offcanvas.wap-nav .has-children.is-open > .gmejs-mobile-subnav {
	display: block;
}

.offcanvas.wap-nav .gmejs-mobile-subnav-item > a {
	display: block;
	padding: 12px 16px 12px 28px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
}

.offcanvas.wap-nav .gmejs-mobile-subnav-item > a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.offcanvas.wap-nav a {
	color: #fff;
}
.g-ft .m-ftfix1 .f-box.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.g-ft .m-ftb {
	float: left;
	box-sizing: border-box;
}

.g-ft .m-ftb1 {
	padding-right: 40px;
	width: 50%;
}

.g-ft .m-ftb2 {
	float: right;
	padding-right: 0;
	width: 50%;
}

.g-ft .m-ftnav-cols {
	columns: 2;
	column-gap: 30px;
}

.g-ft .m-ftnav-cols > li {
	break-inside: avoid;
}

/* Contact page enquiry form */
.gmejs-contact-page-form .item-btn {
	border: none;
	cursor: pointer;
}

.gmejs-contact-page-form .form-feedback {
	clear: both;
	padding-top: 12px;
	line-height: 1.5;
	font-size: 14px;
}

.gmejs-contact-page-form .form-feedback.is-error {
	color: #c0392b;
}

.gmejs-contact-page-form .form-feedback.is-success {
	color: #27ae60;
}

.gmejs-captcha-wrap {
	padding-left: 0;
	background: none;
	overflow: visible;
}

.gmejs-captcha-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gmejs-captcha-input {
	flex: 1 1 auto;
	min-width: 0;
}

.gmejs-captcha-image-btn {
	flex: 0 0 auto;
	padding: 0;
	border: 1px solid #333;
	background: #f3fbfe;
	line-height: 0;
	cursor: pointer;
}

.gmejs-captcha-image {
	display: block;
	vertical-align: middle;
}

.gmejs-contact-page-form .gmejs-captcha-wrap {
	width: 46.16915%;
	margin-bottom: 20px;
}

@media screen and (max-width: 991px) {
	.gmejs-contact-page-form .gmejs-captcha-wrap {
		width: 100%;
	}
}

.g-ft .m-ftfix2 .f-box.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

@media screen and (max-width: 991px) {
	.g-ft .m-ftb1,
	.g-ft .m-ftb2 {
		float: none;
		width: 100%;
		padding-right: 0;
	}

	.g-ft .m-ftnav-cols {
		columns: 1;
	}
}

/* Preserve custom logo sizing */
.m-hdlogo img,
.custom-logo {
	max-height: 70px;
	width: auto;
}

/* --------------------------------------------------------------------------
   Entry content typography — pages, posts, block/classic editor output
   -------------------------------------------------------------------------- */
.gmejs-entry-content {
	--gmejs-content-color: #333;
	--gmejs-content-muted: #666;
	--gmejs-content-border: #ddd;
	--gmejs-content-bg-soft: #f7f7f7;
	--gmejs-content-font-size: 16px;
	--gmejs-content-line-height: 1.875;
	word-wrap: break-word;
	overflow-wrap: break-word;
	color: var(--gmejs-content-color);
	font-size: var(--gmejs-content-font-size);
	line-height: var(--gmejs-content-line-height);
}

.gmejs-entry-content > *:first-child {
	margin-top: 0;
}

.gmejs-entry-content > *:last-child {
	margin-bottom: 0;
}

/* Override legacy min-height on empty paragraphs */
.gmejs-entry-content p,
.gmejs-entry-content li,
.gmejs-entry-content span,
.gmejs-entry-content b,
.gmejs-entry-content strong,
.gmejs-entry-content em,
.gmejs-entry-content i {
	min-height: 0;
	line-height: inherit;
	font-size: inherit;
}

.gmejs-entry-content p {
	margin: 0 0 1em;
}

.gmejs-entry-content h1,
.gmejs-entry-content h2,
.gmejs-entry-content h3,
.gmejs-entry-content h4,
.gmejs-entry-content h5,
.gmejs-entry-content h6 {
	margin: 1.5em 0 0.75em;
	font-weight: 600;
	line-height: 1.35;
	color: #212121;
}

.gmejs-entry-content h1:first-child,
.gmejs-entry-content h2:first-child,
.gmejs-entry-content h3:first-child,
.gmejs-entry-content h4:first-child,
.gmejs-entry-content h5:first-child,
.gmejs-entry-content h6:first-child {
	margin-top: 0;
}

.gmejs-entry-content h1 { font-size: 2em; }
.gmejs-entry-content h2 { font-size: 1.75em; }
.gmejs-entry-content h3 { font-size: 1.5em; }
.gmejs-entry-content h4 { font-size: 1.25em; }
.gmejs-entry-content h5 { font-size: 1.125em; }
.gmejs-entry-content h6 { font-size: 1em; color: var(--gmejs-content-muted); }

.gmejs-entry-content a {
	color: var(--gmejs-primary);
	text-decoration: none;
}

.gmejs-entry-content a:hover {
	text-decoration: underline;
}

.gmejs-entry-content strong,
.gmejs-entry-content b {
	font-weight: 700;
}

.gmejs-entry-content em,
.gmejs-entry-content i {
	font-style: italic;
}

.gmejs-entry-content u,
.gmejs-entry-content ins {
	text-decoration: underline;
}

.gmejs-entry-content s,
.gmejs-entry-content del {
	text-decoration: line-through;
	color: var(--gmejs-content-muted);
}

.gmejs-entry-content mark {
	padding: 0 0.15em;
	background-color: #fff3cd;
}

.gmejs-entry-content sub,
.gmejs-entry-content sup {
	font-size: 0.75em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

.gmejs-entry-content sup { top: -0.5em; }
.gmejs-entry-content sub { bottom: -0.25em; }

.gmejs-entry-content ul,
.gmejs-entry-content ol {
	margin: 0 0 1em;
	padding-left: 1.75em;
}

.gmejs-entry-content ul { list-style: disc; }
.gmejs-entry-content ol { list-style: decimal; }

.gmejs-entry-content ul ul { list-style: circle; }
.gmejs-entry-content ul ul ul { list-style: square; }

.gmejs-entry-content li {
	margin-bottom: 0.35em;
}

.gmejs-entry-content li > ul,
.gmejs-entry-content li > ol {
	margin-top: 0.35em;
	margin-bottom: 0;
}

.gmejs-entry-content dl {
	margin: 0 0 1em;
}

.gmejs-entry-content dt {
	margin-top: 0.75em;
	font-weight: 600;
}

.gmejs-entry-content dd {
	margin: 0.25em 0 0 1.5em;
}

.gmejs-entry-content blockquote,
.gmejs-entry-content .wp-block-quote {
	margin: 1.25em 0;
	padding: 0.75em 1.25em;
	border-left: 4px solid var(--gmejs-primary);
	background-color: var(--gmejs-content-bg-soft);
	color: var(--gmejs-content-muted);
}

.gmejs-entry-content blockquote p:last-child,
.gmejs-entry-content .wp-block-quote p:last-child {
	margin-bottom: 0;
}

.gmejs-entry-content blockquote cite,
.gmejs-entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.75em;
	font-size: 0.875em;
	font-style: normal;
	color: #999;
}

.gmejs-entry-content hr,
.gmejs-entry-content .wp-block-separator {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--gmejs-content-border);
}

.gmejs-entry-content code,
.gmejs-entry-content kbd {
	padding: 0.15em 0.4em;
	font-size: 0.9em;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	background-color: var(--gmejs-content-bg-soft);
	border: 1px solid var(--gmejs-content-border);
	border-radius: 3px;
}

.gmejs-entry-content pre,
.gmejs-entry-content .wp-block-code {
	margin: 1.25em 0;
	padding: 1em 1.25em;
	overflow-x: auto;
	font-size: 0.9em;
	line-height: 1.6;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	background-color: #2d2d2d;
	color: #f8f8f2;
	border-radius: 4px;
	-webkit-overflow-scrolling: touch;
}

.gmejs-entry-content pre code {
	padding: 0;
	font-size: inherit;
	background: none;
	border: 0;
	color: inherit;
}

.gmejs-entry-content table {
	width: 100%;
	max-width: 100%;
	margin: 1.25em 0;
	border-collapse: collapse;
	border: 1px solid var(--gmejs-content-border);
	font-size: 0.9375em;
	line-height: 1.5;
}

.gmejs-entry-content th,
.gmejs-entry-content td {
	padding: 0.6em 0.85em;
	border: 1px solid var(--gmejs-content-border);
	text-align: left;
	vertical-align: top;
}

.gmejs-entry-content th {
	font-weight: 600;
	background-color: var(--gmejs-content-bg-soft);
}

.gmejs-entry-content tr:nth-child(even) td {
	background-color: #fafafa;
}

.gmejs-entry-content figure {
	margin: 1.25em 0;
	max-width: 100%;
}

.gmejs-entry-content img,
.gmejs-entry-content video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.gmejs-entry-content figure img {
	display: block;
	margin: 0 auto;
}

.gmejs-entry-content figcaption,
.gmejs-entry-content .wp-caption-text,
.gmejs-entry-content .wp-element-caption {
	margin-top: 0.5em;
	font-size: 0.875em;
	line-height: 1.5;
	color: var(--gmejs-content-muted);
	text-align: center;
}

.gmejs-entry-content .wp-caption {
	max-width: 100%;
	margin: 1.25em 0;
}

.gmejs-entry-content .wp-caption img {
	display: block;
	margin: 0 auto;
}

.gmejs-entry-content iframe,
.gmejs-entry-content embed,
.gmejs-entry-content object {
	display: block;
	max-width: 100%;
	margin: 1.25em auto;
	border: 0;
}

.gmejs-entry-content .wp-block-embed,
.gmejs-entry-content .wp-block-video {
	margin: 1.25em 0;
}

.gmejs-entry-content .wp-block-embed__wrapper {
	position: relative;
}

.gmejs-entry-content .alignleft,
.gmejs-entry-content img.alignleft {
	float: left;
	margin: 0.25em 1.25em 1em 0;
}

.gmejs-entry-content .alignright,
.gmejs-entry-content img.alignright {
	float: right;
	margin: 0.25em 0 1em 1.25em;
}

.gmejs-entry-content .aligncenter,
.gmejs-entry-content img.aligncenter,
.gmejs-entry-content .wp-block-image.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.gmejs-entry-content .alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.gmejs-entry-content .wp-block-gallery {
	margin: 1.25em 0;
}

.gmejs-entry-content .wp-block-gallery .blocks-gallery-item,
.gmejs-entry-content .wp-block-gallery .wp-block-image {
	margin: 0;
}

.gmejs-entry-content .wp-block-columns {
	margin: 1.25em 0;
	gap: 1.5em;
}

.gmejs-entry-content .wp-block-button {
	margin: 1em 0;
}

.gmejs-entry-content .wp-block-button__link {
	display: inline-block;
	padding: 0.6em 1.25em;
	color: #fff;
	background-color: var(--gmejs-primary);
	border-radius: 3px;
	text-decoration: none;
}

.gmejs-entry-content .wp-block-button__link:hover {
	opacity: 0.9;
	text-decoration: none;
	color: #fff;
}

.gmejs-entry-content .page-links,
.gmejs-entry-content .wp-link-pages {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--gmejs-content-border);
	font-size: 0.9375em;
}

.gmejs-entry-content .page-links > span,
.gmejs-entry-content .page-links > a {
	display: inline-block;
	margin: 0.25em 0.35em 0.25em 0;
	padding: 0.25em 0.65em;
	border: 1px solid var(--gmejs-content-border);
}

.gmejs-entry-content .page-links > span {
	background-color: var(--gmejs-primary);
	border-color: var(--gmejs-primary);
	color: #fff;
}

.gmejs-entry-content::after {
	content: '';
	display: table;
	clear: both;
}

@media screen and (max-width: 991px) {
	.gmejs-entry-content {
		--gmejs-content-font-size: 15px;
		--gmejs-content-line-height: 1.75;
	}

	.gmejs-entry-content h1 { font-size: 1.75em; }
	.gmejs-entry-content h2 { font-size: 1.5em; }
	.gmejs-entry-content h3 { font-size: 1.3125em; }

	.gmejs-entry-content .alignleft,
	.gmejs-entry-content img.alignleft,
	.gmejs-entry-content .alignright,
	.gmejs-entry-content img.alignright {
		float: none;
		display: block;
		margin: 1em auto;
	}
}

@media screen and (max-width: 767px) {
	.gmejs-entry-content .wp-block-table,
	.gmejs-entry-content .table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gmejs-entry-content table {
		min-width: 480px;
	}
}

/* Homepage news list — uniform thumbnail size */
.m-hnews .list-item {
	display: flow-root;
}

.m-hnews .gmejs-home-news-pic {
	float: left;
	width: 240px;
	height: 160px;
	overflow: hidden;
	margin: 0;
}

.m-hnews .gmejs-home-news-pic-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.m-hnews .gmejs-home-news-pic img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	vertical-align: top;
}

.m-hnews .item-text {
	min-height: 160px;
	box-sizing: border-box;
}

@media screen and (max-width: 991px) {
	.m-hnews .gmejs-home-news-pic {
		width: 200px;
		height: 133px;
	}

	.m-hnews .item-text {
		min-height: 133px;
	}
}

@media screen and (max-width: 480px) {
	.m-hnews .gmejs-home-news-pic {
		float: none;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.m-hnews .item-text {
		min-height: 0;
		padding-top: 16px;
	}
}

/* News archive list — uniform card size */
.m-newsl.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.m-newsl .list-item {
	display: flow-root;
	box-sizing: border-box;
}

.m-newsl .gmejs-news-list-pic {
	float: left;
	width: 240px;
	height: 160px;
	overflow: hidden;
	margin: 0;
}

.m-newsl .gmejs-news-list-pic-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.m-newsl .gmejs-news-list-pic img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	vertical-align: top;
}

.m-newsl .item-text {
	min-height: 160px;
	box-sizing: border-box;
}

.m-newsl .item-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-newsl .item-desc {
	display: -webkit-box;
	height: 48px;
	max-height: 48px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.m-newsl .item-desc a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

@media screen and (max-width: 991px) {
	.m-newsl .gmejs-news-list-pic {
		width: 200px;
		height: 133px;
	}

	.m-newsl .item-text {
		min-height: 133px;
	}
}

@media screen and (max-width: 480px) {
	.m-newsl .gmejs-news-list-pic {
		float: none;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.m-newsl .item-text {
		min-height: 0;
		padding: 16px 0 5px;
	}
}

/* Archive pagination — avoid Bootstrap .pagination conflicts */
.gmejs-pagebar .gmejs-pagination-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.gmejs-pagebar .gmejs-pagination-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmejs-pagebar .gmejs-pagination-list li.active span {
	color: #fff;
	background: #333;
	border: 1px solid #333;
	border-radius: 3px;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1;
}

/* Product list grid — uniform thumbnails, stable float layout */
.m-prol.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.m-prol .list-item {
	box-sizing: border-box;
}

.gmejs-product-card,
.m-prol .item-top,
.m-mpro .item-top {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #fff;
}

.gmejs-product-card > .item-pic,
.m-prol .item-top > .item-pic,
.m-mpro .item-top > .item-pic,
.m-mpro .item-top > .item-pic.item-pic {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	line-height: 0;
	border: 0;
}

.gmejs-product-card > .item-pic img,
.m-prol .item-top > .item-pic img,
.m-mpro .item-top > .item-pic img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	vertical-align: top;
}

.gmejs-product-card > .item-modal,
.m-prol .item-top > .item-modal,
.m-mpro .item-top > .item-modal {
	z-index: 2;
}

.m-mpro .item-top:hover .item-modal {
	top: 0;
}

.m-mpro .item-modal {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	height: 100%;
	background-color: #4472c4;
}

.m-mpro .item-modal span {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	display: block;
	width: 100%;
	padding-top: 24px;
	line-height: 16px;
	font-size: 1.4rem;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	transform: translateY(-50%);
}

.m-prol .item-title,
.m-mpro .item-title {
	overflow: hidden;
}

.m-mpro .box-list.c-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.m-mpro .list-item {
	box-sizing: border-box;
	vertical-align: top;
}

@media screen and (max-width: 991px) {
	.gmejs-product-card,
	.m-prol .item-top,
	.m-mpro .item-top {
		aspect-ratio: 1 / 1;
	}
}

@media screen and (max-width: 480px) {
	.m-prol .list-item,
	.m-mpro .list-item {
		box-sizing: border-box;
	}
}

/* Product detail — main image fills prob-pic-big */
.m-prob1 .prob-pic-big {
	display: flex;
	align-items: stretch;
	width: 455px;
	height: 455px;
	min-height: 455px;
	overflow: hidden;
	background-color: #fff;
}

.m-prob1 .prob-pic-big-img {
	display: block;
	width: 100%;
	height: 100%;
}

.m-prob1 .prob-pic-big-img .zoomPad,
.m-prob1 .prob-pic-big-img .zoomWrapper,
.m-prob1 .prob-pic-big-img .zoomWrapperImage {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

.m-prob1 .prob-pic-big-img img,
.m-prob1 .prob-pic-big-img .img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
}

@media screen and (max-width: 991px) {
	.m-prob1 .prob-pic-big {
		width: 100%;
		max-width: 455px;
		height: auto;
		min-height: 0;
		aspect-ratio: 1 / 1;
	}
}
