* {
    box-sizing: border-box;
}

body {
    background: #f8f8f8;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

.back-link {
    margin-bottom: 30px;
    display: inline-block;
    text-decoration: none;
    color: #333;
}

/* Fixed page navigation buttons */
.page-nav-wrap {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
    z-index: 99;
}

.page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #888888;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
    pointer-events: auto;
}

.page-nav i {
    font-size: 24px;
}

.page-nav:hover {
    background: #666666;
}

.page-nav.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* Main content layout */
.hero-row {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 40px;
    align-items: flex-start;
}

.main-img-wrap {
    background: #fff;
    padding: 20px;
}

.main-img-wrap img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}

.info-panel {
    padding-top: 10px;
}

.project-title {
    font-size: 20px;
    color: #222;
    font-weight: 500;
    margin: 0 0 25px 0;
}

.meta-item {
    font-size: 15px;
    color: #555;
    margin: 12px 0;
    line-height: 1.6;
}

.meta-label {
    color: #888;
    margin-right: 6px;
}

.project-desc {
    margin: 20px 0 40px;
    line-height: 1.7;
    color: #555;
}

/* Thumbnail slider */
.thumb-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumb-slider img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.65;
    transition: 0.2s ease;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.thumb-slider img:hover,
.thumb-slider img.active {
    opacity: 1;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.thumb-slider::-webkit-scrollbar {
    height: 4px;
}

.thumb-slider::-webkit-scrollbar-thumb {
    background: #bbb;
}

/* Slide container & single slide image */
.main-slide-container {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    overflow: hidden;
}

#mainSlideImg {
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Thumb button style */
.slide-thumb-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 0;
    padding: 0;
}

.slide-thumb-btn.active {
    opacity: 1;
}

.slide-thumb-btn.active img {
    outline: 3px solid #000;
    outline-offset: 2px;
}
/* Full visible hero image, centered inside fixed wrapper */
.main-img-wrap {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Old single page nav (reserved for compatibility) */
.page-prev { left: 24px; }
.page-next { right: 24px; }