/* Photo Preview Styles */
.photo-preview-container {
  margin-top: 1rem;
  width: 100%;
}

.photo-preview-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 195, 74, 0.5) rgba(255, 255, 255, 0.1);
}

.photo-preview-grid::-webkit-scrollbar {
  height: 6px;
}

.photo-preview-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.photo-preview-grid::-webkit-scrollbar-thumb {
  background: rgba(139, 195, 74, 0.5);
  border-radius: 3px;
}

.photo-preview-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 100px;
  max-width: 100px;
  flex-shrink: 0;
}

.photo-preview-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 195, 74, 0.3);
  transform: translateY(-4px);
}

.photo-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.photo-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.photo-remove-btn {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.photo-remove-btn:hover {
  background: rgba(244, 67, 54, 0.4);
  border-color: rgba(244, 67, 54, 0.6);
  transform: scale(1.05);
}

/* Mobile: Even more compact */
@media (max-width: 768px) {
  .photo-preview-grid {
    gap: 8px;
  }

  .photo-preview-item {
    min-width: 90px;
    max-width: 90px;
    padding: 6px;
  }

  .photo-thumbnail {
    width: 75px;
    height: 75px;
  }

  .photo-name {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .photo-remove-btn {
    padding: 3px 6px;
    font-size: 0.9rem;
  }
}

/* Tablet: Slightly larger */
@media (min-width: 769px) and (max-width: 1024px) {
  .photo-preview-item {
    min-width: 110px;
    max-width: 110px;
  }

  .photo-thumbnail {
    width: 90px;
    height: 90px;
  }
}