.rs-cms-products {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 44px;
  padding: 30px;
  border: 1px solid #e7e7e7;
  background: linear-gradient(145deg, #101010 0%, #1b1b1b 64%, #272018 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .13);
}

.rs-cms-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.rs-cms-products__kicker {
  color: #c99a55;
  font-size: 12px;
  letter-spacing: .22em;
  line-height: 1.4;
}

.rs-cms-products__title {
  margin: 5px 0 0;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.rs-cms-products__badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(201, 154, 85, .65);
  border-radius: 999px;
  color: #e1bd87;
  font-size: 12px;
}

.rs-cms-status {
  margin: 0 0 22px;
  color: #aaa;
  font-size: 13px;
}

.rs-cms-products.has-error .rs-cms-status {
  padding: 12px 14px;
  border-left: 3px solid #c99a55;
  background: rgba(255, 255, 255, .07);
  color: #eee;
}

.rs-cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rs-cms-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rs-cms-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 154, 85, .8);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.rs-cms-card__link,
.rs-cms-card__link:link,
.rs-cms-card__link:visited {
  display: block;
  color: #222;
  text-decoration: none;
}

.rs-cms-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #ededed;
}

.rs-cms-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.rs-cms-card:hover .rs-cms-card__image img {
  transform: scale(1.025);
}

.rs-cms-card__copy {
  min-height: 146px;
  padding: 17px 18px 19px;
}

.rs-cms-card__series {
  overflow: hidden;
  color: #8a6a3b;
  font-size: 12px;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-cms-card__title {
  margin: 7px 0 6px;
  color: #181818;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.rs-cms-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rs-cms-card__more {
  display: inline-flex;
  align-items: center;
  color: #9a7137;
  font-size: 13px;
  font-weight: 600;
}

.rs-cms-card__more::after {
  content: "→";
  margin-left: 7px;
}

.rs-cms-modal-open {
  overflow: hidden;
}

.rs-cms-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
}

.rs-cms-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(340px, 1.15fr);
  width: min(1040px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: #222;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.rs-cms-modal__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  cursor: pointer;
  font: 30px/36px Arial, sans-serif;
}

.rs-cms-modal__media {
  min-height: 420px;
  background: #eee;
}

.rs-cms-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-cms-modal__body {
  box-sizing: border-box;
  padding: 42px 42px 38px;
}

.rs-cms-modal__eyebrow {
  color: #9a7137;
  font-size: 13px;
  letter-spacing: .08em;
}

.rs-cms-modal__title {
  margin: 8px 0 10px;
  color: #151515;
  font-size: 34px;
  font-weight: 600;
}

.rs-cms-modal__excerpt {
  margin: 0 0 22px;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}

.rs-cms-modal__content {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.rs-cms-modal__content table {
  width: 100% !important;
  border-collapse: collapse;
}

.rs-cms-modal__content th,
.rs-cms-modal__content td {
  padding: 9px 8px !important;
  border-bottom: 1px solid #e7e7e7 !important;
  vertical-align: top;
}

.rs-cms-modal__content th {
  color: #444;
  font-weight: 600;
}

@media (max-width: 900px) {
  .rs-cms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cms-modal__panel { grid-template-columns: 1fr; }
  .rs-cms-modal__media { min-height: 300px; max-height: 44vh; }
}

@media (max-width: 600px) {
  .rs-cms-products { padding: 20px 14px; margin-bottom: 30px; }
  .rs-cms-products__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rs-cms-products__title { font-size: 23px; }
  .rs-cms-grid { grid-template-columns: 1fr; }
  .rs-cms-card__copy { min-height: 0; }
  .rs-cms-modal { padding: 10px; }
  .rs-cms-modal__body { padding: 30px 18px 24px; }
  .rs-cms-modal__title { font-size: 28px; }
  .rs-cms-modal__content { overflow-x: auto; }
}
