.xs-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.xs-image-slot {
  border: 1px dashed #cfd6df;
  border-radius: 12px;
  padding: 0.85rem 0.7rem 0.75rem;
  background: #f7f8fa;
  text-align: center;
}

.xs-image-slot__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 15px;
  font-weight: 650;
  color: #212e3c;
  line-height: 1.3;
}

.xs-camera-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: #212e3c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.xs-camera-btn:hover,
.xs-camera-btn:focus {
  background: #1a2530;
  color: #fff;
}

.xs-image-slot__preview {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-top: 0.55rem;
  background: #fff;
}

.xs-image-slot__preview[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .xs-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xs-camera-btn {
    min-height: 48px;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .xs-image-grid {
    grid-template-columns: 1fr;
  }
}
