.bb-rl-forums-container-inner {
	max-width: 848px;
	margin: 0 auto;
}

.bbpress {

	.bb-rl-secondary-header {

		.select2-container .bb-rl-select2-dropdown {
			margin-left: -54px;

			.select2-results__option[aria-selected="true"] {
				color: var(--bb-rl-text-color);
			}
		}
	}
}

.bb-rl-forums-list {
	display: flex;
	flex-flow: row wrap;
	gap: var(--bb-rl-space-200);
	list-style: none;
	padding: 0;

	.bb-rl-forum-list-item {
		border: 1px solid var(--bb-rl-border-secondary-color);
		background-color: var(--bb-rl-background-color);
		border-radius: var(--bb-rl-radius-lg);
		min-width: 344px;
		width: calc(33.3333% - var(--bb-rl-space-200));
	}

	.bb-rl-forum-cover img {
		border-radius: var(--bb-rl-radius-lg) var(--bb-rl-radius-lg) 0 0;
		height: 120px !important; // Override inline styles on images
		width: 100% !important; // Override inline styles on images
		max-width: 100% !important; // Override inline styles on images
		object-fit: cover;
	}

	.bb-rl-card-forum-details {
		padding: var(--bb-rl-space-200) var(--bb-rl-space-200) var(--bb-rl-space-300);

		h3 {

			@include bb-rl-base-heading;
			margin-bottom: var(--bb-rl-space-100);

			a {
				color: var(--bb-rl-text-color);

				&:hover {
					text-decoration: underline;
				}
			}
		}

		p,
		.bb-forum-content {
			font-size: var(--bb-rl-font-size-sm);
			line-height: var(--bb-rl-base-line-small);
			color: var(--bb-rl-text-secondary-color);
		}
	}
}

.bb-rl-forum-meta {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	color: var(--bb-rl-text-tertiary-color);
	font-size: var(--bb-rl-font-size-sm);

	.bb-rl-forum-meta-item-inactive {
		display: none;
	}

	.bb-rl-forum-meta-item {
		display: flex;
		align-items: center;

		> span:not(:last-child) {
			margin-right: var(--bb-rl-space-50);
		}
	}

	.bb-rl-forum-meta-item + .bb-rl-forum-meta-item:before {
		content: "•";
		margin: 0 6px;
		color: var(--bb-rl-background-tertiary-color);
	}

	a {
		color: var(--bb-rl-text-tertiary-color);
	}
}

.bb-rl-topic-content {

	.bbp-topic-tags p {
		font-size: 0;
	}
}

.bbp-topic-tags {
	font-size: 0;
	margin-bottom: 14px;

	> p {
		display: flex;
		align-items: center;
		gap: 0;
	}

	a {
		color: var(--bb-rl-text-secondary-color);
		font-size: 12px;
		background-color: var(--bb-rl-background-tertiary-color);
		border-radius: var(--bb-rl-radius-sm);
		padding: 2px 6px;

		+ a {
			margin-left: 8px;
		}
	}
}

// Link Preview
.bb-url-scrapper-container {
	display: flex;
	flex-flow: column;

	&:has(.bb-link-preview-container),
	&:has(.bb-url-scrapper-loading) {
		padding: var(--bb-rl-space-100) var(--bb-rl-space-300);
	}

}

.bb-url-scrapper-loading {
	display: flex;
	align-items: center;
	gap: var(--bb-rl-space-100);
	color: var(--bb-rl-text-secondary-color);
	font-size: 0.85rem;
	padding: var(--bb-rl-space-100) 0;

	i {
		height: 18px;
		width: 18px;
	}
}

.bb-link-preview-image-cover {
	position: relative;
	overflow: hidden;
	border-radius: var(--bb-rl-radius-lg) var(--bb-rl-radius-lg) 0 0;

	img {
		height: 285px;
		width: 100%;
		object-fit: cover;
	}
}

