/* -----------------------------------------------------------------------

 Chapelfield CSS
 http://www.chapelfieldsociety.org.uk

----------------------------------------------------------------------- */

body {
	font-family: "Inter", sans-serif;
	background-color:#393D00;
}

header {
	width:1024px;
	background-image:url(/images/background.webp);
	padding-top: 16px;
	margin:0 auto;
}
@media (max-width: 1024px) {
	header {
		width:100%;
	}
}

a {
	text-decoration:none;
	color:#663333;
}

a:hover {
	text-decoration:underline;
}

.container {
	width:1024px;
	background-image:url(/images/background.webp);
	padding-top: 16px;
	margin:0 auto;
}

@media (max-width: 1024px) {
	.container {
		width:100%;
	}
}

div.logo {
	width: 492px;
	height: 81px;
	margin: auto;
}
@media (max-width: 515px) {
	div.logo,
	div.logo img {
		width: 100%;
		height: auto;
	}
}

.navi {
	display: flex;
	justify-content: center;
	background-color:#4D511A;
	min-height: 32px;
	padding: 2px 0;
}
.nav ul {
	margin: 0;
	padding: 0;
	list-style:none;
}
.nav li {
	margin: 0;
	padding: 0;
	display:inline;
}
.nav a {
	float: left;
	display: block;
	margin: 6px 0 6px 24px; 
	color: #FFF;
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
}

#container { 
	position:relative; 
	padding-bottom:64px; 
	margin:28px 40px 0px 40px;
}
@media (max-width: 380px) {
	#container { 
		margin: 24px 16px 0px 16px;
	}
}
.clear { 
	clear: both;
}
p { 
	margin-bottom: 1.2em;
}
		

.col-narrow .col { 
	float:left; 
	margin-right:24px; 
	margin-top:20px; 
	width:250px; 
	min-height:370px;
	/*background:#CCCCCC;*/
}

.tree-listing { 
	float: left; 
	width: 200px; 
	min-height: 300px; 
	margin-right: 20px; 
	margin-bottom: 0px; 
	text-align: center; 
	/*background:#CCCCCC;*/ 
}

.tree-listing p { 
	font-size:11px; 
	margin-top:6px; 
	padding:0 8px;
}

hr { 
	border:1px solid #9C9E7F; 
	background-color:transparent;
}	

dd { 
	font-size: 12px; 
}


p {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
}
h1 {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem; /* 40px */
    font-weight: 400;
	color:#663333;
	margin-top: 8px;
    margin-bottom: 8px;
}
@media (max-width: 640px) {
	h1 {
		font-size: 1.875rem; /* 30px */
		line-height: 2.25rem; /* 36px */
	}
}

h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
	font-weight: 400;
	color:#4D511A;
	margin-top: 8px;
    margin-bottom: 8px;
}
@media (max-width: 640px) {
	h2 {
		font-size: 1.25rem; /* 20px */
		line-height: 1.75rem; /* 28px */
	}
}
h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}
h4 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
}
h5 {
	font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
}
h6 {
    font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
}

.hide-s {
	display: none; 
}

.wp-caption-text {
	font-size: 10px;
}
.alignright {
	padding: 4px 0px 4px 4px;
	margin: 0 0 4px 16px;
}
.alignleft {
	padding: 4px 4px 4px 0px;
	margin: 0 16px 4px 0;
}
.alignnone {
	padding-bottom:8px;
}
.aligncenter {
	text-align: center;
}
.alignright {
	float: right;
}
.alignleft {
	float: left;
}

.footer-decoration { 
	position:absolute; 
	height:43px; 
	width:64px; 
	bottom:0; 
	right:0;
}
#body .footer-decoration img { 
	border:none; 
}

footer { 
	width:1024px;
	clear:both; 
	min-height:107px; 
	background-image:url(/images/bg-footer.webp); 
	background-repeat:repeat-x; 
	background-color:#393D00; 
	padding:12px 0; 
	color:#FFF; 
	margin:0 auto;
}
@media (max-width: 1024px) {
	footer {
		width:100%;
	}
}
footer p { 
	padding:12px 32px 0 32px;
}
@media (max-width: 1024px) {
	footer p {
		padding:12px 24px 0 24px;
	}
}
footer a { 
	color:#FFF; 
} 


/* --- Homepage ------------------------------------ */

.homepage .content-layout {
	display: flex;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.homepage .content-layout {
		flex-direction: column;
	}
}

.homepage .image-container {
	margin-left: 20px;
}
@media (max-width: 768px) {
	.homepage .image-container {
		margin: 16px auto;
	}
	.homepage .image-container img {
		width: 100%;
	}
}


/* --- About Page ------------------------------------ */

.about-page .content-layout {
	display: flex;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.about-page .content-layout {
		flex-direction: column;
	}
}

