@font-face {
    font-family: LatoLight;
    src: url(../fonts/Lato-Light.eot);
    src: url(../fonts/Lato-Light.eot?#iefix) format('embedded-opentype'),
         url(../fonts/Lato-Light.woff2) format('woff2'),
         url(../fonts/Lato-Light.woff) format('woff'),
         url(../fonts/Lato-Light.ttf) format('truetype');
    font-style: normal;
    text-rendering: optimizeLegibility;
}

html,
body {
    color: #666;
    font-family: LatoLight !important;
    min-height: 100%;
}

html {
    background: #f6f6f6;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

a:link,
a:visited,
a:active,
a:hover {
    font-weight: 600;
}

.nav-home-icon {
    font-size: 20px;
}

.card-strip-15 {
    height: 15px;
}

.card-strip-8 {
    height: 8px;
}

.overview-card {
    max-width: 25rem;
    margin-top: 50px;
}

.overview-card-body {
    width: 310px;
}

.archive-intro {
    padding: 20px;
    padding-top: 50px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: justify;
    font-weight: 300;
    font-size: large;
}

.archive-release-deck {
    padding-top: 30px;
}

.archive-release-card {
    width: 80%;
}

.archive-actions {
    text-align: right;
}

.release-line-release {
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 30px;
    display: inline-block;
    color: red;
}

.release-line-section {
    font-size: 16px;
    font-weight: bold;
}

.release-line-item {
    display: list-item;
    margin-left: 2em;
}

.release-version {
    font-size: small;
}

.download-btn-fixed {
    width: 104px;
}

.year-pill {
    margin-top: 15px;
}

body.page-home,
body.page-project-detail {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f6f6f6;
    background: linear-gradient(to bottom, #f6f6f6 0%, #e9e9e9 100%);
}

body.page-projects-overview,
body.page-archive-overview {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f6f6f6;
    background: -moz-linear-gradient(top, #f6f6f6 0%, #e9e9e9 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f6f6), color-stop(100%, #e9e9e9));
    background: -webkit-linear-gradient(top, #f6f6f6 0%, #e9e9e9 100%);
    background: -o-linear-gradient(top, #f6f6f6 0%, #e9e9e9 100%);
    background: -ms-linear-gradient(top, #f6f6f6 0%, #e9e9e9 100%);
    background: linear-gradient(to bottom, #f6f6f6 0%, #e9e9e9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#e9e9e9', GradientType=0);
}

body.page-archive-detail {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f6f6f6;
}

body.page-home h5,
body.page-projects-overview h5,
body.page-archive-overview h5 {
    font-size: 25px;
    font-weight: bold;
}

body.page-archive-detail h5 {
    font-size: 20px;
    font-weight: bold;
}

body.page-project-detail h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 18px;
}

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        position: relative;
    }

    .navbar .navbar-toggler {
        margin-left: auto;
    }

    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        z-index: 1000;
        min-width: 180px;
        padding: 0.5rem 0.75rem;
        background: #212529;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        overflow: visible;
    }

    .navbar .navbar-nav .dropdown {
        position: relative;
    }

    .navbar .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        min-width: 220px;
    }
}

body.page-home .page-shell,
body.page-project-detail .page-shell {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding: 24px 16px;
}

body.page-home .intro-card {
    width: min(100%, 500px);
    margin: 0 auto;
}

body.page-home .project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

body.page-home .project-link-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.page-home .project-link-row .btn-project {
    flex: 1 1 auto;
    text-align: left;
}

body.page-home .project-link-row .btn-github {
    flex: 0 0 auto;
    width: 45px;
    padding-left: 0;
    padding-right: 0;
    font-size: 21px;
}

body.page-projects-overview .card,
body.page-archive-overview .card {
    display: inline-block;
    padding-bottom: 50px;
}

body.page-projects-overview .card-footer,
body.page-archive-overview .card-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

body.page-project-detail .project-card {
    width: min(100%, 760px);
    margin: 0 auto;
}

body.page-project-detail .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

body.page-project-thumbnail .project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

body.page-project-thumbnail .project-shot {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.page-project-thumbnail .project-shot-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

body.page-project-thumbnail .project-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

body.page-project-thumbnail .project-shot-caption {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

body.page-archive-detail .card {
    display: inline-block;
}

@media (min-width: 750px) {
    body.page-archive-detail .modal-dialog {
        max-width: 700px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    body.page-home .page-shell {
        align-items: flex-start !important;
        padding: 16px 12px 24px;
    }

    body.page-project-detail .page-shell {
        padding: 16px 12px 24px;
    }

    body.page-project-thumbnail .project-gallery {
        grid-template-columns: 1fr;
    }
}
