

	#magazine-wrap {
	--bg-beige: #fbf9f6;
	--bg-white: #ffffff;
	--text-main: #333;
	--text-sub: #777;
	--point-color: #9d1c3a;
	--border-color: #eaeaea;

	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px; 
	color: var(--text-main);
	line-height: 1.5;
	}

	/* Section Wrappers for Full Width Backgrounds */
	#magazine-wrap .section-wrapper { width: 100%; padding: 80px 0; }
	#magazine-wrap .bg-beige { background-color: var(--bg-beige); }
	#magazine-wrap .bg-white { background-color: var(--bg-white); }

	/* Inner Container: 이름 충돌 방지를 위해 mz-container로 변경 */
	#magazine-wrap .mz-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	}

	/* Common Elements */
	#magazine-wrap img { max-width: 100%; display: block; object-fit: cover; }
	#magazine-wrap a { text-decoration: none; color: inherit; }

	#magazine-wrap .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
	#magazine-wrap .section-title-wrap { display: flex; align-items: baseline; gap: 12px; }
	#magazine-wrap .section-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
	#magazine-wrap .section-subtitle { font-size: 14px; color: var(--text-sub); }
	#magazine-wrap .btn-more { font-size: 13px; color: var(--text-sub); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 4px; background-color: #fff; }

	/* Hero Section */
	#magazine-wrap .hero { display: flex; gap: 40px; align-items: center; }
	#magazine-wrap .hero-img { flex: 1.2; border-radius: 12px; overflow: hidden; }
	#magazine-wrap .hero-content { flex: 1; }
	#magazine-wrap .hero-tag { color: var(--point-color); font-size: 13px; font-weight: bold; border: 1px solid var(--point-color); padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 16px; }
	#magazine-wrap .hero-title { font-size: 32px; line-height: 1.3; margin: 0 0 16px 0; letter-spacing: -1px; }
	#magazine-wrap .hero-desc { font-size: 15px; color: var(--text-sub); line-height: 1.6; margin-bottom: 24px; }
	#magazine-wrap .hero-btn { background-color: var(--point-color); color: #fff; padding: 10px 24px; border-radius: 20px; font-size: 14px; font-weight: bold; display: inline-block; }



/* 순위 번호 (바깥쪽 위 배치) */
  #magazine-wrap .rank-number { 
    font-size: 36px; /* 숫자 크기 키움 */
    color: var(--point-color); /* 01번 버건디색 */
    font-weight: 700; /* 숫자를 아주 굵게 */
    margin-bottom: 12px; 
    line-height: 1; 
    letter-spacing: -1px;
  }
  /* 02번부터 적용될 회색 숫자 */
  #magazine-wrap .rank-number.secondary { 
    color: #888; 
  }

  /* 오버레이 카드 (이미지 위에 텍스트) */
  #magazine-wrap .card-overlay { 
    position: relative; 
    border-radius: 16px; /* 이미지 모서리를 더 둥글게 */
    overflow: hidden; 
    background-color: #000; /* 로딩 전 빈 공간 검은색 처리 */
  }
  
  #magazine-wrap .card-overlay .card-img-wrapper img { 
    width: 100%; 
    aspect-ratio: 16 / 9; /* 이미지 비율 고정 */
    object-fit: cover; 
    display: block;
  }
  
  /* 텍스트 뒤에 깔리는 그라데이션 그림자 */
  #magazine-wrap .card-overlay .card-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 40px 20px 20px; /* 위쪽 패딩을 늘려 그라데이션을 부드럽게 */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); 
    box-sizing: border-box; 
  }
  
  #magazine-wrap .card-overlay .card-title { 
    font-size: 18px; 
    font-weight: 600; 
    margin: 0 0 8px 0; 
    color: #ffffff; /* 텍스트는 무조건 흰색 */
    line-height: 1.4;
    word-break: keep-all;
  }
  
  #magazine-wrap .card-overlay .card-desc { 
    color: #cccccc; 
    font-size: 13px; 
    margin: 0; 
  }
