
/* Secondary Navigation (for subcategories) */
.secondary-nav {
    position: fixed;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    z-index: 800;
    display: none;
}

.secondary-nav.active {
    display: block;
}

.secondary-nav ul {
    list-style: none;
}

.secondary-nav ul li {
    margin: 15px 0;
}

.secondary-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase;
    transition: color 0.3s ease;
    letter-spacing: 3px;
}

.secondary-nav ul li a:hover,
.secondary-nav ul li a.active {
    color: #ff6b9d;
}

.tertiary-nav {
    position: fixed;
    top: 50%;
    left: 38%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 700;
    display: none;
}

/* Show when active AND has content */
.tertiary-nav.active {
    display: block;
}


/* Or show when it has list items */
.tertiary-nav:has(ul li) {
    display: block;
}

.tertiary-nav ul {
    list-style: none;
}

.tertiary-nav ul li {
    margin: 12px 0;
}


.tertiary-nav ul li a {
    text-decoration: none;
    text-transform: lowercase;
    color: #555;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 3px;
}

.tertiary-nav ul li a:hover,
.tertiary-nav ul li a.active {
    color: #ff6b9d;
}

/* Main Content */
.content.with-secondary {
    margin-top: 120px;
    margin-left: 40%;
    margin-right: 5%;
    position: relative;
    z-index: 500;
}

.content.with-secondary a {
    color: #ff6b9d;
    text-decoration: none;
}

.content.with-tertiary {
    margin-top: 120px;
    margin-left: 50%;
    margin-right: 5%;
    position: relative;
    z-index: 500;
}

.content.with-tertiary a {
    color: #ff6b9d;
    text-decoration: none;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    max-height: 350px;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-item-content {
    padding: 20px;
    display: none;
}

/* Overlay that appears on hover */
.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(171, 171, 171, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-align: center;
}

.portfolio-item-overlay h3 {
    font-size: 16px;
    font-weight: lighter;
    margin-bottom: 10px;
    color: white;
    letter-spacing: 2px;
}

.portfolio-item-overlay p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.portfolio-item-overlay:empty {
    display: none;
}

/* Project Detail Page */
.project-detail {
    max-width: 100%;
    letter-spacing: 3px;
}

.project-detail h1 {
    font-size: 30px;
    font-weight: lighter;
    margin-bottom: 20px;
    color: #4f4f4f;
}

.project-detail .description {
    font-weight: lighter;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-images img {
    width: 100%;
    min-height: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* Layout Toggle Styles */
.layout-toggle {
    position: absolute;
    top: 260px;
    left: 42%;
    z-index: 900;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.44);
    padding: 15px 20px;
    border-radius: 3px;
}

.layout-toggle button {
    background: white;
    border: 1px solid #ff6b9d;
    color: #ff6b9d;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.layout-toggle button.active {
    background: #ff6b9d;
    color: white;
}

.layout-toggle button:hover:not(.active) {
    background: #ff6b9d;
    color: white;
    transform: translateY(-1px);
}

/* Add this to the mobile category list styles in pageStyle.css */
.mobile-category-list {
    display: none;
}

.mobile-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-subcategories li {
    margin: 10px 0;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-subcategories li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 3px;
    display: block;
}

.mobile-subcategories li:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateX(5px);
}

.mobile-subcategories li a:hover {
    color: #ff6b9d;
}

/* Responsive Design - Scaled for different screen sizes */
@media (max-width: 1600px) {


    .content.with-secondary {
        margin-left: 40%;
        width: 60%;
    }


    .content.with-tertiary {
        margin-left: 50%;
    }

}

@media (max-width: 1400px) {


    .content.with-secondary {
        margin-left: 40%;
        width: 65%;
    }

    .content.with-tertiary {
        margin-left: 50%;
        width: 50%;
    }


}


@media (max-width: 1200px) {

    .secondary-nav {
        left: 18%;
    }

    .tertiary-nav {
        left: 38%;
    }

    .secondary-nav ul li a,
    .tertiary-nav ul li a {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    .layout-toggle {
        top: 290px;
    }

    .project-detail .description {
        font-size: 13px;
    }

}

@media (max-width: 768px) {
    /* Show mobile category list on mobile for all pages */
    .mobile-category-list {
        display: block !important;
    }

    /* Branding page specific mobile styling */
    body:has(.branding-page) .mobile-category-list,
    .branding-page .mobile-category-list {
        display: block !important;
    }

    /* Hide desktop secondary and tertiary nav */
    .secondary-nav,
    .tertiary-nav {
        display: none !important;
    }


    /* Adjust content margins */
    .content.with-secondary,
    .content.with-tertiary {
        margin-left: 20px !important;
        margin-right: 20px !important;
        margin-top: 140px !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .layout-toggle {
        top: 200px;
        left: 5%;
    }

    .lightbox-nav {
        width: 100%;
        left: 0;
        padding: 0 10px;
    }

    .lightbox-nav button {
        font-size: 20px;
        padding: 10px 15px;
    }

    .lightbox-info h3 {
        font-size: 18px;
    }

    .lightbox-info p {
        font-size: 14px;
    }

    .lightbox-multi-grid {
        max-width: 90vw;
        padding: 15px;
    }

    .lightbox-multi-grid img {
        max-width: 80vw;
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .project-detail h1 {
        font-size: 24px;
    }

    .project-detail .description {
        font-size: 14px;
    }

    .lightbox-close {
        bottom: auto;
        top: 10px;
        right: 10px;
        left: auto;
        font-size: 30px;
    }
}