.bb-link-preview-info {
	background-color: var(--bb-rl-background-secondary-color);
	border-radius: var(--bb-rl-radius-lg);
	padding: var(--bb-rl-space-200) var(--bb-rl-space-200);
	margin-bottom: var(--bb-rl-space-300);

	&:has(iframe) {
		padding: 0;
	}
}

#bb-url-scrapper-img-holder + .bb-link-preview-info {
	border-radius: 0 0 var(--bb-rl-radius-lg) var(--bb-rl-radius-lg);
}

.bb-url-scrapper-container.activity-post-form-link-wp-embed .bb-link-preview-info {
	background-color: transparent;
	padding: 0;
}

.bb-link-preview-link-name {
	color: var(--bb-rl-text-tertiary-color);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;

	.bb-rl-activity-list .bb-rl-activity-inner & {
		margin: 0;
	}
}

.bb-link-preview-title {
	color: var(--bb-rl-text-color);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	width: 100%;
	margin-top: var(--bb-rl-space-50);

	a {
		color: var(--bb-rl-text-color);
	}

	.bb-rl-activity-list .bb-rl-activity-inner & {
		margin: var(--bb-rl-space-50) 0 0 0;
	}
}

#bb-url-scrapper-img-holder {
	position: relative;
}

.bb-link-preview-excerpt {
	color: var(--bb-rl-text-secondary-color);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	margin-top: var(--bb-rl-space-50);

	iframe {
		border-radius: var(--bb-rl-radius-lg);
		width: 100%;
	}
}

#bb-close-link-suggestion {
	color: var(--bb-rl-text-color);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	padding: var(--bb-rl-space-100);
	align-self: flex-end;
}

.bb-link-preview-icons {
	position: absolute;
	left: 15px;
	top: 15px;
	display: flex;
	flex-direction: row;
	gap: var(--bb-rl-space-100);
	width: calc(100% - 30px);

	a {
		display: flex;
		justify-content: center;
		align-items: center;
		color: var(--bb-rl-icon-secondary-color);
		background-color: var(--bb-rl-background-secondary-color);
		font-size: 22px;
		line-height: 1;
		border-radius: var(--bb-rl-radius-full);
		box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.08);
		height: 35px;
		width: 35px;

		&#bb-link-preview-select-image {
			display: none;
			margin-left: auto;

			i {
				height: 35px;
				width: 35px;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}
}

.bb-url-thumb-nav {
	display: inline-block;
	position: absolute;
	width: 100%;
	top: 50%;
	text-align: center;
	margin: auto;
	height: 40px;
	transform: translate(0, -50%);

	#bb-url-scrapper-img-count {
		display: none;
	}

	button {
		cursor: pointer;
		margin: 0 var(--bb-rl-space-50);
		padding: 0;
		border: 0;
		height: 40px;
		width: 40px;
		position: absolute;
		top: 0;
		left: 0;
		background-color: transparent;
		display: none;

		[class*="bb-icons-rl"]:before {
			font-size: 40px;
			text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
			color: var(--bb-rl-text-white-color);
		}

		&#bb-url-nextPicButton {
			left: inherit;
			right: 0;
		}
	}
}

.twitter-timeline {
	width: 100% !important;
}

// My Replies
.singular .bbp-user-replies-created {

	.bb-rl-forums-pagination {
		max-width: initial;
	}

	.bb-rl-single-forum-list {
		background-color: var(--bb-rl-background-color);
		border-radius: var(--bb-rl-radius-lg);
		border: 1px solid var(--bb-rl-border-secondary-color);

		> li {

			.bb-rl-forum-reply-list-item {
				border-radius: 0;
				padding: var(--bb-rl-space-200) var(--bb-rl-space-300);
				margin-bottom: 0;
			}

			&:first-child .bb-rl-forum-reply-list-item {
				border-radius: var(--bb-rl-radius-lg) var(--bb-rl-radius-lg) 0 0;
			}

			&:last-child .bb-rl-forum-reply-list-item {
				border-radius: 0 0 var(--bb-rl-radius-lg) var(--bb-rl-radius-lg);
				border: 0;
			}

		}
	}
}

