/* ==========================================================================
   SQUAREA Global Luxury Real Estate - Project Details Page Stylesheet
   ========================================================================== */

/* Theme Variables (Mapped directly to Design System tokens) */
:root {
    --project-accent: var(--orange-accent, #9A805E);
    --project-bg: var(--deep-black, #FAF9F6);
    --project-panel-bg: var(--white, #FFFFFF);
    --project-panel-border: rgba(154, 128, 94, 0.15);
    --project-text-muted: var(--soft-grey, #4A4A4A);
    --project-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Background Setup */
body.single-projects {
    background-color: var(--project-bg) !important;
}

/* 1. Immersive Full-Background Hero Styling */
.project-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* background-color: #12110f; */
    /* background: linear-gradient(180deg, rgba(7, 7, 7, 0.1) 0%, rgba(7, 7, 7, 0.) 40%, rgba(7, 7, 7, 0.1) 100% 100%); */
    padding-top: 230px;
    padding-bottom: 130px;
    border-bottom: 1px solid rgba(154, 128, 94, 0.2);
}

.project-hero-bg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 1px);
    z-index: 1;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Multi-stage black/charcoal gradient overlay protecting transparent header links and logos */
    background: linear-gradient(to bottom, rgba(18, 17, 15, 0.2) 0%, rgba(18, 17, 15, 0.4) 50%, rgba(18, 17, 15, 0.) 100%);
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.project-hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--project-accent) !important;
    margin-bottom: 22px;
    display: inline-block;
}

.project-hero-title {
    font-family: var(--font-heading) !important;
    font-size: 4.8rem;
    font-weight: 300 !important;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff !important;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-hero-tagline {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}


/* 2. Specifications Bar Grid */
.project-specs-section {
    position: relative;
    z-index: 5;
    background: var(--project-panel-bg) !important;
    border-top: 1px solid var(--project-panel-border) !important;
    border-bottom: 1px solid var(--project-panel-border) !important;
    padding: 30px 0;
}

.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid rgba(31, 31, 31, 0.08) !important;
    padding-right: 20px;
}

.spec-item:last-child {
    border-right: none !important;
    padding-right: 0;
}

.spec-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--project-text-muted) !important;
}

.spec-value {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem;
    font-weight: 300 !important;
    color: #111111 !important;
}


/* 3. Core Layout Structure (Single Column Stacked) */
.project-single-column {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-description-block {
    margin-bottom: 20px;
}

.section-badge {
    color: var(--project-accent) !important;
}

.section-title {
    font-family: var(--font-heading) !important;
    font-size: 3.5rem;
    font-weight: 300 !important;
    color: #111111 !important;
}

.section-title span {
    color: var(--project-text-muted) !important;
    font-style: italic;
}

.premium-description {
    font-family: var(--font-body);
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--project-text-muted) !important;
    font-weight: 300;
}

.premium-description p {
    margin-bottom: 16px;
    font-weight: 400 !important;
}

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


/* Gated Inquiry / Consult Form Box */
.consult-form-box {
    background: var(--project-panel-bg) !important;
    border: 1px solid var(--project-panel-border) !important;
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    width: 100%;
    margin-top: 50px;
}

.consult-box-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 300 !important;
    color: #111111 !important;
    margin: 0 0 10px 0;
    text-align: center;
}

.consult-box-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--project-text-muted) !important;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

.consult-field-group {
    margin-bottom: 20px;
    position: relative;
}

.consult-input {
    width: 100%;
    background: rgba(31, 31, 31, 0.03) !important;
    border: 1px solid rgba(154, 128, 94, 0.2) !important;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #111111 !important;
    transition: var(--project-transition);
}

.consult-input::placeholder {
    color: #8c8c8c !important;
}

.consult-input:focus {
    outline: none;
    border-color: var(--project-accent) !important;
    background: #ffffff !important;
}

@media (min-width: 768px) {
    .consult-form-box form {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: center;
    }
    
    .consult-form-box form .consult-field-group {
        margin-bottom: 0;
    }
    
    .consult-form-box form button[type="submit"] {
        grid-column: span 3;
        margin-top: 10px !important;
    }
}


/* 4. Amenities Grid Section (FORCED HIGH CONTRAST TEXT) */
.amenities-section {
    margin: 50px 0 30px 0;
    border-top: 1px solid var(--project-panel-border);
    padding-top: 40px;
}

