@font-face {
  font-family: 'GyeonggiMillenniumBackground';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Batang_Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'GyeonggiMillenniumBackground';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Batang_Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #2c3e50;
  --secondary: #e74c3c;
  --accent: #3498db;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --border-color: #ecf0f1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'GyeonggiMillenniumBackground', serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Custom Cursor Effect */
* {
  cursor: inherit;
}

a, button, .card, .filter-chip, input, textarea, select {
  cursor: pointer;
}

textarea, input[type="text"], input[type="number"] {
  cursor: text;
}

/* Loading Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 9999;
  animation: fadeOutLoading 0.8s ease 0.5s forwards;
  pointer-events: none;
}

@keyframes fadeOutLoading {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Page Transitions */
.page {
  display: none;
  animation: fadeInPage 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
  display: block;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hamburger Button */
.hamburger-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: scale(1.1);
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* Hamburger Menu */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.hamburger-menu.active {
  left: 0;
}

.hamburger-content {
  padding: 2rem;
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-link {
  display: block;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  font-weight: 500;
}

.menu-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: translateX(8px);
}

/* Main Header */
.main-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  animation: slideDownHeader 0.6s ease;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: slideDownHeader 0.6s ease, gradientShift 8s ease infinite;
}

.main-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: headerPulse 15s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30%, 30%) scale(1.1);
  }
  66% {
    transform: translate(-20%, 20%) scale(0.9);
  }
}

@keyframes slideDownHeader {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease 0.2s both;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

.site-subtitle {
  font-size: 1.125rem;
  opacity: 1;
  margin-bottom: 1rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.4s both;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  stroke-width: 2;
  transition: var(--transition);
}

#searchInput {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: white;
  transform: translateY(-2px);
}

#searchInput:focus ~ .search-icon {
  opacity: 1;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.filter-chip {
  padding: 0.5rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.filter-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-chip:hover::before {
  width: 300px;
  height: 300px;
}

.filter-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: white;
  color: var(--primary);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Masonry Layout */
.masonry-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
  column-count: 4;
  column-gap: 1.5rem;
}

/* Card Styles */
.card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  opacity: 0;
  animation: fadeInCard 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(7) { animation-delay: 0.4s; }
.card:nth-child(8) { animation-delay: 0.45s; }
.card:nth-child(9) { animation-delay: 0.5s; }
.card:nth-child(10) { animation-delay: 0.55s; }
.card:nth-child(11) { animation-delay: 0.6s; }
.card:nth-child(12) { animation-delay: 0.65s; }

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 1.25rem;
}