// Reply media
.forums-video-wrap {

	.act-grid-1-1 {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: 0;

		&.bb-rl-activity-video-elem {

			.bb-rl-item-cover-wrap {
				padding-top: 275px;
			}
		}
	}

	.bb-rl-activity-video-elem {

		.bb-rl-item-cover-wrap {
			position: relative;
			overflow: hidden;
			padding-top: 100%;
			display: block;
			border-radius: var(--bb-rl-radius-lg);

			&:before {
				content: "\e3d0";
				font-family: bb-icons-rl;
				font-size: 32px;
				display: flex;
				align-items: center;
				justify-content: center;
				font-weight: 500;
				font-style: normal;
				color: var(--bb-rl-icon-tertiary-color);
				background-color: var(--bb-rl-background-black-color);
				height: 56px;
				width: 56px;
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
				z-index: 11;
				border: 0;
				transition: all ease 0.3s !important;
				border-radius: var(--bb-rl-radius-full);
			}

			img {
				position: absolute;
				inset: 0;
				margin: auto;
				z-index: 0;
				min-height: 100%;
				width: auto;
				min-width: 100%;
				object-fit: cover;
				image-rendering: -webkit-optimize-contrast;
			}
		}
	}

	&.bb-media-length-1 .act-grid-1-1.bb-rl-activity-video-elem .bb-rl-item-cover-wrap.hide {
		display: none;
	}

	&.bb-media-length-2 .bb-rl-activity-video-elem {

		&.act-grid-1-1,
		&.act-grid-1-2 {
			position: relative;
			flex: 0 0 50%;
			padding-right: var(--bb-rl-space-50);
			max-width: 50%;
			min-width: 0;

			.bb-rl-item-cover-wrap {
				padding-top: 275px;
			}
		}

		&.act-grid-1-2 {
			padding-right: 0;
			padding-left: var(--bb-rl-space-50);
		}
	}

	&.bb-media-length-3 {
		gap: var(--bb-rl-space-100);

		.bb-rl-activity-video-elem {

			&.act-grid-1-1 {
				flex: 0 0 100%;
				max-width: 100%;
				margin-bottom: 0;
				padding-right: var(--bb-rl-space-100);
			}

			&.act-grid-1-2 {
				flex: 0 0 calc(50% - var(--bb-rl-space-100));
				max-width: calc(50% - var(--bb-rl-space-100));
				padding-right: 0;
			}
		}
	}

	&.bb-media-length-4,
	&.bb-media-length-5 {

		.bb-rl-activity-video-elem {

			&.act-grid-1-1 {
				padding-right: var(--bb-rl-space-100);
			}

			&.act-grid-1-2:last-child {
				padding-right: var(--bb-rl-space-100);
			}
		}
	}

	.bb-rl-activity-video-elem.no_more_option {

		.bb-rl-item-cover-wrap:before {
			display: none;
		}
	}
}

.forums-media-wrap {

	&.bb-media-length-more,
	&.bb-media-length-5 {
		gap: 0;

		.bb-rl-activity-media-elem {
			padding: 3px;

			.bb-rl-entry-img {
				display: block;
				padding-top: 65%;
				position: relative;

				img {
					position: absolute;
					top: 0;
					bottom: 0;
					left: 0;
					right: 0;
					margin: auto;
					z-index: 0;
					height: 100%;
					min-height: 100%;
					width: auto;
					min-width: 100%;
					object-fit: cover;
				}
			}
		}

		.act-grid-1-1 {
			-webkit-box-flex: 0;
			-ms-flex: 0 0 50%;
			flex: 0 0 50%;
			max-width: 50%;
		}

		.act-grid-1-1 + .act-grid-1-2 {
			-webkit-box-flex: 0;
			-ms-flex: 0 0 50%;
			flex: 0 0 50%;
			max-width: 50%;
		}

		.act-grid-1-2 {
			-webkit-box-flex: 0;
			-ms-flex: 0 0 33.33%;
			flex: 0 0 33.33%;
			max-width: 33.33%;
		}
	}
}

