/*
Theme Name: Twenty Eleven Black Gold Directory
Theme URI: https://wordpress.org/themes/twentyeleven/
Description: Twenty Eleven 黑金资料目录子主题。自动读取轻量卡片目录插件，包含首页、View All、详情页及手机布局。
Author: Codex
Template: twentyeleven
Version: 1.0.8
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: twentyeleven-black-gold-directory
*/

:root {
	--tebg-body: #050505;
	--tebg-page: #000000;
	--tebg-panel: #181818;
	--tebg-panel-soft: #101010;
	--tebg-border: #393939;
	--tebg-gold: #bc8926;
	--tebg-gold-light: #fff19a;
	--tebg-gold-text: #f1c965;
	--tebg-red: #dc4c3e;
	--tebg-text: #dddddd;
	--tebg-muted: #aaaaaa;
	--tebg-gap: 12px;
}

html {
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

body,
input,
textarea,
select,
button {
	font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
}

body {
	margin: 0;
	background: var(--tebg-body);
	color: var(--tebg-text);
	font-size: 13px;
	line-height: 1.55;
}

a {
	color: var(--tebg-gold-text);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--tebg-gold-light);
	outline-offset: 2px;
}

#page.tebg-page {
	width: min(1160px, 100%);
	max-width: none;
	min-height: 100vh;
	margin: 0 auto;
	overflow: hidden;
	border: 0;
	background: var(--tebg-page);
	box-shadow: 0 0 26px rgba(0, 0, 0, .7);
}

#branding.tebg-branding {
	position: relative;
	padding: 0;
	border: 0;
}

#site-title.tebg-site-title {
	width: auto;
	margin: 0;
	padding: 23px 12px 12px;
	font: 500 31px/1.15 Georgia, "Times New Roman", serif;
	letter-spacing: .28em;
	text-align: center;
	text-transform: uppercase;
}

#site-title.tebg-site-title a {
	display: inline;
	color: #ffffff;
	font-weight: inherit;
	text-decoration: none;
}

#access.tebg-directory-nav {
	width: calc(100% - 48px);
	min-height: 0;
	margin: 0 auto;
	float: none;
	border: 0;
	background: #000000;
	box-shadow: none;
}

#access.tebg-directory-nav > .menu {
	display: grid;
	width: 100%;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-flow: row;
	list-style: none;
}

#access.tebg-directory-nav li {
	position: static;
	margin: 0;
	float: none;
}

#access.tebg-directory-nav > .menu > li {
	min-width: 0;
}

#access.tebg-directory-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 1000;
	width: max-content;
	min-width: 160px;
	max-width: min(280px, 90vw);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px dotted rgba(188, 137, 38, .72);
	border-left: 1px dotted rgba(188, 137, 38, .72);
	background: #080808;
}

#access.tebg-directory-nav li.menu-item-has-children {
	position: relative;
}

#access.tebg-directory-nav li:hover > .sub-menu,
#access.tebg-directory-nav li:focus-within > .sub-menu {
	display: block;
}

#access.tebg-directory-nav .sub-menu li,
#access.tebg-directory-nav .sub-menu a {
	width: 100%;
}

#access.tebg-directory-nav a {
	display: block;
	min-height: 44px;
	padding: 0 14px;
	border-top: 1px dotted rgba(188, 137, 38, .72);
	border-right: 1px dotted rgba(188, 137, 38, .72);
	border-bottom: 1px dotted rgba(188, 137, 38, .72);
	background: transparent;
	color: #eeeeee;
	font-size: 12px;
	font-weight: 400;
	line-height: 44px;
	text-decoration: none;
}

#access.tebg-directory-nav > .menu > li > a {
	display: flex;
	height: 100%;
	padding: 7px 10px;
	align-items: center;
	justify-content: center;
	line-height: 1.25;
	overflow-wrap: anywhere;
	text-align: center;
	white-space: normal;
}

#access.tebg-directory-nav > .menu > li:nth-child(6n+1) > a {
	border-left: 1px dotted rgba(188, 137, 38, .72);
}

#access.tebg-directory-nav a:hover,
#access.tebg-directory-nav a:focus-visible,
#access.tebg-directory-nav .current-menu-item > a {
	background: var(--tebg-gold);
	color: #080808;
	outline: 0;
}

