/*
Theme Name: Hamilton Child
Theme URI: https://andersnoren.se/teman/hamilton-wordpress-theme/
Template: hamilton
Author: Anders Norén
Author URI: https://andersnoren.se
Description: Hamilton portfolio theme child theme
Tags: blog,two-columns,three-columns,custom-menu,featured-images,portfolio
Version: 2.1.2.2.1778384742
Updated: 2026-05-10 12:45:42

*/

/* 기본 폰트 - Sans */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 
                 "Apple SD Gothic Neo", sans-serif;
}


/* ======================== */
/* 기본 레이아웃 */
/* ======================== */
.site-header,
.section-inner,
.info-inner {
    width: calc(100% - 50px);
    max-width: none;
    margin: 0 auto;
}

a {
    text-decoration: none !important;
    border: none !important;
}

:root {
    --swiper-theme-color: transparent;
}

:focus-visible {
    outline: none;
}
.page-id-40 h2 {
	font-weight: 700;
	margin-bottom: 24px;
}
.page #site-content {
  border-top: 1px solid #999;
}
.page .post-content {
  padding: 0 25px;
}

.full-width-divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-top: 1px solid #999;
}

@media (max-width: 768px) {
	.page .post-content {
		padding: 0;
	}
}
/* ======================== */
/* 사이트 헤더 */
/* ======================== */
.site-header {
    align-items: center !important;
    padding: 0 25px;
    height: 162px;
}

.site-header .site-title {
    font-size: 22px;
}

.show-alt-nav .alt-nav-wrapper {
    display: block !important;
	margin-left:0;
}

.alt-nav li a {
    font-size: 15px;
    color: #999;
}

.alt-nav li {
    margin-left: 24px;
}
.alt-nav li a:hover {
    color: #1b1b1b;
}
@media (max-width: 768px) {
    .site-header {
			padding: 0;
			margin-bottom:80px;
			height: 52px;
			align-items: flex-end !important;
    }

}
@media (max-width: 480px) {
	.site-header .site-title {
			font-size: 18px;
	}
		.alt-nav li a {
			font-size: 12px;
	}
}
/* ======================== */
/* 사이트 푸터 */
/* ======================== */
.site-footer {
    padding: 0 0 19px;
    border-top: 1px solid #999;
}

.single .site-footer {
    display: none;
}

.footer {
    padding: 0 25px;
}
@media (max-width: 768px) {
    .footer {
        padding: 0;
    }
}

/* ======================== */
/* 포스트 미리보기 (홈/목록 페이지) */
/* ======================== */
.home .site-content {
    height: 100%;
}

.posts {
    margin: 0 !important;
}

.post-preview {
    padding: 0 25px 136px;
    width: 33.33%;
}

.post-preview .preview-image,
.post-preview .preview-image:after,
.post-preview header {
    display: none;
}

.card-link {
    display: block;
    cursor: default;
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    pointer-events: all;
}

.post-preview .card-link .card-title {
    font-size: 14px;
    font-weight: 500;
    color: #1b1b1b;
    padding-top: 10px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-link:hover .card-title {
    opacity: 1;
}

/* 태그 기반 크기 */
.post-preview.tag-small .card-image img {
    width: 60%;
}

.post-preview.tag-medium .card-image img {
    width: 80%;
}

.post-preview.tag-large .card-image img {
    width: 100%;
}

@media (max-width: 768px) {
    .post-preview {
        width: 50%;
			padding-bottom:74px;
	}
	.post-preview .card-link .card-title {
        opacity: 1;
		 font-size: 12px;
		font-weight: 400;
    }
}

@media (max-width: 480px) {
    .post-preview {
        width: 100%;
    }
}
/* ======================== */
/* 페이지(어바웃, 뉴스 페이지) */
/* ======================== */
.page .about-grid.wp-block-group {
	 gap: 80px;
}
.contact_table table {
	margin-top: 0;
}

.contact_table.wp-block-table td, .contact_table.wp-block-table th {
	border: none !important;
	padding-left: 0;
}
.contact_table.wp-block-table td:nth-child(odd) {
  padding-right: 60px;
}

.contact_table tbody > tr {
	background:none;
	font-size: 13px;
}
.page .news-contents .wp-block-image {
    margin: 0;
	    max-width: none;
}
.page .news-img {
	    flex-basis: 300px !important;
    flex-grow: 0 !important;
	    padding: 0;
}
.page .news-img img {
    max-height: 300px;
    width: auto !important;
}
.page .news-contents .news-text p {
	max-width: 600px;
}
@media (max-width: 781px) {
	.page .news-contents .news-date p {
		margin-bottom: 0;
	}
	.page .news-contents .news-text p {
		line-height: 1.3 !important;
	}
	.page .news-contents .news-text .fonts-plugin-block  {
    margin-bottom: 16px;
}
	.news-container {
		gap: 0;
	}
	.page .news-contents .news-img figure.aligncenter.size-large {
    margin: 0;
    width: 100%;
}
		.page .news-contents .news-img img {
   max-height:none;
}
}
@media (min-width: 1540px) {
	.about-grid.wp-block-group {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* ======================== */
/* 포스트 페이지 본문 */
/* ======================== */
.project-page {
    height: calc(100vh - 162px);
    overflow: hidden;
    display: flex;
    align-items: center;
	padding-bottom: 162px;
}

@media (max-width: 768px) {
    .single .site-content {
        display: block;
        overflow: visible;
    }

    .single article.project-page {
        display: block;
        overflow: visible;
        width: 100%;
        height: auto;
			padding-bottom: 0;
    }
}

/* ======================== */
/* Swiper 슬라이더 영역 */
/* ======================== */
.project-sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 0 25px;
    min-height: 0;
/* 	헤더 162px + 컨트롤 78px + 정보바 50px = 290px */
	max-height: calc(100vh - 290px);
}

.project-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-swiper .swiper-slide {
    aspect-ratio: 1 / 1;
    overflow: hidden;
	max-height: calc(100vh - 290px);
}

.project-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.project-swiper .swiper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    height: 78px;
    flex-shrink: 0;
}

.project-swiper .swiper-button-prev,
.project-swiper .swiper-button-next {
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0;
    top: auto;
    color: #999;
}

.project-swiper .swiper-button-prev::after,
.project-swiper .swiper-button-next::after {
    font-size: 12px;
    font-weight: 400;
}

.project-swiper .swiper-button-disabled {
    opacity: 0.3;
}

.project-swiper .swiper-pagination {
    position: relative;
    width: auto;
    bottom: auto;
    color: #999;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

/* 로딩 스피너 */
.project-swiper .swiper-lazy-preloader {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -15px;
    margin-top: -15px;
    border: 2px solid #eee;
    border-top-color: #999;
    border-radius: 50%;
    animation: swiper-preloader-spin 1s linear infinite;
}

@keyframes swiper-preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .project-sliders {
        display: block;
        padding: 0;
				max-height: calc(100vh - 228px);
    }

    .drawing-slider {
        display: none;
    }

    .project-swiper {
        margin-bottom: 30px;
    }
}

/* ======================== */
/* 프로젝트 정보 바 */
/* ======================== */

.project-info-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    z-index: 100;
    transition: max-height 0.5s ease-in-out;
    max-height: 50px;
    overflow: hidden;
}

