/* This CSS is included in blog pages only */

body {
	overflow-wrap: anywhere;
}

/* Top panel */
.contrib-filter {
    background-color: #f1f4f6;
    border-radius: 5px;
    padding: 5px;
}
.sort-option {
    display: inline-block;
    margin-left: 5px;
    margin-top: 2px;
    padding: 3px;
}
.sort-option::after {
    content: "\f0dc";
	font-family: FontAwesome;
}
.sort-option .dropdown-toggle {
    cursor: pointer;
    padding: 5px 0;
}
.sort-option a.active {
	background: #ecf3f7;
	border-radius: 3px;
}
.sort-option li.active, .sort-option li.active + li {
	border-color: transparent;
}
.rightside {
    float: right;
}


/* ============================================================================================= */
/* Index: left column */
.categories {
    box-sizing: border-box;
    float: left;
    font-size: 1.2em;
    width: 25%;
}
@media (max-width: 700px) {
	.categories {
		float: none;
		margin: 0 auto;
		width: 100%;
	}
}
.b-cat-menu {
	padding: 5px;
}
@media (min-width: 701px) {
	.b-cat-menu,
	.b-cat-menu + div {
		margin-top: 4px;
		margin-bottom: 10px;
	}
}
.b-cat-menu a {
	display: flex;
	padding: 3px 3px 3px 5px; 
	clear: both;
}
.b-cat-menu a:hover,
.b-cat-menu a:focus {
	text-decoration: none;
}
.b-cat-menu a:hover span:first-of-type {
	text-decoration: underline;
}
.b-cat-menu a.current {
	background: #1698d9;
	border-radius: 3px;
	color: #FFFFFF !important;
}
.b-cat-menu a span:first-of-type {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 4px;
}
.b-cat-menu a i {
	min-width: 16px;
	height: 14px;
	text-align: right;
	opacity: 0.8;
}


