/* ---------- Stories of Hope widget styles ---------- */

.soh-widget {
  --soh-radius: 10px;
  --soh-name-color: #202945;
  --soh-location-color: #E43D30;
  --soh-excerpt-color: #555555;
  --soh-modal-bg: #EBE7E4;
  --soh-modal-name-color: #E43D30;
  --soh-modal-location-color: #E43D30;
  --soh-modal-text-color: #202945;
  --soh-divider-color: rgba(32, 41, 69, 0.15);
  --soh-overlay-bg: rgba(20, 24, 38, 0.6);
  box-sizing: border-box;
}
.soh-widget * { box-sizing: border-box; }

/* ---------- Card ---------- */
.soh-card {
  position: relative;
  width: 100%;
  border-radius: var(--soh-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(32, 41, 69, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soh-card:hover,
.soh-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(32, 41, 69, 0.2);
}

.soh-card-photo {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #C7CCD3;
  flex-shrink: 0;
}

.soh-card-info {
  width: 100%;
  background: #fff;
  padding: 16px 20px;
}

.soh-card-name {
  font-weight: 700;
  color: var(--soh-name-color);
  font-size: 17px;
  margin: 0 0 2px;
}

.soh-card-location {
  color: var(--soh-location-color);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}

.soh-card-excerpt {
  color: var(--soh-excerpt-color);
  font-size: 13px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Modal ---------- */
.soh-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--soh-overlay-bg);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.soh-modal-overlay.is-open {
  display: flex;
}

.soh-modal {
  background: var(--soh-modal-bg);
  border-radius: 14px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 700px) {
  .soh-modal { grid-template-columns: 1fr; }
}

.soh-modal-image-wrap {
  display: flex;
  justify-content: center;
}

.soh-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.soh-modal-content {
  padding: 40px 44px;
  align-self: center;
}

.soh-modal-name {
  color: var(--soh-modal-name-color);
  font-size: 32px;
  margin: 0 0 4px;
}

.soh-modal-location {
  color: var(--soh-modal-location-color);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 16px;
}

.soh-modal-divider {
  height: 1px;
  background: var(--soh-divider-color);
  margin-bottom: 20px;
}

.soh-modal-text {
  color: var(--soh-modal-text-color);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.soh-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--soh-location-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
