/* Center the project list */
ul.project-list {
    /* flex for positioning */
    display: flex;
    flex-flow: column wrap;
    align-content: flex-start;

    /* remove bullet points */
    list-style: none;
}

/* project metadata flex formatting (if needed) */
div.meta {
    display: flex;
    flex-flow: column wrap;
}

/* styling for the project titles */
h2.title {
    margin-bottom: 5px;
}

/* styling for project timelines */
h3.timeline {
    margin-top: 5px;
}

/* styling for summary */
p.summary {
    display: flex;
    font-weight: bold;
}

/* styling for skills used */
div.skills {
    font-size: 2rem;   
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

ul.skills {
    font-size: 2rem;
    justify-items: center;
    margin-top: 5px;
}

/* styling for the project media */
div.media {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: space-evenly;
}

/*  styling for expanded media */
#lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

#lb-overlay.active {
    display: flex;
}

#lb-overlay .lb-content {
    max-width: 90vw;
    max-height: 90vh;
}

#lb-overlay img,
#lb-overlay iframe {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
}

.lb-has-iframe {
    position: relative;
    display: inline-block;
}

.lb-iframe-cover {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
}

.media img,
img {
    cursor: zoom-in;
}

#lb-overlay.active {
    cursor: zoom-out;
}

#lb-overlay .lb-content > img {
    width: auto;
    height: auto;
}

#lb-overlay .lb-content > iframe {
    display: block;
    border: 0;
    width: min(90vw, calc(90vh * 16 / 9));
    height: min(90vh, calc(90vw * 9 / 16));
}

.media > div {
    width: 600px;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.media > div > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.media > div > iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 177.78%;
    transform: translate(-50%, -50%);
    border: 0;
}