/* Project gallery pages */
.project-page {
    background: #fff;
    color: #000;
    line-height: 1.7;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.project-page *,
.project-page *::before,
.project-page *::after {
    box-sizing: border-box;
}

.project-back {
    display: inline-block;
    margin: 24px 0 0 24px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: opacity 0.3s ease;
}

.project-back:hover {
    opacity: 0.6;
}

.project-page h1 {
    text-align: center;
    padding: 20px 24px 40px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0 32px 60px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.gallery a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
    line-height: 0;
    font-size: 0;
}

.gallery img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.gallery a:hover img {
    transform: scale(1.02);
}

/* lightbox2 기본 img 제한 해제 */
.project-page a[data-lightbox] img {
    max-width: none;
}
