.gallery-hero {
    padding: 160px 5% 60px;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-white);
    margin: 20px 0;
}

.filter-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 50px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: var(--text-gray);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    color: var(--text-light);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.gallery-section {
    padding: 0 5% 100px;
}

.masonry-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.iso-item {
    width: 500px;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.iso-item.hidden {
    display: none;
}

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    width: 100%;
}

.display-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.magnifier-lens {
    position: absolute;
    border: 2px solid var(--accent-neon);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    pointer-events: none;
    display: none;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-details {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.meta h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #000;
}

.meta span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .gallery-hero h1 {
        font-size: 2.5rem;
    }
}

.custom-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lb-content {
    display: flex;
    max-width: 900px;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.lb-image-container {
    flex: 2;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lb-sidebar {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.close-lb {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.lb-specs {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.spec-item i {
    color: var(--primary);
    width: 20px;
}

@media (max-width: 768px) {
    .lb-content {
        flex-direction: column;
        height: auto;
    }

    .lb-image-container {
        height: 300px;
    }

    .lb-sidebar {
        padding: 20px;
    }
}