.project-detail-hero {
    padding: 24px 28px 0;
    background: #f4f1eb;
}

.project-detail-hero-image {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 28px;
    background: #d9d4cb;
}

.project-detail-hero-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(18, 18, 18, 0.82) 0%,
            rgba(18, 18, 18, 0.42) 48%,
            rgba(18, 18, 18, 0.08) 100%
        );
}

.project-detail-heading {
    position: absolute;
    left: 7%;
    bottom: 11%;
    z-index: 2;
    width: min(720px, 86%);
    color: #fff;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.project-back-link:hover {
    opacity: 0.8;
    transform: translateX(-4px);
}

.project-detail-heading > span {
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.6px;
}

.project-detail-heading h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -2px;
}

.project-detail-heading p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 17px;
}

.project-detail-info {
    padding: 110px 28px;
    background: #f4f1eb;
}

.project-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 90px;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.section-label {
    display: block;
    margin-bottom: 18px;
    color: #77736b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.project-detail-main h2 {
    max-width: 760px;
    margin: 0 0 30px;
    color: #1d1c19;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.project-description {
    max-width: 780px;
    margin: 0;
    color: #67645e;
    font-size: 18px;
    line-height: 1.9;
}

.project-detail-summary {
    border-top: 1px solid #cbc5bb;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid #cbc5bb;
}

.summary-item > i {
    display: grid;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #e5dfd5;
    color: #35322d;
    font-size: 20px;
}

.summary-item > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item span {
    color: #7a766f;
    font-size: 13px;
}

.summary-item strong {
    color: #1f1e1b;
    font-size: 17px;
    font-weight: 600;
}

.project-gallery-section {
    padding: 110px 28px;
    background: #fff;
}

.project-gallery-container {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.project-gallery-header {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 50px;
}

.project-gallery-header span {
    display: block;
    margin-bottom: 16px;
    color: #77736b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.project-gallery-header h2 {
    margin: 0;
    color: #1d1c19;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: -1.5px;
}

.project-gallery-header p {
    margin: 0;
    color: #6c6962;
    font-size: 16px;
    line-height: 1.8;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-gallery-item {
    position: relative;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #e7e2d9;
    cursor: pointer;
}

.project-gallery-item:first-child {
    grid-column: span 2;
    min-height: 620px;
}

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

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

.gallery-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #24221e;
    font-size: 18px;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translateY(0);
}

.project-detail-cta {
    padding: 120px 28px;
    background: #25231f;
    color: #fff;
    text-align: center;
}

.project-detail-cta-content {
    width: min(900px, 100%);
    margin: 0 auto;
}

.project-detail-cta span {
    display: block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.project-detail-cta h2 {
    margin: 0 auto 40px;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.project-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    background: #fff;
    color: #25231f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.project-contact-button:hover {
    transform: translateY(-3px);
    background: #e7e1d8;
}

.project-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.project-image-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-image-modal img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.modal-close-button {
    position: absolute;
    top: 24px;
    right: 28px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #181818;
    font-size: 20px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.modal-close-button:hover {
    transform: rotate(90deg);
    background: #e8e3da;
}

@media (max-width: 1000px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .project-gallery-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .project-detail-hero {
        padding: 14px 14px 0;
    }

    .project-detail-hero-image {
        min-height: 560px;
        border-radius: 20px;
    }

    .project-detail-heading {
        left: 28px;
        bottom: 48px;
        width: calc(100% - 56px);
    }

    .project-back-link {
        margin-bottom: 28px;
    }

    .project-detail-heading h1 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .project-detail-info,
    .project-gallery-section {
        padding: 80px 20px;
    }

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

    .project-gallery-item,
    .project-gallery-item:first-child {
        grid-column: auto;
        min-height: 360px;
    }

    .project-detail-cta {
        padding: 90px 20px;
    }

    .gallery-icon {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 500px) {
    .project-detail-hero-image {
        min-height: 500px;
    }

    .project-detail-heading {
        left: 22px;
        bottom: 38px;
        width: calc(100% - 44px);
    }

    .project-detail-heading h1 {
        font-size: 36px;
    }

    .project-detail-heading p {
        font-size: 15px;
    }

    .project-detail-main h2,
    .project-gallery-header h2,
    .project-detail-cta h2 {
        font-size: 32px;
    }

    .project-description {
        font-size: 16px;
    }

    .summary-item {
        padding: 20px 0;
    }

    .project-gallery-item,
    .project-gallery-item:first-child {
        min-height: 280px;
        border-radius: 16px;
    }

    .project-image-modal {
        padding: 16px;
    }

    .modal-close-button {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}