/* 비율 선택 그리드 */
.aspect-ratio-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  align-items: stretch !important;
}

.aspect-ratio-grid li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex: 0 0 calc(20% - 8px) !important;
  min-width: 85px !important;
}

.aspect-ratio-grid input[type="radio"] {
  display: none !important;
}

.aspect-ratio-grid label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 8px !important;
  background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  height: 100% !important;
  min-height: 100px !important;
  max-height: 100px !important;
  box-sizing: border-box !important;
}

.aspect-ratio-grid label:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(215, 35, 104, 0.5) !important;
  background: linear-gradient(135deg, #d72368 0%, #fc4530 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.aspect-ratio-grid input:checked + label {
  background: linear-gradient(135deg, #d72368 0%, #fc4530 100%) !important;
  border-color: #fff !important;
  box-shadow: 0 6px 25px rgba(215, 35, 104, 0.6) !important;
  transform: scale(1.03) !important;
}

/* 비율 박스 */
.ratio-box {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 4px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.aspect-ratio-grid input:checked + label .ratio-box {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: #fff !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.5) !important;
}

/* 각 비율별 크기 */
.ratio-1-1 { width: 40px !important; height: 40px !important; }
.ratio-2-3 { width: 32px !important; height: 48px !important; }
.ratio-3-2 { width: 48px !important; height: 32px !important; }
.ratio-3-4 { width: 36px !important; height: 48px !important; }
.ratio-4-3 { width: 48px !important; height: 36px !important; }
.ratio-4-5 { width: 38px !important; height: 48px !important; }
.ratio-5-4 { width: 48px !important; height: 38px !important; }
.ratio-9-16 { width: 28px !important; height: 50px !important; }
.ratio-16-9 { width: 50px !important; height: 28px !important; }
.ratio-21-9 { width: 56px !important; height: 24px !important; }

/* 비율 텍스트 */
.ratio-text {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* 반응형 */
@media (max-width: 768px) {
  .aspect-ratio-grid li {
    flex: 0 0 calc(33.333% - 7px) !important;
    min-width: 80px !important;
  }
  
  .aspect-ratio-grid label {
    padding: 10px 6px !important;
    min-height: 90px !important;
    max-height: 90px !important;
  }
  
  .ratio-text {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .aspect-ratio-grid li {
    flex: 0 0 calc(50% - 5px) !important;
  }
}