#magazine-wrap a { text-decoration: none; color: inherit; }
	/* Common Card Styles */
	#magazine-wrap .card { position: relative; border-radius: 12px; overflow: hidden; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s ease; }
	#magazine-wrap .card:hover { transform: translateY(-4px); }
	#magazine-wrap .card-img-wrapper { position: relative; width: 100%; }

	/* Overlay Card */
	#magazine-wrap .card-overlay .card-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; box-sizing: border-box; }
	#magazine-wrap .card-overlay .card-title { font-size: 18px; font-weight: 600; margin: 0 0 6px 0; color: #fff; }
	#magazine-wrap .card-overlay .card-desc { color: #ddd; font-size: 14px; margin: 0; }

	/* Standard Card */
	#magazine-wrap .card-standard { background-color: transparent; box-shadow: none; border-radius: 0; }
	#magazine-wrap .card-standard:hover { transform: translateY(-4px); }
	#magazine-wrap .card-standard .card-img-wrapper img { border-radius: 16px; }
	#magazine-wrap .card-standard .card-info { padding: 20px 4px 0 4px; }
	#magazine-wrap .card-standard .card-title { font-size: 19px; font-weight: 700; margin: 0 0 12px 0; line-height: 1.4; letter-spacing: -0.5px; word-break: keep-all; }
	#magazine-wrap .card-standard .card-date { font-size: 13px; color: #888; margin: 0 0 6px 0; }
	#magazine-wrap .card-standard .card-desc { font-size: 13px; color: #999; margin: 0; }

/* Horizontal Small Card (배경 없는 깔끔한 가로형 블로그 UI) */
  #magazine-wrap .card-horizontal { 
    display: flex; 
    background: transparent; /* 하얀 배경 제거 */
    box-shadow: none; /* 그림자 제거 */
    border-radius: 0; 
    height: 100%; 
    transition: transform 0.2s ease; 
    gap: 20px; /* 이미지와 텍스트 사이의 시원한 간격 */
    align-items: center; /* 이미지와 텍스트의 세로 중앙 정렬 */
  }
  #magazine-wrap .card-horizontal:hover { transform: translateY(-4px); }
  
  #magazine-wrap .card-horizontal img { 
    width: 45%; /* 썸네일 가로 비율 */
    aspect-ratio: 16 / 9; /* 이미지 비율 찌그러짐 방지 */
    object-fit: cover; 
    border-radius: 16px; /* 이미지 자체만 둥글게 처리 */
  }
  
  #magazine-wrap .card-horizontal .card-info { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    width: 55%; /* 텍스트 영역 가로 비율 */
    box-sizing: border-box; 
    padding: 0; /* 불필요한 패딩 제거 */
  }
  
  #magazine-wrap .card-horizontal .card-date { font-size: 13px; font-weight: 600; color: #555; margin: 0 0 8px 0; }
  #magazine-wrap .card-horizontal .card-title { font-size: 18px; font-weight: 700; margin: 0 0 12px 0; line-height: 1.4; letter-spacing: -0.5px; word-break: keep-all; }
  #magazine-wrap .card-horizontal .card-desc { font-size: 13px; color: #999; margin: 0; }
  
  /* 모바일 화면(768px 이하) 대응 */
  @media (max-width: 768px) {
    #magazine-wrap .card-horizontal { flex-direction: column; align-items: flex-start; gap: 12px; }
    #magazine-wrap .card-horizontal img { width: 100%; height: auto; }
    #magazine-wrap .card-horizontal .card-info { width: 100%; padding-top: 10px; }
  }
	/* Grid Layouts */
	#magazine-wrap .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
	#magazine-wrap .rank-number { font-size: 32px; color: var(--point-color); font-weight: 500; margin-bottom: px; line-height: 1; }
	#magazine-wrap .rank-number.secondary { color: var(--text-sub); }

	#magazine-wrap .grid-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	#magazine-wrap .card-large .card-img-wrapper img { height: 380px; }
	#magazine-wrap .card-stacked { display: flex; flex-direction: column; gap: 24px; }

	#magazine-wrap .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
	#magazine-wrap .grid-4 .card-img-wrapper img { height: 180px; }

	/* Editor Profile Section */