.tebg-skip-link:focus {
	position: fixed !important;
	z-index: 99999;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 8px 12px;
	clip: auto;
	background: #ffffff;
	color: #000000;
}

#main.tebg-main {
	min-height: 450px;
	padding: 18px 0 80px;
}

#primary,
#content {
	width: auto;
	margin: 0;
	float: none;
}

#content {
	margin: 0 8px;
}

.tebg-footer {
	padding: 24px 15px 70px;
	border-top: 1px solid #1f1f1f;
	background: #080808;
	color: #777777;
	font-size: 11px;
	text-align: center;
}

.tebg-footer p {
	margin: 0 0 4px;
}

.tebg-footer a {
	color: #aaaaaa;
}

/* Directory homepage supplied by Lightweight Card Directory. */
.lcd-directory {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--tebg-text);
}

.lcd-directory__nav {
	margin-bottom: 18px;
}

.lcd-section {
	position: relative;
	margin: 0;
	scroll-margin-top: 36px;
}

.lcd-section__heading {
	position: relative;
	display: flex;
	min-height: 35px;
	margin: 0 0 15px;
	padding: 7px 0 8px;
	align-items: end;
	overflow: visible;
	border: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .97) 0 18%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .97) 84%),
		repeating-linear-gradient(135deg, transparent 0 38px, rgba(188, 137, 38, .08) 39px 40px, transparent 41px 76px);
}

.lcd-section__heading::before {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #2c1902 0, #ae7824 17%, #fff8a9 48%, #be8229 76%, #2d1902 100%);
	box-shadow: 0 1px 5px rgba(255, 226, 100, .35);
	content: "";
}

.lcd-section__heading::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	width: auto;
	height: 4px;
	border-top: 1px solid #252525;
	border-bottom: 1px solid #292929;
	background: #0b0b0b;
	content: "";
}

.lcd-section__heading h2 {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 0 0 7px;
	color: var(--tebg-gold-text);
	font: 700 16px/1.3 Georgia, "Times New Roman", serif;
	text-transform: uppercase;
}

.lcd-section__view-all {
	position: absolute;
	z-index: 3;
	top: 15px;
	right: 8px;
	margin: 0;
	padding: 0;
	color: var(--tebg-gold-text) !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 2px #000000;
}

.lcd-section__view-all:hover,
.lcd-section__view-all:focus-visible {
	color: var(--tebg-gold-light) !important;
	text-decoration: underline;
}

.lcd-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--tebg-gap);
}

.lcd-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #2e2e2e;
	border-top: 5px solid #353535;
	background: var(--tebg-panel);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .36);
}

.lcd-card__image {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: #101010;
	aspect-ratio: 3 / 4;
}

.lcd-card__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.lcd-card__body {
	display: flex;
	height: auto;
	flex-direction: column;
	padding: 0;
}

.lcd-card__placeholder {
	position: absolute;
	inset: 0;
}

