html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
  background: #eaf7ff;
  color: #234e70;
  overflow-x: hidden;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 70px;
  background: #b3e0ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 10;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.logo-area:hover {
  opacity: 0.8;
}
.logo-icon {
  font-size: 2.2rem;
}
.logo-title {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.main-nav a {
  color: #234e70;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 2rem;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: #5b9bd5;
}

.hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 70px 2rem 0 2rem;
  background: linear-gradient(180deg, #d6f0ff 70%, #eaf7ff 100%);
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 100vw;
}
.hero-img {
  display: inline-block;
  padding: 1.5rem;
  border-radius: 2.5rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(91, 155, 213, 0.10);
  margin: 0 auto;
}
.char-illust {
  color: #b3e0ff;
  font-size: 1.1rem;
  text-align: center;
}
.hero-text {
  text-align: center;
}
.hero-text h1 {
  margin: 0 0 1.2rem 0;
  font-size: 2.5rem;
  color: #234e70;
  font-weight: bold;
}
.hero-text p {
  font-size: 1.25rem;
  color: #234e70;
  margin: 0;
  line-height: 1.7;
}

.about {
  padding: 6rem 2rem 2.5rem 2rem;
  background: #fff;
  text-align: center;
  min-height: 40vh;
}
.about h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #5b9bd5;
}
.about p {
  font-size: 1.2rem;
  color: #234e70;
  margin-top: 1.2rem;
}

.gallery {
  padding: 2rem 4rem 1.5rem 4rem; /* 기존 2rem → 4rem로 좌우 여백 추가 */
  background: #eaf7ff;
  text-align: center;
}
.gallery h2 {
  color: #5b9bd5;
  font-size: 1.3rem;
}
.gallery-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem; /* 기존 1.5rem → 2.5rem로 여백도 넓힘 */
  margin: 2.5rem 0;
}
.gallery-item {
  width: 320px; /* 기존 180px → 320px */
  height: 320px; /* 기존 180px → 320px */
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-img {
  color: #b3e0ff;
  font-size: 1.1rem;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
  display: block;
  background: #fff;
}
.more-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #b3e0ff;
  color: #234e70;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.more-btn:hover {
  background: #5b9bd5;
  color: #fff;
}

.apply {
  padding: 2rem 2rem 2.5rem 2rem;
  background: #eaf7ff;
  text-align: center;
}
.apply h2 {
  color: #5b9bd5;
  font-size: 1.3rem;
}
.apply-steps {
  display: inline-block;
  text-align: left;
  margin: 1.2rem 0 1.5rem 0;
  padding-left: 1.2rem;
  color: #234e70;
  font-size: 1.1rem;
}
.apply-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #b3e0ff;
  color: #234e70;
  border-radius: 1.2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.apply-btn:hover {
  background: #5b9bd5;
  color: #fff;
}
.apply-btn-flex .btn-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-footer {
  background: #b3e0ff;
  padding: 1.2rem 2rem 1rem 2rem;
  text-align: center;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  margin-top: 2rem;
}
.footer-links {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #234e70;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #5b9bd5;
}
.footer-copy {
  color: #234e70;
  font-size: 0.95rem;
  opacity: 0.7;
}
.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.main-illust-img {
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 240px;
  border-radius: 2rem;
  display: block;
}
.about-desc {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: #234e70;
}
.about-desc b {
  color: #5b9bd5;
}
.about-deadline-box {
  display: inline-flex;
  align-items: center;
  background: #eaf7ff;
  border-radius: 1.2rem;
  padding: 0.7rem 1.5rem;
  font-size: 1.08rem;
  color: #234e70;
  font-weight: 500;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(91,155,213,0.07);
  gap: 0.7rem;
}
.deadline-title {
  color: #5b9bd5;
  font-weight: 700;
  margin-right: 0.3rem;
}
.deadline-value {
  color: #234e70;
  font-weight: 600;
  margin-right: 0.7rem;
}
.divider {
  color: #b3e0ff;
  font-weight: 700;
  margin: 0 0.7rem;
}
.about-tags {
  margin-top: 0.5rem;
}
.about-tag {
  display: inline-block;
  background: #b3e0ff;
  color: #234e70;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  padding: 0.3rem 1.1rem;
  margin: 0 0.3rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(91,155,213,0.06);
  transition: background 0.2s;
}
.about-tag:hover {
  background: #5b9bd5;
  color: #fff;
}

