.reviews-summary-row {
  padding: 21px 14px 21px 16px !important;
  display: flex;
  gap: 12px;
  align-items: center;
}
.reviews-summary {
  width: 310px;
  height: 380px;
  line-height: 18px !important;
  font-size: 14px !important;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1) !important;
}
.reviews-summary img {
  margin: 0;
}
.reviews-summary span:first-child {
  width: 106px;
}
.reviews-summary > div:last-child {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1) !important;
}
.reviews-text-card {
  width: 310px;
  height: 380px;
  background-color: #fcfbf9;
  border-radius: 8px;
  padding: 24px 16px;
}
.reviews-text-card-rating {
  line-height: 0;
}
.reviews-text-card-title {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  line-height: 21px;
  margin-top: 8px;
}
.reviews-text-card-description {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  margin-top: 16px;
}
.reviews-text-card-author {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  margin-top: 16px;
}
.reviews-video-wrapper {
  position: relative;
  display: inline-block;
  width: 310px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
}
.reviews-video-card {
  width: 310px;
  height: 380px;
  object-fit: cover;
}
.video-poster {
  position: absolute; /* relative to .reviews-video-wrapper */
  width: 128px;
  height: 128px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center by its own width/height */
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.video-poster-play {
  position: absolute; /* relative to .reviews-video-wrapper */
  width: 128px;
  height: 128px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center by its own width/height */
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.user-photo {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 64px;
  height: 64px;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.user-info-vid {
  position: absolute;
  bottom: 23px;
  left: 92px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}
.user-name-vid {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
}
.user-verified-vid {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  line-height: 21px;
}
.video-hidden,
.user-photo-hidden,
.user-info-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-poster-zoom {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 407px;
  height: 450px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* New Grid Styles */
.reviews {
  padding: 64px 0px !important;
}

.review-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.reviews-header {
  text-align: center;
  margin-bottom: 54px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 310px);
  grid-template-rows: repeat(2, 380px);
  gap: 24px;
  row-gap: 54px;
  justify-content: center;
}

.reviews-header-text {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 100%;
}

.d-none-desk {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 310px);
    grid-template-rows: repeat(3, 380px);
  }
}

@media (max-width: 1050px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 310px);
    grid-template-rows: repeat(4, 380px);
  }
}

@media (max-width: 700px) {
  .reviews-grid {
    grid-template-columns: 310px;
    grid-template-rows: repeat(8, 380px);
  }

  .d-none-desk {
    display: block;
  }

  .reviews-text-card-rating img {
    width: 114px;
    height: 24px;
  }

  .reviews-text-card-description {
    line-height: 24px;
  }
}

@media (max-width: 700px) {
  .reviews-header {
    margin-bottom: 64px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 380px repeat(7, auto);
    gap: 24px;
    padding: 0 16px;
    max-width: 440px;
    margin: 0 auto;
  }

  .reviews-summary,
  .reviews-text-card {
    width: 100%;
    max-width: 408px;
    min-width: none;
  }

  .reviews-summary {
    font-size: 21px !important;
  }

  .reviews-summary span:first-child {
    width: 159px !important;
  }

  .reviews-text-card {
    height: auto;
    padding: 24px 16px;
  }

  .reviews-text-card-title {
    font-size: 24px;
    line-height: 32px;
    min-width: none;
  }

  .reviews-video-wrapper {
    width: 100%;
    max-width: 408px;
    min-width: 288px;
    height: 500px;
  }

  .reviews-video-card {
    width: 100%;
    max-width: 408px;
    min-width: none;
    height: 500px;
  }

  .video-poster-zoom {
    width: 523px;
    max-width: none;
    height: 595px;
    min-width: none;
  }
}

@media (max-width: 353px) {
  .reviews-summary {
    font-size: 14px !important;
  }

  .reviews-header-text {
    font-size: 32px !important;
  }

  .reviews-header {
    margin-bottom: 32px;
  }

  .reviews {
    padding: 32px 0px !important;
  }
}