.lcd-card__title,
.lcd-card__category,
.lcd-card__price {
	overflow: hidden;
	padding: 3px 5px;
	font-size: 13px;
	line-height: 1.25;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lcd-card__title {
	margin: 0;
	color: #ffffff;
	font-weight: 700;
}

.lcd-card__title a {
	color: #ffffff;
	text-decoration: none;
}

.lcd-card__category {
	margin: 0 3px 5px;
	padding: 4px 6px;
	background: var(--lcd-card-label, var(--tebg-red));
	color: #ffffff;
	font-weight: 700;
}

.lcd-card__price {
	margin-top: auto;
	padding-bottom: 7px;
	color: #ffffff;
	font-weight: 900;
}

.lcd-card__meta,
.lcd-card__excerpt,
.lcd-card__actions {
	display: none;
}

.lcd-section__more {
	position: relative;
	display: flex;
	height: 61px;
	margin: 4px 0 9px;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid #1d1d1d;
	background:
		repeating-linear-gradient(135deg, transparent 0 27px, rgba(188, 137, 38, .18) 28px 29px, transparent 30px 56px),
		repeating-linear-gradient(45deg, transparent 0 27px, rgba(255, 241, 154, .09) 28px 29px, transparent 30px 56px),
		#050505;
}

.lcd-section__more::before,
.lcd-section__more::after {
	position: absolute;
	right: 0;
	left: 0;
	content: "";
}

.lcd-section__more::before {
	top: 0;
	height: 5px;
	background: linear-gradient(90deg, #2c1902, #a96f1d 19%, var(--tebg-gold-light) 48%, #a96f1d 76%, #2c1902);
	box-shadow: 0 1px 4px rgba(255, 226, 100, .25);
}

.lcd-section__more::after {
	top: 11px;
	height: 5px;
	background: linear-gradient(90deg, #291702, #9b651a 19%, #fff7a1 48%, #9b651a 77%, #291702);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}

.lcd-section__more a {
	position: relative;
	z-index: 2;
	min-width: 101px;
	min-height: 0;
	margin-top: 8px;
	padding: 10px 15px 9px;
	align-items: center;
	justify-content: center;
	border: 1px solid #2b2b2b;
	border-top-color: #5a5a5a;
	background: linear-gradient(#4b4b4b, #282828 48%, #0b0b0b);
	box-shadow: 0 6px 12px #000000, inset 0 1px rgba(255, 255, 255, .15);
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	text-shadow: 0 1px 2px #000000;
}

.lcd-section__more a:hover,
.lcd-section__more a:focus-visible {
	border-color: var(--tebg-gold);
	background: linear-gradient(#4b4b4b, #282828 48%, #0b0b0b);
	color: var(--tebg-gold-light);
}

.lcd-message {
	padding: 30px;
	border: 1px solid #333333;
	background: #111111;
	color: #cccccc;
}

/* View All archive. */
.tebg-archive-shell,
.tebg-single-shell {
	max-width: 1020px;
	margin: 0 auto;
}

.tebg-back-link,
.tebg-profile-open {
	display: inline-block;
	margin: 0 0 14px;
	padding: 7px 12px;
	border: 1px solid var(--tebg-gold);
	background: linear-gradient(#282828, #0d0d0d);
	color: var(--tebg-gold-light);
	font-weight: 700;
	text-decoration: none;
}

.tebg-page-heading {
	position: relative;
	min-height: 35px;
	margin: 0 0 26px;
	padding: 7px 0 12px;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .97) 0 18%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .97) 84%),
		repeating-linear-gradient(135deg, transparent 0 38px, rgba(188, 137, 38, .08) 39px 40px, transparent 41px 76px);
}

.tebg-page-heading::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 5px;
	background: linear-gradient(90deg, #2c1902, #ae7824 17%, #fff8a9 48%, #be8229 76%, #2d1902);
	content: "";
}

.tebg-page-heading h1 {
	margin: 0;
	color: var(--tebg-gold-text);
	font: 700 18px/1.3 Georgia, "Times New Roman", serif;
	text-transform: uppercase;
}

.tebg-archive-description {
	margin-top: 10px;
	color: var(--tebg-muted);
}

.tebg-archive-profile {
	margin: 0 0 34px;
	padding: 0 0 34px;
	border-bottom: 1px solid rgba(188, 137, 38, .4);
}

.tebg-archive-profile__name {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.2;
}

.tebg-archive-profile__name a {
	color: #ffffff;
	text-decoration: none;
}

.tebg-archive-profile__content {
	max-width: 900px;
}

.tebg-archive-profile__description {
	max-width: 760px;
	margin: 0 0 22px;
	padding: 14px 18px;
	border-left: 3px solid var(--tebg-gold);
	background: var(--tebg-panel-soft);
	color: var(--tebg-text);
}

.tebg-archive-profile__description > :last-child {
	margin-bottom: 0;
}

.tebg-archive-profile__photos {
	display: grid;
	max-width: 760px;
	margin: 0 0 22px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tebg-archive-profile__photos figure {
	margin: 0;
	padding: 5px;
	border: 1px solid #4b4b4b;
	background: #191919;
}

.tebg-archive-profile__photos img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.tebg-archive-profile__table {
	width: 100%;
	max-width: 760px;
}

.tebg-profile-open {
	margin-top: 14px;
	margin-bottom: 0;
}

/* Single profile and Classic Editor article content. */
.tebg-profile-entry,
.tebg-article-entry {
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	border: 0;
}

.tebg-profile-entry .entry-header,
.tebg-article-entry .entry-header {
	margin: 0 0 18px;
}

.tebg-profile-entry .entry-title,
.tebg-article-entry .entry-title {
	padding: 0;
	color: #ffffff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.tebg-profile-entry .entry-content,
.tebg-article-entry .entry-content {
	width: 100%;
	padding: 0;
	color: #dddddd;
}

.lcd-profile {
	color: #f7f7f7;
}

.lcd-profile__gallery {
	display: grid;
	max-width: 760px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 28px;
}

.lcd-profile__gallery figure {
	margin: 0;
	padding: 5px;
	border: 1px solid #4b4b4b;
	background: #191919;
}

.lcd-profile__gallery img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.lcd-profile__table {
	width: 100%;
	max-width: 620px;
	border-top: 1px solid #373737;
}

.lcd-profile__row {
	display: grid;
	grid-template-columns: minmax(110px, .45fr) minmax(0, 1.55fr);
	border-bottom: 1px solid #30220e;
}

.lcd-profile__row > div {
	padding: 5px 7px;
}

.lcd-profile__row > div:first-child {
	color: #c9c9c9;
	font-weight: 400;
}

.lcd-profile__row > div:last-child {
	color: #eeeeee;
}

.lcd-profile__contacts {
	display: flex;
	margin-top: 22px;
	gap: 10px;
	flex-wrap: wrap;
}

.lcd-profile__contacts a {
	display: inline-flex;
	min-height: 42px;
	padding: 0 16px;
	align-items: center;
	border: 1px solid var(--tebg-gold);
	border-radius: 4px;
	background: linear-gradient(#303030, #111111);
	color: #ffffff !important;
	font-weight: 800;
	text-decoration: none;
}

.lcd-profile__contacts a:hover,
.lcd-profile__contacts a:focus-visible {
	background: var(--tebg-gold);
	color: #080808 !important;
}

.lcd-profile__article-content {
	max-width: 760px;
	margin: 0 0 28px;
	padding: 0 15px 18px;
	border-top: 0;
	border-bottom: 1px solid #373737;
	border-left: 3px solid var(--tebg-gold);
	background: #101010;
	color: #cccccc;
}

.lcd-profile__article-content:empty {
	display: none;
}

.tebg-edit-link {
	margin-top: 22px;
	font-size: 12px;
}

@media (max-width: 980px) {
	#access.tebg-directory-nav > .menu {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	#access.tebg-directory-nav > .menu > li:nth-child(6n+1) > a {
		border-left: 0;
	}

	#access.tebg-directory-nav > .menu > li:nth-child(4n+1) > a {
		border-left: 1px dotted rgba(188, 137, 38, .72);
	}
}

@media (max-width: 720px) {
	body {
		font-size: 12px;
	}

	#site-title.tebg-site-title {
		padding: 17px 8px 14px;
		font-size: 21px;
		letter-spacing: .17em;
	}

	#access.tebg-directory-nav {
		width: calc(100% - 18px);
	}

	#access.tebg-directory-nav > .menu {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#access.tebg-directory-nav > .menu > li:nth-child(4n+1) > a {
		border-left: 0;
	}

	#access.tebg-directory-nav > .menu > li:nth-child(3n+1) > a {
		border-left: 1px dotted rgba(188, 137, 38, .72);
	}

	#access.tebg-directory-nav a {
		min-height: 34px;
		padding: 7px 5px;
		font-size: 9px;
		line-height: 1.25;
	}

	#main.tebg-main {
		padding-top: 14px;
	}

	#content {
		margin: 0 5px;
	}

	.lcd-section__heading {
		min-height: 31px;
		margin-bottom: 13px;
		padding: 6px 0 7px;
	}

	.lcd-section__heading h2 {
		padding-bottom: 6px;
		font-size: 11px;
	}

	.lcd-section__heading::before {
		height: 4px;
	}

	.lcd-section__view-all {
		top: 12px;
		right: 4px;
		font-size: 9px;
	}

	.lcd-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3px;
	}

	.lcd-card {
		max-width: none;
		margin: 0;
		border-top-width: 3px;
	}

	.lcd-card__title,
	.lcd-card__category,
	.lcd-card__price {
		padding-right: 2px;
		padding-left: 2px;
		font-size: 7px;
	}

	.lcd-card__category {
		margin: 0 1px 2px;
		padding-top: 3px;
	}

	.lcd-card__price {
		padding-bottom: 4px;
	}

	.lcd-section__more {
		height: 49px;
		margin: 3px 0 8px;
	}

	.lcd-section__more::before {
		height: 4px;
	}

	.lcd-section__more::after {
		top: 8px;
		height: 4px;
	}

	.lcd-section__more a {
		min-width: 78px;
		margin-top: 6px;
		padding: 7px 10px 6px;
		font-size: 10px;
	}

	.tebg-back-link,
	.tebg-profile-open {
		margin-bottom: 9px;
		padding: 5px 8px;
		font-size: 10px;
	}

	.tebg-page-heading {
		min-height: 31px;
		margin-bottom: 20px;
		padding: 6px 0 10px;
	}

	.tebg-page-heading h1 {
		font-size: 13px;
	}

	.tebg-archive-profile {
		margin-bottom: 25px;
		padding-bottom: 25px;
	}

	.tebg-archive-profile__name,
	.tebg-profile-entry .entry-title,
	.tebg-article-entry .entry-title {
		margin-bottom: 12px;
		font-size: 20px;
	}

	.tebg-archive-profile__content {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tebg-archive-profile__photos,
	.lcd-profile__gallery {
		max-width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px;
	}

	.tebg-archive-profile__photos figure,
	.lcd-profile__gallery figure {
		padding: 3px;
	}

	.lcd-profile__row {
		grid-template-columns: 92px minmax(0, 1fr);
		font-size: 12px;
	}

	.lcd-profile__row > div {
		padding: 4px;
	}

	.tebg-footer {
		padding-bottom: 58px;
	}
}

