/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ------------------------------
   데스크톱 레이아웃 (1025px 이상)
------------------------------ */
@media (min-width: 1025px) {
  /* 전체 레이아웃 wrapper */
  .container.grid-container {
    max-width: 1260px !important; /* 본문(900 + 여백 포함 1000) + 사이드바(260~360) */
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* 본문 + 사이드바 2단 grid 레이아웃 */
  .generate-columns-container {
    display: grid !important;
    grid-template-columns: 1000px 260px !important; /* 필요하면 900 / 360 등으로 조정 */
    column-gap: 0 !important;
    box-sizing: border-box;
  }

  /* 본문 wrapper */
  #primary.content-area {
    width: 1000px !important; /* 본문 전체 폭 (내용 + 여백) */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  /* 아티클 내부 전체 */
  .inside-article {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* 본문 내용: 900px 고정, 가운데 정렬 */
  .entry-content {
    width: 900px !important;     /* 글 내용 폭 */
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  /* 본문 내 모든 블록(단락, 헤딩, 리스트 등) */
  .entry-content > * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 본문 내 이미지: 텍스트 폭과 동일하게 맞추기 */
  .entry-content img {
    display: block;
    max-width: 100% !important;  /* .entry-content(900px) 안에서만 */
    width: 100% !important;      /* 항상 컨테이너 가득 */
    height: auto;
    margin-left: 0;
    margin-right: 0;
  }

  /* Wide / Full 이미지가 있더라도 본문 폭에 맞추기 (원하면 제거) */
  .entry-content .alignwide,
  .entry-content .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 사이드바 */
  #right-sidebar {
    width: 260px !important; /* 260~360 중 사이트 디자인에 맞춰 조정 */
    box-sizing: border-box;
  }
}

/* ------------------------------
   검색 위젯 스타일
------------------------------ */
.widget_search input[type="search"] {
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-sizing: border-box;
}

.widget_search button {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
}

/* ------------------------------
   링크 스타일
------------------------------ */
/* 기본 상태에서는 밑줄 제거 */
a {
  text-decoration: none;
}

/* 마우스 오버 시 밑줄 표시 */
a:hover {
  text-decoration: underline;
}

/* ------------------------------
   헤딩(h1, h2, h3 등) 크기
------------------------------ */
h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 1em;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 1em;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 0.8em;
}

/* ------------------------------
   <code> 태그 코드 스타일
------------------------------ */
code {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f4f4f4;
  padding: 2px 4px;
  font-size: 14px;
  color: #c7254e;
  border-radius: 4px;
}

/* ------------------------------
   관련 글 박스 스타일
------------------------------ */
.related-posts {
  border: 2px solid #e9e9e9;
  border-radius: 20px;
  padding: 20px;
}
