/* PERFORMANCE FIX */
.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js-active .reveal-on-scroll.pending {
    opacity: 0 !important;
    transform: translateY(30px) !important;
}

/* Base Layout - Colors/Fonts handled by Tailwind */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Layout Blocks */
.outerwrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.centercol {
    flex: 1;
    min-width: 300px;
    display: block;
    float: none;
    margin: 0;
}

.leftcol, .rightcol {
    display: none;
}

@media screen and (min-width: 1400px) {
    .leftcol {
        display: block;
        width: 180px;
        padding: 10px;
    }
    .rightcol {
        display: block;
        width: 180px;
        padding: 10px;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Responsive Table Hacks - PRESERVED */
@media screen and (max-width: 1024px) {
    table.bb1 {
        width: 100% !important;
        max-width: 100%;
        display: block;
    }
    
    table.bb1 > tbody, 
    table.bb1 > tbody > tr, 
    table.bb1 > tr {
        display: block;
        width: 100%;
    }
    
    table.bb1 > tbody > tr > td,
    table.bb1 > tr > td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px;
    }

    .logo, .header {
        text-align: center !important;
    }
    
    .menubar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px;
    }
    
    .tdcontent {
        padding: 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Lightbox & Screenshots (from previous tasks, preserved) */
.screenshot-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.screenshot-thumb {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

.screenshot-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[aria-modal="true"] {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 24px; }
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); width: 50px; height: 50px; font-size: 24px; }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); width: 50px; height: 50px; font-size: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
