.gallery-hero {
    background-color: #09090b;
    color: white;
    text-align: center;
}

.gallery-hero .hero-parallax-wrapper {
    background-image: radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: ambientGlow 10s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.gallery-hero {
    background-color: #09090b;
    color: white;
    text-align: center;
    border: none;
}

.gallery-hero .hero-parallax-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(9, 9, 11, 0.1) 0%, 
        rgba(9, 9, 11, 0.4) 50%, 
        #09090b 100%
    );
    z-index: 2;
    pointer-events: none;
}

.gallery-hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 4px 15px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #09090b !important;
    color: #e4e4e7;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.masonry-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 0.2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(0);
}

.masonry-item img {
    width: 100%;
    display: block;
    opacity: 0;
    transform: scale(0.9) translateY(2rem);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item img.loaded {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
}

.masonry-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.05) brightness(1.1);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    will-change: opacity;
    perspective: 1000px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 0.8rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(168, 85, 247, 0.15);
    transform: scale(0.8) translateY(4rem) rotateX(8deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.lightbox.active .lightbox-img {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

.loading-state {
    column-span: all;
    text-align: center;
    padding: 4rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

.filter-dropdown-container {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 50;
    margin-top: 2rem;
    max-width: 90rem;
    margin-inline: auto;
}

.custom-dropdown {
    position: relative;
    min-width: 280px;
}

.dropdown-selected {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-selected::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-selected {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    max-height: 300px;
    overflow-y: auto;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 1rem 1.5rem;
    color: #a1a1aa;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}
.batch-section { 
    display: none; 
    width: 100%;
}

.batch-section.active { 
    display: block; 
    animation: forceRepaint 0.01s ease forwards;
}

@keyframes forceRepaint {
    0% { opacity: 0.99; }
    100% { opacity: 1; }
}

@media (max-width: 64rem) {
    .masonry-grid { column-count: 2; }
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem 2rem;
    text-align: center;
    background-color: #09090b;
    position: relative;
    z-index: 10;
}

.footer-content p {
    color: #71717a;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

.footer-content a {
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@media (hover: hover) and (pointer: fine) {
    body, a, button, .masonry-item, .lightbox-close {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    mix-blend-mode: difference;
    will-change: transform, width, height;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor.hover-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mix-blend-mode: normal;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-cursor::after {
    content: "VIEW";
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor.hover-image::after {
    opacity: 1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.empty-state-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
    width: 100%;
    opacity: 1;
    position: relative;
    z-index: 20;
}

.empty-state-wrapper h3 {
    color: #e4e4e7;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.empty-state-wrapper p {
    color: #71717a;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}