
.rlg-wrap { padding: 20px; }
.rlg-title { text-align: center; margin: 10px 0 25px; font-weight: 600; }
.rlg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.rlg-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform .25s ease;
}
.rlg-card:hover { transform: translateY(-3px); }
.rlg-media { position: relative; }
.rlg-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.rlg-view {
  position: absolute;
  bottom: 12px;
  right: 12px;
  border: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  cursor: pointer;
}
.rlg-info { padding: 14px; text-align: center; }
.rlg-name { margin: 0; font-size: 1.05rem; color: #333; }
.rlg-price { margin: 6px 0 0; color: #777; }

/* Modal */
.rlg-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.rlg-modal.active { display: flex; }
.rlg-modal img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
}
.rlg-caption {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  text-align: center; color: #fff;
  font-size: 0.95rem;
}
.rlg-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 34px; line-height: 34px;
  background: transparent; border: 0; color: #fff; cursor: pointer;
}
.rlg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 28px; line-height: 44px; text-align: center;
}
.rlg-prev { left: 24px; }
.rlg-next { right: 24px; }