@media (max-width: 350px) {
	#site-title.tebg-site-title {
		font-size: 18px;
	}

	.lcd-grid {
		gap: 2px;
	}

	.lcd-card__title,
	.lcd-card__category,
	.lcd-card__price {
		font-size: 6.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.lcd-card__image img {
		transition: none;
	}
}



/* Editable homepage content, rendered below the final directory separator. */
.tebg-home-content {
	margin: 0 0 18px;
	padding: 20px;
	overflow: hidden;
	border: 1px solid var(--tebg-gold);
	background: var(--tebg-panel-soft);
	color: var(--tebg-muted);
}

.tebg-about-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 32%);
	gap: 28px;
	align-items: stretch;
}

.tebg-about-copy > :first-child {
	margin-top: 0;
}

.tebg-about-copy > :last-child {
	margin-bottom: 0;
}

.tebg-about-kicker {
	margin: 0 0 8px;
	color: var(--tebg-gold-text);
	font-weight: 700;
	font-size: 12px;
}

.tebg-about-copy h2 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 24px;
	line-height: 1.25;
}

.tebg-about-copy p {
	margin: 0 0 6px;
}

.tebg-about-media {
	min-height: 112px;
	border: 1px solid var(--tebg-border);
	background: var(--tebg-panel);
}

