@font-face {
  font-family: 'Charter';
  src: url('/fonts/Charter-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Charter';
  src: url('/fonts/Charter-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Charter';
  src: url('/fonts/Charter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Charter';
  src: url('/fonts/Charter-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  -webkit-text-size-adjust: 100%;
}
body, a, li, select, option, input, button {
  font-family: 'Charter', serif;
}
body { 
	background: #fff; 
	color: #222; 
	margin: 1.5rem;
	font-size: 18px;
}
a {
  color: #000;
  text-underline-offset: 2px;
  text-decoration-color: #666;
}
a:hover {
	background-color: #eee;
}
a.external {
	text-decoration-color: #CCAA55;
	text-decoration-thickness: 3px;			
}

h2 {
  font-size: 1.2rem;
  font-weight: normal;
  font-style: italic;
  padding: 0 .4rem;
  margin: 1.5rem 0;
}

header, footer {
  max-width: 800px !important;
  margin: 0 auto 1.5rem;
  padding: 1rem 0;
}
header {
	font-size: 1.2rem;
	display: flex; 
	justify-content: space-between; 
	align-items: center;
}
footer {
	margin-top: 2rem;
	border-top: 1px solid #aaa;
	font-size: 1.1rem;
}
main {
	max-width: 800px;
	margin: 0 auto;
}

#nav-links a {
  text-decoration: none;
  color: inherit;
  margin-right: 1rem;
}
#nav-links a:hover {
  text-decoration: underline;
  background-color: none;
}

.logo {
  font-weight: bold;
  background-color: #eee;
  border-radius: 5px;
  padding: .3rem .6rem;
}		
.logo:hover {
	background-color: #ddd;
}		
.logo a:hover {
	text-decoration: none !important;
}

#toggleAllPhotos {
  vertical-align: middle;
}
#toggleAllPhotos img {
  width: 40px;
  height: auto;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}		
#toggleAllPhotos img:hover {
  opacity: 1;
  background-color: #fff;
}

.filters {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  background: #f5f5f5;
  padding: 0.5em 0.6em;
  border-radius: 6px;
  display: none;   
}
.filters a {
  display: inline-block;
  font-weight: 400;
  font-size: 0.9rem;
  color: #666;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}
.filters a:hover {
  background: #f8f8f8;
  border-color: #bbb;
}
.filters a.active {
  background: #e8e4dc;
  border-color: #d6d0c4;
  color: #222;
}
.filters div {
  margin-top: 0.25em;
}

/* Log Styles */

ul { list-style-type: none; padding-left: 0; margin: 0; }
li {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  line-height: 1.6;
  padding: 0.1em 0;
}
li.date-header {
	font-weight: 700;
	margin-top: 1.1em;
}
li.date-header::before { content: none; }
li.date-header .entry-text { flex: 0 0 auto; }
li.date-header .dots, 
li.date-header .date { display: none; }
.date-header a {
  text-decoration: none;
  color: inherit;
}		
.date-header a:hover {
  text-decoration: underline;
  background-color: #fff;
  text-underline-offset: 3px;
  text-decoration-color: #333;
}

.emoji {
  flex: 0 0 1.5em;
  text-align: center;
  font-size: 1em;
  width: 1.5em;
  flex-shrink: 0;
}

.entry-text {
  flex: 1 1 auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}
	
.dots {
  flex: 1;
  border-bottom: 1px dotted #aaa;
  margin: 0 .4em;
}		
.date {
	flex: 0 0 8ch;
	white-space: nowrap;
	text-align: right;
	color: #555;
}


.photo-container {
  display: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
  margin-top: 0.5em;
}
.photo-container.show {
  display: block;
  opacity: 1;
}
.photo-container img {
  max-width: 77%;
  border-radius: 4px;
  margin-bottom: .5em;
}

.stats-block {
	font-size: 1.5rem; 
	margin:1rem 0.5rem; 
	font-style:italic; 
	color:#555; 
	line-height:1.5;
}

.day-nav {
	margin: 1.5rem 0;
}
.day-nav a {
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 8px;
  background: #fafafa;
  transition: background 0.2s ease;
}
.day-nav a:hover {
  background: #f0f0f0;
}



@media (max-width: 740px) {
	body {
		margin: 1rem;
	}
	
  .dots,
  .date {
	display: none;
  }

  li {
	line-height: 1.4;
  }

  .entry-text {
	white-space: normal;
  }
  
  li:not(.date-header) {
	  border-bottom: 1px solid #eee;
	  padding-bottom: 0.4em;
	  margin-bottom: 0.4em;
	}
  
	li.date-header {
	  border: none;
	  margin-top: 1em;
	}
	
	.photo-container img {
	max-width: 100%;
	}
	.stats-block {
		font-size: 1.2rem; 
	}
}

/* Pics Styles */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 1.5rem;
}

.photo {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  transition: transform 0.15s ease;
}
.photo:hover {
  transform: scale(1.02);
}
.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo:hover .caption span { opacity: 1; }

.photo-detail {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
  margin: 1.5rem auto;
  max-width: 1000px;
  flex-wrap: nowrap;
}

.photo-image img {
  flex: 0 0 600px;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: block;
}

.photo-meta {
  flex: 1 1 auto;
  max-width: 280px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.photo-meta p {
  margin: 0.5rem 0;
}


.date-link, .location-link {
  color: inherit;
  text-decoration: none !important;
  border-bottom: 1px dotted #ccc;
}


.nav-links {
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  font-size: 1.05rem;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: #333;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.4em 0.9em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover {
  background-color: #eaeaea;
  border-color: #999;
}

@media (max-width: 600px) {
  .nav-links {
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
  }
}

@media (max-width: 800px) {
  .photo-detail {
	flex-direction: column;
	align-items: flex-start; /* left-align instead of center */
	text-align: left;        /* left-align text */
	width: 100%;
	  max-width: 100%;
  }
  .photo-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
  }
}

@media (max-width: 600px) {
  body {
	margin: 1rem;
	font-size: 16px;
  }
  .grid {
	gap: 1.2rem;
  }
  .photo {
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .nav-links {
	  flex-direction: column;
	  align-items: center;
	  gap: 0.75rem;
	}
}
@media (max-width: 700px) {
  .grid {
	grid-template-columns: repeat(2, 1fr);
  }
}

/* Stats Styles */

.stats-grid {
  column-count: 2;
  column-gap: 1.5rem;
}

.stat-block {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  vertical-align: top;
  box-sizing: border-box;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stat-block h3 {
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.4rem;
}
.stat-block h4 {
  text-transform: uppercase;
  color: #777;
  margin-top: 2rem;
  font-size: .9rem;
  font-weight: normal;
  border-bottom: 1px dotted #444;
  padding-bottom: 0.2rem;
}

@media (max-width: 740px) {
  body{ margin:1rem; }
  .stats-grid {
	column-count: 1;
  }
}

































