/* ===== Twe-O Projecten Modals ===== */

/* Project card grid */
.tweo-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
}
@media (max-width: 575px) {
    .tweo-project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Project cards */
.tweo-project-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tweo-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}
.tweo-project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.tweo-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.tweo-project-card:hover .tweo-project-card-image img {
    transform: scale(1.08);
}
.tweo-project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 16, 46, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.tweo-project-card:hover .tweo-project-card-overlay {
    opacity: 1;
}
.tweo-project-card-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94) 0.05s, opacity 0.3s ease 0.05s;
}
.tweo-project-card:hover .tweo-project-card-overlay span {
    transform: translateY(0);
    opacity: 1;
}
.tweo-project-card-text {
    padding: 16px 0 0;
}
.tweo-project-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #247EA8 !important;
    margin-bottom: 6px;
}
.tweo-project-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #00102E !important;
    margin: 0;
    line-height: 1.3;
}

/* Modal overlay */
.tweo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tweo-modal-overlay.active { display: flex; }
.tweo-modal-overlay.active .tweo-modal {
    animation: tweoModalIn 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
.tweo-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}
@keyframes tweoModalIn {
    from { opacity:0; transform:translateY(30px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.tweo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 4px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    z-index: 1;
    transition: color 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tweo-modal-close:hover {
    color: #fff;
}
.tweo-modal-image {
    background: #F7F8FA;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.tweo-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tweo-modal-body {
    padding: 32px;
}
.tweo-modal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #247EA8 !important;
    margin-bottom: 8px;
}
.tweo-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #00102E !important;
}
.tweo-modal-body p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151 !important;
    margin-bottom: 16px;
}
.tweo-modal-body ul {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}
.tweo-modal-body ul li {
    padding: 6px 0;
    color: #374151 !important;
    font-size: 15px;
}
.tweo-modal-body ul li::before {
    content: "\2022 ";
    color: #247EA8;
    font-weight: 700;
}
.tweo-modal-cta {
    display: inline-block;
    background: #00102E;
    color: #FFFFFF !important;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 4px;
}
.tweo-modal-cta:hover {
    background: #247EA8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36,126,168,0.3);
    color: #FFFFFF !important;
}
@media (max-width: 575px) {
    .tweo-modal-image { height: 200px; }
    .tweo-modal-body { padding: 20px; }
    .tweo-modal-body h2 { font-size: 22px; }
}