.amenities-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 300 !important;
    margin-bottom: 25px;
    color: #111111 !important;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Force high-specificity rules to guarantee high-end readability on light backgrounds */
.project-details-split-theme .amenities-grid .amenity-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(154, 128, 94, 0.18) !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    transition: var(--project-transition) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.project-details-split-theme .amenities-grid .amenity-card:hover {
    border-color: var(--project-accent) !important;
    background: rgba(154, 128, 94, 0.06) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(154, 128, 94, 0.16) !important;
}

.project-details-split-theme .amenities-grid .amenity-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(154, 128, 94, 0.1) !important;
    color: var(--project-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    transition: var(--project-transition) !important;
}

.project-details-split-theme .amenities-grid .amenity-card:hover .amenity-icon-box {
    background: var(--project-accent) !important;
    color: #FFFFFF !important;
}

.project-details-split-theme .amenities-grid .amenity-text {
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #1A1A1A !important;
    line-height: 1.4 !important;
}


/* 5. Gallery Slider Section (Premium 4-Item Slider) */
.project-gallery-section {
    margin: 50px 0 30px 0;
    border-top: 1px solid var(--project-panel-border);
    padding-top: 40px;
}

.gallery-section-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 400 !important;
    margin-bottom: 25px;
    color: #111111 !important;
}

.project-gallery-slider-wrapper {
    position: relative;
    width: 100%;
}

.project-gallery-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.gallery-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    width: 100%;
}

.gallery-slide-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--project-panel-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: var(--project-transition);
    /* Exactly 3 items in desktop viewport minus gaps (2 gaps of 20px) for a larger, more prominent display */
    flex: 0 0 calc((100% - 40px) / 3);
}

.gallery-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(154, 128, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    color: #ffffff;
    font-size: 1.4rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-slide-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(154, 128, 94, 0.12);
    border-color: var(--project-accent);
}

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

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

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--project-panel-bg);
    border: 1px solid var(--project-panel-border);
    color: var(--off-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--project-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-slider-nav:hover {
    background: var(--project-accent);
    border-color: var(--project-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(154, 128, 94, 0.35);
}

.gallery-slider-prev {
    left: -24px;
}

.gallery-slider-next {
    right: -24px;
}

@media (max-width: 1024px) {
    .gallery-slide-item {
        /* exactly 2 items visible with 1 gap of 20px */
        flex: 0 0 calc((100% - 20px) / 2);
    }
    .gallery-slider-prev {
        left: -10px;
    }
    .gallery-slider-next {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .gallery-slide-item {
        /* exactly 1 item visible */
        flex: 0 0 100%;
    }
    .gallery-slider-prev {
        left: 5px;
    }
    .gallery-slider-next {
        right: 5px;
    }
}


/* 6. Highlights Section styling */
.highlights-section {
    margin: 50px 0 30px 0;
    border-top: 1px solid var(--project-panel-border);
    padding-top: 40px;
}

.highlights-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 300 !important;
    margin-bottom: 25px;
    color: #111111 !important;
}

.key-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 35px;
    width: 100%;
}

.highlight-card {
    background: #ffffff !important;
    border: 1px solid rgba(154, 128, 94, 0.4) !important;
    border-radius: 12px !important;
    padding: 24px 30px !important;
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    transition: var(--project-transition) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.highlight-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--project-accent) !important;
    box-shadow: 0 15px 35px rgba(154, 128, 94, 0.12) !important;
    background: rgba(154, 128, 94, 0.03) !important;
}

.highlight-card-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(154, 128, 94, 0.1) !important;
    color: var(--project-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    transition: var(--project-transition) !important;
}

.highlight-card:hover .highlight-card-icon {
    background: var(--project-accent) !important;
    color: #ffffff !important;
}

.highlight-card-text {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .key-highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* 7. Proximity & Connectivity Section */
.proximity-section {
    margin: 50px 0 30px 0;
    border-top: 1px solid var(--project-panel-border);
    padding-top: 40px;
}

.proximity-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 300 !important;
    margin-bottom: 25px;
    color: #111111 !important;
}

.proximity-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.proximity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.proximity-bullet {
    color: var(--project-accent);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.proximity-text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--project-text-muted) !important;
    font-weight: 300;
    line-height: 1.5;
}


