.obituary {
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 2em;
  overflow: auto;
}

.obituary p {
  max-width: 60ch;
  margin: 0 auto;
}

.obit-text {
  min-width: 280px;
  text-align: left;
  margin-bottom: 1.75em; /* or 24px if you're using px units */
}

.obit-info {
  width: 90px;
  float: left;
  margin-right: 15px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.headshot {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 5px auto;
  border-radius: 0;
}

.obit-name {
  font-weight: bold;
  font-size: 0.85em;
  line-height: 1.2;
  margin-bottom: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.obit-entry {
  margin-bottom: 1.5rem;
  border-left: 5px solid #999;
  padding-left: 1rem;
}

.obit-entry .name {
  font-size: 1.2rem;
  font-weight: bold;
}

.obit-entry .details {
  font-size: 0.95rem;
  color: #555;
}

.lineage-break {
  border: none;
  border-top: 0.95px solid #ccc;
  margin: 1em 0;
  width: 100%;
}

.lineage-link {
  margin-bottom: 1rem;  
  background-color: #fdf6e3;
  padding: 0.5em;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: Georgia, serif;
  text-align: center;
}

.vet-flag {
  font-size: 0.85em;   /* slightly smaller than text */
  margin-left: 4px;    /* breathing room */
  opacity: 0.85;       /* softens it a bit */
}

/* ---------------------------------------
   OBITUARY INDEX PAGE STYLES
   --------------------------------------- */

.obituary-index {
  margin: 20px 0 40px 0;
}

.obituary-index h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  text-align: left;
  color: #333;
}

/* The list wrapper */
.obit-year-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each year entry */
.obit-entry {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.obit-entry:last-child {
  border-bottom: none;
}

/* Year title (the link) */
.obit-entry .name {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.obit-entry .name a {
  color: #2a2a2a;
  text-decoration: none;
}

.obit-entry .name a:hover {
  text-decoration: underline;
}

/* Small descriptive text under each year */
.obit-entry .details {
  margin: 4px 0 0 0;
  font-size: 0.95em;
  color: #666;
}

/* Optional: subtle hover effect for each entry */
.obit-entry:hover {
  background-color: #fafafa;
  transition: background-color 0.2s ease-in-out;
}












/* --- Master Unified Obituary Package --- */
.obit-package {
  max-width: 500px; /* Perfect scanning width for both text and clipping images */
  margin: 30px auto;
  background: #fcfcf9; /* Subtle vintage newsprint off-white */
  padding: 20px;
  border: 1px solid #dcdcdc;
  border-top: 4px double #333; /* Elegant vintage dual-line newspaper top border */
  border-bottom: 4px double #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  font-family: Georgia, serif; /* Switch to a highly readable editorial serif */
}

/* Header Elements (Newspaper Name, Date, Headline) */
.obit-meta-header {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.obit-paper-name {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  margin: 0;
}
.obit-date-line {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin: 2px 0 0 0;
}
.obit-headline {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin: 15px 0;
  color: #111;
}

/* Text Content (For Typed-Out Scenarios) */
.obit-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
  margin-bottom: 12px;
  text-align: justify; /* Newspaper column style alignment */
}

/* Media Containers (For Clippings and Tombstones) */
.obit-media-group {
  margin: 15px 0;
}
.obit-package figure {
  margin: 0 0 15px 0;
  padding: 0;
}
.obit-package figure:last-child {
  margin-bottom: 0; /* Clear margin if stacked */
}
.obit-package img {
  width: 100%; /* Scales naturally up to the 500px container limit */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #f0f0f0;
}

/* Combined Captions */
.obit-caption {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}
.obit-source-credit {
  display: block;
  font-style: italic;
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}

.obit-mini-header {
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
  font-weight: bold;
  color: #777;
  margin-bottom: 5px;
}

.obit-headline {
  margin-top: 0;
  font-size: 1.6em; /* adjust if needed */
  font-weight: bold;
  color: #333;
}