@media (max-width: 600px) {
	.tebg-home-content {
		padding: 16px;
	}

	.tebg-about-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tebg-about-media {
		min-height: 140px;
	}
}

/* Lightweight gallery lightbox: loaded with the existing child-theme stylesheet. */
body.tebg-lightbox-open {
	overflow: hidden;
}

.tebg-archive-profile__photos img,
.lcd-profile__gallery img {
	cursor: zoom-in;
}

.tebg-archive-profile__photos img:focus-visible,
.lcd-profile__gallery img:focus-visible {
	outline: 2px solid #d4af37;
	outline-offset: 3px;
}

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

.tebg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	background: rgba(0, 0, 0, 0.96);
	color: #d4af37;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.tebg-lightbox__topbar {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	right: max(14px, env(safe-area-inset-right));
	left: max(14px, env(safe-area-inset-left));
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.tebg-lightbox__counter {
	font: 600 14px/1.2 Arial, sans-serif;
	letter-spacing: 0.08em;
}

.tebg-lightbox button {
	border: 1px solid rgba(212, 175, 55, 0.55);
	background: rgba(10, 10, 10, 0.72);
	color: #d4af37;
	cursor: pointer;
}

.tebg-lightbox button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tebg-lightbox__close {
	position: absolute;
	right: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font: 300 30px/36px Arial, sans-serif;
	pointer-events: auto;
}

