/* Portfolio pages (navigation/portfolio/*.html) — the [ projectArchive ] panel: topic list + the open project */

img {
    border: 1px solid #3b5998;
}

.img_col {
    width: 45%;
    margin: 15px;
    margin-top: 0;
    min-height: 350px;
    float: right;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    width: 90%;
    aspect-ratio: 1;
    background: #eee;
    border: 1px solid #ddd;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

/* The panel fills the page's .content, so its left edge lines up with the title above it. */
body.p-portfolio > .content {
    margin-top: 20px;
}

.container_inner {
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid #3b5998;
}

.header {
    background: #dddddd;
    color: #666666;
    padding: 10px;
    position: relative;
    border-bottom: 1px solid #3b5998;
}

.header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: normal;
    color: #666666;
}

.topics-box {
    display: flex;
    float: left;
    width: 200px;
    background: white;
}

.topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.topics-list li {
    padding: 18px;
    cursor: pointer;
    border-top: 1px solid #d9e5ff;
    font-size: 18px;
    color: #666666;
}

.topics-list li a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.topics-list li:hover {
    background: #f0f2f5;

}

.topics-list li.active {
    background: #d9e5ff;
}

/* The panel's right-hand column. It is a .content, but not the page's
   main column, so undo the shared 80%-wide / centred box: as a block
   formatting context it then simply fills the space beside the
   floated topics list. */
.container_inner .content {
    display: flex;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px;
    border-left: 1px solid #3b5998;
}

.section {
    margin-right: 20px;
    min-width: auto;
}

.section-header {
    padding: 5px;
}

.section-header h1 {
    margin: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: normal;
    color: #666666;
}

.section-content {
    min-height: 400px;
    padding: 5px;
    margin-bottom: 5px;
    position: relative;
}


.section-content p {
    margin: 10px;
    font-weight: lighter;
    font-size: 16px;
    color: #333333;
}

.section-content .paper {
    position: absolute;
    font-size: 16px;
    bottom: 0;
}
@media (max-width: 1000px) {
    .container_inner {
        width: 100%;
    }
    .section-header h1 {
        font-size: 18px;
    }
    .section-content p {
        font-size: 14px;
    }
    .topics-box {
        width: 130px;
    }
    .topics-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .topics-list li {
        font-size: 13px;
        padding: 10px;
    }

}