.gallery-page {
  padding: 7rem 4rem 3rem 4rem; /* 기존 2rem → 4rem로 좌우 여백 추가 */
  background: #eaf7ff;
  min-height: 100vh;
  text-align: center;
}
.gallery-page h1 {
  color: #5b9bd5;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.gallery-list-large {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem; /* 기존 2.2rem → 3rem */
  justify-content: center;
  margin-bottom: 3rem;
}
.gallery-list-large .gallery-item {
  width: 420px; /* 기존 260px → 420px */
  height: 420px; /* 기존 height: auto, min-height: 180px → 고정 420px */
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(91,155,213,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.gallery-list-large .gallery-item:hover {
  transform: translateY(-12px) scale(1.06);
  box-shadow: 0 12px 32px rgba(91,155,213,0.18);
}
.gallery-list-large .gallery-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 2rem;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .gallery-list-large .gallery-item {
    width: 320px;
    height: 320px;
  }
}
@media (max-width: 900px) {
  .gallery-list-large .gallery-item {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 700px) {
  .gallery-list-large {
    gap: 1.2rem;
  }
  .gallery-list-large .gallery-item {
    width: 120px;
    height: 120px;
  }
  .gallery-list {
    gap: 0.7rem;
  }
  .gallery-item {
    width: 90px;
    height: 90px;
  }
} 

.upload-page {
  padding: 7rem 2rem 3rem 2rem;
  background: #eaf7ff;
  min-height: 100vh;
  text-align: center;
}
.upload-page h1 {
  color: #5b9bd5;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.upload-login-box {
  margin: 2.5rem auto 0 auto;
}
.discord-login-btn {
  display: inline-block;
  background: #5865F2;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(91,155,213,0.10);
  transition: background 0.18s, color 0.18s;
}
.discord-login-btn:hover {
  background: #4752c4;
  color: #eaf7ff;
} 

.upload-profile-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.discord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #b3e0ff;
  background: #fff;
}
.discord-username {
  font-size: 1.15rem;
  font-weight: 700;
  color: #234e70;
  margin-right: 0.7rem;
}
.logout-btn {
  display: inline-block;
  background: #eaf7ff;
  color: #5b9bd5;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  padding: 0.4rem 1.2rem;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: background 0.18s, color 0.18s;
}
.logout-btn:hover {
  background: #5b9bd5;
  color: #fff;
}
.upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 350px;
}
.upload-form input[type="file"] {
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid #b3e0ff;
  background: #fff;
  color: #234e70;
}
.upload-btn {
  background: #5b9bd5;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  transition: background 0.18s;
}
.upload-btn:hover {
  background: #234e70;
} 

.upload-modal-open-btn {
  background: #5b9bd5;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background 0.18s;
}
.upload-modal-open-btn:hover {
  background: #234e70;
}
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35, 78, 112, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(91,155,213,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  text-align: center;
  animation: modalIn 0.18s;
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #b3e0ff;
  cursor: pointer;
  transition: color 0.18s;
}
.modal-close-btn:hover {
  color: #5b9bd5;
}
.upload-options {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0.5rem 0;
  flex-wrap: wrap;
}
.upload-options label {
  font-size: 0.98rem;
  padding: 0.25rem 0.8rem;
  border-radius: 0.9rem;
  margin: 0;
}
.upload-options input[type="radio"] {
  margin-right: 0.4em;
}
.upload-options label:hover, .upload-options input[type="radio"]:checked + label {
  background: #b3e0ff;
  color: #234e70;
} 
@media (max-width: 500px) {
  .upload-options {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
} 

.upload-message {
  margin: 1.2rem auto 0 auto;
  padding: 0.7rem 1.5rem;
  border-radius: 1rem;
  background: #eaf7ff;
  color: #234e70;
  font-size: 1.08rem;
  font-weight: 600;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(91,155,213,0.06);
} 
section[id] {
  scroll-margin-top: 40px;
} 

.price {
  padding: 3rem 2rem 2.5rem 2rem;
  background: #fff;
  text-align: center;
}
.price h2 {
  color: #7135A3;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.price-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  background: #faf6ff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(113,53,163,0.07);
}
.price-table th, .price-table td {
  padding: 1rem 0.7rem;
  border-bottom: 1px solid #e5d6f7;
  font-size: 1.08rem;
}
.price-table th {
  background: #e5d6f7;
  color: #7135A3;
  font-weight: 700;
}
.price-table tr:last-child td {
  border-bottom: none;
} 
.price-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.5rem 0 0.7rem 0;
}
.price-image-box {
  width: 960px;
  height: auto;
  max-height: 1350px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf6ff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(113,53,163,0.07);
  overflow: hidden;
}
.price-image {
  width: 100%;
  height: 600px;
  max-width: 100%;
  max-height: 1320px;
  object-fit: contain;
  border-radius: 1.2rem;
  background: #faf6ff;
  display: block;
  margin: 0 auto;
}
.price-arrow {
  background: #e5d6f7;
  color: #7135A3;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(113,53,163,0.07);
}
.price-arrow:hover {
  background: #7135A3;
  color: #fff;
}
.price-slider-indicator {
  color: #7135A3;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
}
.price-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0 1.5rem 0;
  /* 모달 내에서 3줄(약 360px) 이상이면 스크롤 */
  max-height: 370px;
  overflow-y: auto;
}
.price-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #faf6ff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(113,53,163,0.07);
  padding: 1rem 1rem 0.7rem 1rem;
}
.price-image-thumb {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
  background: #fff;
}
.delete-btn {
  background: #ffb3b3;
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.delete-btn:hover {
  background: #e74c3c;
}
@media (max-width: 1350px) {
  .price-image-box {
    width: 98vw;
    max-width: 98vw;
    max-height: 90vw;
  }
  .price-image {
    height: 500px;
    max-height: 88vw;
  }
}

@media (max-width: 768px) {
  .price-image {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .price-image {
    height: 450px;
  }
} 

.gallery-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0 1.5rem 0;
  /* 모달 내에서 3줄(약 360px) 이상이면 스크롤 */
  max-height: 370px;
  overflow-y: auto;
}
.gallery-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(91,155,213,0.07);
  padding: 1rem 1rem 0.7rem 1rem;
}
.gallery-image-thumb {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
  background: #eaf7ff;
} 

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: #eaf7ff;
  color: #7135A3;
  border: none;
  border-radius: 1.2rem;
  padding: 0.5rem 1.3rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.filter-btn.active, .filter-btn:hover {
  background: #7135A3;
  color: #fff;
} 
@media (max-width: 600px) {
  .main-header {
    height: 48px;
    padding: 0 0.7rem;
  }
  .logo-img {
    width: 32px;
    height: 32px;
    margin-right: 0.3rem;
  }
  .logo-title {
    font-size: 1.05rem;
  }
  .main-nav a {
    font-size: 0.92rem;
    margin-left: 0.7rem;
    padding: 0.2rem 0.3rem;
  }
  .gallery-filter {
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .filter-btn {
    font-size: 0.82rem;
    padding: 0.32rem 0.6rem;
  }
  .about-deadline-box {
    font-size: 0.92rem;
    padding: 0.5rem 0.7rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .about-tag {
    font-size: 0.85rem;
    padding: 0.22rem 0.7rem;
    margin: 0 0.15rem 0.15rem 0.15rem;
  }
  .apply-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }
  .upload-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }
  .price-slider-indicator {
    font-size: 0.92rem;
  }
} 

