/**

This is the basic css file I'm using for the examples
in the basics series. I will extend this file whenever
a new tutorial is being added and new css rules will 
follow. 

*/

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

a {
  color: currentColor;
}

body {
  background:#000000;
  color: white;
  line-height: 130%;
  padding: 0rem 7rem 0rem 7rem;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem 1rem 0rem;
}

.header a {
  text-decoration: none;
}

.logo {
  font-weight: regular;
}

.menu ul {
  list-style: none;
  display: flex;
}

.menu ul li + li {
  margin-left: 1.5rem;
  text-decoration: none;

}



.home-main-text{
font-size: 1.5rem;
font-weight: 350;
line-height: 130%;
columns: 2;
margin: 2rem 2rem 2rem 2rem;

}





.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  grid-column-gap: 0.5rem;
  grid-row-gap: 2rem;
}

.projects img {
  width: 100%;
  margin-bottom: .5rem;
  object-fit: contain;
}



.projects li > a {
  text-decoration: none;     /* 핵심 */
  display: block;            /* 클릭 영역을 figure 전체로 */
  font-size: 1.1rem;
}

.projects-title {
  display: block;         /* 줄바꿈 */

}

.projects-category {
  display: inline-block;           /* 텍스트 크기만큼 표시 */
  margin-top: 0.5rem;              /* 제목과 간격 */
  color: #fff;     /* 흰색 글씨 */
  font-size: 0.8rem;                
  text-decoration: underline;      /* 밑줄 */
    text-underline-offset: 0.15rem;      /* 텍스트와 밑줄 간격 */
}






.pagination {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
}
.pagination span {
  color: #999;
}

.filter {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.filter a {
  padding: .5rem 1rem;
  background: #000000;
  color: #fff;
  margin-right: .5rem;
  border-radius: 3px;
  text-decoration: none;
}
.filter a[aria-current] {
  background: blue;
}


/* Project 상세페이지*/

.project-main {
  padding: 3rem 0rem;  /* header 높이만큼 보정 */
  flex-grow: 1;
  margin-bottom: 3rem;
}


.project-title {
  /* 프로젝트 페이지 - 프로젝트 제목 */
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: regular;
}


.project-container{
  display: grid;
  grid-template-columns: 2fr 2fr 4fr;
  grid-gap: 2rem;
}


.row2 {
  display: grid;
  grid-row-gap: 1.5rem;

}




.project-gallery ul {
  display: flex;
  flex-wrap: wrap;           /* 여러 줄 허용 */
  justify-content: center;   /* 전체 가운데 정렬 */
  list-style: none;
  gap: 1.5rem;               /* 이미지 간 간격 */
  padding: 0;
  margin: 0 auto;
}

.project-gallery li {
  text-align: left;          /* figcaption 왼쪽 정렬 */
  max-width: 1000px;          /* (선택) 이미지 폭 제한 */
}

.project-gallery figure {
  margin: 0;
}

.project-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;            /* 이미지 자체는 가운데 정렬 */
}

.project-gallery figcaption {
  margin-top: 0.5rem;
  text-align: left;          /* 캡션 왼쪽 정렬 */
  color: #ccc;               /* (선택) 캡션 색상 */
  font-size: 0.9rem;
  line-height: 1.4;
}