body {
    margin: 0;
    padding: 0;
    font-family: 'Geist Mono', monospace;
    background-image: url('../img/lampy.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;

}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.rottimg {
    height: 5rem;
    /* matches h1 visually */
    width: auto;
    display: block;
    margin-left: 700px;
}


.dropdown-menu {
    background-color: #222222;

    position: fixed;

    top: 100%;

    left: 0;

    z-index: 1050;

    background-color: #333;

    min-width: 15px;

    padding: 10px 0;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}

.dropdown-item:hover {
    background-color: #555;

}


.dropdown-item {
    color: white;

}

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

.dropdown-menu.show {
    display: block;

}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 10px;

    margin-top: 20px;
    justify-items: stretch;

    align-items: stretch;

}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #000000;
    display: flex;
}

.gallery-item img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}


.gallery-item.wide {
    grid-column: span 2;

    grid-row: span 1;

}

.gallery-item.square {
    grid-column: span 1;

    grid-row: span 1;

}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}


@media (max-width: 768px) {
    .gallery-item.wide {
        grid-column: span 1;

    }
}

@media (max-width: 480px) {
    .gallery-item img {
        width: 100%;

        height: 100%;

    }
}




@media (max-width: 768px) {
    body {
        display: block !important;
        margin: 0;
    }

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200%;
        background-color: rgba(0, 0, 0, 0.61);
        z-index: -1;
    }


    .col-md-1,
    .col-md-3,
    .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }


    nav {
        margin-left: 0 !important;
    }

    nav.navbar {
        margin: 0px auto 0 auto !important;
        /* center */
        padding: 0;
    }

    .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .nav-item {
        font-size: 0.8rem;
        /* smaller text */
        padding: 0 6px;
        margin: 0;
    }

    .sticky-top {
        height: auto !important;
        min-height: unset !important;
        position: static !important;
        top: auto !important;
    }

    .dropdown-menu {
        position: absolute !important;
        max-height: calc(100vh - 120px);
        /* full usable screen */
        overflow-y: auto;
    }

    .dropleft .dropdown-menu {

        left: auto !important;
    }

    .dropdown-item {
        font-size: 0.75rem;
    }

    .navbar .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 4000;
    }

    .nav-item.dropleft {
        position: relative;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    header {
        margin: 0 !important;
        padding: 0 !important;
    }

    header .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav.navbar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .panel {

        display: flex;
        justify-content: center;

        align-items: center;

        flex-direction: column;

        margin: 0 auto;

        width: 100%;

    }

    .project-cover {

        width: 100%;

        margin-right: 110px;

        display: block;

        box-sizing: border-box;

    }

    .cover-image img {
        width: 100%;

        height: auto;

    }

    .title {
        font-size: 1.2rem;
    }

    .date {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }


    .rottimg {
        display: block;
        margin-left: 50px !important;
        margin-right: auto !important;
        margin-bottom: 10px;
        height: 6rem;
    }

    header {
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    header p {
        text-align: center !important;
        margin: 10px 0 20px 0 !important;
        padding-top: 30px;
    }


    .nav-item {
        margin-left: 10px;
        padding-left: 20px;
        width: auto;
        text-align: center;
    }


    .navbar-toggler {
        display: block;
    }
}