/* DreamSoft G5 Standard Theme (ds_standard) — Responsive Design Tokens (2026-11-28) */
:root {
  --ds-primary: #1b3a6b;
  --ds-primary-dark: #102445;
  --ds-accent: #2563eb;
  --ds-bg: #f8fafc;
  --ds-surface: #ffffff;
  --ds-border: #e2e8f0;
  --ds-text: #0f172a;
  --ds-muted: #64748b;
  --ds-max-width: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }

.ds-container {
  max-width: var(--ds-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ds-border);
}
.ds-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.ds-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--ds-primary);
  letter-spacing: -0.02em;
}
.ds-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ds-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-text);
}
.ds-nav a:hover { color: var(--ds-accent); }

.ds-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
.ds-btn-primary {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #ffffff;
}
.ds-btn-danger-link {
  color: #dc2626;
  font-size: 12px;
  padding: 0 6px;
}

/* Hero */
.ds-hero {
  background: linear-gradient(135deg, var(--ds-primary-dark), var(--ds-primary));
  color: #ffffff;
  padding: 64px 0;
  margin-bottom: 36px;
}
.ds-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ds-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 640px;
}

/* Main Content & Cards */
.ds-main {
  min-height: 60vh;
  padding: 28px 0 60px;
}
.ds-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.ds-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 24px;
}
.ds-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ds-border);
}
.ds-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

/* Responsive Gallery Grid (PC 4 -> Tablet 3 -> Mobile 2 -> Narrow 1) */
.ds-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ds-gallery-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ds-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.ds-gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}
.ds-gallery-body {
  padding: 14px 16px;
}
.ds-gallery-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-gallery-meta {
  font-size: 12px;
  color: var(--ds-muted);
}

/* Footer */
.ds-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 0;
  font-size: 13px;
}
.ds-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.ds-footer-links a {
  color: #e2e8f0;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .ds-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ds-nav { display: none; }
  .ds-grid-2 { grid-template-columns: 1fr; }
  .ds-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ds-hero { padding: 40px 0; }
  .ds-hero h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .ds-gallery-grid { grid-template-columns: 1fr; }
}
