
@import url('https://fonts.googleapis.com/css2?family=Chocolate+Classical+Sans&display=swap');

body{
    
    background-color: whitesmoke;
    font-family: "Chocolate Classical Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color:#000;
    line-height: 1.5;
}

a {
    color: #000;
    text-decoration: none;
}

.site-header{
    padding: 30px;
    border-bottom:1px solid #ccc ;
    margin-bottom: 20px;
}

.header-inner{
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .newsletter{
    display: block;
    width: 150px;
    text-align: left;
}

.menu{
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item{
    margin-left: 10px;
    margin-right: 10px;
}

.entry-header{
    padding: 10px;
    background-color: #FF0066;
    display: flex;
    align-items: center;
}

.entry-title{
    font-size: 16px;
    color: #ffff;
    margin: 0;
    line-height: 1;
    margin-left: auto;
    margin-right: auto;
}

.entry-content img {
        max-width: 90%; /* 確保不會超出容器 */
        height: auto; /* 按比例縮放 */
        display: block; /* 移除圖片底部空隙 */
        margin: 0 auto 2rem; /* 置中且加上下間距 */
        border-radius: 8px; /* 圓角，可自行調整 */
    }

.entry-content, .content-header{
    margin: 1rem;
}

.wp-post-image{
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
}

.project-item .thumbnail-wrapper {
	position: relative;
	overflow: hidden;
}

.project-item .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(227,227,227, 0.6); /* 半透明黑 */
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	color: #fff;
	text-align: center;
	padding: 1rem;
    border-radius: 8px;
}

.project-item:hover .overlay {
	opacity: 1;
}

.project-item .overlay {
    pointer-events: none; /* 讓滑鼠事件穿透 overlay，仍然能點連結 */
}

.project-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-row-gap: 50px;
    grid-column-gap: 20px;

    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.site-main{
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

.about-page{
    padding-left: 200px;
    padding-right: 200px;
}

.writing-page{
    text-align: center;
}

/* 限定 writing page 的所有超連結 */
.writing-page a {
    color: #FF0066;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 2px 4px;
    transition: all 0.3s ease;
  }
  
.writing-page a:hover {
    background-color: #FF0066;
    color: #fff;
    border-color: #FF0066;
  }

.split-container{
    display: flex;
    height: 100vh;
}

.split {
    flex: 1; /* 左右平分 */
    overflow-y: auto; /* 允許內容上下捲動 */
    position: sticky;
    top: 0;
    height: 100vh; 
}

/* 隱形滾輪 - Chrome / Safari / Edge */
.left::-webkit-scrollbar,
.right::-webkit-scrollbar {
    display: none;
}

/* 隱形滾輪 - Firefox */
.left, .right {
    scrollbar-width: none; /* 移除 Firefox 的滾輪 */
    -ms-overflow-style: none; /* IE / Edge 舊版 */
}

.left{
    background-color: #e3e3e3;
    border-radius: 8px;
}

.nav-links{
    display: flex;
    justify-content: space-between;
}

.nav-next, .nav-previous{
    height: auto;
    display: block;
    padding: 5px;
}

body.single .post-navigation a {
    color: #FF0066;             /* 粉紅文字 */
    text-decoration: none;      /* 去掉底線 */
    border: 2px solid transparent;
    padding: 2px 4px;
    transition: all 0.3s ease;
}

body.single .post-navigation a:hover {
    background-color: #FF0066;  /* 背景粉紅 */
    color: #fff;                /* 文字變白 */
    border-color: #FF0066;      /* 框線粉紅 */
}

.site-footer{
    padding: 80px;
}

.site-info{
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials{
    display: flex;
    height: 25px;
}


.links{
    display: flex;
    height: 25px;
    margin-right: 5px;
    margin-left: 5px;
}



@media (max-width:1100px) {

    .project-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-row-gap: 50px;
        grid-column-gap: 20px;
    
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 820px) {
    .split-container {
        flex-direction: column;
        height: auto;
      }
    
    .split.left,
    .split.right {
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .about-page{
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 768px) {
    .header-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 1.5rem 1rem;
    }
  
    .logo {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      text-align: center;
    }
  
    .main-navigation ul {
      flex-direction: column;
      gap: 1rem;
    }
  
    .main-navigation a {
      font-size: 1.1rem;
      color: #333;
    }
}

@media (max-width:480px){
    .project-grid{
        display: grid;
        grid-template-columns: 1fr;
        grid-row-gap: 10px;
        
        margin-left: 10px;
        margin-right: 10px;
    
    }
    .site-footer{
        padding: 50px;
    }

}

