* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Main Gallery Section */
.gallery-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Title */
.gallery-title {
    text-align: center;
    font-size: 52px;
    margin-bottom: 20px;
    color: #000;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    font-weight: normal;
}

/* Filter Section */
/* .filter-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 80px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-label {
            font-size: 14px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-right: 10px;
        }

        .filter-btn {
            padding: 12px 24px;
            border: 1px solid #d0d0d0;
            background: #fff;
            color: #333;
            cursor: pointer;
            font-size: 13px;
            font-family: Arial, sans-serif;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: normal;
        }

        .filter-btn:hover {
            border-color: #000;
            color: #000;
        }

        .filter-btn.active {
            background: #000;
            color: #fff;
            border-color: #000;
        } */

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-grid.compact-page {
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    justify-content: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.2;
    cursor: pointer;
    background: #f5f5f5;
    transition: transform 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.gallery-item-category {
    color: #ccc;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    justify-content: space-around;
    padding: 60px 40px;
    background: #f9f9f9;
    margin-bottom: 60px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 15px 20px;
    transition: all 0.3s;
    z-index: 1001;
    font-weight: bold;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 3px;
    z-index: 1001;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.load-more-btn {
    padding: 16px 48px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.load-more-btn:hover {
    background: #000;
    color: #fff;
}

/* Featured Section */
.featured-section {
    margin: 80px 0;
    padding: 60px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.featured-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #000;
    font-weight: normal;
    letter-spacing: 1px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.featured-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-item:hover .featured-image {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

.featured-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Category Section */
.category-section {
    margin: 80px 0;
}

.category-title {
    font-size: 28px;
    margin-bottom: 40px;
    color: #000;
    font-weight: normal;
    letter-spacing: 1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.category-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.category-count {
    font-size: 12px;
    color: #999;
}

.category-card:hover .category-count {
    color: #ddd;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Info Section */
.info-section {
    margin: 80px 0;
    padding: 60px;
    background: #f9f9f9;
    text-align: center;
}

.info-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
    font-weight: normal;
    letter-spacing: 1px;
}

.info-text {
    font-size: 15px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 20px;
    }

    .gallery-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .gallery-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    /* .filter-container {
                gap: 8px;
                margin-bottom: 40px;
            } */

    .filter-btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    .filter-label {
        display: none;
    }

    .modal-nav-btn {
        padding: 10px 15px;
        font-size: 24px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .gallery-stats {
        padding: 40px 20px;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .featured-section,
    .info-section {
        padding: 40px 20px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 10px;
    }

    .modal-close {
        font-size: 32px;
        top: 10px;
        right: 10px;
    }
}