/* ==========================================================================
   SINGLE PROJECT PAGE STYLES
   A clean, modern design for individual project pages
   ========================================================================== */

/* CSS Variables for consistency */
:root {
    --project-green: #0E6B38;
    --project-green-dark: #0a4d28;
    --project-black: #1a1a1a;
    --project-gray: #6B7280;
    --project-light-gray: #F3F4F6;
    --project-border: #E5E7EB;
    --project-white: #ffffff;
    --project-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --project-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --project-radius: 12px;
    --project-radius-lg: 20px;
    --project-transition: all 0.3s ease;
}

/* Container - ensure proper layout */
.project-single-modern .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Reset box-sizing for all elements */
.project-single-modern *,
.project-single-modern *::before,
.project-single-modern *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.project-hero-modern {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.project-hero-modern .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.project-hero-modern .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-modern .hero-no-image {
    background: linear-gradient(135deg, var(--project-green) 0%, var(--project-green-dark) 100%);
}

.project-hero-modern .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.project-hero-modern .hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 0 80px 0;
}

/* Breadcrumb */
.project-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.project-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--project-transition);
}

.project-breadcrumb a:hover {
    color: #fff;
}

.project-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.project-breadcrumb .separator svg {
    width: 14px;
    height: 14px;
}

.project-breadcrumb .current {
    color: rgba(255, 255, 255, 0.6);
}

/* Project Badges */
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.project-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Project Title */
.project-title-modern {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    max-width: 800px;
}

/* Project Meta */
.project-meta-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.project-meta-modern .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.project-meta-modern .meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.project-content-area {
    background: var(--project-white);
    padding: 0;
}

.project-article-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   QUICK STATS
   ========================================================================== */

.project-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--project-white);
    border-radius: var(--project-radius);
    padding: 24px;
    box-shadow: var(--project-shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--project-transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--project-green) 0%, var(--project-green-dark) 100%);
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-card.highlight .stat-icon svg {
    stroke: #fff;
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value {
    color: #fff;
}

.stat-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--project-green);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--project-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--project-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   PROJECT DESCRIPTION
   ========================================================================== */

.project-description-modern {
    margin-bottom: 60px;
}

.section-header-left {
    margin-bottom: 24px;
}

.section-header-left .section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 30px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header-left h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--project-black);
    margin: 0;
    line-height: 1.3;
}

.description-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--project-gray);
}

.description-content p {
    margin: 0 0 20px 0;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   MODERN GALLERY SECTION
   ========================================================================== */

.modern-gallery-section {
    background: var(--project-light-gray);
    border-radius: var(--project-radius-lg);
    padding: 40px;
    margin-bottom: 60px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-title-area .section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 30px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gallery-title-area h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--project-black);
    margin: 0;
}

.gallery-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.image-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--project-gray);
    font-size: 14px;
    font-weight: 500;
}

.image-count svg {
    width: 18px;
    height: 18px;
    stroke: var(--project-green);
}

.btn-view-all-gallery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--project-green);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--project-transition);
}

.btn-view-all-gallery:hover {
    background: var(--project-green-dark);
}

.btn-view-all-gallery svg {
    width: 16px;
    height: 16px;
}

/* Gallery Grid */
.modern-gallery-grid {
    display: grid;
    gap: 16px;
}

/* 1 Image Layout */
.modern-gallery-grid.images-1 {
    grid-template-columns: 1fr;
}

.modern-gallery-grid.images-1 .gallery-item {
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

/* 2 Images Layout */
.modern-gallery-grid.images-2 {
    grid-template-columns: repeat(2, 1fr);
}

.modern-gallery-grid.images-2 .gallery-item {
    aspect-ratio: 4 / 3;
}

/* 3 Images Layout */
.modern-gallery-grid.images-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
}

.modern-gallery-grid.images-3 .gallery-item:first-child {
    grid-row: span 2;
}

/* 4 Images Layout */
.modern-gallery-grid.images-4 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 180px);
}