/* 에디터 프로필 영역 (가로 스크롤 적용) */
#magazine-wrap .editors-wrap { 
    display: flex; 
    flex-wrap: nowrap; /* ★ 핵심: 밑으로 줄바꿈 되지 않고 한 줄로 나열되게 함 */
    overflow-x: auto;  /* ★ 핵심: 가로 영역을 넘어가면 스크롤바 생성 */
    gap: 30px;

    padding: 40px 20px 20px 20px;

    width: max-content;   /* 내용물(에디터 수) 너비만큼만 박스 크기를 잡음 */
    max-width: 100%;      /* 화면보다 커지면 100%로 제한하여 스크롤 생성 */
    margin: 0 auto;       /* 박스 크기가 화면보다 작을 때(6명 이하) 전체를 중앙 정렬 */

    -webkit-overflow-scrolling: touch; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
    cursor: grab; 
    user-select: none; 
    -webkit-user-select: none;
}

/* 개별 에디터 아이템 */
#magazine-wrap .editor-item { 
    flex: 0 0 auto; /* ★ 핵심: 화면이 좁아져도 아이템 크기가 찌그러지지 않고 고정됨 */
    width: 140px;   /* 각 프로필 영역의 가로 너비 (텍스트 길이에 맞춰 조절 가능) */
    text-align: center; 
}

/* 프로필 이미지 (참고용: 기존과 동일) */
#magazine-wrap .editor-img { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    margin: 0 auto 16px auto; 
    object-fit: cover;
}

#magazine-wrap .editors-wrap::-webkit-scrollbar {
    display: none; 
}

