/* ============================================
   PROJECT MODAL — overrides Bootstrap defaults
   ============================================ */

/* Modal shell */
.modal-content.project-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.modal-content.project-modal .modal-header.project-modal-header {
    background: #4a4a48;
    padding: 1.25rem 1.75rem;
    border-bottom: none;
    align-items: flex-start;
}

.modal-content.project-modal .modal-header .modal-title {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.modal-content.project-modal .project-modal-location {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Close button — force white */
.modal-content.project-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    margin-top: 0.15rem;
}

.modal-content.project-modal .btn-close:hover {
    opacity: 1;
}

/* Body */
.modal-content.project-modal .modal-body.project-modal-body {
    padding: 0;
}

/* Hero image */
.project-modal-hero {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.project-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content area */
.project-modal-details {
    padding: 1.75rem 2rem 2rem;
}

.project-modal-description {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 1.5rem;
}

.project-modal-subhead {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddd;
    display: inline-block;
}

.project-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.project-modal-features li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.925rem;
    line-height: 1.5;
    color: #555;
}

.project-modal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: #4a4a48;
    border-radius: 50%;
}

.project-modal-conclusion {
    background: #f7f7f6;
    border-left: 3px solid #4a4a48;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.5rem;
}

.project-modal-conclusion p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #555;
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .modal-dialog.modal-xl {
        max-width: 90%;
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .project-modal-hero {
        max-height: 280px;
    }

    .project-modal-details {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .modal-dialog.modal-xl {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .modal-content.project-modal .modal-header .modal-title {
        font-size: 1.15rem;
    }

    .project-modal-hero {
        max-height: 220px;
    }

    .project-modal-details {
        padding: 1rem 1.25rem 1.25rem;
    }
}