.project-info-bar.open {
    max-height: 80vh;
}

.project-info-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    cursor: pointer;
    background: #fff;
    padding: 6px 0;
}

.info-summary-kr,
.info-summary-en {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
}

.info-summary-kr .info-tags,
.info-summary-en .info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 30px;
    margin: 0;
}

.info-summary-kr .title,
.info-summary-en .title {
    font-weight: 700;
    font-size: 12px;
}

.info-summary-kr .tag-item,
.info-summary-en .tag-item {
    font-size: 12px;
    word-break: keep-all;
    white-space: nowrap;
}

.toggle {
    color: #999;
    white-space: nowrap;
    padding-left: 24px;
    font-size: 10px;
}

.project-info-content {
    overflow-y: auto;
    max-height: calc(80vh - 57px);
}

.info-columns {
    gap: 50px;
    padding: 41px 0 47px;
}

.info-section .info-grid-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 20px;
    margin-bottom: 16px;
}

.info-section.no-awards .info-grid-columns {
    grid-template-columns: repeat(2, 1fr);
}

.info-column {
    display: grid;
    grid-template-columns: 70px 1fr;
    font-size:10px;
    align-content: start;
	  line-height: 1.2;
		gap: 7px 16px;
}

.info-column .label {
    color: #999;
}

.info-column .value {
    color: #1b1b1b;
}

.info-section .description {
    line-height: 1.8;
    font-size: 10px;
    color: #1b1b1b;
}

@media (min-width: 769px) {
    .info-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
	.info-inner {
	    padding: 0 25px;
}

    .info-section {
        border-bottom: none;
    }

    .mobile-controls,
    .mobile-toggle,
    .lang-switcher {
        display: none;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .info-section .info-grid-columns,
    .info-section.no-awards .info-grid-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-info-bar {
        max-height: 110px;
    }

    .project-info-bar.open {
        max-height: 60vh;
    }

    .project-info-header {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }

    .mobile-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

	    .info-section .info-grid-columns,
    .info-section.no-awards .info-grid-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-summary-kr .toggle,
    .info-summary-en .toggle {
        display: none;
    }

    .info-summary-kr,
    .info-summary-en {
        display: block;
    }

    .info-summary-en,
    .info-en {
        display: none;
    }

    .lang-en .info-summary-kr,
    .lang-en .info-kr {
        display: none;
    }

    .lang-en .info-summary-en,
    .lang-en .info-en {
        display: block;
    }

    .lang-switcher {
        display: flex;
        width: fit-content;
        gap: 12px;
    }

    .lang-switcher button {
        padding: 0;
        border: none;
        background: transparent;
        color: #999;
        cursor: pointer;
        font-size: 10px;
        transition: all 0.2s;
    }

    .lang-switcher button.active {
        color: #1b1b1b;
    }

    .project-info-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .project-info-bar.open .project-info-content {
        max-height: calc(60vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
			padding-right: 20px;
      margin-right: -20px;
    }

    .info-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .info-section .info-grid-columns,
    .info-section.no-awards .info-grid-columns {
        grid-template-columns: 1fr;
    }

    .info-column {
        grid-template-columns: 100px 1fr;
    }
}