/* editorial.css */

.editorial-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 60px 20px; /* Space for fixed navbar */
  font-family: 'Geist', sans-serif;
}

.editorial-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}

.editorial-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111;
  margin-bottom: 0.5rem;
}

.editorial-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: #6c757d;
  margin-top: 0;
  margin-bottom: 2rem;
}

.editorial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

.editorial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.editorial-author-info {
  text-align: left;
}

.editorial-author-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}

.editorial-author-date {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.editorial-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2b2b2b;
}

.editorial-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.editorial-content p:first-of-type {
  font-size: 1.25rem;
}

.editorial-content p:first-of-type::first-letter {
  float: left;
  font-size: 5.5rem;
  line-height: 0.8;
  padding-top: 0.3rem;
  padding-right: 0.5rem;
  padding-left: 0;
  font-weight: 900;
  color: #000;
}

.pull-quote {
  font-size: 1.8rem;
  font-weight: 600;
  font-style: italic;
  color: #111;
  border-left: 5px solid #e63946;
  padding-left: 1.5rem;
  margin: 3rem 0;
  line-height: 1.4;
}

.editorial-image-full {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0 0.5rem 0;
}

.editorial-image-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

.editorial-image-wrap-right {
  float: right;
  width: 45%;
  margin: 0.5rem 0 1.5rem 2rem;
  border-radius: 8px;
}

.editorial-image-wrap-left {
  float: left;
  width: 45%;
  margin: 0.5rem 2rem 1.5rem 0;
  border-radius: 8px;
}

/* Clearfix for floated content */
.editorial-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .editorial-container {
    padding: 100px 15px 40px 15px; /* Less top padding for mobile navbar */
  }

  .editorial-title {
    font-size: 2.2rem;
  }

  .editorial-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .editorial-content {
    font-size: 1.05rem; /* Slightly smaller for better line lengths */
  }

  .editorial-content p:first-of-type::first-letter {
    font-size: 3.8rem; /* Smaller drop cap */
    padding-top: 0.1rem;
    padding-right: 0.4rem;
  }

  .pull-quote {
    font-size: 1.35rem;
    margin: 2rem 0;
    padding-left: 1rem;
  }

  .editorial-image-wrap-right,
  .editorial-image-wrap-left {
    float: none;
    width: 100%;
    max-width: 320px; /* Constrain width to prevent massive height on portrait images */
    display: block;
    margin: 2rem auto;
  }
}
