.rhf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.rhf-card {
  display: block;
  overflow: hidden;
  border: 1px solid #e8e1e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(64 25 70 / 8%);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.rhf-card:hover {
  box-shadow: 0 18px 44px rgb(64 25 70 / 14%);
  transform: translateY(-2px);
}

.rhf-card__image {
  display: block;
  background: #f7eff8;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rhf-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rhf-card__body {
  padding: 16px 18px;
}

.rhf-card__body time {
  color: #75147d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rhf-card__body h3 {
  margin: .3rem 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.rhf-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.rhf-card__body h3 a:hover {
  text-decoration: underline;
}

.rhf-count {
  color: #75147d;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rhf-date {
  margin: 0 0 1.25rem;
  color: #75147d;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rhf-grid p:empty,
.rhf-detail p:empty {
  display: none;
}

.rhf-button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: #75147d;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.rhf-button:hover {
  background: #5c0f62;
  transform: translateY(-1px);
}

.rhf-empty {
  padding: 2rem;
  border: 1px solid #e8e1e9;
  border-radius: 12px;
  background: #fff;
  color: #6e6471;
}

.rhf-back {
  margin: 0 0 1rem;
}

.rhf-back a {
  color: #75147d;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.rhf-back a:hover {
  text-decoration: underline;
}

.rhf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 1.75rem;
  color: #6e6471;
  font-size: .92rem;
}

.rhf-meta a {
  color: #75147d;
  font-weight: 700;
  text-decoration: none;
}

.rhf-meta a:hover {
  text-decoration: underline;
}

.rhf-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.rhf-photo-trigger {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  background: #f7eff8;
}

.rhf-photo-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.rhf-photo-trigger:hover img {
  transform: scale(1.05);
}

.rhf-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(20 8 22 / 88%);
  opacity: 0;
  transition: opacity .2s ease;
}

.rhf-lightbox.is-open {
  opacity: 1;
}

.rhf-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 40%);
}

.rhf-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.rhf-lightbox__close:hover {
  background: rgb(255 255 255 / 25%);
}

body.rhf-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .rhf-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .rhf-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
}