/* ============================================================================================= */
/* Index: main column */
.contrib-list-container {
    box-sizing: border-box;
    display: inline-block;
    padding-left: 10px;
    width: 75%;
}
@media (max-width: 700px) {
	.contrib-list-container {
		padding-left: 0;
		width: 100%;
	}
}
.contrib-list-container .action-bar:first-child {
    margin-bottom: 8px;
}
.contrib-list-container h2 {
	margin: 0.2em 0 0.2em 0;
}
.b-cat-desc {
	font-size: 1.1em;
	margin: 4px 0 0px;
}
.contrib-quickview::after, .contrib-list-container .action-bar {
    clear: both;
    content: '';
    display: block;
}
.contrib-quickview {
    background-color: #ECF3F7;
    border-radius: 7px;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
}
.quickview-title {
    font-size: 1.2em;
    position: relative;
    display: block;
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
	font-weight: bold;
}
.quickview-preview {
    margin-top: 5px;
    margin-bottom: 6px;
}
.quickview-image {

}
.quickview-desc {
	font-size: 11px;
	line-height: 15px;
	text-align: left;
}
	/* Center text vertically */
	.quickview-desc {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.quickview-desc::before, .quickview-desc::after {
		content: ' ';
	}
.quickview-desc-fade {
	height: 10px;
	margin-top: -10px;
	position: relative;
	background: linear-gradient(transparent, #ecf3f7);
}
.reported .quickview-desc-fade {
	background: linear-gradient(transparent, #f7ecef);
}
.deleted .quickview-desc-fade {
	background: linear-gradient(transparent, #e3e3e3);
}
.quickview-desc .inline-attachment img.postimage {
	max-height: 50px;
}
.quickview-image img {
    height: 150px;
	box-sizing: border-box;
}
.quickview-label {
    background-color: #FFFFFF;
    /* border: 1px solid #c9cacb; */
    border-radius: 5px;
    display: inline-block;
    padding: 4px;
}
.quickview-stats {
	line-height: 18px;
	white-space: nowrap;
	opacity: 0.8;
}
.quickview-stats i {
	vertical-align: -1px;
}
.quickview-notices {
	position: absolute;
	top: 8px;
	right: 8px;
	line-height: 18px;
	text-align: right;
	z-index: 1;
}
.quickview-notices i {
	color: #EC3A66;
}
.quickview-sale-badge {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 50px;
    background: #ff4381;
    color: #fff;
    font-size: 18px;
    border-radius: 0 18px 18px 0;
	padding: 6px 8px;
}
.quickview-sale-badge:hover,
.quickview-sale-badge:focus {
    color: #fff;
	text-decoration: none;
}
.quickview-sale-badge2 {
	float: left;
	clear: both;
	margin: 5px 0 5px -10px;
	padding: 5px 10px;
    border-radius: 0 13px 13px 0;
    background: #ff4381;
    color: #fff;
    font-size: 13px;
}


/* ============================================================================================= */
/* Index: main column: grid view */
.contrib-list-container.grid .contrib-list {
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    grid-template-columns: 1fr 1fr;
	margin-bottom: 10px;
}
@media (max-width: 485px) {
	.contrib-list-container.grid .contrib-list {
		grid-template-columns: 1fr;
	}
}
@media (min-width: 1100px) {
	.contrib-list-container.grid .contrib-list {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
.contrib-list-container.grid .contrib-quickview {
	display: flex;
	flex-direction: column;
	overflow: hidden; /* Equal column width */
    text-align: center;
}
.contrib-list-container.grid .quickview-preview {
    height: 150px;
	background: inherit;
}
.contrib-list-container.grid .quickview-image {
    height: 100%;
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: inherit;
	opacity: 1;
	transition: opacity 300ms;

	display: flex;
	align-items: center;
	justify-content: center;
}
.contrib-list-container.grid .quickview-preview:hover .quickview-image {
	opacity: 0;
}
.contrib-list-container.grid .quickview-desc {
	height: 150px;
	margin-top: -150px;
	overflow: hidden;
	padding: 0px 15px;
}
.contrib-list-container.grid .quickview-desc .inline-attachment {
	/* display: none; */
}
.contrib-list-container.grid .quickview-footer {
    display: flex;
    justify-content: space-between;
	align-items: flex-end;
	margin-top: auto; /* Align item to bottom in flex container */
	max-width: 100%;
}
.contrib-list-container.grid .quickview-labels {
	overflow: hidden;
	max-height: 20px;
	text-align: left;
	margin-top: 5px;
}
table.b-file-info {
	margin: 6px auto 4px;
	font-size: 1.1em;
	line-height: 16px;
}
table.b-file-info td:first-of-type {
    text-align: right;
    padding-right: 4px;
    border-right: 1px solid #919da9;
}
table.b-file-info td:last-of-type {
    text-align: left;
    padding-left: 4px;
}


/* ============================================================================================= */
/* Index: main column: list view */
.contrib-list-container.list .contrib-quickview {
    margin-bottom: 10px;
}
.contrib-list-container.list .quickview-title {
    margin-left: 120px;
}
.contrib-list-container.list .quickview-preview {
    height: 50px;
}
.contrib-list-container.list .quickview-image {
	float: left;
	margin: -17px 10px 0 0;
	position: relative;
	z-index: 1;

	/* Centered images */
	width: 110px;
	height: 110px;
	overflow: hidden;
	border: 1px solid #FFF;
	background: #FFF;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}
.contrib-list-container.list .quickview-image img {
	height: 108px;
	padding: 0px;
	border: none;
}
.contrib-list-container.list .quickview-desc {
	overflow: hidden;
	height: 100%;
}
.contrib-list-container.list table.b-file-info {
	float: left;
	margin: 0;
}
.contrib-list-container.list .b-rating {
	float: right;
}
.contrib-list-container.list .quickview-footer {
	float: right;
	clear: right;
	display: flex;
	margin-top: 5px;
	align-items: end;
	max-width: 100%;
}
.contrib-list-container.list .quickview-labels {
	overflow: hidden;
	max-height: 20px;
	margin-top: 3px;
}
.contrib-list-container.list .blog-tag {
	margin-bottom: 0;
}
.contrib-list-container.list .quickview-stats {
	margin-left: 10px;
}
.contrib-list-container.list .quickview-sale-badge {
	top: 30px;
	font-size: 15px;
}


/* ============================================================================================= */
/* Index: main column: comments view */
.contrib-list-container.comments .post {
	overflow: hidden;
}


/* ============================================================================================= */
/* Post: right column */
.b-right-column * {
    box-sizing: border-box;
}
.b-right-column {
    width: 280px;
	color: #666666;
	margin: 5px 0 10px 0;
	min-height: 80px;
	border-left: 1px solid #FFF;
	padding: 0 0 0 8px;
	float: right;
	text-align: center;
}
@media (min-width: 701px) and (max-width: 900px) {
	.b-right-column {
		width: 240px;
	}
}
.b-right-column dt img {
	max-width: 100%;
}
.b-download-button {
	display: block;
	padding: 6px;
	background-color: #4ba64b;
	background: linear-gradient(#77c577, #3b983b);
	margin: 10px 2px;
	border-radius: 7px;
	text-align: left;
	font-size: 13px;
	line-height: 15px;
	color: #FFF;
	transition: filter 0.1s;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.b-download-button:hover {
	filter: brightness(1.05);
	color: #FFF;
	text-decoration: none;
}
.b-download-button:active,
.b-download-button:focus {
	color: #FFF;
	text-decoration: none;
}
.b-download-button i {
	color: #FFF;
	font-size: 24px;
	line-height: 30px;
	float: left;
	margin-right: 5px;
}
.b-download-button-small {
	font-size: 11px;
	opacity: 0.75;
}
.b-download-button.b-buy-button {
	margin-bottom: 0;
	background-color: #039dea;
	background: linear-gradient(#2eb3f5, #0291d8);
	text-align: center;
	line-height: inherit;
}
.b-download-button.b-deactivated {
	background-color: #999;
	background: linear-gradient(#acacac, #868686);
}
.b-buy-info {
    margin: 8px 2px 0;
    font-size: 11px;
}
@media (max-width: 700px) {
	.b-downloads .b-right-column {
		width: auto;
		border-left: none;
		padding-bottom: 5px;
		margin: 0 0 5px 0;
		padding: 0 0 5px 0;
		min-height: 40px;
		overflow: hidden;
		float: none;
	}
	.b-downloads .b-right-column dt,
	.b-downloads .b-right-column dd {
		max-width: 280px;
	}
}
.b-video video {
	background: #FFF;
	max-width: 100%;
}
@media (min-width: 900px) {
	.b-video video {
		max-width: 80%;
	}
}

.b-related-posts {
	margin: 3em 0 0;
	text-align: left;
	/* font-size: 1.1em; */
	background: #FFF;
}
.section-memberlist .b-related-posts {
	margin: 0;
	background: none;
	font-size: 1.1em;
}
@media (min-width: 901px) {
	.section-memberlist .b-related-posts {
		columns: 2;
	}
}
@media (max-width: 700px) {
	.b-downloads .b-related-posts {
		display: none;
	}
}
.b-related-posts .b-related-posts-title {
	margin: 0.3em 0 1em;
	font-size: 1.1em;
	font-weight: bold;
	color: darkgreen;
}
.b-related-posts .b-related-posts-item {
	margin-bottom: 1em;
	padding-left: 2px;
	display: inline-block;
	max-width: 100%;
}
.b-related-posts .b-related-posts-item {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	text-decoration: none;
}
.section-memberlist .b-related-posts-item {
	gap: 15px;
}
.b-related-posts .b-related-posts-item > img {
	height: 50px;
	width: 50px;
	min-height: 50px;
	min-width: 50px;
	object-fit: cover;
}
.section-memberlist .b-related-posts-item > img {
	height: 70px;
	width: 70px;
	min-height: 70px;
	min-width: 70px;
}
.b-related-posts .b-related-posts-item > div {
	overflow: hidden;
}
.b-related-posts .b-related-posts-item .b-related-posts-text {
	color: #212121;
}
.b-related-posts .b-related-posts-misc {
	color: #888;
	font-size: 0.9em;
}
.b-related-posts .title {
	font-weight: bold;
}
.b-related-posts .b-related-posts-ell {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/* ============================================================================================= */
/* Post: left column */
.b-file-page .content {
	margin-bottom: 10px;
}
.b-file-page .postbody::after {
	clear: both;
	content: '';
	display: block;
}
@media (min-width: 901px) {
	.b-file-page .postbody {
		width: calc(100% - 280px - 1px - 16px);
		float: left;
	}
}
@media (min-width: 701px) and (max-width: 900px) {
	.b-file-page .postbody {
		width: calc(100% - 240px - 1px - 16px);
		float: left;
	}
}
.hasjs .b-file-page .postbody .post-buttons {
    max-width: 29%;
}
.b-file-page .b-file-info {
	margin: 8px 4px 14px 2px;
	clear: both;
}
@media (max-width: 700px) {
	.b-file-page .b-file-info {
		margin: 8px 0 14px;
	}
}
.b-file-info li {
	list-style: none;
	display: block;
	margin-bottom: 1px;
	font-size: 1.1em;
	line-height: 24px;
	background: #FFF;
	overflow: hidden;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.b-file-info li strong:first-of-type {
    width: 25%;
    display: block;
	float: left;
    background-color: #F6FAFC;
    padding-left: 8px;
    margin-right: 8px;
	text-align: right;
	padding-right: 8px;
	border-right: 1px solid #e1ebf2;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* ============================================================================================= */
/* Post: attachbox */
.attachbox {
	border: none;
	border-radius: 6px;
}
.attachbox.attach-images {
	width: 100%;
	padding: 3px 3px 3px;
}
.attachbox.attach-images > dt { /* Attachbox title */
	padding-left: 3px;
	font-size: 11px;
}
.attachbox > dd { /* Downloadable file wrapper */
    /* padding: 3px; */
}
.attachbox.attach-images dd { /* Image wrapper */
    border: none;
    clear: none;
    float: left;
    margin: 0;
    padding: 0;
}
dl.thumbnail dd,
dt.attach-image + dd { /* Image comment */
    display: none;
}
.attachbox img.postimage,
.inline-attachment img.postimage {
	max-height: 153px;
}


/* ============================================================================================= */
/* Posting */
@media (max-width: 700px) {
	.smiley-box strong,
	.smiley-box strong + br {
		display: none;
	}
	.b-bbcode-status {
		display: none;
	}
}
.format-buttons {
	margin: 2px 0 2px 0;
}
#postingbox dd { /* File description */
	color: gray;
}
.b-posting-help {
	max-height: 0px;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(.65,.05,.36,1);
}
.b-posting-help .panel {
	font-size: 1.1em;
	line-height: 1.4em;
	margin-bottom: 8px;
	border: 1px solid #B4BAC0;
	background: #fff;
}


/* ============================================================================================= */
/* Misc */
.content,
.message-box textarea,
.postbody h3 {
	font-family: inherit; /* Verdana */
}
.no-results {
	font-size: 1.1em;
	padding: 15px;
	text-align: center;
}
dl.thumbnail img,
dl.file img {
	border-color: transparent;
	background: #FFF;
	padding: 2px;
}
.quickview-image dl.thumbnail a:hover img {
	border-color: transparent;
}
@media (max-width: 700px) {
	.pagination > ul {
		margin: 0;
	}
}
.b-comments-container .post:target, .b-comments-container #unread:target + .unreadpost {
    animation: highlight 3s ease;
}
@keyframes highlight {
  0% { background-color: #f9d8d8; }
}
.dropdown-extended { /* phpBB notifications */
    z-index: 2;
}

/*
.phpbb_alert {
	border-radius: 8px;
	border: none;
}
.phpbb_alert .alert_close {
    margin-right: -26px;
    margin-top: 6px;
    opacity: 0.7;
}
.phpbb_alert .alert_close i {
    font-size: 16px;
}
.phpbb_alert .alert_title {
	border: none;
}
*/
.phpbb_alert .b-alert-buttons {
	display: block;
	margin: 15px auto -8px;
	text-align: center;
}


/* ============================================================================================= */
/* Videos and photos */
.b-videos .b-right-column,
.b-photos .b-right-column {
	width: auto;
	border-left: none;
	padding: 0 0 5px 0;
	float: none;
	overflow: hidden;
}
.b-videos .b-file-page .postbody,
.b-photos .b-file-page .postbody {
	width: auto;
	float: none;
}
.b-videos .b-file-page .b-rating,
.b-photos .b-file-page .b-rating {
	float: left;
	margin: 10px 5px 0;
}
.b-videos .b-file-page .b-buy-button,
.b-photos .b-file-page .b-buy-button {
	float: right;
	margin: 8px 5px 0;
}
.b-videos .b-file-page .b-buy-info,
.b-photos .b-file-page .b-buy-info {
	float: right;
	margin: 14px 5px 0;
}
@media (min-width: 1100px) {
	.b-videos .contrib-list-container.grid .contrib-list {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 550px) {
	.b-videos .contrib-list-container.list .quickview-image,
	.b-photos .contrib-list-container.list .quickview-image {
		width: 190px;
	}
	.b-videos .contrib-list-container.list .quickview-title,
	.b-photos .contrib-list-container.list .quickview-title {
		margin-left: 200px;
	}
}


/* ============================================================================================= */
/* Fixes */
.b-downloads #abbc3_buttons {
	margin: 2px 0 2px;
}
.b-downloads .b-dl-tabs {
	margin-top: 12px;
}
#dlVersions-panel .b-download-button {
	max-width: 120px;
}
#dlVersions-panel .b-dl-buttons-container {
	text-align: left;
}
.b-bbcode-status {
	display: none;
}

.b-comments-container div.author {
	margin-bottom: 0.6em;
	padding: 0 0 5px 0;
}
.b-comments-container .dropdown-container a.username {
	font-weight: bold;
}
.dl-qr-dropdown a {
	font-size: 11px;
	font-weight: normal;
}


@media (min-width: 550px) {
	.fileversion {
		max-width: 50%;
	}
}
@media (max-width: 549px) {
	.fileversion {
		display: block;
		margin: 0 0 1px;
	}
}


/* Hide user post count in the blog comments */
.b-comments-container dd.profile-posts {
	display: none;
}


.b-download-api-error {
	background: #BC2A4D;
	color: #FFF;
	padding: 8px;
	text-align: left;
}


.b-downloads .post ul:not(.b-file-info), .b-downloads .post ol,
.b-downloads .panel ul:not(.b-file-info), .b-downloads .panel ol {
	margin: 0.8em 0 0.9em 3em;
}

dl.file video {
	width: 98%;
	max-width: 640px;
}
.attachbox video {
	padding: 3px;
}

.b-file-page .postbody {
	max-width: 100%;
}