.about-page .content-body {
	flex: 1;
}

.about-page .image-container {
	margin-left: 20px;
}
@media (max-width: 768px) {
	.about-page .image-container {
		margin: 16px auto;
	}
	.about-page .image-container img {
		width: 100%;
	}
}

.about-page .about-image {
	max-width: 256px;
}

.about-page h1 {
	margin-bottom: 12px;
}


/* --- History Page ------------------------------------ */

.history-page .content-layout {
	display: flex;
	align-items: flex-start;
	margin-bottom: 16px;
}
@media (max-width: 768px) {
	.history-page .content-layout {
		flex-direction: column;
	}
}

.history-page .image-container.chapelfield-map {
	margin-left: 16px;
}
@media (max-width: 768px) {
	.history-page .image-container.chapelfield-map {
		margin: 16px 0;
	}
	.history-page .image-container.chapelfield-map img {
		width: 100%;
	}
}
.history-page .image-container {
	margin: 0;
}
.history-page .gallery-item .image-container img {
	width: 100%;
}
@media (max-width: 768px) {
	.history-page .image-container {
		margin: 16px 0;
	}
}

.history-page .image-container figcaption {
	font-size: 0.75rem; /* 12px */
	line-height: 1rem; /* 16px */
	margin-top: 4px;
	color: #333;
}

.history-page .gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 768px) {
	.history-page .gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.history-page .gallery {
		grid-template-columns: repeat(1, 1fr);
	}
}
  
.history-page .gallery-item {
	display: flex;
	flex-direction: column;
}
  
.history-page .gallery-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.history-page .gallery-description {
	margin: 8px 0;
}


/* --- Post Pages ------------------------------------ */

.post-page .content-layout {
	display: flex;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.post-page .content-layout {
		flex-direction: column;
	}
}

.post-page .image-container {
	margin: 16px 24px;
}

@media (max-width: 768px) {
	.post-page .image-container {
		margin: 16px 0;
	}
	.post-page .image-container img {
		width: 100%;
	}
}

.post-page .post-timestamp {
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
}


/* --- News Page ------------------------------------ */

.news-page ul {
	padding-left: 0;
}

.news-page .list-item {
	list-style: none;
}

.news-page .list-item time {
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
}

.news-page .content-layout {
	display: flex;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.news-page .content-layout {
		flex-direction: column;
	}
}

.news-page .content-body {
	flex: 1;
}

.news-page .image-container {
	margin-left: 24px;
	margin-right: 16px;
}
@media (max-width: 768px) {
	.news-page .image-container {
		margin: 16px 0;
	}
	.news-page .image-container img {
		width: 100%;
	}
}


/* --- Arboretum Page ------------------------------------ */

.arboretum-page ul {
	padding-left: 0;
}

.arboretum-page .list-item {
	list-style: none;
}

.arboretum-page .content-layout {
	display: flex;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.arboretum-page .content-layout {
		flex-direction: column;
	}
}


.arboretum-page .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
  }
  
.arboretum-page .content-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
}
  
.arboretum-page .content-body h2 {
	font-size: 1.25rem;
	margin-bottom: 10px;
	text-align: center;
}
  
.arboretum-page .content-body time {
	font-size: 0.875rem;
	color: #555;
}
  
.arboretum-page .image-container img {
	width: 100%;
	height: auto;
	display: block;
}
  
.arboretum-page .gallery-description {
	font-size: 0.875rem;
	color: #555;
	margin-top: 10px;
	text-align: center;
}
  
@media (max-width: 600px) {
	.arboretum-page .gallery {
	  grid-template-columns: 1fr;
	}
}

.arboretum-page .image-summary {
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
	text-align: center;
}


/* --- Arboretum Post Page ------------------------------------ */

.arboretum-post-page .image-container {
	margin: 16px 0;
}


/* --- Chapelfield Page ------------------------------------ */

.chapelfield-page .content-body {
	display: flex;
	flex-direction: column;
}
  
.chapelfield-page .season {
	margin-bottom: 32px;
}


/* Adapted from original chapelfield.css for Hugo */
#body {
    position: relative;
    padding-bottom: 64px;
    margin: 28px 38px 0px 38px;
}

.wp-caption.alignright {
    padding: 4px 0px 4px 4px;
    margin: 0 0 2px 7px;
    float: right;
    width: 260px;
}

.wp-caption img {
    display: block;
    width: 250px;
    height: auto;
}

.wp-caption-text {
    font-size: 10px;
    color: #663333;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
}

.footer-decoration img {
    width: 64px;
    height: 43px;
    border: none;
}

.footer-text {
	font-size: 0.75rem; /* 12px */
	line-height: 1rem; /* 16px */
}
.footer-text a {
	text-decoration: underline;
}


/* --- Utility Classes ------------------------------------ */

.text-right {
	text-align: right;
}
