.Condolences {
  margin: 0;
}

.Condolences__list {
  display: grid;
  gap: 1.25rem;
}

.Condolences__searchWrap {
  margin-bottom: 1rem;
}

.Condolences__searchLabel {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.Condolences__searchInput {
  width: 100%;
  max-width: 360px;
  height: 2.4rem;
  padding: 0 0.65rem;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  font: inherit;
}

.Condolences__item {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.Condolences__body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.Condolences__main {
  min-width: 0;
}

.Condolences__header {
  margin-bottom: 0.75rem;
}

.Condolences__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-family: 'Libre Baskerville', serif;
  font-weight: 600;
}

.Condolences__meta {
  margin: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #50575e;
}

.Condolences__imageWrap {
  margin: 0;
}

.Condolences__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.Condolences__shortDescription {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.Condolences__content {
  margin: 0;
}

.Condolences__actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.Condolences__actionLink {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.Condolences__readMore {
  margin-top: 0;
}

.Condolences__comments {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.Condolences__commentsTitle {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.Condolences__commentsList {
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  gap: 1.5rem;
}

.Condolences__comment {
  margin: 0;
  border: solid 1px #ccc;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: #f3f3f3;
}

.Condolences__commentAuthor {
  margin: 0 0 0.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.Condolences__commentDate {
  display: block;
  font-size: 0.82rem;
  color: #646970;
  margin-bottom: 0.1rem;
}

.Condolences__commentText {
  margin: 0;
}

.Condolences__empty {
  margin: 0;
  color: #646970;
}

.Condolences__pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.Condolences__paginationLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  text-decoration: none;
  color: #1f2933;
  background: #fff;
  padding: 0 0.5rem;
  cursor: pointer;
  font: inherit;
}

.Condolences__paginationEllipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  color: #3c434a;
}

.Condolences__paginationLink--active {
  background: #f6f7f7;
  color: #2c3338;
  border-color: #dcdcde;
  font-weight: 700;
}

.Condolences__paginationLink--prev,
.Condolences__paginationLink--next {
  padding: 0 0.75rem;
}

.Condolences__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.Condolences__modal.is-open {
  display: flex;
}

.Condolences__modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.Condolences__modalDialog {
  position: relative;
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(80vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1rem 1.2rem;
  z-index: 1;
}

.Condolences__modalClose {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.Condolences__modalTitle {
  margin: 0 1.8rem 0.7rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

.Condolences__modalBody p:first-child {
  margin-top: 0;
}

@media (max-width: 782px) {
  .Condolences__body {
    grid-template-columns: 1fr;
  }
}
