/* OBITUARIES PAGE */

.obits-page main.obits-main {
  max-width: 980px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.2;
}

.obits-header {
  text-align: center;
  margin: 0 0 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  padding: 0.24rem 0 0.2rem;
}

.obits-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variant: small-caps;
  font-weight: 700;
  opacity: 1;
}

.obits-header h1 {
  margin: 0.12rem 0 0;
  font-size: 0.84rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.obits-dek {
  margin: 0.15rem 0 0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  font-style: normal;
}

.obits-wrapper {
  position: relative;
  margin-top: 0.35rem;
}

.obits-rule {
  border-top: 3px double rgba(0, 0, 0, 0.75);
  margin: 0.75rem 0;
}

.obits-list {
  column-count: 4;
  column-gap: 1.1rem;
}

.obit-card-link {
  display: inline-block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.obit-slot {
  display: inline-block;
  width: 100%;
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
  font-size: var(--obit-font-size, 12px);
  margin: 0 0 0.4rem;
  padding: 0.18rem 0 0.12rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.24);
  background: transparent;
  transform-origin: center center;
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.obit-slot:hover,
.obit-slot:focus-within {
  transform: scale(1.5);
  filter: saturate(1.02);
  z-index: 30;
  background: #ffffff !important;
  border-top-color: transparent;
}

.obit-slot:hover .obit-heading,
.obit-slot:focus-within .obit-heading {
  margin-bottom: 0.52rem;
}

.obit-slot:hover .obit-dates,
.obit-slot:focus-within .obit-dates {
  display: block;
  margin-top: 0.2rem;
}

.obit-slot:hover .obit-body,
.obit-slot:focus-within .obit-body {
  line-height: 1.28;
}

.obit-slot + .obit-slot {
  margin-top: 0;
}

/* Subtle rip/tear artifacts and ink bleed per obituary slot. */

.obit-heading {
  display: block;
  flex-wrap: wrap;
  margin-bottom: 0.1rem;
  text-align: center;
}

.obit-name {
  margin: 0;
  font-size: 1.03em;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.obit-dates {
  font-size: 0.79em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  opacity: 1;
  text-align: center;
}

.obit-body {
  margin: 0;
  font-size: 1em;
  line-height: 1.15;
  text-align: center;
}

.obit-body strong {
  font-weight: 700;
}

.obit-body em {
  font-style: italic;
}

/* OPTIONAL SMALL META ROW */
.obit-meta {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* MAKE IT FEEL PRINTED */
.obits-page,
.obit-slot {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Per-obit randomized typography classes assigned by JS. */
.obit-font-1 {
  font-family: Georgia, serif;
}

.obit-font-2 {
  font-family: Garamond, Georgia, serif;
}

.obit-font-3 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
}

.obit-font-4 {
  font-family: "Bookman Old Style", Georgia, serif;
}

.obit-font-5 {
  font-family: "Century Schoolbook", Georgia, serif;
}

/* Slight spacing variance creates irregular slot lengths. */
.obit-length-1 {
  padding-bottom: 0.1rem;
}

.obit-length-2 {
  padding-bottom: 0.28rem;
}

.obit-length-3 {
  padding-bottom: 0.55rem;
}

/* ── G-AD mock placeholders ───────────────────────────── */
.obit-ad-block {
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 0.4rem;
}
.obit-mock-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 190px;
  border: 1.5px solid rgba(0,0,0,.5);
  background: linear-gradient(180deg, #ededed 0%, #f0e8d8 60%, #ddd6c4 100%);
  padding: .55rem .6rem;
  box-sizing: border-box;
  position: relative;
  text-align: center;
}
.obit-mock-ad-rule-top {
  position: absolute;
  top: .3rem; left: .3rem; right: .3rem;
  border-top: 1px solid rgba(0,0,0,.28);
}
.obit-mock-ad-rule-bot {
  position: absolute;
  bottom: .3rem; left: .3rem; right: .3rem;
  border-top: 1px solid rgba(0,0,0,.28);
}
.obit-mock-ad-overline {
  font-family: var(--typewriter-stack, monospace);
  font-size: .43rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(0,0,0,.46);
  margin: 0 0 .2rem;
}
.obit-mock-ad-headline {
  font-family: "IMFellEnglishSmallCapsLocal", serif;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .15rem;
}
.obit-mock-ad-divider {
  font-size: .5rem;
  color: rgba(0,0,0,.3);
  margin: .08rem 0;
}
.obit-mock-ad-body {
  font-family: "IMFellEnglishLocal", serif;
  font-style: italic;
  font-size: .62rem;
  line-height: 1.4;
  color: rgba(0,0,0,.68);
  margin: 0 0 .16rem;
}
.obit-mock-ad-sub {
  font-family: var(--typewriter-stack, monospace);
  font-size: .42rem;
  letter-spacing: .06em;
  color: rgba(0,0,0,.4);
  margin: 0;
}
.obit-mock-ad-badge {
  position: absolute;
  bottom: .2rem;
  right: .24rem;
  font-family: var(--typewriter-stack, monospace);
  font-size: .4rem;
  color: rgba(0,0,0,.22);
}

@media (max-width: 1100px) {
  .obits-list {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .obits-list {
    column-count: 1;
  }
}