/*
 Theme Name:   Custom Theme for Collide CF
 Theme URI:    https://generatepress.com
 Description:  We built this WordPress theme just for you! Don't your feel loved?
 Author:       Website Psychiatrist
 Author URI:   https://websitepsychiatrist.com/
 Template:     generatepress
 Version:      1.0.5
*/

body.single-projects #project-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.entry-title {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
}

#project-sidebar-left, #project-sidebar-right {
    width: 20%;
    padding: 20px;
}

#project-sidebar-left-content {
    position: -webkit-sticky;
    position: sticky;
    top: 115px;
}

#project-sidebar-left #project-share-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#project-sidebar-left #project-links {
    display: block;
}

#project-share-container {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

#project-links-container {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

#project-links .project-link-button {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    color: white;
    background-color: #004e96;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;
}

#project-links:hover .project-link-button:hover {
    background-color: #f36621;
}

#project-share-links .share-button {
    display: inline-block;
    padding: 10px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
}

#project-content {
    width: 55%;
    padding: 0 20px;
}

#project-progress-bar {
    margin-top: 20px;
    text-align: center;
}

#progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    position: relative;
    border-radius: 10px;
}

#progress-bar-fill {
    height: 100%;
    background-color: #53b4bd;
    border-radius: 10px 0 0 10px;
}

#progress-bar-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

#project-gallery img {
    display: block;
    margin-bottom: 10px;
}

#project-gallery a {
    display: inline-block;
}

#project-gallery-mobile {
    display: none;
}

#project-featured-image img {
    width: 100%;
}

@media (max-width: 768px) {
    #project-wrapper {
        flex-direction: column;
        margin-top: 0;
    }

    #project-content {
        width: 100%;
        padding: 5vw;
    }

    #project-sidebar-left,
    #project-sidebar-right {
        display: none;
    }

    #project-gallery-mobile {
        display: block;
    }

    .toggle-button {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background-color: var(--random-bg-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 9999;
    }

    .entry-title {
        font-size: 20px;
    }

    /* Additional CSS for mobile toggle and overlay */
    body.overlay-active {
        overflow: hidden;
    }

    #project-sidebar-left-content.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background: #f0f0f0;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
    }

    .overlay-active #project-content,
    .overlay-active .toggle-button {
        z-index: 0;
    }

    .wpem-event-layout-action{
visibility: hidden;
}
}
