/*
Theme Name: SheHome Fukasawa
Description: Full-content cards and a mobile drawer for the SheHome subsite.
Template: fukasawa
Version: 1.1.0
Text Domain: shehome-fukasawa
*/

.shehome-card-author {
	display: inline;
	font-size: .72em;
	font-weight: 400;
	white-space: nowrap;
}

.shehome-card-author a {
	color: #767676;
}

.shehome-card-content {
	font-size: .9em;
	font-style: normal;
	margin-top: 12px;
}

.shehome-card-content p {
	color: #333;
	font-style: normal;
	line-height: 1.45;
}

.shehome-card-content figure,
.shehome-card-content .wp-block-image {
	margin: 0;
}

.shehome-card-content img {
	display: block;
	height: auto;
	width: 100%;
}

.main-menu .current-menu-item:before,
.main-menu .current_page_item:before,
.mobile-menu .current-menu-item:before,
.mobile-menu .current_page_item:before {
	content: '-';
	font-family: inherit;
	font-weight: 700;
}

.shehome-drawer-toggle,
.shehome-drawer-overlay {
	display: none;
}

@media ( max-width: 1000px ) {
	body.shehome-drawer-open {
		overflow: hidden;
	}

	.mobile-navigation {
		display: none !important;
	}

	.sidebar {
		align-items: initial;
		border: 0;
		bottom: 0;
		display: block;
		font-size: 1em;
		left: 0;
		margin: 0;
		overflow-y: auto;
		padding: 80px 30px 30px;
		position: fixed;
		top: 0;
		transform: translateX( -100% );
		transition: transform .25s ease;
		width: min( 86vw, 320px );
		z-index: 1001;
	}

	body.shehome-drawer-open .sidebar {
		box-shadow: 8px 0 30px rgba( 0, 0, 0, .18 );
		transform: translateX( 0 );
	}

	.sidebar .main-menu,
	.sidebar .widgets,
	.sidebar .credits {
		display: block;
	}

	.sidebar .main-menu {
		margin-top: 35px;
	}

	.sidebar > .nav-toggle {
		display: none;
	}

	.shehome-drawer-toggle {
		background: #fff;
		box-shadow: 0 2px 12px rgba( 0, 0, 0, .12 );
		display: block;
		left: 14px;
		margin: 0;
		position: fixed;
		top: 14px;
		z-index: 1002;
	}

	.admin-bar .shehome-drawer-toggle {
		top: 60px;
	}

	.shehome-drawer-overlay {
		background: rgba( 0, 0, 0, .42 );
		border: 0;
		bottom: 0;
		display: block;
		left: 0;
		opacity: 0;
		padding: 0;
		pointer-events: none;
		position: fixed;
		right: 0;
		top: 0;
		transition: opacity .25s ease;
		visibility: hidden;
		z-index: 1000;
	}

	body.shehome-drawer-open .shehome-drawer-overlay {
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.sidebar,
	.shehome-drawer-overlay {
		transition: none;
	}
}