#magazine-wrap .editors-wrap:active {
    cursor: grabbing;
}
#magazine-wrap .editor-name { color:#333; font-size: 15px;
font-style: normal;
font-weight: 700;
line-height: 26px; }
#magazine-wrap .editor-role { color:#808080;font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px; /* 157.143% */
letter-spacing: -0.2px;}

	/* Responsive */
	@media (max-width: 992px) {
	#magazine-wrap .grid-4 { grid-template-columns: repeat(2, 1fr); }
	#magazine-wrap .grid-featured { grid-template-columns: 1fr; }
	#magazine-wrap .card-large .card-img-wrapper img { height: auto; aspect-ratio: 16/9; }
	}
	@media (max-width: 768px) {
	#magazine-wrap .hero { flex-direction: column; }
	#magazine-wrap .grid-2, #magazine-wrap .grid-4 { grid-template-columns: 1fr; }
	#magazine-wrap .card-horizontal { flex-direction: column; }
	#magazine-wrap .card-horizontal img { width: 100%; height: 180px; }
	#magazine-wrap .card-horizontal .card-info { width: 100%; }
	#magazine-wrap .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
	}


    /* 서브페이지 상단 탭 메뉴 */
  #magazine-wrap .mz-tabs { 
    display: flex; 
    gap: 30px; 
    margin-top: 48px; 
    margin-bottom: 32px; 
  }
  #magazine-wrap .mz-tabs a { 
    padding: 15px 0; 
    font-size: 16px; 
    color: #777; 
    font-weight: 500; 
    position: relative; 
  }
  #magazine-wrap .mz-tabs a.active { 
    color: var(--point-color); 
    font-weight: 700; 
  }
  #magazine-wrap .mz-tabs a.active::after { 
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background-color: var(--point-color); 
  }

  /* 총 건수 및 정렬 바 */
  #magazine-wrap .mz-util-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px; 
    font-size: 14px; 
  }
  #magazine-wrap .mz-util-bar .total-count { color: #555; }
  #magazine-wrap .mz-util-bar .total-count strong { color: var(--point-color); font-weight: 700; }
  #magazine-wrap .mz-util-bar .sort-select { 
    border: none; 
    color: #555; 
    font-size: 14px; 
    outline: none; 
    cursor: pointer; 
    background: transparent;
  }

  /* 페이징 (페이지 번호) */
  #magazine-wrap .mz-pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 16px; 
    margin-top: 60px; 
    font-size: 15px; 
  }
  #magazine-wrap .mz-pagination a { color: #555; }
  #magazine-wrap .mz-pagination a.active { color: var(--point-color); font-weight: 700; }
  #magazine-wrap .mz-pagination .divider { width: 1px; height: 12px; background-color: #ddd; margin: 0 4px; }



   /* --- [ 게시글 상세 보기 CSS ] --- */
  
  /* 최상단 뒤로가기 네비게이션 */
  #magazine-wrap .mz-top-nav {
    padding: 20px 0;
    margin-bottom: 20px;
  }
  #magazine-wrap .btn-back {
    font-size: 15px;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  #magazine-wrap .btn-back:hover {
    color: var(--text-main);
  }

  /* 게시글 헤더 영역 */
  #magazine-wrap .article-header {
    margin-bottom: 30px;
  }
  #magazine-wrap .article-header .category-tag {
    display: inline-block;
    border: 1px solid #ba4b6d;
    color: #ba4b6d;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  #magazine-wrap .article-header .article-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -1px;
    word-break: keep-all;
  }
  #magazine-wrap .article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #777;
    flex-wrap: wrap;
  }
  #magazine-wrap .article-meta .divider {
    color: #ddd;
  }

  /* 공유하기 버튼 및 팝업 (상대 위치 지정) */
  #magazine-wrap .share-wrap {
    position: relative;
  }
  #magazine-wrap .btn-share {
    background: none;
    border: none;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  
  /* 공유하기 팝업 UI */
  #magazine-wrap .share-popup {
    display: none; 
    position: absolute;
    top: 30px;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 20px;
    width: 240px;
    z-index: 100;
  }
  #magazine-wrap .share-popup .popup-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
    font-size: 15px;
  }
  #magazine-wrap .share-popup .sns-icons {
    display: flex;
    justify-content: space-between;
  }
  #magazine-wrap .share-popup .icon-sns {
    width: 36px;
    height: 36px;
    background-color: #eee;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
  }

  /* 메인 커버 이미지 */
  #magazine-wrap .article-cover {
    width: 100%;
    margin-bottom: 60px;
  }
  #magazine-wrap .article-cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
  }

  /* 본문 텍스트 영역 */
  #magazine-wrap .article-body {
    
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    padding-bottom: 80px;
  }
  #magazine-wrap .article-body p {
    margin-bottom: 24px;
    word-break: keep-all;
  }
  #magazine-wrap .article-body .greeting {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
  }

  /* 본문 내 인용구 (따옴표) 스타일 */
  #magazine-wrap .article-body blockquote {
    margin: 48px 0;
    padding: 10px 0 10px 24px;
    border-left: 4px solid #ba4b6d;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.6;
    background: transparent;
  }

  /* 하단 에디터 서명 */
  #magazine-wrap .article-body .signature {
    text-align: right;
    color: #777;
    margin-top: 80px;
    font-size: 15px;
  }

  /* 양쪽 끝 배치 컨테이너 */
  #magazine-wrap .mz-bottom-actions {
    display: flex;
    justify-content: space-between; /* ★ 핵심: 버튼들을 양 끝으로 밀어냅니다 */
    align-items: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eee; /* 본문과 구분되는 연한 선 (필요 없으면 삭제) */
  }

  /* 왼쪽: 목록으로 버튼 (밝은 회색) */
  #magazine-wrap .btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
  }
  #magazine-wrap .btn-list:hover {
    background-color: #eee;
    color: #333;
  }

  /* 오른쪽: TOP 버튼 (어두운 회색) */
  #magazine-wrap .btn-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: #5a5a5a; 
    border: 1px solid #5a5a5a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
  }
  #magazine-wrap .btn-top:hover {
    background-color: #333;
    border-color: #333;
    color: #ffffff; /* 기존 a 태그 속성에 의해 글씨색이 바뀌는 것 방지 */
  }
  /* 반응형 (모바일) */
  @media (max-width: 768px) {
    #magazine-wrap .article-header .article-title {
      font-size: 28px;
    }
    #magazine-wrap .article-body {
      font-size: 16px;
    }
    #magazine-wrap .article-body blockquote {
      font-size: 16px;
      margin: 32px 0;
    }
  }