/*************************/
/* FRIENDS OF THE MUSEUM */
/*************************/


/*******************/
/* Main navigation */
/*******************/

.main-navigation {
	text-align: center;
}

.main-navigation ul {
	display: inline-block;
}

.main-navigation .menu-primary-container {
	width: 100%;
}

.main-navigation a {
	color: #515960;
}

.main-navigation a:hover {
	background: #c5535d !important;
}

/**************/
/* Site title */
/**************/

.site-title a {
	color: #515960 !important;
}

.site-title a:hover {
	color: #c5535d !important;
}


/********************/
/* Site Description */
/********************/

.site-description {
	max-width: 27ch;
	font-size: 2rem !important;
	text-align: center;
	margin: .5em auto;
}

.site-description::after {
	content: "Registered Charity No: 1115540";
	display: block;
	font-size: .5em;
}

.wp-block-image,
.wp-block-media-text,
.wp-block-newspack-blocks-homepage-articles .post-thumbnail img {
	padding-top: 10px;
	padding-bottom: 10px;
	border-radius: 20px;
}

.site-description {
	font-size: 1.6rem;
}

.wp-element-caption {
	text-align: center;
	line-height: 1.4;
}

.entry-content > [class^="wp-block-"] {
	margin-bottom: 0 !important;
	padding-bottom: 20px;
}

.wp-block-separator {
	max-width: 200px;
	padding-bottom: 0 !important;
	background-color: #2b6e9d;
}

.wp-block-file .wp-block-file__button {
	background: #2b6e9d;
}


/********************/
/* Colour overrides */
/********************/

h1 {
	color: #5a6ca4;
}

h2 {
	padding-top: 20px;
	padding-bottom: 15px;
	color: #5a6ca4;
}

h3 {
	color: #588d8e;
}

a:hover {
	color: #C5535d;
}

p {
	color: #515960;
}


/******************/
/* Search results */
/******************/

.search-results .site-main,
.search-results .content-area,
.search-results article,
.search-results .page-header {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.search-results article {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #ddd;
	padding: 1rem 1.25rem;
}

/* Smaller titles */

.search-results .entry-title {
	font-size: 3rem;
	line-height: 1.2;
}



/****************/
/* Blog results */
/****************/

/* Keep reading button */

article.type-post .entry-wrapper a.more-link {
	display: inline-block !important;
	background: #5a6ca4 !important;
	color: #fff !important;
	padding: 0.65rem 1rem !important;
	margin-top: 0.75rem !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	transition: background .2s ease, transform .2s ease;
}

article.type-post .entry-wrapper a.more-link::after {
	content: " →";
}

article.type-post .entry-wrapper a.more-link:hover {
	background: #c5535d !important;
	color: #fff !important;
	transform: translateX(2px);
}

/* Load more */

.wp-block-button__link {
	background: #5a6ca4 !important;
}

.wp-block-button__link:hover {
	background: #c5535d !important;
}


/*************/
/* CARD GRID */
/*************/

.friends-card-grid > .wp-block-group__inner-container {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px;
	align-items: stretch;
}

.friends-card {
	background: #fffaf0;
	border: 1px solid #515960;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 3px 5px rgba(76, 57, 13, 0);
	transition: transform .25s ease, box-shadow .25s ease;
	border-top: 3px solid #5a6ca4;
	display: flex;
	flex-direction: column;
}

.friends-card-grid .friends-card {
	min-width: 0;
	width: auto !important;
	max-width: 100% !important;
}

.friends-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 10px #1e73be;
}

.friends-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	padding: 3px;
	border-radius: 10px;
}

.friends-card-content {
    padding: 1.25rem;
    flex-grow: 1;
}

.friends-card-content > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.friends-card-content p:last-child {
    margin-top: auto;
}

.friends-card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.friends-card h3 {
	margin: 0 0 .6rem;
	font-size: 1.75rem;
	color: #588d8e;
}

.friends-card p {
	margin: 0 0 1rem;
	line-height: 1.5;
	color: #333;
}

.friends-card a {
	display: inline-block;
	background: #5a6ca4;
	color: #fff !important;
	padding: 0.65rem 1rem;
	margin: 0.75rem 0 0;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	transition: background .2s ease, transform .2s ease;
}

.friends-card a::after {
	content: " →";
}

.friends-card a:hover {
	background: #c5535d;
	color: #fff !important;
	transform: translateX(2px);
}

.single-card {
	max-width: 400px;
	margin: 0 auto;
}

/* Mobile */
@media (max-width: 700px) {
	.friends-card-grid > .wp-block-group__inner-container {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}
	
	.friends-card-grid .friends-card {
		width: 100% !important;
		max-width: 100% !important;
	}
}


/*****************/
/* Opening Times */
/*****************/

.friends-left-padding {
	padding-left: 30px;
}


/**************/
/* Breacrumbs */
/**************/
.wp-block-breadcrumbs li:not(:last-child)::after {
	content: " › " !important;
	color: #7a2e2e;
}


/**********/
/* Footer */
/**********/
@media (min-width: 600px) {
	.widget-area .widget-column {
		width: 75%;
		max-width: 900px;
	}
}

@media (min-width: 600px) {
	.footer-widget-1 {
		padding-top: 30px;
		border: 4px double #c7c4b4;
		background-color: rgba(255,255,255,0.3);
	}
}

.page article {
	padding-bottom: 10px;
	margin-top: 30px;
	padding-top: 30px;
}

.page .hentry {
	padding-bottom: 10px;
}

