#ad_grid {
  margin-top: 10px;
  column-width: 220px;
  column-count: 5;
  column-gap: 10px;
  /* outline: 1px solid orange; */
}

/* @media (min-width: 576px) {
  #ad_grid {
  }
} */

#ad_grid a {
  text-decoration: none;
}

#ad_grid a:hover,
#ad_grid a:active {
  outline: 0;
}

#ad_grid a:focus {
  text-decoration: none;
  outline: 1px auto transparent;
}

/* - - - - - - - - - - - - - - - - - */

.sample {
  outline: 2px solid #d1d2d4;
  /* box-shadow: 0 10px 6px -6px orange; */
}

/* - - - - - - - - - - - - - - - - - -  */
.ad-card {
  margin-bottom: 12px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 10px;
  /*  */
  display: flex;
  flex-direction: column;
  /*  */
  font-size: 1.2rem;
  color: #222;
  /*  */
  /* transform: translateX(100px); */
  transform: scale(0.5);
  transition: 150ms;
  /*  */
  break-inside: avoid;
  /*  */
  overflow: hidden;
  opacity: 0;
  /* outline: 2px solid red; */
}

.ad-card:nth-child(3n + 1) {
  background: #e4d1d1;
}

.ad-card:nth-child(3n + 2) {
  background: #b9b0b0;
}

.ad-card:nth-child(3n + 3) {
  background: #d9ecd0;
}

.ad-card:last-child {
  background: #CCD1D9;
}

.ad-card.show {
  transform: scale(1);
  opacity: 1;
}

.ad-card:hover {
  outline: 4px solid #4FC1E9;
  cursor: pointer;
}

.ad-card .header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ad-card .title {
  font-size: 1.3rem;
  font-weight: bold;
  /*  */
  -ms-word-break: break-all;
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  /* outline: 1px solid red; */
}

.ad-card .title a {
  font-weight: bold;
}

.ad-card .header-line .date,
.ad-card .header-line .category {
  font-size: 14px;
  font-weight: normal;
  /* letter-spacing: 1px; */

  /* outline: 1px solid red; */
}

.ad-card .detail {
  flex-grow: 1;
  padding-top: 2px;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #333;
  /* outline: 1px solid red; */
}

.ad-card .location {
  font-size: 0.8rem;
  line-height: 1;
  color: #222;
  text-align: left;
  /* outline: 1px solid red; */
}

.ad-card .amount {
  font-size: 1rem;
  line-height: 1.2;
  color: #222;
  text-align: right;
  letter-spacing: 1px;
}

.ad-card .footer {
  /* margin: 4px -12px -6px -12px; */
  margin-top: 4px;
  margin-right: -12px;
  margin-bottom: -6px;
  margin-left: -12px;
  padding: 2px 12px 4px;
  background: #f8f9fa;
  /* #F6F7F8; */
  /*  */
  font-size: 1.2rem;
  font-weight: 500;
  color: #444;
  /* line-height: 1.38; */
  letter-spacing: 1px;
  text-align: center;
  border-top: 1px solid #ddd;
}

.ad-card .footer span {
  margin-left: 10px;
  font-weight: 600;
}
