@media (max-width: 767px) {
  .profile.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
    width: 100% !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
  }

  .profile.wp-block-columns > .wp-block-column {
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
    margin: 0 !important;
  }

  .profile .wp-block-cover,
  .profile img,
  .profile .wp-block-cover img {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}

.member-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.member-name-card {
  border-top: 3px solid #111;
  border-bottom: 3px solid #111;
  padding: 10px 0;
  background: #fff;
}

.card-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 0 8px 10px;
}

.photo-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.photo-area img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.spouse-name {
  text-align: center;
  font-size: 17px;
  letter-spacing: 7px;
}

.name-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #999;
  padding-bottom: 4px;
}

.name-line strong {
  font-size: 30px;
  letter-spacing: 8px;
}

.name-line span {
  font-size: 16px;
}

.position-badge {
  display: inline-block;
  background: #159bd3;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  margin: 6px 0;
}

.date-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #bbb;
  border-bottom: 1px dashed #bbb;
  padding: 5px 0;
  font-size: 15px;
}

.address-line {
  font-size: 17px;
  line-height: 1.5;
  margin-top: 5px;
}

.phone-line {
  font-size: 20px;
  font-weight: 800;
}

.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #159bd3;
  color: #fff;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 13px;
}

.company-box {
  border: 1px solid #c7c7c7;
  margin: 0 8px;
  text-align: center;
}

.company-name {
  background: #cfe3f6;
  font-size: 24px;
  font-weight: 800;
  padding: 6px 0;
}

.company-role {
  padding: 7px 0;
  font-size: 15px;
}

@media (max-width: 768px) {
  .member-card-list {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .card-top {
    grid-template-columns: 220px 1fr !important;
  }

  .date-line {
    flex-direction: row !important;
  }
}

/* 직장/자택 주소 글씨 작게 */
.address-line {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

/* 배우자 이름을 사진 바로 밑으로 붙이기 */
.spouse-name {
  margin-top: -2px !important;
  padding-top: 0 !important;
  line-height: 1.1 !important;
}

/* 사진 영역 아래 여백 줄이기 */
.photo-area {
  row-gap: 2px !important;
}

.phone-line {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.phone-icon.hp {
  background: #159bd3;
}

.phone-icon.tel {
  background: #555;
}

.phone-icon.home {
  background: #7aa95c;
}

/* ===== 단일사진 모드 ===== */
.member-name-card.single .photo-area {
  width: 150px;
  min-width: 200px;
}

.member-name-card.single .photo-area img {
  width: 150px;
  height: 200px;
  object-fit: cover;
}

/* 배우자 관련 요소 제거 */
.member-name-card.single .photo-area img:nth-child(2),
.member-name-card.single .photo-area .spouse-name,
.member-name-card.single .photo-area div {
  display: none;
}