.bfm-grid,
.bfm-gallery > div {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bfm-card {
  background: #fff;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  overflow: hidden;
}

.bfm-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  text-decoration: none;
}

.bfm-card-image {
  align-items: center;
  background: #f8faf7;
  border: 1px solid #edf0e8;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 240px;
  margin-bottom: 16px;
  padding: 22px;
}

.bfm-card-image img,
.bfm-gallery img,
.bfm-hero-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

.bfm-card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.bfm-card p {
  color: #56616b;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.bfm-card span {
  color: #17594a;
  font-weight: 800;
  margin-top: auto;
}

.bfm-detail {
  margin-top: 34px;
}

.bfm-detail h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  margin: 34px 0 16px;
}

.bfm-specs {
  background: #f8faf7;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  margin: 28px 0;
  padding: 22px;
}

.bfm-specs dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.bfm-specs div {
  border-bottom: 1px solid #e3e8df;
  padding-bottom: 10px;
}

.bfm-specs dt {
  color: #56616b;
  font-size: 13px;
}

.bfm-specs dd {
  font-size: 18px;
  font-weight: 700;
  margin: 3px 0 0;
}

.bfm-gallery img {
  background: #fff;
  border: 1px solid #edf0e8;
  border-radius: 8px;
  padding: 12px;
}

.bfm-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bfm-tags a {
  background: #f8faf7;
  border: 1px solid #dfe4dc;
  border-radius: 999px;
  color: #17594a;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.bfm-video iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .bfm-grid,
  .bfm-gallery > div,
  .bfm-specs dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bfm-grid,
  .bfm-gallery > div,
  .bfm-specs dl {
    grid-template-columns: 1fr;
  }

  .bfm-card-image {
    min-height: 210px;
  }
}

