/* BMW Club of Manitoba — additions on top of the original Twenty Twelve theme */

/* Original site hid the text title/tagline and showed only the header image */
.site-title,
.site-description {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
}

body.custom-background {
	background-color: #ffffff;
}

/* Two-column lists used on Membership / Contact pages */
.col-half {
	float: left;
	width: 49%;
}
.clear {
	clear: both;
}

/* Facebook call-to-action (replaces the old, broken Facebook feed widget) */
.fb-box {
	border: 1px solid #ededed;
	background: #f7f7f7;
	padding: 18px 20px;
	margin: 24px 0;
	border-radius: 3px;
}
.fb-box p {
	margin-bottom: 12px;
}
.fb-box p:last-child {
	margin-bottom: 0;
}

/* Buttons styled like the theme's own buttons */
a.button,
a.button:visited {
	display: inline-block;
	padding: 6px 12px;
	font-size: 12px;
	line-height: 1.428571429;
	font-weight: normal;
	color: #7c7c7c;
	text-decoration: none;
	background-color: #e6e6e6;
	background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
}
a.button:hover {
	color: #5e5e5e;
	background-color: #ebebeb;
	background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb);
}
a.button.primary,
a.button.primary:visited {
	color: #fff;
	border-color: #0076b3;
	background-color: #0088d0;
	background-image: linear-gradient(to bottom, #009cee, #0088d0);
}
a.button.primary:hover {
	color: #fff;
	background-color: #0076b3;
	background-image: linear-gradient(to bottom, #0088d0, #0076b3);
}

/* Sidebar widgets */
.widget-area .widget .button {
	color: #7c7c7c;
}
.widget-area .widget .button.primary {
	color: #fff;
}

/* Footer */
#footerimg img {
	display: block;
}
.site-info p {
	margin: 0;
}

/* Newsletter: posts two across, photo then title then link */
.post-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 24px;
	margin: 24px 0;
}
.site-content article.post-card {
	margin: 0;
	padding: 0;
	border: 0;
}
.post-card .post-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f2f2f2;
	border: 1px solid #ededed;
}
.post-card .post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-card .post-thumb.no-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}
.post-card .post-thumb.no-photo img {
	width: auto;
	height: auto;
	max-width: 50%;
	object-fit: contain;
}
.entry-content .post-card h3 {
	margin: 12px 0 6px;
	font-size: 16px;
	line-height: 1.4;
}
.entry-content .post-card h3 a {
	color: #444;
	text-decoration: none;
}
.entry-content .post-card h3 a:hover {
	color: #21759b;
}
.post-card p {
	margin: 0;
	font-size: 13px;
}
.draft-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 0 6px;
	font-size: 11px;
	color: #fff;
	background: #c0392b;
	border-radius: 2px;
	vertical-align: middle;
}

/* Single post page */
.entry-content .post-title {
	margin-bottom: 6px;
}
.post-meta {
	color: #757575;
	font-size: 13px;
}
.post-photo {
	margin: 0 0 24px;
}
.post-photo img {
	display: block;
	width: 100%;
	height: auto;
}
.post-photo figcaption {
	margin-top: 6px;
	color: #757575;
	font-size: 12px;
}
.post-back {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid #ededed;
}

/* Small screens: stack the two-column lists and the post grid */
@media screen and (max-width: 599px) {
	.col-half {
		float: none;
		width: 100%;
	}
	.post-grid {
		grid-template-columns: 1fr;
	}
}
