﻿/*
 * Top Posts Widget styles for Jetpack
 */

/* 2-Column Grid Layout */

.widgets-grid-layout {
	width: 100%;
}

.widgets-grid-layout::before,
.widgets-grid-layout::after {
	content: " ";
	display: table;
}

.widgets-grid-layout::after {
	clear: both;
}

.widget-grid-view-image {
	float: left;
	max-width: 50%;
}

.widget-grid-view-image a {
	display: block;
	margin: 0 2px 4px 0;
}

.widget-grid-view-image:nth-child(even) {
	float: right;
}

.widget-grid-view-image:nth-child(even) a {
	margin: 0 0 4px 2px;
}

.widgets-grid-layout .widget-grid-view-image img {
	max-width: 100%;
	height: auto;
}

/* Multi-Column Grid Layout */

.widgets-multi-column-grid ul {
	overflow: hidden;
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.widgets-multi-column-grid ul li {
	background: none;
	clear: none;
	float: left;
	margin: 0 -5px -3px 0;
	padding: 0 8px 6px 0;
	border: none;
	list-style-type: none !important;
}

.widgets-multi-column-grid ul li a {
	background: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.widgets-multi-column-grid .avatar {
	vertical-align: middle;
}

/* List Layout */

.widgets-list-layout {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.widgets-list-layout li::before,
.widgets-list-layout li::after {
	content: "";
	display: table;
}

.widgets-list-layout li::after {
	clear: both;
}

.widgets-list-layout li {
	zoom: 1;
	margin-bottom: 1em;
	list-style-type: none !important;
}

.widgets-list-layout .widgets-list-layout-blavatar {
	float: left;
	width: 21.276596%;
	max-width: 40px;
	height: auto;
}

.widgets-list-layout-links {
	float: right;
	width: 73.404255%;
}

.widgets-list-layout span {
	opacity: 0.5;
}

.widgets-list-layout span:hover {
	opacity: 0.8;
}

/*
 * Static fallback for archive and blog grids when client-side Isotope
 * positioning is unavailable in the local export.
 */
.fusion-posts-container.fusion-blog-layout-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	height: auto !important;
	overflow: visible !important;
}

.fusion-posts-container.fusion-blog-layout-grid > .fusion-post-grid {
	clear: none !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	display: flex !important;
}

.fusion-posts-container.fusion-blog-layout-grid > .fusion-post-grid > .fusion-post-wrapper {
	width: 100%;
	height: 100%;
}

@media only screen and (max-width: 712px) {
	.fusion-posts-container.fusion-blog-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media only screen and (min-width: 713px) and (max-width: 855px) {
	.fusion-posts-container.fusion-blog-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-content .topic-directory {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	margin: 24px 0 40px;
	padding: 0;
}

.post-content .topic-directory li {
	margin: 0;
}

.post-content .topic-directory a {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-bottom: 3px solid #0f75bd;
	color: #0f75bd;
	display: block;
	font-weight: 700;
	min-height: 58px;
	padding: 16px 18px;
	text-decoration: none;
}

.post-content .topic-directory a:hover {
	border-bottom-color: #ed2f49;
	color: #ed2f49;
}

@media only screen and (max-width: 855px) {
	.post-content .topic-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 560px) {
	.post-content .topic-directory {
		grid-template-columns: minmax(0, 1fr);
	}
}
