/* LogoCraft Gallery. Skins only set variables so Elementor style controls can override them. */
.lcg {
	--lcg-cols: var(--lcg-d, 5);
	--lcg-gap: 20px;
	--lcg-accent: #4f46e5;
	--lcg-accent-2: #ec4899;
	--lcg-on-accent: #fff;
	--lcg-card-bg: transparent;
	--lcg-card-bg-hover: var(--lcg-card-bg);
	--lcg-card-border: 1px solid transparent;
	--lcg-card-shadow: none;
	--lcg-card-shadow-hover: var(--lcg-card-shadow);
	--lcg-card-radius: 10px;
	--lcg-card-h: 120px;
	--lcg-logo-h: 60px;
	--lcg-logo-w: 180px;
	--lcg-opacity: 1;
	--lcg-opacity-hover: 1;
	--lcg-text: #1f2937;
	--lcg-overlay: rgba(17, 24, 39, .92);
	--lcg-dot: #cbd5e1;
	--lcg-arrow: 40px;
	--lcg-popup-bg: #fff;
	--lcg-popup-text: #1f2937;
	--lcg-popup-w: 640px;
	--lcg-tooltip: #111827;
	position: relative;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
@media (max-width: 1024px) { .lcg { --lcg-cols: var(--lcg-t, 3); } }
@media (max-width: 767px) { .lcg { --lcg-cols: var(--lcg-m, 2); } }
.lcg *, .lcg *::before, .lcg *::after { box-sizing: border-box; }
.lcg [hidden] { display: none !important; }

/* ---------- Items and cards ---------- */
.lcg .lcg-items { display: grid; grid-template-columns: repeat(var(--lcg-cols), minmax(0, 1fr)); gap: var(--lcg-gap); margin: 0; padding: 0; list-style: none; }
.lcg .lcg-item { position: relative; display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lcg .lcg-card {
	position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-width: 0; min-height: var(--lcg-card-h); margin: 0; padding: 20px;
	background: var(--lcg-card-bg); border: var(--lcg-card-border); border-radius: var(--lcg-card-radius); box-shadow: var(--lcg-card-shadow);
	color: var(--lcg-text); font: inherit; line-height: 1.4; text-align: center; text-decoration: none; text-transform: none; letter-spacing: normal; white-space: normal;
	transition: transform .35s, box-shadow .35s, background-color .35s, border-color .35s, opacity .35s, filter .35s;
}
.lcg .lcg-card:where(:hover, :focus-visible) { background: var(--lcg-card-bg-hover); box-shadow: var(--lcg-card-shadow-hover); color: var(--lcg-text); text-decoration: none; }
.lcg button.lcg-card:where(:hover, :focus) { background: var(--lcg-card-bg-hover); color: var(--lcg-text); }
.lcg a.lcg-card, .lcg button.lcg-card { cursor: pointer; }
.lcg .lcg-card:focus-visible, .lcg button:focus-visible, .lcg a:focus-visible { outline: 3px solid var(--lcg-accent); outline-offset: 2px; }
.lcg .lcg-media { display: grid; place-items: center; width: 100%; }
.lcg .lcg-media > * { grid-area: 1 / 1; }
.lcg .lcg-card .lcg-logo { display: block; width: auto; height: auto; max-width: min(100%, var(--lcg-logo-w)); max-height: var(--lcg-logo-h); object-fit: contain; opacity: var(--lcg-opacity); transition: filter .35s, opacity .35s, transform .35s; }
/* SVGs without intrinsic size still need a box. */
.lcg .lcg-card .lcg-logo[src$=".svg"] { width: 100%; height: var(--lcg-logo-h); }
.lcg .lcg-card:where(:hover, :focus-visible) .lcg-logo { opacity: var(--lcg-opacity-hover); }
.lcg .lcg-card .lcg-media--swap .lcg-logo--hover { opacity: 0; }
.lcg .lcg-card:where(:hover, :focus-visible) .lcg-media--swap .lcg-logo { opacity: 0; }
.lcg .lcg-card:where(:hover, :focus-visible) .lcg-media--swap .lcg-logo--hover { opacity: var(--lcg-opacity-hover); }
.lcg .lcg-caption { display: flex; flex-direction: column; gap: 4px; max-width: 100%; overflow-wrap: anywhere; }
.lcg .lcg-name { font-size: 15px; font-weight: 600; }
.lcg .lcg-desc { font-size: 13px; opacity: .75; }
.lcg .lcg-badge { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 3px 8px; border-radius: 99px; background: var(--lcg-accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.3; pointer-events: none; }

/* ---------- Colour effects ---------- */
.lcg.lcg--filter-grayscale .lcg-card .lcg-logo { filter: grayscale(1); }
.lcg.lcg--filter-grayscale .lcg-card:where(:hover, :focus-visible) .lcg-logo { filter: none; }
.lcg.lcg--filter-colorgray .lcg-card:where(:hover, :focus-visible) .lcg-logo { filter: grayscale(1); }
.lcg:where(.lcg--filter-faded) { --lcg-opacity: .45; }
.lcg.lcg--filter-sepia .lcg-card .lcg-logo { filter: sepia(1); }
.lcg.lcg--filter-sepia .lcg-card:where(:hover, :focus-visible) .lcg-logo { filter: none; }
.lcg.lcg--filter-white .lcg-card .lcg-logo { filter: brightness(0) invert(1); }
.lcg.lcg--filter-white .lcg-card:where(:hover, :focus-visible) .lcg-logo { filter: none; }

/* ---------- Hover animations ---------- */
.lcg.lcg--hover-lift .lcg-card:hover { transform: translateY(-6px); }
.lcg.lcg--hover-zoom .lcg-card:hover .lcg-logo { transform: scale(1.15); }
.lcg.lcg--hover-shrink .lcg-card:hover .lcg-logo { transform: scale(.86); }
.lcg.lcg--hover-rotate .lcg-card:hover .lcg-logo { transform: rotate(-6deg) scale(1.08); }
.lcg.lcg--hover-pulse .lcg-card:hover .lcg-logo { animation: lcg-pulse .9s ease-in-out infinite; }
.lcg.lcg--hover-tilt .lcg-card { transform: perspective(700px) rotateX(var(--lcg-rx, 0deg)) rotateY(var(--lcg-ry, 0deg)); transition-duration: .15s; }
.lcg.lcg--hover-shine .lcg-card { overflow: hidden; }
.lcg.lcg--hover-shine .lcg-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); pointer-events: none; }
.lcg.lcg--hover-shine .lcg-card:hover::after { left: 130%; transition: left .7s; }
@keyframes lcg-pulse { 50% { transform: scale(1.12); } }
.lcg.lcg--dim .lcg-items:hover .lcg-card { opacity: .35; filter: blur(1px); }
.lcg.lcg--dim .lcg-items:hover .lcg-card:hover { opacity: 1; filter: none; }

/* ---------- 16 skins ---------- */
.lcg:where(.lcg--skin-boxed) { --lcg-card-bg: #fff; --lcg-card-border: 1px solid #e5e7eb; --lcg-card-shadow-hover: 0 6px 20px rgba(15,23,42,.08); }
.lcg:where(.lcg--skin-elevate) { --lcg-card-bg: #fff; --lcg-card-radius: 16px; --lcg-card-shadow: 0 4px 18px rgba(15,23,42,.08); --lcg-card-shadow-hover: 0 18px 40px rgba(15,23,42,.16); }
.lcg:where(.lcg--skin-lines) { --lcg-gap: 0px; --lcg-card-radius: 0px; --lcg-card-border: 0 solid transparent; --lcg-card-shadow: 0 0 0 .5px #d1d5db, inset 0 0 0 .5px #d1d5db; --lcg-card-bg: #fff; --lcg-card-bg-hover: #f8fafc; }
.lcg:where(.lcg--skin-dashed) { --lcg-card-border: 2px dashed #cbd5e1; --lcg-card-bg-hover: #f8fafc; }
.lcg:where(.lcg--skin-dashed) .lcg-card:hover { border-color: var(--lcg-accent); }
.lcg:where(.lcg--skin-glass) { padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--lcg-accent), var(--lcg-accent-2)); --lcg-card-bg: rgba(255,255,255,.72); --lcg-card-bg-hover: rgba(255,255,255,.92); --lcg-card-border: 1px solid rgba(255,255,255,.7); --lcg-card-radius: 16px; --lcg-card-shadow: 0 8px 30px rgba(15,23,42,.14); }
.lcg:where(.lcg--skin-glass) .lcg-card { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lcg:where(.lcg--skin-gradient) { --lcg-card-border: 2px solid transparent; --lcg-card-radius: 14px; --lcg-card-bg: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--lcg-accent), var(--lcg-accent-2)) border-box; --lcg-card-shadow-hover: 0 10px 28px rgba(79,70,229,.25); }
.lcg:where(.lcg--skin-neon) { padding: 24px; border-radius: 18px; background: #070b17; --lcg-accent: #22d3ee; --lcg-card-bg: #0d1427; --lcg-card-border: 1px solid #1e2b4a; --lcg-text: #e0f2fe; --lcg-dot: #334155; --lcg-card-shadow-hover: 0 0 6px var(--lcg-accent), 0 0 26px var(--lcg-accent); --lcg-on-accent: #04111c; }
.lcg:where(.lcg--skin-neon) .lcg-card:hover { border-color: var(--lcg-accent); }
.lcg:where(.lcg--skin-neumorph) { padding: 24px; border-radius: 22px; background: #e8edf3; --lcg-card-bg: #e8edf3; --lcg-card-radius: 20px; --lcg-card-shadow: 7px 7px 16px #c3cad4, -7px -7px 16px #fff; --lcg-card-shadow-hover: inset 5px 5px 12px #c3cad4, inset -5px -5px 12px #fff; }
.lcg:where(.lcg--skin-dark) { padding: 24px; border-radius: 18px; background: #0f172a; --lcg-card-bg: #1e293b; --lcg-card-bg-hover: #334155; --lcg-text: #f1f5f9; --lcg-dot: #475569; }
/* On dark skins the default grayscale effect becomes white so logos stay legible. */
.lcg.lcg--filter-grayscale:where(.lcg--skin-dark, .lcg--skin-neon) .lcg-card .lcg-logo { filter: brightness(0) invert(1); opacity: .7; }
.lcg.lcg--filter-grayscale:where(.lcg--skin-dark, .lcg--skin-neon) .lcg-card:where(:hover, :focus-visible) .lcg-logo { opacity: 1; }
.lcg:where(.lcg--skin-dark, .lcg--skin-neon) .lcg-toolbar { --lcg-text: #e2e8f0; }
.lcg:where(.lcg--skin-brand) { --lcg-card-bg: #f3f4f6; --lcg-card-bg-hover: var(--lcg-brand, var(--lcg-accent)); --lcg-card-radius: 14px; }
.lcg:where(.lcg--skin-brand) .lcg-item .lcg-card:where(:hover, :focus-visible) { color: #fff; }
.lcg.lcg--skin-brand .lcg-item .lcg-card:where(:hover, :focus-visible) .lcg-logo { filter: brightness(0) invert(1); }
.lcg:where(.lcg--skin-circle) { --lcg-card-bg: #fff; --lcg-card-border: 1px solid #e5e7eb; --lcg-card-radius: 50%; --lcg-card-h: 0px; --lcg-card-shadow-hover: 0 10px 28px rgba(15,23,42,.14); }
.lcg:where(.lcg--skin-circle) .lcg-card { aspect-ratio: 1; padding: 16%; }
.lcg:where(.lcg--skin-polaroid) { --lcg-card-bg: #fff; --lcg-card-radius: 3px; --lcg-card-border: 1px solid #eee; --lcg-card-shadow: 0 6px 18px rgba(15,23,42,.14); --lcg-card-shadow-hover: 0 16px 34px rgba(15,23,42,.22); }
.lcg:where(.lcg--skin-polaroid) .lcg-card { padding: 12px 12px 16px; }
.lcg:where(.lcg--skin-polaroid) .lcg-media { flex: 1; min-height: 90px; padding: 12px; background: #f6f7f9; }
.lcg:where(.lcg--skin-polaroid) .lcg-item:nth-child(odd) { rotate: -1.5deg; }
.lcg:where(.lcg--skin-polaroid) .lcg-item:nth-child(even) { rotate: 1.5deg; }
.lcg:where(.lcg--skin-polaroid) .lcg-item:hover { z-index: 2; rotate: 0deg; }

.lcg:where(.lcg--skin-flip) { --lcg-card-h: 150px; }
.lcg:where(.lcg--skin-flip) .lcg-card { padding: 0; background: transparent; border: 0; box-shadow: none; perspective: 900px; }
.lcg .lcg-flip { display: grid; flex: 1; width: 100%; min-height: var(--lcg-card-h); transform-style: preserve-3d; transition: transform .6s; }
.lcg .lcg-face { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: var(--lcg-card-radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lcg .lcg-face--front { background: #fff; border: 1px solid #e5e7eb; }
.lcg .lcg-face--back { background: var(--lcg-overlay); color: #fff; transform: rotateY(180deg); }
.lcg .lcg-card:where(:hover, :focus-visible) .lcg-flip { transform: rotateY(180deg); }

.lcg:where(.lcg--skin-overlay, .lcg--skin-slideup) { --lcg-card-bg: #fff; --lcg-card-border: 1px solid #e5e7eb; }
.lcg:where(.lcg--skin-overlay, .lcg--skin-slideup) .lcg-card { overflow: hidden; }
.lcg:where(.lcg--skin-overlay) .lcg-caption { position: absolute; inset: 0; justify-content: center; padding: 14px; background: var(--lcg-overlay); color: #fff; opacity: 0; transition: opacity .35s; }
.lcg:where(.lcg--skin-slideup) .lcg-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px; background: var(--lcg-overlay); color: #fff; transform: translateY(101%); transition: transform .35s; }
.lcg:where(.lcg--skin-overlay) .lcg-card:where(:hover, :focus-visible) .lcg-caption { opacity: 1; }
.lcg:where(.lcg--skin-overlay) .lcg-card:where(:hover, :focus-visible) .lcg-media { opacity: 0; }
.lcg:where(.lcg--skin-slideup) .lcg-card:where(:hover, :focus-visible) .lcg-caption { transform: none; }

/* ---------- Tooltip ---------- */
.lcg .lcg-item[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% - 6px); left: 50%; z-index: 10; max-width: 100%; padding: 5px 10px; border-radius: 6px; background: var(--lcg-tooltip); color: #fff; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: .2s; }
.lcg .lcg-item[data-tooltip]:hover::after, .lcg .lcg-item[data-tooltip]:focus-within::after { opacity: 1; transform: translate(-50%, 0); }
.lcg:where(.lcg--layout-carousel, .lcg--layout-marquee) .lcg-item[data-tooltip]::after { bottom: 6px; }

/* ---------- Layouts ---------- */
.lcg.lcg--layout-masonry .lcg-items { display: block; columns: var(--lcg-cols); column-gap: var(--lcg-gap); }
.lcg.lcg--layout-masonry .lcg-item { break-inside: avoid; margin-bottom: var(--lcg-gap); }
.lcg:where(.lcg--layout-masonry) { --lcg-card-h: 0px; --lcg-logo-h: 220px; --lcg-logo-w: 100%; }
.lcg.lcg--layout-masonry .lcg-card .lcg-logo[src$=".svg"] { height: auto; }
.lcg.lcg--layout-flex .lcg-items { display: flex; flex-wrap: wrap; justify-content: center; }
.lcg.lcg--layout-flex .lcg-item { width: var(--lcg-item-w, 190px); max-width: 100%; }
.lcg.lcg--layout-list .lcg-items { grid-template-columns: minmax(0, 1fr); }
.lcg.lcg--layout-list:not(.lcg--skin-flip, .lcg--skin-circle) .lcg-card { flex-direction: row; justify-content: flex-start; gap: 28px; text-align: left; }
.lcg.lcg--layout-list:not(.lcg--skin-flip, .lcg--skin-circle) .lcg-media { flex: 0 0 min(34%, var(--lcg-logo-w)); }
.lcg.lcg--layout-list:where(.lcg--skin-overlay, .lcg--skin-slideup) .lcg-media { margin: auto; }
.lcg.lcg--layout-list.lcg--skin-circle .lcg-item { justify-self: center; width: 220px; }

/* Carousel */
.lcg .lcg-carousel { position: relative; direction: ltr; }
.lcg.lcg--layout-carousel .lcg-items { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--lcg-cols) - 1) * var(--lcg-gap)) / var(--lcg-cols)); grid-template-rows: repeat(var(--lcg-rows, 1), auto); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 2px; scroll-padding: 0 2px; }
.lcg.lcg--layout-carousel .lcg-items::-webkit-scrollbar { display: none; }
.lcg.lcg--layout-carousel .lcg-item { scroll-snap-align: start; }
.lcg.lcg--layout-carousel .lcg-items.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.lcg .lcg-items.is-dragging * { cursor: grabbing; }
.lcg .lcg-logo { -webkit-user-drag: none; }
.lcg button.lcg-arrow { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: var(--lcg-arrow); height: var(--lcg-arrow); min-width: 0; margin: 0; padding: 0 0 4px; border: 0; border-radius: 50%; background: #fff; color: #111827; box-shadow: 0 4px 14px rgba(15,23,42,.18); font-size: calc(var(--lcg-arrow) * .65); line-height: 1; cursor: pointer; transform: translateY(-50%); }
.lcg button.lcg-arrow--prev { left: -8px; }
.lcg button.lcg-arrow--next { right: -8px; }
.lcg button.lcg-arrow:disabled { opacity: .35; cursor: default; }
.lcg .lcg-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.lcg .lcg-dots button { width: 10px; height: 10px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 99px; background: var(--lcg-dot); cursor: pointer; transition: width .25s; }
.lcg .lcg-dots button.is-active { width: 26px; background: var(--lcg-accent); }
.lcg .lcg-progress { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--lcg-dot); }
.lcg .lcg-progress span { display: block; width: 0; height: 100%; background: var(--lcg-accent); transition: width .2s; }

/* Marquee */
.lcg .lcg-marquee { display: flex; flex-direction: column; gap: var(--lcg-gap); direction: ltr; }
.lcg .lcg-row { min-width: 0; overflow: hidden; padding: 8px 0; }
.lcg .lcg-track { display: flex; width: max-content; }
.lcg .lcg-marquee .lcg-items { display: flex; flex: none; padding-right: var(--lcg-gap); }
.lcg .lcg-marquee .lcg-item { flex: none; width: var(--lcg-item-w, 200px); }
.lcg .lcg-track.is-running { animation: lcg-x var(--lcg-dur, 30s) linear infinite; }
.lcg .lcg-row--reverse .lcg-track { animation-direction: reverse; }
.lcg .lcg-marquee--pause .lcg-row:hover .lcg-track, .lcg .lcg-row:focus-within .lcg-track, .lcg.is-paused .lcg-track { animation-play-state: paused; }
.lcg .lcg-marquee--fade .lcg-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lcg .lcg-marquee--vertical { flex-direction: row; height: var(--lcg-marquee-h, 420px); }
.lcg .lcg-marquee--vertical .lcg-row { flex: 1; height: 100%; padding: 0 8px; }
.lcg .lcg-marquee--vertical .lcg-track { flex-direction: column; width: 100%; }
.lcg .lcg-marquee--vertical .lcg-items { flex-direction: column; padding: 0 0 var(--lcg-gap); }
.lcg .lcg-marquee--vertical .lcg-item { width: 100%; }
.lcg .lcg-marquee--vertical .lcg-track.is-running { animation-name: lcg-y; }
.lcg .lcg-marquee--vertical.lcg-marquee--fade .lcg-row { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
@keyframes lcg-x { to { transform: translateX(-50%); } }
@keyframes lcg-y { to { transform: translateY(-50%); } }

/* Spotlight */
.lcg .lcg-stage { display: flex; align-items: center; gap: 32px; min-height: 240px; margin-bottom: var(--lcg-gap); padding: 32px; border-radius: 18px; background: var(--lcg-popup-bg); color: var(--lcg-popup-text); box-shadow: 0 8px 30px rgba(15,23,42,.1); }
.lcg .lcg-stage.is-changing { animation: lcg-fade .45s; }
.lcg.lcg--layout-spotlight .lcg-item.is-active .lcg-card { outline: 3px solid var(--lcg-accent); outline-offset: -3px; }
.lcg.lcg--layout-spotlight .lcg-item.is-active .lcg-logo { filter: none; opacity: 1; }
.lcg.lcg--layout-spotlight.lcg--skin-brand .lcg-item.is-active .lcg-card:hover .lcg-logo { filter: brightness(0) invert(1); }

/* Honeycomb */
.lcg:where(.lcg--layout-honeycomb) { --lcg-gap: 8px; --lcg-card-h: 0px; --lcg-card-bg: #f1f5f9; }
.lcg:where(.lcg--layout-honeycomb):where(.lcg--skin-dark, .lcg--skin-neon) { --lcg-card-bg: #1e293b; }
.lcg.lcg--layout-honeycomb .lcg-items { grid-template-columns: repeat(calc(var(--lcg-cols) * 2), minmax(0, 1fr)); padding-bottom: calc(28% / var(--lcg-cols)); }
.lcg.lcg--layout-honeycomb .lcg-item { grid-column: span 2; margin-bottom: -27%; rotate: none; }
.lcg.lcg--layout-honeycomb .lcg-card { aspect-ratio: 1 / 1.1547; padding: 18% 12%; overflow: hidden; border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lcg.lcg--layout-honeycomb .lcg-card:focus-visible { outline-offset: -8px; background: #dbe4f0; }
.lcg.lcg--layout-honeycomb .lcg-flip { min-height: 0; height: 100%; }
.lcg.lcg--layout-honeycomb .lcg-badge { top: 20%; right: 50%; transform: translateX(50%); }

/* ---------- Toolbar, paging, buttons ---------- */
.lcg .lcg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.lcg .lcg-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lcg .lcg-toolbar button.lcg-filter { margin: 0; padding: 8px 18px; border: 1px solid #d1d5db; border-radius: 99px; background: transparent; color: var(--lcg-text); box-shadow: none; font-size: 14px; line-height: 1.4; cursor: pointer; transition: .2s; }
.lcg .lcg-toolbar button.lcg-filter.is-active { border-color: var(--lcg-accent); background: var(--lcg-accent); color: var(--lcg-on-accent); }
.lcg .lcg-toolbar .lcg-filters--underline button.lcg-filter { padding: 8px 6px; border-width: 0 0 2px; border-color: transparent; border-radius: 0; }
.lcg .lcg-toolbar .lcg-filters--underline button.lcg-filter.is-active { border-color: var(--lcg-accent); background: transparent; color: var(--lcg-accent); }
.lcg .lcg-filters--buttons { gap: 0; }
.lcg .lcg-toolbar .lcg-filters--buttons button.lcg-filter { border-radius: 0; margin-left: -1px; }
.lcg .lcg-toolbar .lcg-filters--buttons button.lcg-filter:first-child { border-radius: 8px 0 0 8px; }
.lcg .lcg-toolbar .lcg-filters--buttons button.lcg-filter:last-child { border-radius: 0 8px 8px 0; }
.lcg .lcg-count { opacity: .65; font-size: .85em; }
.lcg .lcg-toolbar :is(input.lcg-search, select) { width: auto; max-width: 100%; height: 40px; margin: 0; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 8px; background-color: #fff; color: #111827; font-size: 14px; }
.lcg .lcg-toolbar input.lcg-search { width: 220px; }
.lcg .lcg-more, .lcg .lcg-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.lcg button.lcg-more__btn, .lcg .lcg-pages button, .lcg .lcg-modal__nav button, .lcg button.lcg-playpause { margin: 0; padding: 10px 22px; border: 1px solid var(--lcg-accent); border-radius: 8px; background: var(--lcg-accent); color: var(--lcg-on-accent); font-size: 14px; line-height: 1.3; cursor: pointer; }
.lcg .lcg-pages button { min-width: 42px; padding: 9px 12px; background: transparent; color: var(--lcg-accent); }
.lcg .lcg-pages button.is-active { background: var(--lcg-accent); color: var(--lcg-on-accent); }
.lcg button.lcg-playpause { display: block; margin: 10px auto 0; padding: 4px 14px; border-color: #94a3b8; background: transparent; color: var(--lcg-text); font-size: 12px; }
.lcg:where(.lcg--skin-dark, .lcg--skin-neon) button.lcg-playpause { color: #e2e8f0; }
.lcg .lcg-noresults { margin: 20px 0 0; text-align: center; opacity: .7; }
.lcg-empty { padding: 20px; border: 2px dashed #cbd5e1; text-align: center; }

/* ---------- Popup and detail ---------- */
.lcg dialog.lcg-modal { width: min(var(--lcg-popup-w), calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 18px; overflow: auto; background: var(--lcg-popup-bg); color: var(--lcg-popup-text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lcg dialog.lcg-modal::backdrop { background: rgba(2,6,23,.72); }
.lcg dialog.lcg-modal[open] { animation: lcg-zoom .3s; }
.lcg .lcg-modal__box { position: relative; padding: 36px 32px 24px; text-align: center; }
.lcg .lcg-modal button.lcg-modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(148,163,184,.2); color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.lcg .lcg-modal__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.lcg .lcg-modal__nav button { background: transparent; color: var(--lcg-accent); }
.lcg .lcg-detail__logo { display: flex; justify-content: center; flex: 0 0 auto; }
.lcg .lcg-detail__logo img { width: 240px; max-width: 100%; height: auto; max-height: 140px; object-fit: contain; }
.lcg .lcg-detail__text { flex: 1; min-width: 0; }
.lcg .lcg-detail__title { margin: 16px 0 4px; color: inherit; font-size: 24px; }
.lcg .lcg-detail__cats { margin: 0 0 12px; color: var(--lcg-accent); font-size: 13px; font-weight: 600; }
.lcg .lcg-detail__video { position: relative; margin: 16px 0; aspect-ratio: 16 / 9; }
.lcg .lcg-detail__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lcg a.lcg-detail__btn { display: inline-block; margin-top: 8px; padding: 10px 24px; border-radius: 8px; background: var(--lcg-accent); color: var(--lcg-on-accent); text-decoration: none; }
.lcg .lcg-stage .lcg-detail__logo { width: 38%; }
.lcg .lcg-stage .lcg-detail__title { margin-top: 0; }

/* ---------- Entrance (only once JS is ready, so content never stays hidden) ---------- */
.lcg.lcg-ready[class*="lcg--enter-"] .lcg-item:not(.is-in) { opacity: 0; }
.lcg.lcg-ready.lcg--enter-fade .lcg-item.is-in { animation: lcg-fade .6s backwards; }
.lcg.lcg-ready.lcg--enter-fade-up .lcg-item.is-in { animation: lcg-fade-up .6s backwards; }
.lcg.lcg-ready.lcg--enter-zoom .lcg-item.is-in { animation: lcg-zoom .55s backwards; }
.lcg.lcg-ready.lcg--enter-slide .lcg-item.is-in { animation: lcg-slide .55s backwards; }
.lcg.lcg-ready.lcg--enter-flip .lcg-item.is-in { animation: lcg-flip .7s backwards; }
.lcg.lcg-ready .lcg-item.is-in { animation-delay: calc(var(--lcg-i) * 60ms) !important; }
@keyframes lcg-fade { from { opacity: 0; } }
@keyframes lcg-fade-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes lcg-zoom { from { opacity: 0; transform: scale(.8); } }
@keyframes lcg-slide { from { opacity: 0; transform: translateX(-36px); } }
@keyframes lcg-flip { from { opacity: 0; transform: perspective(600px) rotateY(75deg); } }

@media (max-width: 767px) {
	.lcg .lcg-stage { flex-direction: column; gap: 12px; padding: 22px; text-align: center; }
	.lcg .lcg-stage .lcg-detail__logo { width: 100%; }
	.lcg.lcg--layout-list:not(.lcg--skin-flip, .lcg--skin-circle) .lcg-card { flex-direction: column; gap: 12px; text-align: center; }
	.lcg .lcg-modal__box { padding: 40px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.lcg *, .lcg *::before, .lcg *::after { animation: none !important; transition: none !important; }
	.lcg .lcg-row { overflow: auto; }
}
