/* [ctlive_instagram]: the Leadville feed layout (Smash Balloon grid, imported
   settings 2026-10-04): header with avatar, name, post count and bio plus the
   Follow button; 4 columns, 3 on a tablet, 2 on a phone; 4px tile padding;
   portrait 3:4 tiles; 12 posts on desktop, 6 on a phone; Load More.
   Colours come from custom properties so each site sets its own. */
.ltf-ct-ig {
	--ltf-ig-follow-bg: #c2a14d;
	--ltf-ig-follow-text: #000000;
	--ltf-ig-button-bg: #231f20;
	--ltf-ig-button-text: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ltf-ct-ig__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ltf-ct-ig__account { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; flex: 1 1 260px; }
.ltf-ct-ig__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; }
.ltf-ct-ig__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ltf-ct-ig__handle { font-weight: 700; font-size: 16px; }
.ltf-ct-ig__bio { font-size: 13px; line-height: 1.4; opacity: .8; }
.ltf-ct-ig__count { font-weight: 700; margin-right: 6px; }
.ltf-ct-ig__follow {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 16px; border-radius: 4px; font-size: 13px; font-weight: 700;
	background: var(--ltf-ig-follow-bg); color: var(--ltf-ig-follow-text) !important; text-decoration: none !important;
}
.ltf-ct-ig__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1024px) { .ltf-ct-ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ltf-ct-ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ltf-ct-ig__tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #e9e7e9; }
.ltf-ct-ig__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.ltf-ct-ig__tile:hover img { opacity: .85; }
.ltf-ct-ig__tile.is-more { display: none; }
.ltf-ct-ig.is-open-more .ltf-ct-ig__tile.is-more { display: block; }
@media (max-width: 480px) {
	.ltf-ct-ig__tile.is-desktop { display: none; }
	.ltf-ct-ig.is-open-desktop .ltf-ct-ig__tile.is-desktop { display: block; }
}
.ltf-ct-ig__badge { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 14px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ltf-ct-ig__badge--multi { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 2px; box-shadow: -3px 3px 0 -1px rgba(255,255,255,.9); }
.ltf-ct-ig__footer { display: flex; justify-content: center; }
.ltf-ct-ig__more {
	padding: 10px 22px; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 700;
	background: var(--ltf-ig-button-bg); color: var(--ltf-ig-button-text);
}
.ltf-ct-ig__more[hidden] { display: none; }

/* Stories ring on the avatar (gradient like Instagram; grey once all are seen). */
.ltf-ct-ig__ring { flex: 0 0 auto; padding: 3px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); line-height: 0; }
.ltf-ct-ig__ring.is-seen { background: #c7c7c7; }
.ltf-ct-ig__ring .ltf-ct-ig__avatar { border: 3px solid #fff; display: block; }
.ltf-ct-ig__header { justify-content: flex-start; }
.ltf-ct-ig__follow { margin-left: auto; }

/* Pop-up viewer. */
html.ltf-ct-igv-open { overflow: hidden; }
.ltf-ct-igv { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.ltf-ct-igv__stage { max-width: 100%; max-height: 100%; display: flex; }
.ltf-ct-igv__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.ltf-ct-igv__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #000; font-size: 28px; line-height: 1; cursor: pointer; }
.ltf-ct-igv__nav--prev { left: 12px; }
.ltf-ct-igv__nav--next { right: 12px; }
.ltf-ct-igv__nav[hidden] { display: none; }
.ltf-ct-igv__post { display: flex; background: #fff; color: #111; max-width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 6px; overflow: hidden; }
.ltf-ct-igv__mediawrap { position: relative; flex: 1 1 auto; background: #000; display: flex; align-items: center; justify-content: center; min-width: 0; }
.ltf-ct-igv__media { display: block; max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.ltf-ct-igv__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.ltf-ct-igv__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.ltf-ct-igv__dots span.is-on { background: #fff; }
.ltf-ct-igv__fallback { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ltf-ct-igv__side { flex: 0 0 320px; display: flex; flex-direction: column; border-left: 1px solid #eee; }
.ltf-ct-igv__head, .ltf-ct-igv__storyhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ltf-ct-igv__head { border-bottom: 1px solid #eee; }
.ltf-ct-igv__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ltf-ct-igv__caption { flex: 1 1 auto; overflow-y: auto; padding: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.ltf-ct-igv__foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid #eee; font-size: 12px; color: #666; }
.ltf-ct-igv__foot a { color: #111; font-weight: 700; }
@media (max-width: 760px) {
	.ltf-ct-igv { padding: 0; }
	.ltf-ct-igv__post { flex-direction: column; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
	.ltf-ct-igv__media { max-height: 60vh; }
	.ltf-ct-igv__side { flex: 1 1 auto; border-left: 0; min-height: 0; }
	.ltf-ct-igv__nav { top: 30vh; }
}
/* Stories. */
.ltf-ct-igv__story { position: relative; width: min(420px, 100vw); height: min(746px, 100vh); background: #000; border-radius: 8px; overflow: hidden; cursor: pointer; }
.ltf-ct-igv__story .ltf-ct-igv__media { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.ltf-ct-igv__bars { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; gap: 3px; }
.ltf-ct-igv__bars span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.ltf-ct-igv__bars span i { display: block; height: 100%; width: 0; background: #fff; }
.ltf-ct-igv__bars span.is-done i { width: 100%; }
.ltf-ct-igv__bars span.is-now i { animation: ltf-igv-fill linear forwards; animation-duration: 5s; }
@keyframes ltf-igv-fill { from { width: 0; } to { width: 100%; } }
.ltf-ct-igv__storyhead { position: absolute; top: 16px; left: 0; z-index: 2; color: #fff; }
@media (max-width: 760px) { .ltf-ct-igv__story { border-radius: 0; width: 100vw; height: 100vh; } }

/* Two accounts (0.33.0, side by side 0.33.3): one row, the event account on
   the left; each side has its avatar or Stories ring, handle, post count and a
   Follow button under the name. Each tile names the account it came from. */
.ltf-ct-ig__accounts { display: flex; flex-direction: row; gap: 12px; }
.ltf-ct-ig__header--compact { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 10px; }
.ltf-ct-ig__header--compact .ltf-ct-ig__avatar { width: 48px; height: 48px; flex-basis: 48px; }
.ltf-ct-ig__avatarlink { flex: 0 0 auto; line-height: 0; }
.ltf-ct-ig__header--compact .ltf-ct-ig__who { min-width: 0; align-items: flex-start; }
.ltf-ct-ig__header--compact .ltf-ct-ig__handle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.ltf-ct-ig__header--compact .ltf-ct-ig__follow { margin: 4px 0 0; padding: 5px 12px; font-size: 12px; }
@media (max-width: 480px) {
	.ltf-ct-ig__accounts { gap: 8px; }
	.ltf-ct-ig__header--compact { gap: 8px; }
	.ltf-ct-ig__header--compact .ltf-ct-ig__avatar { width: 40px; height: 40px; flex-basis: 40px; }
	.ltf-ct-ig__header--compact .ltf-ct-ig__handle { font-size: 13px; }
	.ltf-ct-ig__header--compact .ltf-ct-ig__bio { font-size: 11px; }
}
.ltf-ct-ig__from {
	position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px;
	border-radius: 999px; background: rgba(0,0,0,.6); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltf-ct-ig__from img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: 0 0 18px; }