.bb-rl-video-theatre .bb-rl-media-section {

	.video-js {
		height: 100% !important;
		padding: 0;
	}
}

// Forum Search Page
.bb-rl-forum-search-page {

	#bbp-search-form {
		text-align: center;
	}

	.bs-section-title {
		margin-bottom: var(--bb-rl-space-200);
		border-bottom: 1px solid var(--bb-rl-border-secondary-color);
		padding-bottom: var(--bb-rl-space-100);
		font-size: var(--bb-rl-font-size-2xl);
		font-weight: 600;
	}

	.bb-rl-forum-list-item {
		display: flex;
		align-items: flex-start;
		gap: var(--bb-rl-space-100);
		padding: var(--bb-rl-space-100);
		margin-bottom: var(--bb-rl-space-100);

		&:not(:last-child) {
			border-bottom: 1px solid var(--bb-rl-border-secondary-color);
		}

		&:hover {
			background-color: var(--bb-rl-background-secondary-color);
			border-radius: var(--bb-rl-radius-base);
			border-color: transparent;
		}

		.bb-rl-sec-header {
			margin-bottom: var(--bb-rl-space-100);

			h3 {
				font-size: var(--bb-rl-font-size-sm);
				font-weight: 600;
				line-height: var(--bb-rl-base-line-small);

				a {
					color: var(--bb-rl-text-color);
				}
			}
		}

		.bb-rl-forum-meta {
			color: var(--bb-rl-text-tertiary-color);
			font-size: var(--bb-rl-font-size-xs);
			font-weight: 400;
			line-height: var(--bb-rl-base-line-small);
		}

		.bb-rl-forum-cover {
			flex-shrink: 0;

			img {
				height: 40px;
				width: 40px;
				object-fit: cover;
				border-radius: var(--bb-rl-radius-full);
			}

			.bbp-author-role,
			.bbp-author-name,
			br {
				display: none;
			}
		}

		.bb-forum-content-wrap {
			font-size: var(--bb-rl-font-size-sm);
			line-height: var(--bb-rl-base-line-small);
			color: var(--bb-rl-text-color);
			margin-bottom: var(--bb-rl-space-100);
		}

		.bbp-topic-content,
		.bb-forum-content {

			p {
				margin-bottom: var(--bb-rl-space-100);
			}
		}

		.bb-rl-topic-footer {
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-wrap: wrap;
			gap: var(--bb-rl-space-200);
		}

		.bb-rl-topic-meta {
			display: flex;
			align-items: center;

			.favorite-toggle {
				display: none;
			}
		}

		.bb-rl-row-actions:has(.favorite-toggle) + .bb-rl-topic-meta-item:before {
			display: none;
		}

		.bb-rl-topic-meta-item {
			display: flex;
			align-items: center;
			font-size: var(--bb-rl-font-size-sm);
			color: var(--bb-rl-text-secondary-color);

			a {
				color: var(--bb-rl-text-secondary-color);
			}

			&:not(:first-child) {

				&:before {
					content: "";
					height: 4px;
					width: 4px;
					background-color: var(--bb-rl-background-tertiary-color);
					border-radius: var(--bb-rl-radius-full);
					margin: 0 var(--bb-rl-space-100);
				}
			}
		}

		.bb-rl-card-forum-details {
			flex: 1;
		}
	}
}

@media screen and (max-width: 1400px) {

	.bb-rl-forums-list {
		justify-content: center;

		.bb-rl-forum-list-item {
			width: calc(50% - var(--bb-rl-space-200));
		}
	}
}

@media screen and (max-width: 768px) {

	.bb-rl-forums-list {

		.bb-rl-forum-list-item {
			width: 100%;
			min-width: auto;
		}
	}
}
