/* TX Gallery — dark, photo-first. Selectors are prefixed with body.txg-dark so
   they win over the Elementor kit's global heading/link styles. */

body.txg-dark {
	--txg-bg: #0F0F0F;
	--txg-surface: #17181B;
	--txg-line: rgba(255, 255, 255, .08);
	--txg-text: #F2F2F2;
	--txg-muted: #9CA3AF;
	--txg-red: #DA0037;
	--txg-orange: #E88A1A;
	background: var(--txg-bg);
}

body.txg-dark .txg-page,
body.txg-dark .txg-page * { box-sizing: border-box; }
body.txg-dark .txg-page { font-family: Poppins, -apple-system, "Segoe UI", sans-serif; color: var(--txg-text); background: var(--txg-bg); padding: 40px 0 96px; }
body.txg-dark .txg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
body.txg-dark .txg-page a { color: inherit; text-decoration: none; }

/* Heading */
body.txg-dark .txg-head { max-width: 760px; margin-bottom: 36px; }
body.txg-dark .txg-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--txg-orange); margin: 0 0 12px; }
body.txg-dark .txg-title { font-size: 44px; line-height: 1.15; font-weight: 600; color: #fff; margin: 0 0 16px; letter-spacing: -0.015em; }
body.txg-dark .txg-title span { color: var(--txg-red); }
body.txg-dark .txg-intro { font-size: 16px; line-height: 1.7; color: var(--txg-muted); margin: 0; }

/* Filters */
body.txg-dark .txg-filters { display: grid; gap: 14px; padding: 18px 0; margin-bottom: 36px; border-top: 1px solid var(--txg-line); border-bottom: 1px solid var(--txg-line); }
body.txg-dark .txg-chips, body.txg-dark .txg-years { display: flex; flex-wrap: wrap; gap: 8px; }
body.txg-dark .txg-chip { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--txg-line); background: var(--txg-surface); color: #D1D5DB !important; transition: all .2s; }
body.txg-dark .txg-chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff !important; }
body.txg-dark .txg-chip.is-active { background: #fff; border-color: #fff; color: #0F0F0F !important; }
body.txg-dark .txg-year { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px; color: var(--txg-muted) !important; }
body.txg-dark .txg-year:hover { color: #fff !important; }
body.txg-dark .txg-year.is-active { color: #fff !important; background: rgba(218, 0, 55, .25); }

/* Album cards */
body.txg-dark .txg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
body.txg-dark .txg-card { display: block; border-radius: 16px; overflow: hidden; background: var(--txg-surface); border: 1px solid var(--txg-line); transition: transform .25s ease, border-color .25s ease; }
body.txg-dark .txg-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .18); }
body.txg-dark .txg-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
body.txg-dark .txg-card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.txg-dark .txg-card:hover .txg-card-img { transform: scale(1.05); }
body.txg-dark .txg-card-img--empty { background: linear-gradient(135deg, #1f1f23, #2b2b31); }
body.txg-dark .txg-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.txg-dark .txg-card-body { display: block; padding: 18px 20px 20px; }
body.txg-dark .txg-card-type { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--txg-orange); margin-bottom: 6px; }
body.txg-dark .txg-card-title { display: block; font-size: 19px; line-height: 1.35; font-weight: 600; color: #fff; }
body.txg-dark .txg-card-meta { display: block; font-size: 13px; color: var(--txg-muted); margin-top: 6px; }

body.txg-dark .txg-empty { color: var(--txg-muted); font-size: 16px; padding: 48px 0; }
body.txg-dark .txg-empty a { color: #fff !important; text-decoration: underline !important; }

body.txg-dark .txg-pages { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
body.txg-dark .txg-page-link { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--txg-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; color: #fff !important; }
body.txg-dark .txg-page-link.is-current { background: var(--txg-red); border-color: var(--txg-red); }

/* Single album */
body.txg-dark .txg-back { display: inline-block; font-size: 14px; color: var(--txg-muted) !important; margin-bottom: 24px; }
body.txg-dark .txg-back:hover { color: #fff !important; }
body.txg-dark .txg-album-head { max-width: 820px; margin-bottom: 36px; }
body.txg-dark .txg-pill { display: inline-block; font-size: 13px; font-weight: 600; color: #fff !important; background: linear-gradient(90deg, var(--txg-orange), var(--txg-red)); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px; }
body.txg-dark .txg-album-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--txg-muted); margin: 0; }
body.txg-dark .txg-album-meta span + span::before { content: "·"; margin-right: 20px; color: #4B5563; }
body.txg-dark .txg-album-desc { margin-top: 18px; font-size: 16px; line-height: 1.75; color: #D1D5DB; }
body.txg-dark .txg-album-desc p { margin: 0 0 1em; }

body.txg-dark .txg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
body.txg-dark .txg-photo { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #1c1c20; cursor: zoom-in; }
body.txg-dark .txg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, opacity .3s; }
body.txg-dark .txg-photo:hover img { transform: scale(1.04); }
body.txg-dark .txg-photo:focus-visible { outline: 3px solid var(--txg-orange); outline-offset: 2px; }

body.txg-dark .txg-more { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--txg-line); }
body.txg-dark .txg-section-title { font-size: 26px; font-weight: 600; color: #fff; margin: 0 0 24px; }

/* Full-screen viewer */
.txg-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(5, 5, 7, .96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.txg-lb[hidden] { display: none; }
.txg-lb-figure { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; }
.txg-lb-img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s; }
.txg-lb.is-loading .txg-lb-img { opacity: .35; }
/* html body … !important: beat the Elementor kit's global red button style */
html body .txg-lb button { position: absolute; border: 0 !important; cursor: pointer; color: #fff !important; background: rgba(255, 255, 255, .12) !important; border-radius: 50% !important; width: 48px; height: 48px; padding: 0 !important; font-size: 26px; line-height: 48px; display: flex; align-items: center; justify-content: center; box-shadow: none !important; transition: background .2s; font-family: inherit; }
html body .txg-lb button:hover, html body .txg-lb button:focus-visible { background: rgba(255, 255, 255, .25) !important; }
.txg-lb-close { top: 18px; right: 18px; }
.txg-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.txg-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.txg-lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); color: #D1D5DB; font: 500 14px Poppins, sans-serif; letter-spacing: .04em; }

/* Responsive */
@media (max-width: 1024px) {
	body.txg-dark .txg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	body.txg-dark .txg-title { font-size: 36px; }
}
@media (max-width: 767px) {
	body.txg-dark .txg-page { padding: 28px 0 72px; }
	body.txg-dark .txg-wrap { padding: 0 16px; }
	body.txg-dark .txg-title { font-size: 30px; }
	body.txg-dark .txg-grid { grid-template-columns: 1fr; }
	body.txg-dark .txg-filters { overflow: hidden; }
	body.txg-dark .txg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -16px; padding-right: 16px; }
	body.txg-dark .txg-chips::-webkit-scrollbar { display: none; }
	body.txg-dark .txg-chip { white-space: nowrap; }
	body.txg-dark .txg-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	body.txg-dark .txg-photo { border-radius: 8px; aspect-ratio: 1 / 1; }
	.txg-lb-figure { max-width: 100vw; }
	.txg-lb-img { border-radius: 0; max-height: calc(100vh - 140px); }
	.txg-lb-prev, .txg-lb-next { top: auto !important; bottom: 24px; transform: none !important; }
	.txg-lb-prev { left: calc(50% - 64px); }
	.txg-lb-next { right: calc(50% - 64px); }
}
