.gallery-filter-section {
    background-color: #ffffff;
    padding: 0 5% 4rem;
    min-height: 100vh;
}

.gallery-filter-header {
    max-width: 1300px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.gallery-filter-page-title {
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.gallery-filter-page-description {
    font-size: 1.125rem;
    color: #555555;
    margin: 0 0 40px;
    line-height: 1.6;
}

.gallery-filter-container {
    display: flex;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-filter-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 1rem;
}

.gallery-filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.gallery-filter-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.gallery-filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.gallery-filter-sidebar-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #cccccc;
}

.gallery-filter-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #333333;
    text-transform: uppercase;
}

.gallery-filter-group {
    margin-bottom: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #cccccc;
}

.gallery-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gallery-filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    text-decoration: none;
}

.gallery-filter-checkboxes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-filter-checkbox-item {
    margin-bottom: 0.5rem;
}

.gallery-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gallery-filter-checkbox-label:hover .gallery-filter-checkbox-text {
    color: var(--primary);
}

.gallery-filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cccccc;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-filter-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.gallery-filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gallery-filter-checkbox:focus {
    outline: 2px solid rgba(140, 18, 54, 0.3);
    outline-offset: 2px;
}

.gallery-filter-checkbox-text {
    font-size: 0.9375rem;
    color: #333333;
    transition: color 0.2s ease;
}

.gallery-filter-main {
    flex: 1;
    min-width: 0;
}

.gallery-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-filter-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-filter-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.gallery-filter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-filter-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-filter-card-image {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.gallery-filter-card:hover .gallery-filter-card-image {
    transform: scale(1.05);
}

.gallery-filter-card-content {
    padding: 1rem 1.25rem;
    overflow: hidden;
}

.gallery-filter-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

.gallery-filter-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f5f5f5;
}

.gallery-filter-no-results p {
    color: #333333;
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.gallery-filter-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.gallery-filter-load-more {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-filter-load-more:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 18, 54, 0.3);
}

.gallery-filter-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gallery-filter-load-more.is-loading {
    position: relative;
    color: transparent;
}

.gallery-filter-load-more.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.gallery-filter-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.gallery-filter-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(140, 18, 54, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .gallery-filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-filter-section {
        padding: 0 0 2rem;
    }

    .gallery-filter-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .gallery-filter-sidebar {
        flex: none;
        position: relative;
        top: 0;
        max-height: none;
        padding-right: 0;
    }

    .gallery-filter-group {
        padding-bottom: 1.5rem;
    }

    .gallery-filter-group:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .gallery-filter-grid {
        gap: 1rem;
    }

    .gallery-filter-load-more {
        width: 100%;
    }
}

body.modal-open {
    overflow: hidden;
}

.inspiration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.inspiration-modal-overlay.is-active {
    display: block;
}

.inspiration-image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.inspiration-image-lightbox-overlay.is-active {
    display: flex;
}

.inspiration-image-lightbox-container {
    position: relative;
    width: min(1200px, 100%);
}

.inspiration-image-lightbox-content {
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.inspiration-image-lightbox-content img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
}

.inspiration-image-lightbox-close,
.inspiration-image-zoom-trigger {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.inspiration-image-lightbox-close:hover,
.inspiration-image-zoom-trigger:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.06);
}

.inspiration-image-lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 2;
}

.inspiration-image-zoom-trigger {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    z-index: 11;
}

.inspiration-image-zoom-trigger svg {
    width: 20px;
    height: 20px;
}

.inspiration-modal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.inspiration-modal-content {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 6rem);
    overflow: visible;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inspiration-modal-close {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.inspiration-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.inspiration-modal-close svg {
    color: #333;
}

.inspiration-modal-body {
    max-height: none;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.inspiration-modal-body::-webkit-scrollbar {
    width: 8px;
}

.inspiration-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.inspiration-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.inspiration-modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.inspiration-modal-body .inspiration-gallery-section {
    padding: 0;
}

.inspiration-modal-body .inspiration-gallery-container {
    padding: 2rem 2rem 1.5rem;
}

.inspiration-modal-body .inspiration-title {
    padding: 0 3rem;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.inspiration-modal-body .inspiration-content-section {
    padding: 2rem;
    background: #fff;
}

.inspiration-modal-body .inspiration-content-container {
    max-width: none;
    padding: 0;
}

@media (max-width: 768px) {
    .inspiration-image-lightbox-overlay {
        padding: 1rem;
    }

    .inspiration-image-lightbox-content {
        padding: 0.625rem;
    }

    .inspiration-image-lightbox-close {
        top: -14px;
        right: -14px;
        width: 38px;
        height: 38px;
    }

    .inspiration-image-zoom-trigger {
        right: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }
}

.inspiration-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.inspiration-modal-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (max-width: 768px) {
    .inspiration-modal-container {
        padding: 1rem;
        align-items: center;
    }

    .inspiration-modal-close {
        top: -18px;
        right: -18px;
    }
}