.modern-gallery-grid.images-4 .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* 5+ Images Layout */
.modern-gallery-grid.images-5 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 200px);
}

.modern-gallery-grid.images-5 .gallery-item:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
}

.modern-gallery-grid.images-5 .gallery-item:nth-child(2),
.modern-gallery-grid.images-5 .gallery-item:nth-child(3) {
    grid-column: span 2;
}

.modern-gallery-grid.images-5 .gallery-item:nth-child(4),
.modern-gallery-grid.images-5 .gallery-item:nth-child(5) {
    grid-column: span 2;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--project-radius);
    cursor: pointer;
    background: #ddd;
}

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

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 107, 56, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--project-transition);
}

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

.overlay-content {
    text-align: center;
    color: #fff;
}

.overlay-content svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    margin-bottom: 8px;
}

.remaining-count {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

/* Hidden gallery data */
.gallery-data {
    display: none !important;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    background: rgba(0, 0, 0, 0.95);
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 120px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--project-transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--project-transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--project-green);
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 100%;
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.lightbox-loader.active {
    display: block;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--project-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-caption {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
}

.thumbnails-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
}

.thumbnails-track::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--project-transition);
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--project-green);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   SOCIAL SHARE
   ========================================================================== */

.social-share-modern {
    background: var(--project-light-gray);
    border-radius: var(--project-radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.share-header {
    margin-bottom: 24px;
}

.share-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 30px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.share-header p {
    color: var(--project-gray);
    font-size: 15px;
    margin: 0;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--project-transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-facebook {
    background: #1877F2;
    color: #fff;
}

.share-facebook:hover {
    background: #0d65d9;
    color: #fff;
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-twitter:hover {
    background: #333;
    color: #fff;
}

.share-linkedin {
    background: #0A66C2;
    color: #fff;
}

.share-linkedin:hover {
    background: #004182;
    color: #fff;
}

.share-pinterest {
    background: #E60023;
    color: #fff;
}

.share-pinterest:hover {
    background: #bd001d;
    color: #fff;
}

.share-copy {
    background: var(--project-green);
    color: #fff;
}

.share-copy:hover {
    background: var(--project-green-dark);
    color: #fff;
}

/* ==========================================================================
   RELATED PROJECTS
   ========================================================================== */

.related-projects-modern {
    background: var(--project-light-gray);
    padding: 80px 0;
}

.related-projects-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header-center .section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 30px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header-center h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--project-black);
    margin: 0 0 12px 0;
}

.section-header-center p {
    color: var(--project-gray);
    font-size: 16px;
    margin: 0;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.related-project-card {
    background: var(--project-white);
    border-radius: var(--project-radius-lg);
    overflow: hidden;
    box-shadow: var(--project-shadow);
    transition: var(--project-transition);
}

.related-project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--project-shadow-lg);
}

.related-project-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-project-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.related-project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-card:hover .card-image img {
    transform: scale(1.08);
}

.related-project-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 107, 56, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--project-transition);
}

.related-project-card:hover .card-overlay {
    opacity: 1;
}

.related-project-card .view-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.related-project-card .view-text svg {
    width: 20px;
    height: 20px;
}

.related-project-card .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}

.related-project-card .card-content {
    padding: 24px;
}

.related-project-card .card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 20px;
    color: var(--project-green);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.related-project-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--project-black);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.related-project-card .card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--project-gray);
    font-size: 14px;
}

.related-project-card .card-location svg {
    width: 14px;
    height: 14px;
    stroke: var(--project-green);
}

.view-all-projects {
    text-align: center;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--project-green);
    border: 2px solid var(--project-green);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--project-transition);
}

.btn-outline-primary:hover {
    background: var(--project-green);
    color: #fff;
}

.btn-outline-primary svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.project-cta-section {
    padding: 80px 0;
}

.project-cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-card-modern {
    position: relative;
    background: linear-gradient(135deg, var(--project-green) 0%, var(--project-green-dark) 100%);
    border-radius: var(--project-radius-lg);
    padding: 60px;
    overflow: hidden;
}

