/* Base Reset & Styling */
.post-section {
  background-color: #f9f9f9; /* Soft whitish background */
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}

.post-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff; /* Crisp white content card */
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* Subtle floating effect */
}

/* Header */
.post-header {
  margin-bottom: 15px;
}

.post-category {
  background-color: #f0f4f8;
  color: #2b6cb0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 0.95rem;
  color: #718096;
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

/* Content */
p.post-content {
  all: revert;
  font-family: var(--theme-font-family);
  line-height: 1.8;
  color: #4a5568;
  text-align: left;
}

.lead-text {
  color: #2d3748;
}

/* Parent container style */
.photo-gallery {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Rule 1: If exactly one photo, stretch full width */
.grid-layout-1 {
    grid-template-columns: 1fr;
}

/* Rule 2: If two photos, split 50/50 */
.grid-layout-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Rule 3: If three or more, cap at max three per row */
.grid-layout-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Image style handling */
.photo-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}