/* 
   Most styles are handled by Tailwind CSS. 
   This file contains specific overrides and states.
*/

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Stabilize filter button rendering across active/inactive states */
.filter-btn {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Lightbox Active State */
#lightbox.active {
    display: flex;
    opacity: 1;
}

/* Hide scrollbar when lightbox active */
body.lightbox-open {
    overflow: hidden;
}

/* Material Symbols alignment fix */
.material-symbols-outlined {
    vertical-align: middle;
}

/* Skip rendering off-screen rows/cards for scroll performance */
#tableBody tr {
    content-visibility: auto;
    contain-intrinsic-size: auto 49px;
}

#galleryView>div {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}