.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card-modern .cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-card-modern .cta-text {
    flex: 1;
}

.cta-card-modern .cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.cta-card-modern .cta-text p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: var(--project-green);
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--project-transition);
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-white svg {
    width: 18px;
    height: 18px;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--project-transition);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--project-green);
    border-color: #fff;
}

.btn-outline-white svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .project-hero-modern {
        height: 60vh;
        min-height: 450px;
    }

    .project-title-modern {
        font-size: 38px;
    }

    .project-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -50px;
    }

    .modern-gallery-grid.images-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .modern-gallery-grid.images-5 .gallery-item:nth-child(1) {
        grid-column: span 4;
        grid-row: span 1;
    }

    .modern-gallery-grid.images-5 .gallery-item:nth-child(2),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(3),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(4),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(5) {
        grid-column: span 2;
    }

    .cta-card-modern .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-card-modern .cta-text p {
        max-width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
    }

    .cta-actions a {
        justify-content: center;
    }

    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .project-hero-modern {
        height: auto;
        min-height: 400px;
    }

    .project-hero-modern .hero-content-wrapper {
        padding: 40px 0;
    }

    .project-breadcrumb {
        display: none;
    }

    .project-title-modern {
        font-size: 28px;
    }

    .project-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-quick-stats {
        grid-template-columns: 1fr;
        margin-top: 40px;
        margin-bottom: 40px;
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .section-header-left h2,
    .gallery-title-area h2 {
        font-size: 24px;
    }

    .modern-gallery-section {
        padding: 24px;
        margin-bottom: 40px;
        border-radius: var(--project-radius);
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-info {
        width: 100%;
        justify-content: space-between;
    }

    .modern-gallery-grid,
    .modern-gallery-grid.images-1,
    .modern-gallery-grid.images-2,
    .modern-gallery-grid.images-3,
    .modern-gallery-grid.images-4,
    .modern-gallery-grid.images-5 {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .modern-gallery-grid.images-1 .gallery-item {
        grid-column: span 2;
        max-height: 250px;
    }

    .modern-gallery-grid.images-3 .gallery-item:first-child,
    .modern-gallery-grid.images-4 .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .modern-gallery-grid.images-5 .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .modern-gallery-grid.images-5 .gallery-item:nth-child(2),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(3),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(4),
    .modern-gallery-grid.images-5 .gallery-item:nth-child(5) {
        grid-column: span 1;
    }

    .gallery-item {
        border-radius: 8px;
    }

    /* Lightbox Mobile */
    .lightbox-container {
        padding: 60px 16px 100px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .thumbnail-item {
        width: 50px;
        height: 38px;
    }

    /* Social Share Mobile */
    .social-share-modern {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .share-btn {
        padding: 10px 16px;
    }

    .share-btn span {
        display: none;
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Related Projects Mobile */
    .related-projects-modern {
        padding: 50px 0;
    }

    .section-header-center {
        margin-bottom: 30px;
    }

    .section-header-center h2 {
        font-size: 28px;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .related-project-card .card-image {
        height: 200px;
    }

    .related-project-card .card-content {
        padding: 20px;
    }

    .related-project-card .card-title {
        font-size: 18px;
    }

    /* CTA Mobile */
    .project-cta-section {
        padding: 50px 0;
    }

    .cta-card-modern {
        padding: 30px 24px;
        border-radius: var(--project-radius);
    }

    .cta-card-modern .cta-text h2 {
        font-size: 24px;
    }

    .cta-card-modern .cta-text p {
        font-size: 15px;
    }

    .btn-white,
    .btn-outline-white {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .project-title-modern {
        font-size: 24px;
    }

    .project-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 14px;
    }

    .modern-gallery-grid,
    .modern-gallery-grid.images-1,
    .modern-gallery-grid.images-2,
    .modern-gallery-grid.images-3,
    .modern-gallery-grid.images-4,
    .modern-gallery-grid.images-5 {
        grid-auto-rows: 120px;
    }

    .btn-view-all-gallery {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-view-all-gallery span {
        display: none;
    }
}
