/* ================= 横幅入口（四宫格） ================= */
.gt-bn {
	width: 100%;
	padding: 0 16px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.gt-bn { padding: 0; }
}

.gt-bn-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gt-bn-grid.cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gt-bn-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gt-bn-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-bn-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
	.gt-bn-grid.cols-4-tablet,
	.gt-bn-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 卡片容器（图片 + 下方居中文字） */
.gt-bn-card {
	display: block;
	cursor: pointer;
	text-decoration: none !important;
	color: inherit;
}

/* 图片容器：保持比例 */
.gt-bn-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--gt-bn-ratio, 16 / 9);
	background: #111;
}

/* 背景图 */
.gt-bn-card .gt-bn-img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	filter: brightness(75%);
	transform: scale(1);
	transition: transform 0.7s ease, filter 0.5s ease;
}

.gt-bn-card:hover .gt-bn-img {
	transform: scale(1.05);
	filter: brightness(50%);
}

.gt-bn-card.is-grayscale .gt-bn-img {
	filter: brightness(75%) grayscale(100%);
}

.gt-bn-card.is-grayscale:hover .gt-bn-img {
	filter: brightness(50%) grayscale(100%);
}

/* 文字容器：图片下方居中，直接显示 */
.gt-bn-content {
	text-align: center;
	padding: 12px 8px 0;
}

/* 文字 */
.gt-bn-label {
	display: inline-block;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.4;
	word-break: break-word;
}

@media (min-width: 768px) {
	.gt-bn-label {
		font-size: 16px;
	}
}