.card-author {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(52, 152, 219, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* Ad Card Styles */
.ad-card {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  border: 1px dashed rgba(102, 126, 234, 0.2);
}

.ad-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.ad-card-content {
  width: 100%;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.bookmark-btn:hover {
  transform: scale(1.15) rotate(12deg);
  box-shadow: var(--shadow-md);
}

.bookmark-btn:active {
  transform: scale(0.95);
}

.bookmark-btn.active {
  background: var(--secondary);
  color: white;
  animation: bookmarkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bookmarkPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
  100% {
    transform: scale(1);
  }
}

/* Detail Page */
.detail-container {
  min-height: 100vh;
  background: var(--bg-light);
  padding: 2rem 1.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.back-button:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-8px);
}

.back-button:active {
  transform: translateX(-4px) scale(0.98);
}

.back-button svg {
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-4px);
}

.detail-content {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-header {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  animation: fadeInUp 0.6s ease;
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 0.8s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.detail-info {
  padding: 3rem 3rem 3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(52, 152, 219, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.detail-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-tag {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

/* Writing Section */
.writing-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.writing-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.control-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-group select,
.control-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.control-group select:focus,
.control-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.progress-info {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 0;
}

.timer-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}

/* Guide Section */
.guide-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.guide-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.guide-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.guide-content ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.guide-content li {
  margin-bottom: 0.5rem;
}

/* Editor Section */
.editor-section {
  position: relative;
}

#writingEditor {
  width: 100%;
  min-height: 400px;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-family: 'GyeonggiMillenniumBackground', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  resize: vertical;
  transition: var(--transition);
}

#writingEditor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 3rem);
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 10;
  margin: 1rem 1rem 0 auto;
}

.modal-close:hover {
  background: var(--secondary);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-content {
  padding: 0 2rem 2rem;
}

.modal-header {
  display: flex;
  align-items: center;     /* 데스크톱에선 그대로 */
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

/* 가로를 크게(체감 1.8~2.0배), 세로는 img가 결정 */
.modal-image {
  /* 크기: 가로 넓게, 세로는 이미지가 결정 */
  flex: 0 0 auto;
  width: clamp(220px, 70vw, 420px);
  height: auto;

  /* 둥근 모서리 유지 + 내부 클리핑 */
  border-radius: 12px;
  overflow: hidden;

  /* 보라색 배경 제거 */
  background: none;
}

.modal-image img {
  display: block;
  width: 100%;
  height: auto;          /* 세로 비율 유지 */
  max-height: 70vh;      /* 화면 높이 과점유 방지 */
  object-fit: contain;   /* 크롭 최소화 */

  /* 컨테이너와 모서리 정확히 일치 */
  border-radius: inherit;
}




.modal-info {
  flex: 1;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
  line-height: 1.3;
}

.modal-body {
  line-height: 1.8;
  color: var(--text-primary);
}

.modal-intro {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.link-marketer {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.link-marketer:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.modal-section p {
  margin-bottom: 1.5rem;
  line-height: 2;
}

.modal-section p + p {
  margin-top: 1.5rem;
}

.modal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-section li {
  margin-bottom: 0.5rem;
}

.modal-example {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
}

#modalExample br + br {
  display: none;
}

/* Practical Record Section */
.practical-record-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid var(--accent);
}

.practical-record-section h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.practical-record-content {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.practical-record-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.practical-record-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.practical-record-btn:hover::before {
  width: 300px;
  height: 300px;
}

.practical-record-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.practical-record-btn:active {
  transform: translateY(-1px);
}

/* AdSense Section */
.adsense-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adsense-section .adsbygoogle {
  min-width: 300px;
  min-height: 250px;
  display: block !important;
  width: 100%;
}

/* Share Section Container */
.share-section-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.share-section-container h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Share Section */
.share-section {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 0;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.share-btn:active {
  transform: translateY(-2px);
}

.share-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.share-btn.url {
  background: var(--primary);
  color: white;
}

.share-btn.url svg {
  stroke-width: 2;
}

.share-btn.naver {
  background: #03C75A;
  color: white;
}

.share-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.share-btn.instagram svg {
  stroke-width: 2;
}

/* New Subsections */
.difference-highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  padding: 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.7;
}

.subsection {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.step-guide {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.step-guide h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.step-guide ol {
  margin-left: 1.5rem;
}

.step-guide li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.pitfalls {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(231, 76, 60, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
}

.pitfalls h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.pitfalls ul {
  margin-left: 1.5rem;
}

.pitfalls li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .masonry-container {
    column-count: 3;
  }
}

@media (max-width: 768px) {}
  .site-title {
    font-size: 2rem;
  }

  .masonry-container {
    column-count: 2;
    padding: 0 1rem 2rem;
  }

  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    flex-direction: column;
    align-items: center;            /* ← 이미지 중심 배치 권장 (선택) */
  }

   .modal-header {
    flex-direction: column;
    align-items: center;            /* 중앙 정렬(선택) */
  }

  @media (max-width: 768px) {
  .modal-header {
    flex-direction: column;
    align-items: center;       /* 중앙 정렬 권장(선택) */
  }

  .modal-image {
    width: min(80vw, 420px);   /* 체감상 가로 1.8~2.0배 */
    height: auto;
    background: none;          /* 안전 차단 */
    border-radius: 12px;       /* 둥근 모서리 유지 */
    overflow: hidden;          /* 내부 클리핑 */
    align-self: center;
  }

  .modal-image img {
    max-height: 65vh;          /* 텍스트와 균형 */
    border-radius: inherit;     /* 모서리 라인 일치 */
  }
}


  .modal-title {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 0 1.5rem 1.5rem;
  }

  .detail-header {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 300px;
  }

  .detail-info {
    padding: 2rem;
  }

  .detail-title {
    font-size: 1.75rem;
  }

  .writing-controls {
    grid-template-columns: 1fr;
  }

  .writing-section {
    padding: 1.5rem;
  }


@media (max-width: 480px) {
  .main-header {
    padding: 2rem 1rem 1.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-subtitle {
    font-size: 0.9rem;
  }

  .masonry-container {
    column-count: 1;
  }

  .filter-chips {
    gap: 0.5rem;
  }

  .filter-chip {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .modal-section h3 {
    font-size: 1.1rem;
  }

  .detail-info {
    padding: 1.5rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .timer-display {
    font-size: 1.5rem;
  }
}

.header-content { text-align: center; }


@media (max-width: 768px) {
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    justify-content: flex-start;
    padding-bottom: 6px;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip {
    flex: 0 0 auto;
  }
}


@media (max-width: 768px) {
  .modal-body p, .modal-body li, .modal-section,
  #modalExample, #modalDifference, #modalPsychology,
  #modalNeuroscience, #modalCase, #modalStepGuide,
  #modalComment, #modalPitfalls {
    line-height: 2.1;
    letter-spacing: 0.2px;
    word-break: keep-all;
    word-wrap: break-word;
  }

  .modal-body p {
    margin-bottom: 1.2rem;
  }

  .modal-body p + p {
    margin-top: 1.2rem;
  }

  /* Break long sentences into smaller paragraphs visually */
  .modal-section {
    line-height: 2.2;
  }

  .card-description {
    line-height: 1.8;
    word-break: keep-all;
  }
}


/* ===== Premium Flutter-ish Header Styling ===== */
.header-content {
  max-width: 820px;
  margin: 0.5rem auto 1.25rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}
.header-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: radial-gradient(1000px 200px at 0% 0%, rgba(255,255,255,0.06), transparent),
              linear-gradient(90deg, rgba(120,126,248,0.25), rgba(118,75,162,0.25), rgba(120,126,248,0.25));
  z-index: 0;
  pointer-events: none;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}
.site-title {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  background: linear-gradient(92deg, #a5b4fc 0%, #c4b5fd 40%, #a78bfa 75%, #93c5fd 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.site-subtitle {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
@media (max-width: 768px) {
  .site-title { font-size: 2.1rem; }
  .site-subtitle { font-size: 1.05rem; }
}


/* === Header rollback: keep it light, no borders/blur, subtle accents only === */
.header-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.5rem 0 1.25rem;
}

.site-title {
  background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 30%, #c084fc 70%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Subtle gradient underline */
.site-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(99,102,241,0.35), rgba(139,92,246,0.35), rgba(99,102,241,0.35));
}

.site-subtitle {
  background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 40%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}
@media (prefers-color-scheme: dark) {
  .site-subtitle { color: rgba(255,255,255,0.72); }
  .site-title::after {
    background: linear-gradient(90deg, rgba(165,180,252,0.5), rgba(196,181,253,0.5), rgba(165,180,252,0.5));
  }
}

/* 모바일에서 I~IV 본문 줄간만 축소 */
@media (max-width: 768px) {
  /* I ~ IV 각 섹션의 본문 컨테이너들 */
  #modalExample,
  #modalDifference,
  #modalPsychology,
  #modalNeuroscience,
  #modalCase,
  #modalStepGuide,
  #modalComment,
  #applicationCase,
#stepGuide,
#Pitfalls,
  #modalPitfalls {
    line-height: 1.5;          /* 필요하면 1.3~1.5 사이 미세 조정 */
  }

  /* 컨테이너 안에 들어갈 <p>가 있다면 좀 더 촘촘하게 */
  #modalExample p,
  #modalDifference p,
  #modalPsychology p,
  #modalNeuroscience p,
  #modalCase p,
  #modalStepGuide p,
  #modalComment p,
#applicationCase,
#stepGuide,
#Pitfalls,
  #modalPitfalls p {
    line-height: 1.5;
    margin: 0 0 0.65em;         /* 문단 간격도 살짝 줄여 가독성 유지 */
  }
}

/* 모바일에서 실전 적용/흔한 실수 본문 줄간만 축소 */
@media (max-width: 768px) {
  #modalStepGuide,
  #modalPitfalls {
    line-height: 1.5;      /* 필요시 1.35~1.5 사이로 조정 */
  }

  /* 내부 문단/리스트까지 촘촘하게 */
  #modalStepGuide p,
  #modalStepGuide li,
  #modalPitfalls p,
  #modalPitfalls li {
    line-height: 1.5;
    margin: 0 0 0.65em;
  }

  /* 리스트 여백 살짝 정리(선택) */
  #modalStepGuide ol,
  #modalPitfalls ul {
    margin: 0 0 0.65em;
    padding-left: 1.2em; /* 번호/불릿 들여쓰기 유지 */
  }
}


/* =========================
   1) 잘못된 @media 정리 + 메인 그리드 복구
   ========================= */

/* 기본(데스크톱) 4칸 유지 */
.masonry-container { column-count: 4 !important; }

/* 1200px 이하 → 3칸 */
@media (max-width: 1200px) {
  .masonry-container { column-count: 3 !important; }
}

/* 768px 이하 → 2칸  (※ 이전에 깨진 @media 때문에 전역으로 적용되던 걸 교정) */
@media (max-width: 768px) {
  .site-title { font-size: 2rem; }
  .masonry-container { column-count: 2 !important; padding: 0 1rem 2rem; }

  .hamburger-menu { width: 100%; left: -100%; }
  .modal-container { width: 95%; max-height: 95vh; }

  .modal-header { flex-direction: column; align-items: center; }
  .modal-title { font-size: 1.5rem; }
  .modal-content { padding: 0 1.5rem 1.5rem; }

  .detail-header { grid-template-columns: 1fr; }
  .detail-image { min-height: 300px; }
  .detail-info { padding: 2rem; }
  .detail-title { font-size: 1.75rem; }

  .writing-controls { grid-template-columns: 1fr; }
  .writing-section { padding: 1.5rem; }
}

/* 480px 이하 → 1칸 */
@media (max-width: 480px) {
  .main-header { padding: 2rem 1rem 1.5rem; }
  .site-title { font-size: 1.5rem; }
  .site-subtitle { font-size: 0.9rem; }
  .masonry-container { column-count: 1 !important; }
  .filter-chips { gap: 0.5rem; }
  .filter-chip { font-size: 0.85rem; padding: 0.4rem 1rem; }
  .modal-section h3 { font-size: 1.1rem; }
  .detail-info { padding: 1.5rem; }
  .detail-title { font-size: 1.5rem; }
  .timer-display { font-size: 1.5rem; }
}

/* =========================
   2) 디테일 페이지 이미지: 둥근 모서리 + 꽉 채우기
   ========================= */
.detail-header .detail-image {
  position: relative;
  border-radius: 20px !important;  /* 컨테이너 곡선 */
  overflow: hidden !important;     /* 곡선으로 클리핑 */
  background: none !important;     /* 보라 배경 가림 */
  min-height: 400px;               /* 데스크톱 기준 높이 가이드 */
}

.detail-header .detail-image img {
  position: absolute;
  inset: 0;                        /* 4변 붙이기 */
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;               /* 빈틈 없이 꽉 채움 */
  border-radius: inherit;          /* 이미지도 곡선 동일 적용 */
}

/* 모바일에서 과점유 방지 */
@media (max-width: 768px) {
  .detail-header .detail-image { min-height: 320px; max-height: 65vh; }
}
/* ============ MODAL IMAGE FIX (overlay 전용) ============ */
/* 컨테이너(모달) 폭 조금 키우기 – 선택 사항 */
@media (min-width: 1024px) {
  .modal-overlay .modal-container { max-width: 1400px; }
}

/* 이미지 그릇을 한 줄 전체로 넓힘 */
.modal-overlay .modal-image {
  width: 50% !important;      /* 420px 상한 제거 */
  max-width: none !important;
  flex: 1 1 auto !important;   /* 필요 시 가로로 쭉 늘어남 */
  border-radius: 12px;
  overflow: hidden;            /* 둥근 모서리 클리핑 */
  background: none;
  max-height: 75vh;            /* 너무 길게 늘어지는 것 방지 */
}

/* 실제 이미지도 꽉 차게 */
.modal-overlay .modal-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;     /* 그릇 높이에 맞춤 */
  object-fit: cover !important;/* 여백 없이 시원하게(세로 긴 사진에 적합) */
  border-radius: inherit;
}

/* 모바일에서는 세로 길이만 조금 완화 */
@media (max-width: 768px) {
  .modal-overlay .modal-image { 
    max-height: 60vh; 
    width: 100% !important;      /* 420px 상한 제거 */
}
}


/* AdSense minimum slot size to avoid width=0 issues */
.adsbygoogle { min-width: 300px; min-height: 250px; display: block !important; }


/* ============================================
   DETAIL PAGE - Pinterest-style Layout
   ============================================ */

.detail-page {
  background: var(--bg-light);
  min-height: 100vh;
}

.detail-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

/* Left Panel - Detail Content */
.detail-panel {
  flex: 1 1 auto;
  max-width: 700px;
  min-width: 0;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
  font-family: 'GyeonggiMillenniumBackground', serif;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(-4px);
}

.back-btn svg {
  transition: var(--transition);
}

.back-btn:hover svg {
  transform: translateX(-4px);
}

.detail-content {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.detail-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
}

.detail-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: inherit;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.detail-body {
  line-height: 1.8;
  color: var(--text-primary);
}

.detail-intro {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Right Panel - Thumbnails */
.thumbnails-panel {
  flex: 0 0 380px;
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.thumbnails-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.thumbnail-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.thumbnail-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.thumbnail-card.active {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0.02) 100%);
}

.thumbnail-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-light);
}

.thumbnail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.thumbnail-card:hover .thumbnail-image img {
  transform: scale(1.05);
}

.thumbnail-info {
  padding: 1rem;
}

.thumbnail-author {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.thumbnail-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .detail-layout {
    flex-direction: column;
  }

  .thumbnails-panel {
    flex: 1;
    position: relative;
    top: 0;
    max-height: none;
    max-width: 100%;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .detail-layout {
    padding: 1rem;
    gap: 1rem;
  }

  .detail-panel {
    padding: 1.5rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .detail-section h3 {
    font-size: 1.2rem;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumbnail-image {
    height: 140px;
  }
}
