.blog-viewer {
  background-color: var(--blog-bg);
  width: 100%;
}

.blog-viewer-body-wrapper {
  padding-top: 0px;
  display: flex;
  flex-direction: column;
}

.blog-viewer-body {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 1184px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  background-color: white;
  margin-bottom: 120px;
}

.blog-viewer .main-img {
  background-color: #F3F3F3;
  width: 100%;
  height: 659px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.blog-viewer .content-wrapper {
  width: 820px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.blog-viewer .content-wrapper img{
  max-width: 100%;
}

.blog-viewer .title {
  font-family: Pretendard;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 34px;
  color: var(--font-black);
  margin-top: 34px;
  width: 100%;
  height: fit-content;
  word-break: keep-all;
}

.blog-viewer .sub-contents-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 11px;
}

.blog-viewer .sub-contents-wrapper .c1 {
  display: flex;
  flex-direction: row;
}

.blog-viewer .sub-contents-wrapper .d1 {
  display: flex;
  flex-direction: column;
}

.blog-viewer .sub-contents-wrapper .d1  div:first-child {
  height: 14px;
}

.blog-viewer .date {
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 14px;
  color: var(--font-black);
  margin-right: 20px;
  display: flex;
  align-items: flex-end;
}

.blog-viewer .tag-list, .blog-viewer .tag-list .tag {
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 14px;
  color: var(--font-orange);
}

.blog-viewer .tag-list {
  display: flex;
  align-items: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
}

.btn-wrapper {
  display: flex;
  align-items: flex-end;
}

.blog-viewer .tag-list .tag {
  cursor: pointer;
  margin-right: 10px;
}

.blog-viewer .tag-list .tag:hover {
  text-decoration: underline;
  font-weight: 700;
}

.blog-viewer .share-btn {
  width: 68px;
  height: 26px;
  padding: 5px 9px 4px 14px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.blog-viewer .share-btn-text {
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 4px;
}

/* 블로그 본문에 대해 기본 스타일 정의를 해놨으나, 서머노트로 작성된 블로그 본문을 가져와서 출력했을 때 문제가 있다면 스타일 수정이 필요함*/
.blog-viewer .contents {
  margin-top: 45px;
  width: 100%;
  min-height: 500px;
  /* 아래는 블로그 본문 텍스트 기본 스타일 */
  height: fit-content;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 28px;
  color: var(--font-black);
}

.blog-viewer .blog-bottom {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
}

.blog-viewer .list-btn {
  width: 68px;
  height: 26px;
  padding: 5px 0 4px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.blog-viewer .list-btn-text {
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-viewer .blog-viewer-hr {
  width: 1600px;
  margin: 0 auto;
}

.blog-viewer .blog-list {
  width: 1184px;
  display: flex;
  flex-direction: column;
  margin-top: 120px;
  padding: 0 0 0 0; /* 현 페이지에서는 패딩이 필요없으므로 재정의 */
  background-color: unset;
  margin-left: auto;
  margin-right: auto;
}

.blog-viewer .popular-posts {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
}

.blog-viewer .recomended-posts {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 120px;
}

.blog-viewer .subject {
  font-family: Pretendard;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 34px;
  color: var(--font-black);
}

.blog-viewer .blog-list-body {
  margin-top: 45px;
}

.blog-viewer .blog-card {
  margin-bottom: 0;
}

.copied-link-modal {
  position: fixed;
  top: calc(50% - ((40px + 70px) / 2));
  left: calc(50% - (315px / 2));
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
}

.copied-link-modal.active {
  display: flex;
}

.copied-link-text {
  font-family: 'Pretendard';
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
  padding: 16px 25px;
  width: 315px;
  text-align: center;
}

.copied-link-close {
  font-family: 'Pretendard';
  font-size: 16px;
  font-weight: 600;
  line-height: 19px;
  padding: 10px 10px;
  border-top: 1px solid gray;
  width: 100%;
  text-align: center;
  border-radius: 0 0 15px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.copied-link-close:hover {
  background-color: var(--btn-box-bg-orange-hover);
  color: white;
}





/* 블로그관련 페이지에서만 푸터 재정의하여 다르게 보이도록 함 */
footer {
  background-color: var(--bg-btn-black);
  margin-bottom: 0;
}





@media screen and (min-width: 1920px) {

}

@media screen and (min-width: 1280px) and (max-width: 1919px) {
  .blog-viewer .blog-viewer-hr {
    width: 1020px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .blog-viewer .blog-card:last-child {
    display: none;
  }

  .blog-viewer-body {
    width: 751px;
    margin-bottom: 60px;
  }

  .blog-viewer .main-img {
    height: 427px;
  }

  .blog-viewer .content-wrapper {
    width: 698px;
  }

  .blog-viewer .blog-list {
    width: 751px;
    margin-top: 50px;
  }

  .blog-viewer .subject {
    font-size: 24px;
    line-height: 24px;
    padding-left: 20px;
  }

  .blog-viewer .blog-viewer-hr {
    width: 520px;
  }
  .blog-viewer .popular-posts {
    margin-bottom: 50px;
  }
  
  .blog-viewer .recomended-posts {
    margin-bottom: 60px;
  }
}


@media screen and (max-width: 767px) {
  .blog-viewer .blog-card:last-child {
    display: none;
  }

  .blog-viewer-body {
    width: 100%;
    margin-bottom: 50px;
  }

  .blog-viewer .main-img {
    width: MIN(calc(100% - 20px), 94%);
    height: 56vw;
    margin-top: 30px;
  }

  .blog-viewer .content-wrapper {
    width: MIN(calc(100% - 20px), 94%);
  }

  .blog-viewer .blog-list {
    width: 100%;
    margin-top: 50px;
  }

  .blog-viewer .blog-viewer-hr {
    width: 80%;
  }
  
  .blog-viewer .title {
    font-size: 20px;
    line-height: 20px;
  }

  .blog-viewer .tag-list, .blog-viewer .tag-list .tag {
    font-size: 12px;
    line-height: 12px;
  }

  .blog-viewer .tag-list {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-viewer .sub-contents-wrapper {
    margin-top: 15px;
  }

  .blog-viewer .sub-contents-wrapper .c1 {
    flex-direction: column-reverse;
  }

  .blog-viewer .date {
    margin-right: 0;
    margin-top: 24px;
  }

  .blog-viewer .subject {
    font-size: 16px;
    line-height: 16px;
    padding-left: 20px;
  }

  .blog-viewer .popular-posts {
    margin-bottom: 50px;
  }
  
  .blog-viewer .recomended-posts {
    margin-bottom: 65px;
  }

  @media screen and (max-width: 656px) {
    .blog-viewer .blog-card:first-child {
      margin-bottom: 40px;
    }
    .blog-viewer .blog-list {
      width: 320px;
    }
  }

  .copied-link-modal {
    position: fixed;
    top: calc(50% - ((40px + 70px) / 2));
    left: calc(50% - (263px / 2));
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
  }
  
  .copied-link-modal.active {
    display: flex;
  }
  
  .copied-link-text {
    font-family: 'Pretendard';
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    padding: 16px 17px;
    width: 263px;
    text-align: center;
  }
  
  .copied-link-close {
    font-family: 'Pretendard';
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    padding: 10px 10px;
    border-top: 1px solid gray;
    width: 100%;
    text-align: center;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .copied-link-close:hover {
    background-color: var(--btn-box-bg-orange-hover);
    color: white;
  }
}