.photo-gallery-section {
  margin: 26px 0;
  padding: 24px;
  border: 1px solid #deded5;
  background: #fbfaf7;
}

.photo-gallery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.photo-gallery-heading .eyebrow {
  margin: 0 0 5px;
  color: var(--rose);
}

.photo-gallery-heading h3 {
  margin: 0;
  font: 600 25px var(--serif);
}

.photo-gallery-heading p:not(.eyebrow) {
  max-width: 560px;
  margin: 7px 0 0;
  color: #65716c;
  font-size: 12px;
  line-height: 1.55;
}

.photo-gallery-count {
  flex: 0 0 auto;
  padding: 7px 9px;
  background: #f2e4df;
  color: #8e4d49;
  font: 700 11px var(--sans);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 19px;
}

.gallery-photo-card {
  overflow: hidden;
  border: 1px solid #deded5;
  background: #fff;
}

.gallery-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eee8e2;
}

.gallery-photo-actions {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.gallery-photo-actions button,
.outline-gallery-button {
  border: 1px solid #c58d84;
  background: #fff;
  color: #8e4d49;
  padding: 8px 9px;
  font: 700 10px var(--sans);
  cursor: pointer;
}

.gallery-photo-actions button:last-child {
  border-color: transparent;
  color: #65716c;
}

.gallery-photo-actions button:disabled,
.outline-gallery-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.photo-gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 17px;
  border: 1px dashed #cac8c0;
  color: #65716c;
  font-size: 13px;
  text-align: center;
}

.photo-gallery-upload {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 17px;
}

.gallery-upload-label {
  flex: 1 1 auto;
  color: #5f6963;
  font-size: 12px;
}

.gallery-upload-label input {
  display: block;
  max-width: 100%;
  margin-top: 7px;
}

.photo-gallery-help,
.photo-gallery-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #65716c;
  font-size: 11px;
  line-height: 1.5;
}

.photo-gallery-status {
  color: #8e4d49;
  font-weight: 700;
}

@media (max-width: 600px) {
  .photo-gallery-section { padding: 19px; }
  .photo-gallery-heading { display: block; }
  .photo-gallery-count { display: inline-block; margin-top: 13px; }
  .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-gallery-upload { display: block; }
  .outline-gallery-button { width: 100%; margin-top: 12px; }
}