/* 이미지 모달 스타일 */
.image-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.image-modal-content {
  max-width: 80vw;
  max-height: 80vh;
  position: relative;
  cursor: default;
  padding: 20px; /* 컨테이너에 패딩 추가 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content img {
  width: auto;
  height: auto;
  max-width: calc(100% - 40px); /* 패딩을 고려한 최대 너비 */
  max-height: calc(100% - 40px); /* 패딩을 고려한 최대 높이 */
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: block;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .image-modal-content {
    max-width: 85vw;
    max-height: 85vh;
    padding: 15px; /* 모바일에서는 패딩 줄임 */
  }
  
  .image-modal-content img {
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
  }
  
  .image-modal-close {
    top: -35px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
} 

.apply-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.apply-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 1.2rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.apply-btn-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 갤러리 로딩 UI */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 2rem;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e1f4ff;
  border-top: 4px solid #5b9bd5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #5b9bd5;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1rem;
}

.loading-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 320px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e1f4ff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b9bd5, #b3e0ff);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.progress-percent {
  color: #234e70;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 40px;
}

.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .loading-container {
    padding: 3rem 1rem;
    gap: 1.5rem;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }
  
  .loading-text {
    font-size: 1.1rem;
  }
  
  .progress-percent {
    font-size: 1rem;
  }
}

/* 개별 이미지 로딩 UI */
.gallery-placeholder {
  background: #f8fbff !important;
  border: 2px dashed #d1e9ff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.circular-progress {
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 4px rgba(91, 155, 213, 0.1));
}

.progress-background {
  fill: none;
  stroke: #e1f4ff;
  stroke-width: 6;
}

.progress-bar {
  fill: none;
  stroke: #5b9bd5;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: circularProgress 2s ease-in-out infinite;
}

@keyframes circularProgress {
  0% {
    stroke-dashoffset: 220;
  }
  50% {
    stroke-dashoffset: 110;
  }
  100% {
    stroke-dashoffset: 220;
  }
}

.loading-text-small {
  color: #5b9bd5;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

/* 로드된 이미지 애니메이션 */
.gallery-item.loaded {
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 개별 로딩 모바일 반응형 */
@media (max-width: 600px) {
  .circular-progress {
    width: 60px;
    height: 60px;
  }
  
  .progress-background,
  .progress-bar {
    stroke-width: 4;
  }
  
  .progress-bar {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
  }
  
  @keyframes circularProgress {
    0% {
      stroke-dashoffset: 160;
    }
    50% {
      stroke-dashoffset: 80;
    }
    100% {
      stroke-dashoffset: 160;
    }
  }
  
  .loading-text-small {
    font-size: 0.8rem;
  }
} 