body, html {
    margin: 0;
    padding: 0;
    /* Removed height: 100% and overflow: hidden; to allow scrolling on mobile */
}

/* Override Bootstrap primary button */
.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

/* Left panel */
.left-panel {
    position: relative;
    background: linear-gradient(-35deg, #1b1b1b, #070707);
    /* Removed fixed height for mobile, will adjust in media query */
    overflow: hidden;
    padding-top: 20px; /* Reduced for mobile */
}

/* Right panel */
.right-panel {
    background: #000000f1;
    color: #fff;
    /* Removed fixed height for mobile, will adjust in media query */
    overflow-y: initial; /* Allow content to push height on mobile */
    padding-bottom: 70px !important; /* Extra padding for marquee */
}

/* Marquee */
.marquee {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 6px;
}
.marqueecolor {
    background: #000000;
    color: #ffffff;
    z-index: 1030; /* Ensure it's above other elements */
}


/* --- MOBILE SPECIFIC STYLES --- */
/* Max width for images/videos in the main container on smaller screens */
#main-image-container img,
#main-image-container video {
    max-height: 40vh; /* Shorter height on mobile */
}

#thumbnails img {
    width: 60px; /* Smaller thumbnails on mobile */
    height: 45px;
    margin: 3px; /* Smaller margins */
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- DESKTOP/LARGE SCREEN STYLES (Min-width: 992px) --- */
@media (min-width: 992px) {
    /* Re-introduce fixed height and overflow hidden for desktop view */
    body, html {
        height: 100%;
        overflow: hidden;
    }
    
    /* App container: Fixed height for full screen on desktop */
    .app-container {
        height: calc(100vh - 90px); /* minus navbar + marquee */
    }

    /* Left panel: Fixed height for desktop */
    .left-panel {
        height: 100%;
        padding-top: 60px; /* Larger padding on desktop */
        
    }
    
    /* Right panel: Fixed height for desktop */
    .right-panel {
        height: 100%;
        overflow-y: auto;
        padding-bottom: initial !important;
    }

    /* Main image/video: Taller max height on desktop */
    #main-image-container img,
    #main-image-container video {
        max-height: 65vh;
    }
    
    /* Thumbnails: Larger size on desktop */
    #thumbnails img {
        width: 80px;
        height: 60px;
        margin: 5px;
        border-radius: 5px;
    }
    
    /* Banner */
    .banner-fixed {
        position: fixed;
        bottom: 10px;
        right: 0px;
        width: 280px;
        z-index: 9999;
        border-radius: 10px;
    }
}


/* Keep existing styles */
.navcolor{
    background: linear-gradient(-35deg, #1b1b1b, #070707);
}
.nav-logo {
    width: 35px;
    height: 35px;
    border-radius: 100%;
}
.col-logo {
    width: 50px;
    height: 50px;
    border-radius: 100%;
}
/* ... rest of your existing non-layout styles ... */
#bg-blur {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(50%);
    z-index: 1;
}
#main-image-container {
    position: relative;
    z-index: 2;
}
.fade-media {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}
#thumbnails {
    position: relative;
    z-index: 2;
}
#thumbnails img:hover {
    transform: scale(1.1);
    filter: opacity(100%);
    border: 2px solid #c2c2c2;
}
.project-item {
    background: #2e2e2e;
    margin-bottom: 5px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
}
.project-item:hover {
    background: #2b2b2b;
}
.project-item.active {
    background: #494949;
    color: #fff;
    font-weight: bold;
}
#thumbnails img.active {
    filter: opacity(100%);
    border: 2px solid #ffffff;
    transform: scale(1.05);
}