.projects{
    display: flex;
    flex-basis: auto;
    height: auto;
    background: #dda15eff;
    justify-content: center;
    align-items: center;
    padding: 25px;
    flex-grow: 1;
}

.project{
    margin: auto;
    width: 16vw;
    display: flex;
    justify-content: center;
    align-items: end;
    cursor: pointer;
    position: relative;
}

.project video{
    width: 100%;
    position: relative;
    display: block;
    border-radius: 10px;
    box-shadow: 4px 4px 50px -4px #40250d;
}

.project video.sized{
    width: 50vw;
    height: auto;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 999999;
    border-radius: 0;
    box-shadow: none;
}

.blackout{
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    cursor: pointer;
}

.blackout.active{
    display: block;
}

.project .text {
    position: absolute;
    bottom: -10px;
    width: 100%;
    height: 40px; /* Set a fixed height */
    font-size: .8vw;
    background-color: rgba(64, 37, 13, 0.95);
    color: #fefae0;
    padding: 5px 0 5px 20px;
    pointer-events: none;
    opacity: 0;
    transition: all 400ms ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    display: flex;
    align-items: center; /* Center text vertically */
    overflow: hidden;
}

.project .text p {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Truncates long text with "..." */
}

.project .text.active {
    opacity: 1;
    letter-spacing: 0;
}