
#banner .header {
    position: relative;
    background-color: #ffffff;
    padding: 15px 0;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    background: transparent;
}
.slogan-container {
    color: #4c4c4c;
}
#banner .main-menu .nav-link {
    color: #4c4c4c;
}
.project-grid {
    grid-template-columns: repeat(3, 1fr);
}
#banner .social-links a {
    color: #4c4c4c;
}
#banner .main-menu .menu-separator {
    color: #4c4c4c;
}
#banner .social-links .social-separator {
    color: #4c4c4c;
}
#banner .main-menu .nav-link:hover, #banner .social-links a:hover{
    color: #bfbfbf;
}
.main-ft-footer-section {
    margin-top: 0;
}

/* Sidebar Menu Styles */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-menu.show {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #180d59;
    color: #fff;
    padding: 15px;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-menu .nav-link {
    color: #333;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background-color: #f8f9fa;
    color: #180d59;
}

.icon-bars {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M3%2018h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z%22%2F%3E%3C%2Fsvg%3E") no-repeat center center;
}

.icon-times {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3C%2Fsvg%3E") no-repeat center center;
}

/* Responsive styles */
@media (max-width: 991px) {
    .page-project-detail #banner .header {
        padding: 10px 0;
    }

    .navbar-toggler {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
}

/* Project Detail Container - Cập nhật từ phần trước */
.project-detail-container {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 157px); /* Trừ đi chiều cao header (80px) và footer (40px) */
    display: flex;
    flex-direction: column;
}

.project-detail-content {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.project-info-column {
    width: 30%;
    padding-right: 40px;
    max-height: calc(100vh - 157px); /* Trừ đi chiều cao thực tế của header (100px) và footer (40px) */
    overflow-y: auto;
    scrollbar-width: thin;
    position: relative; /* Thêm position relative */
}

.project-info-column::-webkit-scrollbar,
.project-gallery-column::-webkit-scrollbar {
    width: 5px;
}

.project-info-column::-webkit-scrollbar-thumb,
.project-gallery-column::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.project-gallery-column {
    width: 70%;
    max-height: calc(100vh - 140px); /* Trừ đi chiều cao thực tế của header (100px) và footer (40px) */
    overflow-y: auto;
    scrollbar-width: thin;
    position: relative; /* Thêm position relative */
}

.project-title h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
   color: #4c4c4c;
}

.project-subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
}

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

.project-year {
    font-size: 14px;
    color: #666;
}

.project-description {
    margin-bottom: 30px;
    font-size: 14px;
    color: #333;
}

.project-navigation {
    margin-top: 40px;
}

.view-more {
    display: flex;
    align-items: center;
    color: #4c4c4c;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #F16225;
}

.view-more svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    height: auto; /* Thay đổi từ 100% thành auto */
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1060;
}

/* Main Swiper styles */
.lightbox-swiper {
    width: 100%;
    height: 80%;
}

.lightbox-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-swiper .swiper-slide img {
    max-width: auto;
    height: calc(100vh - 100px);
    object-fit: cover;
}

/* Thumbnail Swiper styles */
.lightbox-thumbs {
    width: 100%;
    height: 100px;
    padding: 10px 0;
    margin-top: 10px;
    display: flex;
    justify-content: center; /* Center thumbnails container */
}

.lightbox-thumbs .swiper-wrapper {
    /* When not overflowing, this will center the entire group of thumbnails */
    justify-content: center;
    /* Allow the wrapper to be smaller than container when needed */
    flex-grow: 0;
}

.lightbox-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.lightbox-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #fff;
}

/* Add this to handle overflow case */
.lightbox-thumbs.thumbs-overflow .swiper-wrapper {
    justify-content: flex-start; /* Left align when overflowing */
}

/* Navigation buttons */
.lightbox-swiper .swiper-button-next,
.lightbox-swiper .swiper-button-prev {
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .lightbox-thumbs {
        height: 70px;
    }

    .lightbox-thumbs .swiper-slide {
        width: 60px;
        height: 60px;
    }

    .lightbox-swiper {
        height: 75%;
    }
}

/* Thumbnail navigation */
.thumbnail-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 50px;
    z-index: 1001;
    overflow-x: auto;
    scrollbar-width: thin;
    max-height: 80px;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: white;
}

.thumbnail:hover {
    opacity: 0.9;
}

@media (max-width: 991px) {
    .project-detail-container {
        min-height: auto;
        padding: 20px;
    }

    .project-detail-content {
        flex-direction: column;
    }

    .project-info-column,
    .project-gallery-column {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .project-info-column {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .gallery-item-large,
    .gallery-item-small {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Improve touch experience */
.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0px;
    touch-action: pan-y; /* Allow vertical scrolling but capture horizontal swipes */
}

/* Make navigation buttons more visible on mobile */
@media (max-width: 768px) {
    .prev-slide, .next-slide {
        padding: 12px;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .thumbnail-nav {
        bottom: 10px;
        padding: 0 30px;
    }
}

/* Responsive styles - giữ nguyên phần này */
@media (max-width: 768px) {
    .lightbox-thumbs {
        height: 70px;
    }

    .lightbox-thumbs .swiper-slide {
        width: 60px;
        height: 60px;
    }

    .lightbox-swiper {
        height: 75%;
    }
}

/* Thumbnail navigation */
.thumbnail-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 50px;
    z-index: 1001;
    overflow-x: auto;
    scrollbar-width: thin;
    max-height: 80px;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: white;
}

.thumbnail:hover {
    opacity: 0.9;
}

@media (max-width: 991px) {
    .project-detail-content {
        flex-direction: column;
    }

    .project-info-column,
    .project-gallery-column {
        width: 100%;
    }

    .project-info-column {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .gallery-item-large,
    .gallery-item-small {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Improve touch experience */
.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0px;
    touch-action: pan-y; /* Allow vertical scrolling but capture horizontal swipes */
}








