/* General Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Stoke', serif;
  color: #444;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

#page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.section-title {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

/* Header */
header {
  text-align: center;
  padding-bottom: 20px;
  margin: 10px 0 0 0;
}

.title {
  max-width: 100%;
  height: auto;
  margin: 0;
}

.subtitle {
  font-size: 1.2em;
  color: #555;
  margin: 10px 0 0 0;
}

/* Site Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(249, 249, 249, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 0 -20px 30px;
  padding: 0 20px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

.site-nav a {
  color: #555;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #222;
  border-bottom-color: #888;
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.about-image {
  border-radius: 10px;
  flex: 1;
  padding: 0px;
  margin: 10px;
  overflow: hidden;
}

.about-content {
  border-radius: 10px;
  flex: 1;
  padding: 40px;
  margin: 10px;
  background-color: lightgray;
}

.about-image img {
  max-width: 100%;
  height: auto;
  display: block;

}

.about-content h2 {
  margin: 0;
}

.about-content p {
  line-height: 1.75;
  padding: 10px 0 0 0;
}

.about-content .about-dates {
  margin-top: 20px;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  font-style: italic;
  font-size: 1.05em;
  color: #555;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Videos Section */
.videos-section {
  margin-bottom: 40px;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.video-gallery iframe {
  flex: 1 1 45%;
  height: 315px;
  border-radius: 10px;
  overflow: hidden;
}

/* Publications Section */

/* Publications Section Enhancements */
.publications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.publication {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: calc(33% - 10px);
  padding: 15px;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.publication:hover {
  transform: scale(1.02);
}

.publication img {
  width: 100%;
  height: 190px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.publication h3 {
  margin: 0 0 8px;
  font-size: 1.1em;
  color: #222;
  line-height: 24px;
}

.publication p {
  margin: 4px 0;
  line-height: 1.4;
}

.publication .date {
  font-size: 0.9em;
  color: #777;
}

.publication a {
  text-decoration: none;
  color: inherit;
  display: block;
}


.publications-section {
  margin-bottom: 40px;
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publication-item h3 {
  margin: 0;
}

.publication-item p {
  margin: 5px 0 0 0;
}

/* Testimonials Section */
.testimonials-section {
  margin-bottom: 40px;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
  margin-top: 20px;
}

.testimonial {
  width: calc(50% - 30px);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0;
  padding: 0;
  border: 0;
  quotes: "\201C" "\201D";
}

.testimonial blockquote::before {
  content: open-quote;
  margin-right: 2px;
}

.testimonial blockquote::after {
  content: close-quote;
  margin-left: 2px;
}

.testimonial-author {
  text-align: right;
  margin: 16px 0 0 0;
  font-style: normal;
  font-weight: bold;
  color: #555;
}

/* Photo Gallery Section */
.photo-gallery-section {
  margin-bottom: 40px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}

.photo-grid a,
.photo-placeholder {
  width: calc(33.333% - 14px);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: block;
  overflow: hidden;
}

.photo-grid a img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  background: linear-gradient(135deg, #dcdcdc 0%, #c2c2c2 100%);
}

/* Obituary Section */
.obituary-section {
  margin-bottom: 40px;
}

.obituary-content {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 1.05em;
  line-height: 1.85;
  color: #3a3a3a;
}

.obituary-content p {
  margin: 0 0 1.2em 0;
}

.obituary-content .obituary-lead {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 1.8em;
  font-size: 1em;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .testimonial {
    width: 100%;
  }

  .photo-grid a,
  .photo-placeholder {
    width: calc(50% - 10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
  }

  .video-gallery {
    flex-direction: column;
  }

  .video-gallery iframe {
    width: 100%;
  }
}
