.family-sections {
  display: flex;
  flex-direction: column;
}

.family-category {
  /* margin-bottom: 2rem; */
}

.category-title {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0dbb8;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.family-member-card {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  cursor: pointer;
}

.family-member-card:hover {
  transform: translateY(-2px);
}

.member-photo {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-color, #f8f9fa);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light, #aaa);
  font-size: 8rem;
}

.info-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
}

.member-info {
  padding: 1rem;
}

.member-name {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.member-relation {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-color-light, #666);
}

.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.card-actions.dropdown {
  z-index: 10;
}
.dropdown-toggle {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color, #333);
}

.dropdown-toggle:hover {
  background: transparent;
}

.dropdown-menu {
  min-width: 120px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.member-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-photo-large {
  /* margin: 0 auto;
    overflow: hidden; */
}

.member-photo-large img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
}

.member-photo-large .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  font-size: 4rem;
  color: #aaa;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.info-item {
  gap: 0.25rem;
  text-align: left;
  padding: 0 1rem;
  font-size: 0.9rem;
}
.info-item span {
  font-weight: 500;
  font-size: 1.2rem;
}
.info-item p {
  font-size: 1.1rem;
  font-family: "Rubik", serif;
  margin-bottom: 0.5rem;
}

.info-item.full-width {
  grid-column: 1 / -1;
  padding: 0 1rem;
  text-align: left;
}

.info-item label {
  font-size: 0.9rem;
  color: var(--text-color-light, #666);
}

.info-item span,
.info-item p {
  color: var(--text-color, #333);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: transparent;
}

.empty-icon {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color, #333);
}

.empty-state p {
  color: var(--text-color-light, #666);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
}
