@charset "utf-8";
@namespace epub "http://www.idpf.org/2007/ops";

footer{
	margin-top: 0.5em;
	text-align: right;
}

/* Centered dedications */
section[epub|type~="dedication"]{
	text-align: center;
}

section[epub|type~="dedication"] > *{
	display: inline-block;
	margin: auto;
	margin-top: 3em;
	max-width: 80%;
}

@supports(display: flex){
	section[epub|type~="dedication"]{
		align-items: center;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(98vh - 3em);
		padding-top: 3em;
	}

	section[epub|type~="dedication"] > *{
		margin: 0;
	}
}
/* End centered dedications */

/* bridgeheads */
[epub|type~="bridgehead"]{
	display: inline-block;
	font-style: italic;
	max-width: 60%;
	text-align: justify;
	text-indent: 0;
}

[epub|type~="bridgehead"] i{
	font-style: normal;
}
/* end bridgeheads */

/* figures */
figure{
	break-inside: avoid;
}

figure img{
	display: block;
	margin: auto;
	max-width: 100%;
}

figure.small-image img{
	max-width: 75%;
}

figcaption{
	font-size: .75em;
	font-style: italic;
	margin: 1em;
}

figcaption p + p{
	text-indent: 0;
}

figure.full-page{
	break-after: page;
	break-before: page;
	margin: 0;
	max-height: 100vh;
	text-align: center;
}

@supports(display: flex){
	figure.full-page{
		display: flex;
		flex-direction: column;
	}

	figure.full-page img{
		height: 100vh;
		object-fit: contain;
	}
}

figure{
	margin: 1em 40px;
	text-align: center;
}
/* end figures */

#chapter-11 table{
	margin-bottom: 0.5em;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0.5em;
}

#chapter-11 table td{
	padding-left: 1em;
	padding-right: 1em;
}

#chapter-11 table td:not(:first-child){
	text-align: center;
}

table + p{
	text-indent: 0;
}

div header p{
	font-style: italic;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
	text-align: center;
	text-indent: 0;
}

div header + p{
	text-indent: 0;
}

/* this is to italicise "diary" entries */
span > time{
	font-style: italic;
}
