.content-wrap{
    width: 1280px;
    margin: 0 auto;
}

/* ════════════════════════════
   페이지 헤더
════════════════════════════ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
   
  .page-title { font-size: 20px; font-weight: 700; color: #1a1a1a; }
   
  .btn-write {
    height: 36px; padding: 0 20px;
    background: #fff;
    border: 1.5px solid #5046e4;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px; font-weight: 600;
    color: #5046e4;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .btn-write:hover { background: #f0eeff; }
   
  .title-line {
    height: 2px;
    background: #5046e4;
    margin-bottom: 24px;
  }
   
  /* ════════════════════════════
     카드 그리드
  ════════════════════════════ */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }
   
  /* ── 리뷰 카드 ── */
  .review-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
  }
  .review-card:hover {
    box-shadow: 0 4px 16px rgba(80,70,228,0.10);
    border-color: #c0b8f5;
    transform: translateY(-2px);
  }
  .review-card.selected { border-color: #5046e4; box-shadow: 0 0 0 2px rgba(80,70,228,0.13); }
   
 .card-img-wrap{
     width: 100%;
 }

 .card-img-wrap img{
     width: 100%;
 }

  /* 카드 바디 */
  .card-body { padding: 12px 14px 14px; }
  .card-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
  .card-meta  { font-size: 12px; color: #888; margin-bottom: 8px; }
  .card-content {
    font-size: 12px; color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .card-stars { display: flex; gap: 2px; }
   
  /* ════════════════════════════
     리뷰 테이블
  ════════════════════════════ */
  .review-table {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
  }
   
  /* 테이블 헤더 */
  .table-head {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px 50px;
    background: #f7f8fa;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 20px;
  }
  .th {
    font-size: 13px; font-weight: 600; color: #555;
    padding: 13px 8px;
    text-align: center;
  }
  .th-title { text-align: center; }
   
  /* 테이블 행 */
  .table-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px 50px;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
  }
  .table-row:last-child { border-bottom: none; }
  .table-row:hover { background: #fafaff; }
   
  .td {
    font-size: 13px; color: #444;
    padding: 15px 8px;
    text-align: center;
  }
  .td-title { text-align: center; }
   
  .row-link {
    text-decoration: none;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
  }
  .row-link:hover { color: #5046e4; }
  .row-link.is-new { color: #5046e4; font-weight: 600; }
   
  .tag-new {
    font-size: 12px;
    font-weight: 700;
    color: #5046e4;
  }
   
  /* ════════════════════════════
     하단 바 (페이지네이션 + 글쓰기)
  ════════════════════════════ */
  .bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
   
  .bottom-bar .btn-write {
    position: absolute;
    right: 0;
    top: 30px;
  }

/* ════════════════════════════
 리뷰 모달
════════════════════════════ */
.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.review-modal-overlay.is-open {
    display: flex;
}

.review-modal {
    background: #fff;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.review-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.review-modal-close:hover { color: #1a1a1a; }

.review-modal-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.review-modal-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-modal-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.review-modal-body {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

.review-modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.review-modal-images img {
    width: calc(50% - 4px);
    border-radius: 8px;
    object-fit: cover;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f7f8fa;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-placeholder svg {
    width: 48px;
    height: 48px;
}
   

  @media (max-width: 1280px) {
    .content-wrap{
        width: 100%;
        padding : 0 20px;
    }
  }

  @media (max-width: 780px){
    .card-grid{
        grid-template-columns:repeat(2, 1fr);
    }
    .card-grid .review-card:nth-of-type(3){
        display: none;
    }
    .card-grid .review-card:nth-of-type(4){
        display: none;
    }
    .bottom-bar .btn-write{
        display: none;
    }
    .bottom-bar .pagination{
        width: 100%;
        margin: 0;
    }
    .review-modal {
        padding: 20px;
        max-height: 90vh;
    }
    .review-modal-images img {
        width: 100%;
    }

  }

  @media (max-width : 520px){
    .review-table{
        overflow-x: scroll;
    }
    .table-head {
        grid-template-columns: 50px 100px 80px 80px 50px;
    }
    .table-row {
        grid-template-columns: 50px 100px 80px 80px 50px;
    }
  }