html {
	scroll-behavior: smooth;
}

.navbar-nav {
	flex-wrap: wrap;
}

h1 {
	font-weight: bold;
	margin: 0.5em 0;
	text-align: center;
}

h2 {
	margin: 24px 0;
}

h3 {
	margin: 16px 0;
}

h1, h2, h3 {
	font-family: Playfair Display, serif
}

h1 small {
    font-size: 0.6em;
    font-weight: normal;
    color: gray;
    display: block;
    margin-top: 0.2em;
    font-style: italic;
}


/*main content.....................................*/

body {
	background-color: #FAFAFA;
}

main {
	display: flex;
	margin: 20px;
	justify-content: space-between;
	flex-wrap: wrap;
}

#content {
	display: flex;
	flex-direction: column;
	flex-grow: 4;
	min-width: 300px;
	align-items:center;
	padding: 10px;
	flex-wrap: wrap;

}

#recentPosts {
	display: flex;
	flex-direction: column;
	max-width: 350px;
	flex-grow: 1;
	align-items: center;
	margin: 0;
	padding: 5px;
	flex-wrap: wrap;
	border-left: solid black 1px;
}

.mainParagraphDiv {
	width: 90%;
	max-width: 800px;
	align-items: center;
	margin-bottom: 20px;
}

.recPostDiv {
	max-width: 200px;
	margin-bottom: 40px;
	border-bottom: dotted black 1px;
}

.recPostDiv a {
	text-decoration: none;
	color: black;
}

main p {
	font-style: 18px;
	line-height: 1.8;
	font-family: Roboto, sans-serif;
	margin: 24px
	letter-spacing:0.5px;
	color: #333333;
}

figure {
	display: table;
}

figcaption {
	background-color: rgb(240,240,240);
	padding: 5px;
	border-radius: 5px;
	display: table-caption;
	caption-side: bottom;
}

blockquote {
  font-style: italic;
  margin: 1.5em auto;
  padding: 1em 1.5em;
  border-left: 4px solid #557755;
  background-color: #f7f7f2;
  color: #333;
  max-width: 800px;
  line-height: 1.6;
}

blockquote cite {
  display: block;
  text-align: right;
  margin-top: 0.5em;
  font-style: normal;
  color: #666;
  font-size: 0.95em;
}

ul, ol {
  padding-left: 1.5em; /* Indent */
  margin-top: 1em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

table {
  width: 100%;            /* full‑width table */
  border-collapse: collapse;   /* merge borders */
}

th, td {
  border: 1px solid #ddd; /* light box around every cell */
  padding: 8px;           /* breathing room */
  text-align: left;       /* easy reading */
}

thead th {
  background: #f7f7f7;    /* subtle header contrast (optional) */
}


/*All Photos........................................*/
.mainPhotoDiv {
	display: flex;
	justify-content: center;
	width: 100%;
}

.mainPhoto {
	width:750px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
	margin: 20px 0 20px 0;
}

.recPostImg {
	max-width: 350px;
	margin:0;
}

.smallerPhotoDiv {
	float: right;
	width: 350px;
	margin-left: 20px;
}

.smallerPhotoDivLeft {
	float: left;
	width: 350px;
	margin-right: 20px;
}

.smallerPhoto {
	width: 350px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
}

.smallestPhotoDiv {
	float: right;
	width: 200px;
	margin-right: 20px;
}

.smallestPhotoDivLeft {
	float: left;
	width: 200px;
	margin-right: 20px;
}

.smallestPhoto {
	width: 200px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
}

.chevronright {
	width: 20px;
	height: 20px;
	border: solid black 1px;
	border-radius: 5px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	transition-duration: .5s;
}

.chevronright:hover {
	background-color: lightgrey;
}

.rotated {
	transform: rotate(90deg);
	background-color: yellow;
}

.btn:focus {
  box-shadow: none;
}

.internal-reference {
  background-color: #f2f8f4;
  border-left: 4px solid #557755;
  padding: 1em 1.25em;
  margin: 2em 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
  border-radius: 4px;
}

.internal-reference a {
  color: #2a5d3f;
  text-decoration: underline;
  font-weight: 500;
}

.internal-reference a:hover {
  color: #1e3e2a;
}

/*Media queries................................................*/
@media (max-width: 1070px) {
	main {
		margin: 0;	
	}
	.mainParagraphDiv {
		width: 95%;
	}

	#content {
		padding: 0;
	}
}


/*Medium screens*/
@media (max-width: 768px) {
	.mainPhoto {
		width:465px;
	}
}

@media (max-width: 465px){
	.mainPhoto {
		width:375px;
	}
}

@media (hover: none) {
  a:hover {
    background-color: transparent;
  }
}