/* wall.css — uniform testimony wall card styling for all formats.
   Every card has the same outer chrome, same width, same media-area aspect ratio,
   same metadata block. Format-specific content fills the media area but the
   surrounding card stays identical. Color palette matches movement.html:
   #2a1140 (deep purple), #5a2a82 (purple), #b8860b (gold). */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.wall-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 10, 40, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 10, 40, 0.10);
}

/* Media area — uniform 16:9 frame for every format */
.wall-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 fallback */
  background: linear-gradient(135deg, #2a1140 0%, #5a2a82 60%, #b8860b 100%);
  overflow: hidden;
}
.wall-card-media > iframe,
.wall-card-media > video,
.wall-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}

/* Format-specific inner panels share the 16:9 frame */
.wall-card-media .panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #fff;
  text-align: center;
}

/* Audio cards */
.wall-card-media.is-audio .panel .audio-icon {
  font-size: 38px;
  margin-bottom: 10px;
  opacity: 0.95;
}
.wall-card-media.is-audio .panel audio {
  width: 92%;
  margin-top: 2px;
}

/* Written cards — pull-quote style fills the 16:9 frame */
.wall-card-media.is-written .panel {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  padding: 22px 20px;
}
.wall-card-media.is-written .panel .written-preview {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wall-card-media.is-written::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 14px;
  font-size: 60px;
  opacity: 0.22;
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 1;
}

/* Photo cards keep the image filling the frame; caption goes in meta */

/* Format badge */
.wall-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #2a1140;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 3;
}

/* Metadata block — identical structure for every format */
.wall-meta,
.wall-card-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.wall-name,
.wall-card-name {
  font-weight: 700;
  color: #2a1140;
  font-size: 15px;
  margin: 0;
  line-height: 1.25;
  font-family: 'Cinzel', serif;
}
.wall-card-loc {
  font-size: 12px;
  color: #6a6480;
  letter-spacing: 0.3px;
}
.wall-quote,
.wall-card-quote {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0 0;
  border-left: 3px solid #5a2a82;
  padding-left: 10px;
  font-style: italic;
}
.wall-card-caption {
  font-size: 13.5px;
  color: #444;
  line-height: 1.5;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wall-card-open {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #5a2a82;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.wall-card-open:hover { color: #2a1140; }

/* Empty / loading state */
.wall-empty {
  text-align: center;
  color: #777;
  padding: 30px 12px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .wall-grid { grid-template-columns: 1fr; gap: 16px; }
  .wall-card-media.is-written .panel { font-size: 15px; padding: 20px 18px; }
}
