/* --------------------------------------------------------------------- */
/* -------------------- PERSONAL PROJECT STYLES ------------------------ */
/* --------------------------------------------------------------------- */

#project-gallery {
    width: 100%;
}



.project-button {
    width: 100%;
    height: 200px;
    position: relative;
    border-bottom: solid 10px;
    border-color: inherit;
    transition: transform 1s;
    will-change: border-color, transform;
    overflow: hidden;
    border: none;
}

.project-button::after {
    content:'';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    opacity: 0%;
    background-color: inherit;
    transition: opacity 1s;
}
.project-button:active::after {
    transition: opacity 0s;
    opacity: 40%;
}

.project-button div {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    object-fit: fill;
    transition: clip-path 1s;
    will-change: clip-path;
    clip-path: inset(0 0 0 0);
}
body.hasHover .project-button:hover div {
    clip-path: inset(3px 3px 3px 3px);
    transition: clip-path 0s;
}



#viewer-project {
    text-shadow: none;
    font-family: var(--font_text);
}

#viewer-project .info {
    font-family: var(--font_mono);
    margin: 0px;
    margin-bottom: min(max(4vw, 30px), 50px);
    margin-top: min(max(4vw, 30px), 50px);
}

#viewer-project .info .title {
    font-family: var(--font_mono);
    font-size: calc(30px + 1vw);
    line-height: calc(30px + 1vw);
    margin: 0px;
    margin-bottom: min(max(calc(30px + 1vw), 10px), 20px);
}

#viewer-project .info .author {
    font-size: calc(14px + 0.2vw);
    line-height: calc(14px + 0.2vw + 3px);
    margin: 0px;
    margin-left: min(max(calc(30px + 1vw), 10px), 20px);
    padding-left: 10px;
    border-left: solid 10px white;
}

#viewer-project .info .date {
    font-size: calc(14px + 0.2vw);
    line-height: calc(14px + 0.2vw + 3px);
    margin: 0px;
    margin-left: min(max(calc(30px + 1vw), 10px), 20px);
    padding-left: 10px;
    border-left: solid 10px white;
}

#viewer-project .info .tags {
    font-size: calc(14px + 0.2vw);
    line-height: calc(14px + 0.2vw + 3px);
    margin: 0px;
    margin-left: min(max(calc(30px + 1vw), 10px), 20px);
    padding-left: 10px;
    border-left: solid 10px white;
}

#viewer-project .description {
    font-size: calc(14px + 0.2vw);
    max-width: 700px;
    margin-bottom: min(max(4vw, 30px), 50px);
    line-height: 140%;
    margin-left: min(max(calc(30px + 1vw), 10px), 20px);

}

#viewer-project .pieceBody > * {
    margin-bottom: min(max(4vw, 30px), 50px);
}

#viewer-project .img-container {
    background-color: white;
    position:relative;
}

#viewer-project .pieceBody .caption {
    font-size: calc(14px + 0.2vw);
    max-width: 700px;
    margin-bottom: min(max(4vw, 30px), 50px);
    line-height: 140%;

}

.flex-container > .img-caption {
    background-color: rgba(0, 0, 0, 0.8);
    color: lightgray;
    font-size: calc(14px + 0.2vw);
    max-width: 700px;
    margin: 0px;
    padding:10px;
    padding-left: 20px;
    line-height: 140%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    max-width: 10000px;
    opacity: 0%;
    bottom: -50px;
    transition: opacity 0.5s, bottom 0.5s;
}

.flex-container:hover > .img-caption {
    opacity: 100%;
    bottom: 0px;
}

.img-container > .img-caption {
    background-color: rgba(0, 0, 0, 0.8);
    color: lightgray;
    font-size: calc(14px + 0.2vw);
    max-width: 700px;
    margin: 0px;
    padding:10px;
    padding-left: 20px;
    line-height: 140%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    max-width: 10000px;
    opacity: 0%;
    bottom: -50px;
    transition: opacity 0.5s, bottom 0.5s;
    text-align: left;
}

.img-container:hover > .img-caption {
    opacity: 100%;
    bottom: 0px;
}

#viewer-project .flex-container {
    position: relative;
    overflow: hidden;
}

#viewer-project .img-container {
    position: relative;
    overflow: hidden;
}



#viewer-project .pieceBody .iframeContainer {
    width: 100%;
    height: calc(min(100vw, 1000px) / 1.6666);
    overflow: hidden;
}

.iframeContainer > iframe {
    width: 100%;
    height: 100%;
    overflow: hidden;
}