
/* Breadcrumb */
.gallery-breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-container a {
    color: #333;
    text-decoration: none;
}

.breadcrumb-container a:hover {
    color: #025fc7;
}

/* Main Container */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    gap: 30px;
}

/* Sidebar */
.gallery-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-header {
    background: #e0e0e0;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid #e0e0e0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
    background: #fff;
    color: #025fc7;
    padding-left: 25px;
}

/* Main Content */
.gallery-content {
    flex: 1;
}

.content-header {
    margin-bottom: 25px;
}

.content-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #025fc7;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
    text-align: center;
}

.portfolio-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 300;
}

.modal-close:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.modal-image-container {
    position: relative;
    background: linear-gradient(135deg, rgba(100, 120, 140, 0.3) 0%, rgba(140, 160, 180, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.modal-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="blur"><feGaussianBlur stdDeviation="20"/></filter></defs><rect fill="%23e0e5ea" width="1200" height="600" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.modal-image-container img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.modal-details {
    padding: 20px;
    background: #fff;
    text-align: center;
}

.modal-details h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.modal-details p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.btn-view-more {
    background: #fff;
    color: #333;
    border: 2px solid #d0d0d0;
}

.btn-view-more:hover {
    border-color: #999;
    background: #f8f8f8;
}

.btn-quote {
    background: #025fc7;
    color: #fff;
    border: 2px solid #025fc7;
}

.btn-quote:hover {
    background: #025fc7;
    border-color: #025fc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 95, 199, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: #025fc7;
    color: #fff;
    border-color: #025fc7;
}

.pagination-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-number:hover {
    background: #f8f9fa;
    border-color: #999;
}

.pagination-number.active {
    background: #025fc7;
    color: #fff;
    border-color: #025fc7;
    font-weight: 600;
}

.pagination-dots {
    padding: 0 5px;
    color: #999;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #025fc7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide items by default (will be shown by JS) */
.portfolio-item {
    display: none;
}

.portfolio-item.visible {
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .gallery-sidebar {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-modal {
        padding: 20px 10px;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
    
    .modal-image-container {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .modal-image-container img {
        max-height: 280px;
    }
    
    .modal-details {
        padding: 20px 25px;
    }
    
    .modal-details h2 {
        font-size: 18px;
    }
    
    .modal-details p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .pagination-numbers {
        gap: 3px;
    }
    
    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}