/* LGT Community v1.0.2 — social feed presentation */
.lgtc-feed,
.lgtc-archive-wrap,
.lgtc-single-wrap {
	color: #252a31;
	font-family: inherit;
}
.lgtc-feed { width: 100%; margin: 26px 0; }
.lgtc-section-heading {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 16px; margin: 0 0 18px;
}
.lgtc-section-heading h2 {
	font-size: 23px; line-height: 1.3; margin: 0 0 5px; font-weight: 750;
}
.lgtc-section-heading p { margin: 0; color: #77808b; font-size: 14px; }
.lgtc-all-link,
.lgtc-card-footer a {
	color: #0877df; text-decoration: none; font-weight: 650; white-space: nowrap;
}
.lgtc-all-link:hover,
.lgtc-card-footer a:hover { color: #005bb5; }

.lgtc-card {
	background: #fff; border: 1px solid #e7ebf0; border-radius: 15px;
	padding: 20px; margin: 0 0 18px;
	box-shadow: 0 3px 14px rgba(22, 34, 51, .045);
	overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.lgtc-card:hover { border-color: #dce5ef; box-shadow: 0 6px 22px rgba(22, 34, 51, .07); }
.lgtc-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.lgtc-avatar {
	width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(145deg, #e8f3ff, #dcecff);
	color: #0877df; font-size: 12px; font-weight: 800; letter-spacing: -.3px;
	border: 1px solid #d6e8fb;
}
.lgtc-author { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lgtc-author strong { font-size: 14px; color: #202832; font-weight: 700; }
.lgtc-author span { font-size: 12px; color: #89929d; }
.lgtc-format-label {
	margin-left: auto; font-size: 11px; color: #687789;
	background: #f3f6f9; border: 1px solid #edf0f3;
	border-radius: 20px; padding: 5px 10px; white-space: nowrap;
}
.lgtc-card-content { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; color: #333b45; }
.lgtc-card-content p { margin: 0 0 10px; }
.lgtc-card-content p:last-child { margin-bottom: 0; }
.lgtc-card-title { font-size: 20px; line-height: 1.4; margin: 0 0 8px; font-weight: 750; }
.lgtc-card-title a { color: #202832; text-decoration: none; }
.lgtc-card-title a:hover { color: #0877df; }
.lgtc-card-article .lgtc-card-content > p { color: #697481; }
.lgtc-status-text { white-space: normal; }

.lgtc-gallery {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(150px, 220px); gap: 6px;
	margin-top: 15px; overflow: hidden; border-radius: 11px;
	background: #f3f5f7;
}
.lgtc-gallery-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.lgtc-gallery-1 .lgtc-gallery-item { max-height: 430px; }
.lgtc-gallery-1 .lgtc-gallery-image { max-height: 430px; object-fit: contain; }
.lgtc-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lgtc-gallery-3 .lgtc-gallery-item:first-child { grid-row: span 2; }
.lgtc-gallery-3 { grid-auto-rows: minmax(110px, 170px); }
.lgtc-gallery-item {
	display: block; min-width: 0; min-height: 0; overflow: hidden;
	background: #f1f3f5; position: relative;
}
.lgtc-gallery-image {
	display: block; width: 100%; height: 100%; min-height: 0;
	max-height: none; object-fit: cover; transition: transform .25s ease;
}
.lgtc-gallery-item:hover .lgtc-gallery-image { transform: scale(1.025); }
.lgtc-featured-image { display: block; margin-top: 14px; overflow: hidden; border-radius: 11px; background: #f3f5f7; }
.lgtc-featured-image img {
	display: block; width: 100%; height: auto; max-height: 430px;
	object-fit: cover; border-radius: 11px;
}
.lgtc-card-footer {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	border-top: 1px solid #edf0f3; margin-top: 16px; padding-top: 13px;
	color: #89929d; font-size: 12px;
}
.lgtc-comment-count { display: inline-flex; align-items: center; gap: 6px; }
.lgtc-comment-link { font-size: 12px; }
.lgtc-empty {
	border: 1px dashed #d7dfe8; border-radius: 12px; padding: 30px;
	text-align: center; color: #788391; background: #fafbfd;
}

/* Community archive */
.lgtc-archive-wrap { max-width: 1160px; margin: 38px auto; padding: 0 20px; }
.lgtc-archive-header { text-align: center; padding: 20px 15px 22px; }
.lgtc-eyebrow { font-size: 11px; letter-spacing: 2px; color: #0877df; font-weight: 800; }
.lgtc-archive-header h1 { font-size: 32px; line-height: 1.25; margin: 9px 0 8px; font-weight: 750; }
.lgtc-archive-header p { color: #77818d; margin: 0; font-size: 15px; }
.lgtc-archive-layout {
	display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 280px);
	gap: 26px; justify-content: center; align-items: start;
}
.lgtc-archive-aside .lgtc-aside-box {
	background: #f7f9fc; border: 1px solid #edf0f4; border-radius: 13px;
	padding: 20px; position: sticky; top: 25px;
}
.lgtc-aside-box h2 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.lgtc-aside-box p { font-size: 14px; line-height: 1.7; color: #737d89; margin: 0; }
.lgtc-pagination { margin: 26px 0; }
.lgtc-pagination .nav-links { display: flex; gap: 8px; justify-content: center; align-items: center; }
.lgtc-pagination a,
.lgtc-pagination span {
	padding: 8px 12px; border: 1px solid #e5e9ee; border-radius: 8px;
	text-decoration: none; background: #fff;
}

/* Single post and comments */
.lgtc-single-wrap { max-width: 850px; margin: 38px auto; padding: 0 20px; }
.lgtc-single-card {
	background: #fff; border: 1px solid #e7ebf0; border-radius: 15px;
	padding: 26px; box-shadow: 0 3px 14px rgba(22, 34, 51, .04);
}
.lgtc-back-link { display: inline-block; color: #0877df; text-decoration: none; font-size: 13px; margin-bottom: 22px; }
.lgtc-single-title { font-size: 30px; line-height: 1.3; margin: 18px 0; font-weight: 750; }
.lgtc-single-body { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; color: #333b45; }
.lgtc-single-body img { max-width: 100%; height: auto; border-radius: 9px; }
.lgtc-single-body .lgtc-gallery { margin-top: 18px; }
.lgtc-single-tax { margin-top: 22px; color: #77818d; font-size: 13px; }
.lgtc-comments {
	margin: 22px 0; padding: 22px; background: #fff;
	border: 1px solid #e7ebf0; border-radius: 15px;
}
.lgtc-comments .comments-title { font-size: 20px; font-weight: 700; }
.lgtc-comments textarea,
.lgtc-comments input[type=text],
.lgtc-comments input[type=email],
.lgtc-comments input[type=url] {
	max-width: 100%; width: 100%; padding: 11px 12px;
	border: 1px solid #d9dfe6; border-radius: 8px; box-sizing: border-box;
}
.lgtc-comments input[type=submit] {
	background: #0877df; color: #fff; border: 0; border-radius: 8px;
	padding: 11px 19px; cursor: pointer; font-weight: 650;
}
.lgtc-comments input[type=submit]:hover { background: #0564bf; }

@media (max-width: 900px) {
	.lgtc-archive-layout { grid-template-columns: minmax(0, 760px); }
	.lgtc-archive-aside { display: none; }
}
@media (max-width: 600px) {
	.lgtc-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
	.lgtc-section-heading h2 { font-size: 20px; }
	.lgtc-card { padding: 14px; border-radius: 12px; }
	.lgtc-card-title { font-size: 18px; }
	.lgtc-gallery { grid-auto-rows: minmax(105px, 160px); gap: 4px; border-radius: 9px; }
	.lgtc-gallery-1 { grid-auto-rows: auto; }
	.lgtc-gallery-1 .lgtc-gallery-item,
	.lgtc-gallery-1 .lgtc-gallery-image { max-height: 300px; }
	.lgtc-gallery-3 { grid-auto-rows: minmax(90px, 125px); }
	.lgtc-card-footer { font-size: 11px; }
	.lgtc-archive-wrap { margin: 22px auto; padding: 0 13px; }
	.lgtc-archive-header { padding: 20px 8px 24px; }
	.lgtc-archive-header h1 { font-size: 26px; }
	.lgtc-single-wrap { margin: 20px auto; padding: 0 12px; }
	.lgtc-single-card { padding: 16px; border-radius: 12px; }
	.lgtc-single-title { font-size: 24px; }
	.lgtc-comments { padding: 16px; }
}

/* Read-more treatment for long community posts */
.lgtc-read-more {
	display: inline-block; margin-top: 5px; color: #0877df;
	font-size: 13px; font-weight: 700; text-decoration: none;
}
.lgtc-read-more:hover { color: #005bb5; text-decoration: underline; }
.lgtc-status-text { line-height: 1.75; }

/* Facebook-style inline expand/collapse for long status posts */
.lgtc-status-text { overflow-wrap: anywhere; }
.lgtc-status-preview, .lgtc-status-full { line-height: 1.75; }
.lgtc-status-full[hidden], .lgtc-status-preview[hidden] { display: none !important; }
.lgtc-read-toggle {
 display:inline-block; margin:5px 0 0; padding:0; border:0;
 background:transparent; color:#0877df; font:inherit; font-size:13px;
 font-weight:700; cursor:pointer; text-decoration:none;
}
.lgtc-read-toggle:hover { color:#005bb5; text-decoration:underline; }

/* Keep the expand control inline immediately after the preview ellipsis */
.lgtc-status-preview { display: inline; }
.lgtc-read-toggle { display: inline; margin: 0 0 0 4px; vertical-align: baseline; }

/* Fullscreen image viewer */
body.lgtc-lightbox-open { overflow: hidden; }
.lgtc-lightbox[hidden] { display: none !important; }
.lgtc-lightbox {
	position: fixed; z-index: 999999; inset: 0; display: flex;
	align-items: center; justify-content: center; padding: 56px 72px;
	background: rgba(10, 14, 20, .94);
}
.lgtc-lightbox-figure {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	max-width: min(100%, 1500px); max-height: 100%; margin: 0;
}
.lgtc-lightbox-image {
	display: block; max-width: 100%; max-height: calc(100vh - 115px);
	width: auto; height: auto; object-fit: contain; border-radius: 4px;
	box-shadow: 0 10px 50px rgba(0,0,0,.35);
}
.lgtc-lightbox-counter { margin: 12px 0 0; color: #fff; font-size: 13px; }
.lgtc-lightbox button {
	position: absolute; display: flex; align-items: center; justify-content: center;
	border: 0; color: #fff; background: rgba(255,255,255,.14);
	cursor: pointer; line-height: 1; transition: background .15s ease;
}
.lgtc-lightbox button:hover { background: rgba(255,255,255,.28); }
.lgtc-lightbox-close { top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; font-size: 32px; }
.lgtc-lightbox-prev, .lgtc-lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 10px; font-size: 42px; }
.lgtc-lightbox-prev { left: 18px; }
.lgtc-lightbox-next { right: 18px; }
.lgtc-gallery-item, .lgtc-lightbox-trigger { cursor: zoom-in; }
@media (max-width: 600px) {
	.lgtc-lightbox { padding: 54px 48px; }
	.lgtc-lightbox-image { max-height: calc(100vh - 110px); }
	.lgtc-lightbox-prev, .lgtc-lightbox-next { width: 36px; height: 52px; font-size: 34px; }
	.lgtc-lightbox-prev { left: 5px; }
	.lgtc-lightbox-next { right: 5px; }
	.lgtc-lightbox-close { top: 9px; right: 9px; }
}

/* Infinite scroll feed loader */
.lgtc-infinite-loader {
	display:flex; flex-direction:column; align-items:center; justify-content:center;
	gap:10px; padding:22px 12px 30px; text-align:center;
}
.lgtc-infinite-status { color:#7b8794; font-size:13px; }
.lgtc-load-more-button {
	padding:9px 18px; border:1px solid #d7e3f0; border-radius:8px;
	background:#fff; color:#0877df; font-size:13px; font-weight:700;
	cursor:pointer;
}
.lgtc-load-more-button:hover { background:#f2f7fd; border-color:#a9c9eb; }
.lgtc-load-more-button:disabled { opacity:.6; cursor:wait; }
.lgtc-infinite-end { padding:22px 12px 30px; color:#8a929c; font-size:13px; text-align:center; }
.lgtc-infinite-sentinel { display:block; width:100%; height:1px; }

/* Facebook-inspired social interaction panel */
.lgtc-social { margin-top:14px; border-top:1px solid #edf0f3; color:#656f7b; font-size:14px; }
.lgtc-social-summary { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 2px; }
.lgtc-reaction-summary { display:inline-flex; align-items:center; min-width:0; }
.lgtc-reaction-bubble { display:inline-flex; align-items:center; justify-content:center; width:21px; height:21px; border:2px solid #fff; border-radius:50%; font-size:12px; line-height:1; }
.lgtc-bubble-love { margin-left:-5px; }
.lgtc-reaction-total { margin-left:5px; color:#6b7280; font-size:13px; }
.lgtc-social-summary-right { display:flex; align-items:center; gap:12px; font-size:13px; }
.lgtc-social-summary-right a, .lgtc-share-count { color:#737d89; text-decoration:none; background:none; border:0; padding:0; font:inherit; cursor:pointer; }
.lgtc-social-summary-right a:hover, .lgtc-share-count:hover { text-decoration:underline; }
.lgtc-social-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid #edf0f3; }
.lgtc-action-button { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:7px 5px; border:0; border-radius:6px; background:transparent; color:#656f7b; font:600 14px/1.2 inherit; text-decoration:none !important; cursor:pointer; }
.lgtc-action-button:hover { background:#f4f6f8; color:#374151; }
.lgtc-action-icon { font-size:18px; line-height:1; }
.lgtc-react-button.is-reacted { color:#1877f2; }
.lgtc-react-button.is-love { color:#e34b69; }
.lgtc-reaction-control { position:relative; display:flex; justify-content:center; }
.lgtc-reaction-control > .lgtc-action-button { width:100%; }
.lgtc-reaction-picker { position:absolute; z-index:20; bottom:calc(100% - 2px); left:50%; transform:translateX(-50%); display:flex; gap:7px; padding:9px 12px; border:1px solid #e7ebf0; border-radius:30px; background:#fff; box-shadow:0 5px 22px rgba(0,0,0,.16); }
.lgtc-reaction-picker[hidden] { display:none !important; }
.lgtc-reaction-picker button { display:flex; align-items:center; justify-content:center; width:35px; height:35px; border:0; border-radius:50%; background:#f3f5f7; font-size:21px; cursor:pointer; transition:transform .12s ease; }
.lgtc-reaction-picker button:hover { transform:scale(1.22); }
.lgtc-social-feedback { min-height:0; padding:0 3px; color:#6b7280; font-size:12px; }
.lgtc-social-feedback:not(:empty) { padding:5px 3px 8px; }
.lgtc-social.is-updating { opacity:.7; pointer-events:none; }
@media(max-width:480px){
	.lgtc-social-summary-right { gap:8px; font-size:12px; }
	.lgtc-action-button { gap:5px; font-size:13px; }
	.lgtc-action-icon { font-size:17px; }
}

/* Immediate Like button with a separate reaction selector */
.lgtc-reaction-control { align-items:stretch; }
.lgtc-reaction-control > .lgtc-react-button { flex:1; width:auto; }
.lgtc-reaction-more {
	width:25px; padding:0 5px 0 0; border:0; border-radius:6px;
	background:transparent; color:#8a929c; font-size:15px; cursor:pointer;
}
.lgtc-reaction-more:hover { color:#1877f2; background:#f4f6f8; }
.lgtc-action-button { font-family:inherit; font-weight:600; line-height:1.2; }

/* v1.1.1: compact Facebook-style action row with counts inline */
.lgtc-social-summary { display:none !important; }
.lgtc-social { margin-top:14px; }
.lgtc-social-actions { border-top:1px solid #edf0f3; }
.lgtc-action-count {
	display:inline-block; margin-left:2px; color:#7b8490;
	font-size:13px; font-weight:400; font-variant-numeric:tabular-nums;
}
.lgtc-react-button.is-reacted .lgtc-action-count { color:inherit; }
.lgtc-reaction-control { min-width:0; }
.lgtc-action-button { white-space:nowrap; }
@media(max-width:480px) {
	.lgtc-action-count { font-size:12px; }
}

/* v1.1.2: reaction picker opens from the Like action itself */
.lgtc-reaction-control { position:relative; display:flex; justify-content:center; min-width:0; }
.lgtc-reaction-control > .lgtc-react-button { width:100%; flex:1; }
.lgtc-reaction-more { display:none !important; }
.lgtc-reaction-picker {
	bottom:calc(100% + 7px);
	left:50%;
	transform:translateX(-50%);
	white-space:nowrap;
}
.lgtc-react-button[aria-expanded="true"] { background:#f1f6fd; }

/* Facebook-like inline comment composer */
.lgtc-comments-panel {
	margin-top:8px; padding:13px 2px 3px; border-top:1px solid #edf0f3;
}
.lgtc-comments-loading,.lgtc-comment-error,.lgtc-no-comments,.lgtc-comment-login-note {
	padding:10px 4px; color:#7b8490; font-size:13px;
}
.lgtc-comments-list { display:flex; flex-direction:column; gap:10px; margin:2px 0 13px; }
.lgtc-comment-item { display:flex; align-items:flex-start; gap:8px; }
.lgtc-comment-avatar {
	flex:0 0 30px; width:30px; height:30px; display:flex; align-items:center; justify-content:center;
	border-radius:50%; background:#e8f1ff; color:#1877f2; font-size:12px; font-weight:700;
}
.lgtc-comment-bubble {
	max-width:calc(100% - 38px); padding:8px 12px; border-radius:14px; background:#f0f2f5;
	color:#242a31; font-size:13px; line-height:1.5; overflow-wrap:anywhere;
}
.lgtc-comment-bubble strong { display:block; margin-bottom:2px; font-size:12px; }
.lgtc-comment-bubble small { display:block; margin-top:4px; color:#8a929c; font-size:11px; }
.lgtc-comment-guest-fields { display:flex; gap:8px; margin-bottom:8px; }
.lgtc-comment-guest-fields input {
	width:50%; min-width:0; padding:9px 11px; border:1px solid #e1e5ea; border-radius:18px; font:inherit; font-size:13px;
}
.lgtc-comment-compose { display:flex; align-items:flex-end; gap:8px; }
.lgtc-comment-compose textarea {
	flex:1; min-width:0; resize:vertical; min-height:40px; max-height:120px; padding:10px 13px;
	border:1px solid #e1e5ea; border-radius:18px; background:#f7f8fa; font:inherit; font-size:13px;
}
.lgtc-comment-compose button {
	flex:0 0 auto; padding:10px 16px; border:0; border-radius:18px; background:#1877f2;
	color:#fff; font-size:13px; font-weight:700; cursor:pointer;
}
.lgtc-comment-compose button:disabled { opacity:.6; cursor:wait; }
.lgtc-comment-form-message { padding:5px 4px 0; color:#6b7280; font-size:12px; }
.lgtc-comments-toggle[aria-expanded="true"] { color:#1877f2; background:#f1f6fd; }
@media(max-width:480px) {
	.lgtc-comment-guest-fields { flex-direction:column; }
	.lgtc-comment-guest-fields input { width:100%; box-sizing:border-box; }
}

/* v1.1.4: infinite scroll comment loading indicator */
.lgtc-comments-loader {
	padding:11px 6px; text-align:center; color:#89929e; font-size:12px;
}
.lgtc-comments-loader:empty { display:none; }

/* v1.1.6: Facebook-style vertical post + comments modal */
body.lgtc-comments-modal-open { overflow:hidden; }
.lgtc-comments-modal {
	position:fixed; z-index:1000000; inset:0; display:flex; align-items:center; justify-content:center;
	padding:24px; opacity:0; visibility:hidden; transition:opacity .18s ease,visibility .18s ease;
}
.lgtc-comments-modal.is-open { opacity:1; visibility:visible; }
.lgtc-comments-modal-backdrop { position:absolute; inset:0; background:rgba(12,18,28,.68); }
.lgtc-comments-modal-window {
	position:relative; z-index:1; display:flex; flex-direction:column; width:min(780px,96vw);
	height:min(860px,92vh); background:#fff; border-radius:14px; overflow:hidden;
	box-shadow:0 20px 70px rgba(0,0,0,.28); transform:translateY(10px); transition:transform .18s ease;
}
.lgtc-comments-modal.is-open .lgtc-comments-modal-window { transform:translateY(0); }
.lgtc-comments-modal-header {
	flex:0 0 52px; display:flex; align-items:center; justify-content:center; position:relative;
	border-bottom:1px solid #e9edf2; color:#242a31; font-size:16px;
}
.lgtc-comments-modal-close {
	position:absolute; right:12px; top:7px; width:38px; height:38px; border:0; border-radius:50%;
	background:#eef0f3; color:#39424e; font-size:27px; line-height:1; cursor:pointer;
}
/* One continuous vertical stream: post first, comments immediately below */
.lgtc-comments-modal-columns { display:flex; flex-direction:column; min-height:0; flex:1; overflow-y:auto; }
.lgtc-comments-post { flex:0 0 auto; min-width:0; overflow:visible; padding:18px 22px; border:0; border-bottom:1px solid #edf0f3; }
.lgtc-comments-post .lgtc-card-top { margin-bottom:14px; }
/* The modal JS removes the preview and unhides the full status copy. */
.lgtc-comments-post .lgtc-status-full[hidden] { display:none !important; }
.lgtc-comments-post .lgtc-read-toggle { display:none; }
.lgtc-comments-post .lgtc-gallery { margin-top:14px; }
.lgtc-comments-post .lgtc-gallery img, .lgtc-comments-post .lgtc-featured-image img { display:block; max-width:100%; height:auto; margin-left:auto; margin-right:auto; }
.lgtc-comments-side { min-width:0; display:flex; flex:0 0 auto; flex-direction:column; overflow:visible; }
.lgtc-comments-side-title { flex:0 0 auto; padding:15px 22px 10px; border-bottom:1px solid #edf0f3; font-size:14px; font-weight:700; color:#303943; }
.lgtc-comments-modal-body { min-height:0; padding:10px 22px 16px; overflow:visible; }
.lgtc-comments-modal-body .lgtc-comments-panel { display:block !important; margin:0; padding:0; border:0; }
.lgtc-comments-modal-body .lgtc-comments-list { margin-bottom:14px; }
.lgtc-comments-modal-body .lgtc-comment-form { position:sticky; bottom:0; padding:12px 0 8px; background:#fff; border-top:1px solid #edf0f3; }
.lgtc-comments-modal-body .lgtc-comment-compose textarea { max-height:100px; }
.lgtc-comments-modal-body .lgtc-comments-loader { min-height:24px; }
@media(max-width:700px) {
	.lgtc-comments-modal { padding:0; }
	.lgtc-comments-modal-window { width:100%; height:100%; max-height:100%; border-radius:0; }
	.lgtc-comments-post { padding:14px 15px; }
	.lgtc-comments-side-title { padding:14px 15px 10px; }
	.lgtc-comments-modal-body { padding:10px 15px 16px; }
}


/* v1.1.7: working comment composer and threaded replies */
.lgtc-comment-form { display:block; margin-top:14px; padding-top:12px; border-top:1px solid #edf0f3; }
.lgtc-comment-form textarea { display:block; width:100%; min-height:42px; resize:vertical; border:1px solid #e1e6ec; border-radius:12px; padding:10px 12px; font:inherit; font-size:14px; box-sizing:border-box; }
.lgtc-comment-guest-fields { display:flex; gap:8px; margin-bottom:8px; }
.lgtc-comment-guest-fields input { min-width:0; width:50%; border:1px solid #e1e6ec; border-radius:9px; padding:9px 10px; font:inherit; }
.lgtc-comment-form-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; }
.lgtc-comment-form-bottom button { border:0; border-radius:8px; background:#1877f2; color:#fff; padding:8px 18px; font-weight:700; cursor:pointer; }
.lgtc-comment-form-bottom button:disabled { opacity:.6; cursor:wait; }
.lgtc-comment-form-message { font-size:12px; color:#687789; }
.lgtc-comment-body { min-width:0; flex:1; }
.lgtc-comment-tools { display:flex; align-items:center; gap:12px; margin:4px 0 8px 10px; }
.lgtc-comment-tools small { color:#89929d; font-size:11px; }
.lgtc-reply-button,.lgtc-cancel-reply { border:0; padding:0; background:transparent; color:#1877f2; font-size:12px; font-weight:700; cursor:pointer; }
.lgtc-comment-replies { margin:8px 0 0 18px; padding-left:12px; border-left:2px solid #edf0f3; }
.lgtc-replying-to { display:flex; align-items:center; gap:5px; margin:0 0 8px; font-size:12px; color:#687789; }
.lgtc-replying-to[hidden] { display:none !important; }
.lgtc-comment-item { display:flex; gap:9px; margin-bottom:12px; }

/* v1.1.8: comment timestamp sits beside commenter name; post date stays unchanged */
.lgtc-comment-head { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; margin-bottom:2px; }
.lgtc-comment-bubble .lgtc-comment-head strong { display:inline; margin:0; }
.lgtc-comment-bubble .lgtc-comment-head .lgtc-comment-time { display:inline; margin:0; color:#89929d; font-size:11px; font-weight:400; }
.lgtc-comment-tools { margin-top:3px; }

/* v1.2.2: compact community intro header */
.lgtc-archive-header p { line-height: 1.65; }
@media (max-width: 600px) {
  .lgtc-archive-header { padding: 16px 12px 18px; }
  .lgtc-archive-header h1 { font-size: 26px; }
  .lgtc-archive-header p { font-size: 13px; }
}


/* v1.2.3: photographic community hero with HTML text overlay */
.lgtc-archive-header.lgtc-community-hero {
	position:relative;
	width:100%;
	max-width:1066px;
	margin:0 auto 16px;
	min-height:270px;
	padding:0;
	display:flex;
	align-items:center;
	text-align:left;
	overflow:hidden;
	border-radius:14px;
	background-color:#08264a;
	background-image:
		linear-gradient(90deg, rgba(5,31,65,.99) 0%, rgba(7,43,83,.95) 34%, rgba(7,43,83,.68) 57%, rgba(7,43,83,.12) 100%),
		url('../images/community-hero-bg.webp');
	background-size:cover;
	background-position:center center;
}
.lgtc-community-hero-inner {
	width:100%;
	margin:0;
	padding:34px 34px 36px;
	box-sizing:border-box;
	position:relative;
	z-index:1;
	color:#fff;
}
.lgtc-community-hero .lgtc-eyebrow {
	display:inline-flex;
	align-items:center;
	gap:7px;
	padding:7px 14px;
	border-radius:30px;
	background:rgba(0,119,255,.82);
	color:#fff;
	font-size:11px;
	letter-spacing:1.4px;
	font-weight:800;
}
.lgtc-community-hero h1 {
	margin:14px 0 13px;
	max-width:760px;
	color:#fff;
	font-size:clamp(32px,4vw,48px);
	line-height:1.12;
	font-weight:800;
	letter-spacing:-.7px;
}
.lgtc-community-hero h1 span { color:#25c8ee; }
.lgtc-community-hero .lgtc-hero-topics {
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px 12px;
	color:#fff;
	font-size:15px;
	font-weight:650;
}
.lgtc-community-hero .lgtc-hero-topics i {
	color:rgba(255,255,255,.65);
	font-style:normal;
}
.lgtc-community-hero p {
	margin:12px 0 0;
	color:rgba(255,255,255,.9);
	font-size:15px;
	line-height:1.6;
}
@media(max-width:700px) {
	.lgtc-archive-header.lgtc-community-hero {
		width:100%;
		min-height:245px;
		border-radius:11px;
		background-image:
			linear-gradient(90deg, rgba(5,31,65,.97) 0%, rgba(7,43,83,.91) 70%, rgba(7,43,83,.68) 100%),
			url('../images/community-hero-bg.webp');
		background-size:100% 100%, auto 100%;
		background-position:center, right center;
		background-repeat:no-repeat;
	}
	.lgtc-community-hero-inner { width:100%; padding:26px 20px 28px; }
	.lgtc-community-hero h1 { font-size:30px; max-width:100%; }
	.lgtc-community-hero .lgtc-hero-topics { display:grid; grid-template-columns:1fr; gap:8px; font-size:13px; }
	.lgtc-community-hero .lgtc-hero-topics i { display:none; }
	.lgtc-community-hero p { font-size:13px; max-width:340px; }
}

/* v1.2.4 cache-busted hero alignment */
.lgtc-archive-header.lgtc-community-hero,
.lgtc-archive-header.lgtc-community-hero .lgtc-community-hero-inner {
  text-align: left !important;
}
.lgtc-archive-header.lgtc-community-hero .lgtc-community-hero-inner {
  margin-left: max(24px, calc((100% - 1180px) / 2));
  margin-right: auto;
}

/* v1.2.5: hero stays inside the community content column */
.lgtc-archive-header.lgtc-community-hero { box-sizing:border-box; }
.lgtc-archive-header.lgtc-community-hero .lgtc-community-hero-inner {
  text-align:left !important;
  margin:0;
}

/* v1.2.6: align hero with feed/sidebar and show the complete background image */
.lgtc-archive-header.lgtc-community-hero {
  max-width:1066px;
  background-size:100% 100%, auto 100%;
  background-position:center, right center;
  background-repeat:no-repeat;
}
@media(max-width:700px) {
  .lgtc-archive-header.lgtc-community-hero {
    max-width:100%;
    background-size:100% 100%, auto 100%;
    background-position:center, right center;
    background-repeat:no-repeat;
  }
}

/* v1.2.7: soften text-side overlay and keep the image side bright */
.lgtc-archive-header.lgtc-community-hero {
  background-image:
    linear-gradient(90deg,
      rgba(5,31,65,.78) 0%,
      rgba(7,43,83,.62) 38%,
      rgba(7,43,83,.30) 57%,
      rgba(7,43,83,0) 70%),
    url('../images/community-hero-bg.webp') !important;
}
.lgtc-community-hero h1 {
  display:flex;
  align-items:center;
  gap:12px;
}
@media(max-width:700px) {
  .lgtc-archive-header.lgtc-community-hero {
    background-image:
      linear-gradient(90deg,
        rgba(5,31,65,.82) 0%,
        rgba(7,43,83,.65) 52%,
        rgba(7,43,83,.22) 100%),
      url('../images/community-hero-bg.webp') !important;
  }
  .lgtc-community-hero h1 { display:block; }
}


/* v1.2.8: very light navy tint; preserve the background photo */
.lgtc-archive-header.lgtc-community-hero {
  background-image:
    linear-gradient(90deg,
      rgba(5,31,65,.30) 0%,
      rgba(7,43,83,.20) 38%,
      rgba(7,43,83,.08) 58%,
      rgba(7,43,83,0) 72%),
    url('../images/community-hero-bg.webp') !important;
}
@media(max-width:700px) {
  .lgtc-archive-header.lgtc-community-hero {
    background-image:
      linear-gradient(90deg,
        rgba(5,31,65,.42) 0%,
        rgba(7,43,83,.25) 55%,
        rgba(7,43,83,.08) 100%),
      url('../images/community-hero-bg.webp') !important;
  }
}


/* v1.2.9: remove the solid navy block; use only a soft transparent tint */
.lgtc-archive-header.lgtc-community-hero {
  background-image:
    linear-gradient(90deg,
      rgba(5,31,65,.16) 0%,
      rgba(7,43,83,.10) 38%,
      rgba(7,43,83,.035) 62%,
      rgba(7,43,83,0) 78%),
    url('../images/community-hero-bg.webp') !important;
}
@media(max-width:700px) {
  .lgtc-archive-header.lgtc-community-hero {
    background-image:
      linear-gradient(90deg,
        rgba(5,31,65,.24) 0%,
        rgba(7,43,83,.12) 58%,
        rgba(7,43,83,.025) 100%),
      url('../images/community-hero-bg.webp') !important;
  }
}


/* v1.2.10: use a clean photo-only hero background (no baked-in navy panel) */
.lgtc-archive-header.lgtc-community-hero {
  background-color:#244766 !important;
  background-image:url('../images/community-hero-bg.webp') !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.lgtc-community-hero .lgtc-community-hero-inner {
  text-shadow:0 1px 5px rgba(0,24,48,.34);
}
.lgtc-community-hero .lgtc-eyebrow {
  text-shadow:none;
}
@media(max-width:700px) {
  .lgtc-archive-header.lgtc-community-hero {
    background-size:cover !important;
    background-position:center center !important;
  }
}


/* v1.2.26: keep the complete community sidebar alongside the feed while scrolling.
   Apply sticky to the aside wrapper (not each widget) so multiple widgets move together. */
.lgtc-archive-wrap,
.lgtc-archive-layout,
.lgtc-archive-list { overflow:visible !important; }
.lgtc-archive-aside {
  min-width:0;
  align-self:start;
  position:sticky;
  top:24px;
  height:max-content;
  z-index:2;
}
.lgtc-archive-aside .lgtc-widget {
  margin:0 0 18px;
  padding:18px;
  background:#f7f9fc;
  border:1px solid #edf0f4;
  border-radius:13px;
  position:relative;
  top:auto;
}
.lgtc-archive-aside .lgtc-widget + .lgtc-widget { position:relative; top:auto; }
.lgtc-archive-aside .lgtc-widget .widget-title {
  margin:0 0 10px;
  font-size:17px;
  line-height:1.4;
  font-weight:700;
}
.lgtc-archive-aside .lgtc-widget img { max-width:100%; height:auto; }
.lgtc-archive-aside .lgtc-widget ul { margin:0; padding-left:18px; }
.lgtc-archive-aside .lgtc-widget p:last-child { margin-bottom:0; }
/* Soft, uniform translucent overlay over the whole hero photo */
.lgtc-archive-header.lgtc-community-hero {
  background-image:
    linear-gradient(rgba(8,28,52,.17), rgba(8,28,52,.17)),
    url('../images/community-hero-bg.webp') !important;
}


/* v1.2.12: keep the popup photo gallery identical to the feed card gallery.
   The generic popup img rule must not override the gallery's fixed tile sizing. */
.lgtc-comments-post .lgtc-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:minmax(150px,220px);
  gap:6px;
  overflow:hidden;
  border-radius:11px;
  background:#f3f5f7;
}
.lgtc-comments-post .lgtc-gallery-1 {
  grid-template-columns:1fr;
  grid-auto-rows:auto;
}
.lgtc-comments-post .lgtc-gallery-1 .lgtc-gallery-item {
  max-height:430px;
}
.lgtc-comments-post .lgtc-gallery-1 .lgtc-gallery-image {
  width:100%;
  height:auto;
  max-height:430px;
  object-fit:contain;
}
.lgtc-comments-post .lgtc-gallery-2 {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.lgtc-comments-post .lgtc-gallery-3 .lgtc-gallery-item:first-child {
  grid-row:span 2;
}
.lgtc-comments-post .lgtc-gallery-3 {
  grid-auto-rows:minmax(110px,170px);
}
.lgtc-comments-post .lgtc-gallery-item {
  display:block;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:#f1f3f5;
  position:relative;
}
.lgtc-comments-post .lgtc-gallery .lgtc-gallery-image {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:cover;
  margin:0;
}
.lgtc-comments-post .lgtc-gallery-1 .lgtc-gallery-image {
  height:auto;
  max-height:430px;
  object-fit:contain;
}
@media(max-width:600px) {
  .lgtc-comments-post .lgtc-gallery {
    grid-auto-rows:minmax(105px,160px);
    gap:4px;
  }
  .lgtc-comments-post .lgtc-gallery-1 {
    grid-auto-rows:auto;
  }
  .lgtc-comments-post .lgtc-gallery-1 .lgtc-gallery-item,
  .lgtc-comments-post .lgtc-gallery-1 .lgtc-gallery-image {
    max-height:300px;
  }
  .lgtc-comments-post .lgtc-gallery-3 {
    grid-auto-rows:minmax(90px,125px);
  }
}


/* v1.2.13: detail-page comments use the same visual components as the popup */
.lgtc-single-card .lgtc-comments-side-title {
  margin-top:18px;
  padding:15px 0 10px;
  border-top:1px solid #edf0f3;
  border-bottom:1px solid #edf0f3;
  font-size:15px;
  font-weight:700;
  color:#303943;
}
.lgtc-single-card .lgtc-comments-modal-body {
  min-height:0;
  padding:12px 0 4px;
  overflow:visible;
}
.lgtc-single-card .lgtc-detail-comments-panel {
  display:block !important;
  margin:0;
  padding:0;
  border:0;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comments-list {
  margin-bottom:14px;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form {
  position:relative;
  bottom:auto;
  padding:14px 0 4px;
  background:#fff;
  border-top:1px solid #edf0f3;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-guest-fields {
  display:flex;
  gap:8px;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-guest-fields input,
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form textarea {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #dce3eb;
  border-radius:10px;
  padding:11px 12px;
  font:inherit;
  font-size:14px;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form textarea {
  min-height:74px;
  resize:vertical;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:8px;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form-bottom button {
  border:0;
  border-radius:9px;
  padding:10px 20px;
  background:#1877f2;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-form-bottom button:disabled {
  opacity:.6;
  cursor:wait;
}
@media(max-width:600px) {
  .lgtc-single-card .lgtc-detail-comments-panel .lgtc-comment-guest-fields {
    flex-direction:column;
  }
}


/* v1.2.14: homepage community shortcode section */
.lgtc-shortcode-feed { width:100%; max-width:100%; margin:24px 0; }
.lgtc-shortcode-feed .lgtc-section-heading { margin-bottom:14px; }
.lgtc-shortcode-feed .lgtc-card { margin-bottom:14px; }
.lgtc-shortcode-feed .lgtc-card:last-child { margin-bottom:0; }
.lgtc-shortcode-feed .lgtc-card-content { line-height:1.65; }
.lgtc-shortcode-feed .lgtc-card-title { font-size:18px; }
@media(max-width:600px) {
  .lgtc-shortcode-feed { margin:18px 0; }
  .lgtc-shortcode-feed .lgtc-section-heading h2 { font-size:20px; }
}


/* v1.2.17: normalize Community feed inside WPBakery / Yozi containers.
   Keep all rules scoped to the plugin so other theme components are unaffected. */
.lgtc-shortcode-feed,
.lgtc-shortcode-feed * {
	box-sizing: border-box;
}
.lgtc-shortcode-feed {
	display: block;
	width: 100%;
	max-width: 100%;
	color: #252a31;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.lgtc-shortcode-feed .lgtc-section-heading h2 {
	font-family: inherit;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 750;
	letter-spacing: normal;
	text-transform: none;
}
.lgtc-shortcode-feed .lgtc-section-heading p {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
	text-transform: none;
}
.lgtc-shortcode-feed .lgtc-card {
	display: block;
	width: 100%;
	max-width: 100%;
	float: none;
	clear: both;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
}
.lgtc-shortcode-feed .lgtc-card-top,
.lgtc-shortcode-feed .lgtc-author,
.lgtc-shortcode-feed .lgtc-social-actions,
.lgtc-shortcode-feed .lgtc-action-button {
	float: none;
}
.lgtc-shortcode-feed .lgtc-card-content {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.75;
	font-weight: 400;
	text-transform: none;
}
.lgtc-shortcode-feed .lgtc-card-content p {
	margin: 0 0 10px;
	font-size: inherit;
	line-height: inherit;
}
.lgtc-shortcode-feed .lgtc-gallery,
.lgtc-shortcode-feed .lgtc-featured-image {
	width: 100%;
	max-width: 100%;
}
.lgtc-shortcode-feed .lgtc-gallery img,
.lgtc-shortcode-feed .lgtc-featured-image img {
	margin: 0;
	border: 0;
	padding: 0;
}
.lgtc-shortcode-feed .lgtc-social {
	width: 100%;
	max-width: 100%;
}
.lgtc-shortcode-feed .lgtc-action-button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}
.lgtc-shortcode-feed a {
	text-decoration: none;
}


/* v1.2.19: refined homepage community heading to match Laptop Gia Tho styling. */
.lgtc-shortcode-feed .lgtc-home-section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 16px;
  padding:0 0 15px;
  border-bottom:1px solid #e8edf3;
}
.lgtc-shortcode-feed .lgtc-heading-main {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.lgtc-shortcode-feed .lgtc-heading-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:12px;
  color:#1677e8;
  background:#eaf3ff;
}
.lgtc-shortcode-feed .lgtc-heading-icon svg {
  display:block;
  width:22px;
  height:22px;
}
.lgtc-shortcode-feed .lgtc-heading-copy h2 {
  margin:0 0 3px;
  color:#252a31;
  font-size:21px;
  line-height:1.3;
  font-weight:750;
  letter-spacing:-.25px;
}
.lgtc-shortcode-feed .lgtc-heading-copy p {
  margin:0;
  color:#77808b;
  font-size:13px;
  line-height:1.5;
}
.lgtc-shortcode-feed .lgtc-home-all-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-height:40px;
  padding:0 16px;
  border:1px solid #d8e8ff;
  border-radius:999px;
  background:#eaf3ff;
  color:#1677e8;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.lgtc-shortcode-feed .lgtc-home-all-link .lgtc-bottom-more-arrow {
  display:inline-block;
  font-size:17px;
  line-height:1;
  transition:transform .2s ease;
}
.lgtc-shortcode-feed .lgtc-home-all-link .lgtc-bottom-more-emoji {
  display:inline-block;
  font-size:14px;
  line-height:1;
}
.lgtc-shortcode-feed .lgtc-home-all-link:hover {
  color:#fff;
  background:#1677e8;
  border-color:#1677e8;
  box-shadow:0 4px 12px rgba(22,119,232,.18);
  transform:translateY(-1px);
}
.lgtc-shortcode-feed .lgtc-home-all-link:hover .lgtc-bottom-more-arrow { transform:translateX(3px); }
@media(max-width:600px) {
  .lgtc-shortcode-feed .lgtc-home-section-heading { align-items:flex-start; gap:12px; }
  .lgtc-shortcode-feed .lgtc-heading-main { gap:9px; }
  .lgtc-shortcode-feed .lgtc-heading-icon { flex-basis:38px; width:38px; height:38px; border-radius:11px; }
  .lgtc-shortcode-feed .lgtc-heading-copy h2 { font-size:18px; }
  .lgtc-shortcode-feed .lgtc-heading-copy p { font-size:12px; }
  .lgtc-shortcode-feed .lgtc-home-all-link { min-height:36px; padding:0 12px; font-size:12px; }
}


/* v1.2.20: bottom CTA for the homepage community posts shortcode. */
.lgtc-shortcode-feed .lgtc-shortcode-more {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:9px;
  margin:18px 0 4px;
}
.lgtc-shortcode-feed .lgtc-shortcode-more-note {
  margin:0;
  color:#858d98;
  font-size:13px;
  line-height:1.45;
  text-align:center;
  font-weight:400;
}
.lgtc-shortcode-feed .lgtc-bottom-more-link {
  min-height:40px;
  padding:0 18px;
}
@media(max-width:600px) {
  .lgtc-shortcode-feed .lgtc-shortcode-more { margin-top:14px; gap:7px; }
  .lgtc-shortcode-feed .lgtc-shortcode-more-note { font-size:12px; }
  .lgtc-shortcode-feed .lgtc-bottom-more-link { min-height:38px; padding:0 16px; }
}


/* v1.2.24: independent Community archive pinned-post marker */
.lgtc-card-community-pinned { position:relative; }
.lgtc-community-pin-badge {
  position:absolute; top:14px; right:16px; z-index:2;
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:#eaf3ff; border:1px solid #d6e8fb;
  color:#1677e8; font-size:17px; line-height:1;
  box-shadow:0 2px 8px rgba(22,119,232,.10);
}
@media(max-width:600px){ .lgtc-community-pin-badge{top:10px;right:10px;width:30px;height:30px;font-size:15px;} }