.tebg-lightbox__nav {
	position: relative;
	z-index: 2;
	width: 46px;
	height: 60px;
	margin: 0 auto;
	border-radius: 24px;
	font: 300 42px/44px Arial, sans-serif;
}

.tebg-lightbox__stage {
	display: flex;
	min-width: 0;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 64px 0 54px;
}

.tebg-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 118px);
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.tebg-lightbox__dots {
	position: absolute;
	bottom: max(14px, env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	max-width: min(76vw, 540px);
	gap: 8px;
	transform: translateX(-50%);
	overflow: hidden;
}

.tebg-lightbox .tebg-lightbox__dot {
	width: 8px;
	height: 8px;
	min-width: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.38);
}

.tebg-lightbox .tebg-lightbox__dot.is-active {
	background: #d4af37;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

@media (max-width: 600px) {
	.tebg-lightbox {
		grid-template-columns: minmax(0, 1fr);
	}

	.tebg-lightbox__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 38px;
		height: 50px;
		border-color: rgba(212, 175, 55, 0.34);
		background: rgba(0, 0, 0, 0.42);
	}

	.tebg-lightbox__prev {
		left: 8px;
	}

	.tebg-lightbox__next {
		right: 8px;
	}

	.tebg-lightbox__stage {
		padding: 56px 8px 44px;
	}

	.tebg-lightbox__image {
		width: 100%;
		max-height: calc(100dvh - 100px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tebg-lightbox *,
	.tebg-lightbox *::before,
	.tebg-lightbox *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}


/* Lightweight gallery lightbox: loaded with the existing child-theme stylesheet. */
body.tebg-lightbox-open {
	overflow: hidden;
}

.tebg-archive-profile__photos img,
.lcd-profile__gallery img {
	cursor: zoom-in;
}

.tebg-archive-profile__photos img:focus-visible,
.lcd-profile__gallery img:focus-visible {
	outline: 2px solid #d4af37;
	outline-offset: 3px;
}

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

.tebg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	background: rgba(0, 0, 0, 0.96);
	color: #d4af37;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.tebg-lightbox__topbar {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	right: max(14px, env(safe-area-inset-right));
	left: max(14px, env(safe-area-inset-left));
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.tebg-lightbox__counter {
	font: 600 14px/1.2 Arial, sans-serif;
	letter-spacing: 0.08em;
}

.tebg-lightbox button {
	border: 1px solid rgba(212, 175, 55, 0.55);
	background: rgba(10, 10, 10, 0.72);
	color: #d4af37;
	cursor: pointer;
}

.tebg-lightbox button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tebg-lightbox__close {
	position: absolute;
	right: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font: 300 30px/36px Arial, sans-serif;
	pointer-events: auto;
}

.tebg-lightbox__nav {
	position: relative;
	z-index: 2;
	width: 46px;
	height: 60px;
	margin: 0 auto;
	border-radius: 24px;
	font: 300 42px/44px Arial, sans-serif;
}

.tebg-lightbox__stage {
	display: flex;
	min-width: 0;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 64px 0 54px;
}

.tebg-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 118px);
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.tebg-lightbox__dots {
	position: absolute;
	bottom: max(14px, env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	max-width: min(76vw, 540px);
	gap: 8px;
	transform: translateX(-50%);
	overflow: hidden;
}

.tebg-lightbox .tebg-lightbox__dot {
	width: 8px;
	height: 8px;
	min-width: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.38);
}

.tebg-lightbox .tebg-lightbox__dot.is-active {
	background: #d4af37;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

@media (max-width: 600px) {
	.tebg-lightbox {
		grid-template-columns: minmax(0, 1fr);
	}

	.tebg-lightbox__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 38px;
		height: 50px;
		border-color: rgba(212, 175, 55, 0.34);
		background: rgba(0, 0, 0, 0.42);
	}

	.tebg-lightbox__prev {
		left: 8px;
	}

	.tebg-lightbox__next {
		right: 8px;
	}

	.tebg-lightbox__stage {
		padding: 56px 8px 44px;
	}

	.tebg-lightbox__image {
		width: 100%;
		max-height: calc(100dvh - 100px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tebg-lightbox *,
	.tebg-lightbox *::before,
	.tebg-lightbox *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

