.filter-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.showcase-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.showcase-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.showcase-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.showcase-content {
    padding: 1.5rem;
}

.showcase-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    height: 64px;
    overflow: hidden;
    line-height: 32px;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
    color: white;
}

.gallery-count {
    margin-top: 0.5rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-height: 90vh; /* Corrected to max-height */
    margin: 2rem auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    overflow-y: auto; /* Add scrollbar */
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.project-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}

.project-info {
    padding: 1rem;
    max-width: 100%;
}

.project-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-share {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transition: var(--transition);
}

.share-btn[data-platform="facebook"] {
    background-color: #3b5998;
}

.share-btn[data-platform="twitter"] {
    background-color: #1da1f2;
}

.share-btn[data-platform="linkedin"] {
    background-color: #0077b5;
}

.share-btn[data-platform="instagram"] {
    background-color: #E1306C; 
}

.share-btn[data-platform="whatsapp"] {
    background-color: #25D366; 
}

.share-btn:hover {
    opacity: 0.9;
}




#estimateTable {
    width: 100%;
    border-collapse: collapse;
}

#estimateTable th,
#estimateTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#estimateTable th {
    background-color: #f2f2f2;
}

#estimateTable tfoot td {
    font-weight: bold;
}


@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 5% auto;
    }
    .gallery-main {
        overflow-x: auto;
    }
    .close-modal {
        right: 0.3rem;
        top: -0.3rem;
    }
    .social-share .share-btn {
        padding: 0.5rem;
    }
    .social-share .share-btn span.sharetext {
        display: none;
    }
}