/* Content cards share the same hierarchy across the calendar and gallery. */
.content-title {
  display: block;
  color: #432f1d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.content-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #6e5a43;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.content-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.content-meta small:empty,
.calendar-post-meta:empty {
  display: none;
}

.calendar .calendar-post .post {
  padding: 30px 8px 9px;
  background: #fffaf0;
  border-color: #ae956b;
  border-left-color: var(--camp, #9d7535);
}

.calendar .calendar-post .post-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eee4d1;
  border-radius: 4px;
  margin: 0 0 8px;
}

.calendar .calendar-post .post-title {
  font-size: 12px;
  line-height: 1.35;
}

.calendar .calendar-post .calendar-post-meta {
  margin: 5px 0;
  color: #6e5a43;
}

.calendar .calendar-post.is-selected .post {
  background: #f0dfb8;
}

.calendar .calendar-post:has(.post-selector) .post {
  padding-left: 8px;
}

.content-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #fffdf7;
  border-color: #ae956b;
}

.content-card:has(.schedule-thumb) {
  grid-template-columns: 64px minmax(0, 1fr);
}

.schedule-thumb {
  width: 64px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #eee4d1;
  border-radius: 5px;
}

.schedule-copy,
.gallery-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.content-card .tag {
  margin: 0;
}

.gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.gallery-card {
  border-color: #ae956b;
}

.gallery-post {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 0;
  background: #fffdf7;
}

.gallery-post .gallery-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  background: #eee4d1;
}

.gallery-post .gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-post .gallery-info {
  width: 100%;
  padding: 15px;
}

.media-placeholder {
  font: 13px Arial, sans-serif;
  color: #6e5a43;
}
