.cngb-qc-photos {
  box-sizing: border-box;
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid rgba(22, 24, 29, 0.12);
  border-radius: 8px;
  background: #fff;
}

.cngb-qc-photos *,
.cngb-qc-photos *::before,
.cngb-qc-photos *::after {
  box-sizing: border-box;
}

.cngb-qc-photos__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.cngb-qc-photos__eyebrow {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cngb-qc-photos h2,
.cngb-qc-photos h3 {
  margin: 0;
  color: #191b20;
  letter-spacing: 0;
  line-height: 1.25;
}

.cngb-qc-photos h2 {
  font-size: 22px;
}

.cngb-qc-photos h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.cngb-qc-photos__group + .cngb-qc-photos__group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 24, 29, 0.1);
}

.cngb-qc-photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.cngb-qc-photos__item {
  min-width: 0;
  margin: 0;
}

.cngb-qc-photos__item a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(22, 24, 29, 0.1);
  border-radius: 8px;
  background: #f5f6f8;
}

.cngb-qc-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cngb-qc-photos__item figcaption,
.cngb-qc-photos__item time {
  display: block;
  margin-top: 7px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cngb-qc-photos__item time {
  color: #6b7280;
  font-size: 12px;
}

.cngb-qc-admin-box {
  display: grid;
  gap: 18px;
}

.cngb-qc-upload-form {
  max-width: 760px;
  padding: 14px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fbfbfc;
}

.cngb-qc-upload-form select,
.cngb-qc-upload-form input[type="text"],
.cngb-qc-upload-form input[type="file"] {
  max-width: 100%;
}

.cngb-qc-admin-table td {
  vertical-align: top;
}

.cngb-qc-admin-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #f6f7f7;
}

.cngb-qc-inline-form {
  display: inline-block;
  margin: 4px 4px 0 0;
}

.cngb-qc-settings {
  max-width: 860px;
}

@media (max-width: 640px) {
  .cngb-qc-photos {
    margin-top: 18px;
    padding: 16px;
  }

  .cngb-qc-photos__grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
  }

  .cngb-qc-photos h2 {
    font-size: 19px;
  }
}