/* 8. Responsive Video Player Section */
.project-video-section {
    margin: 0;
    padding: 0;
    border: none;
}

.project-video-title {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    font-weight: 400 !important;
    margin-bottom: 25px;
    color: #111111 !important;
    text-align: center;
}

.project-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(154, 128, 94, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.project-video-wrapper iframe,
.project-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 4;
}

/* Scroll-friendly cover poster overlay */
.video-cover-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.video-cover-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 17, 15, 0.45); /* Luxury warm dark overlay */
    transition: background 0.3s ease;
}

.video-cover-poster:hover::after {
    background: rgba(18, 17, 15, 0.3);
}

/* Pulsing premium play button */
.video-play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--project-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 6;
    box-shadow: 0 0 0 0 rgba(154, 128, 94, 0.5), 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
    padding-left: 6px; /* Visual center offset for play triangle icon */
    animation: playPulse 2s infinite;
}

@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(154, 128, 94, 0.6), 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(154, 128, 94, 0), 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(154, 128, 94, 0), 0 10px 25px rgba(0, 0, 0, 0.3);
    }
}

.video-cover-poster:hover .video-play-button {
    transform: scale(1.08);
    background-color: #ffffff;
    color: var(--project-accent);
}


/* 9. Bottom Aligned Related Projects Grid */
.related-projects-section {
    width: 100%;
}

.related-projects-title {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem;
    font-weight: 300 !important;
    color: #111111 !important;
    text-align: center;
    margin-bottom: 45px;
}

.related-projects-title span {
    color: var(--project-accent);
    font-style: italic;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.related-project-card {
    background: var(--project-panel-bg);
    border: 1px solid var(--project-panel-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--project-transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.related-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--project-accent);
    box-shadow: 0 15px 40px rgba(154, 128, 94, 0.1);
}

.related-project-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.related-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-project-card:hover .related-project-thumb img {
    transform: scale(1.06);
}

.related-project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-project-type {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--project-accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.related-project-name {
    font-family: var(--font-heading) !important;
    font-size: 1.4rem;
    font-weight: 300 !important;
    color: #111111 !important;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.related-project-name span {
    color: var(--project-accent);
}

.related-project-meta {
    font-size: 0.82rem;
    color: var(--project-text-muted);
    margin-top: auto;
}


/* 10. Premium Lightbox Modal Styling (Proper Premium Looking) */
.project-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 7, 0.96); /* Darker, richer overlay */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* CSS transition removed so GSAP has full smooth control over opacity and blur */
    backdrop-filter: blur(0px); 
    -webkit-backdrop-filter: blur(0px);
}

.project-lightbox-modal.active {
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* CSS transitions removed to let GSAP handle animations smoothly without overrides */
}

.lightbox-content img {
    max-width: 74%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    /* Premium gold thin outline border mapping back to Squarea Global styles */
    border: 1px solid rgba(154, 128, 94, 0.3) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    background: #000;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    z-index: 100020;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    z-index: 100010;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--project-accent);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100010;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: var(--project-accent);
    border-color: var(--project-accent);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 20px rgba(154, 128, 94, 0.6);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}


/* 11. Responsive Adaptations */
@media (max-width: 991px) {
    .project-hero {
        padding-top: 180px;
        padding-bottom: 90px;
    }

    .project-hero-title {
        font-size: 3.5rem;
    }

    .project-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .spec-item {
        border-right: none !important;
        padding-right: 0;
    }

    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .related-projects-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
}

@media (max-width: 767px) {
    .project-specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spec-item {
        text-align: center;
        border-bottom: 1px solid rgba(31, 31, 31, 0.05) !important;
        padding-bottom: 15px;
    }

    .spec-item:last-child {
        border-bottom: none !important;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .proximity-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
    
    .consult-form-box {
        padding: 30px 20px;
    }
    
    .consult-form-box form {
        display: block;
    }
    
    .consult-form-box form .consult-field-group {
        margin-bottom: 20px;
    }
    
    .consult-form-box form button[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .project-hero {
        padding-top: 140px;
        padding-bottom: 65px;
    }

    .project-hero-title {
        font-size: 2.4rem;
    }

    .project-hero-tagline {
        font-size: 1.05rem;
    }

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