/*body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
}

.ui-controls {
    position: relative;
    display: flex;
    gap: 20px;
    z-index: 100;
    justify-content: center;
    margin: 20px auto;
}

button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.settings {
    position: relative;
    float: right;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    margin: 20px;
}

.settings label {
    display: block;
    margin-bottom: 5px;
}

.settings input {
    width: 60px;
    margin-left: 5px;
}

.title-bar {
    position: relative;
    text-align: center;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin: 20px auto;
}

.video-count {
    position: relative;
    text-align: center;
    color: white;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin: 10px auto;
}*/

#portfolio-title-marquee {
    margin: 0 auto;
}

.portfolio-title .title-edge{
    vertical-align: 0.075em;
    white-space: pre-wrap;
    font-size: 0.75em;
    color: #D49C00;
}

.portfolio-container {
    margin: 0 auto;
    max-width: 1000px;
    padding: 20px;
}
.videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    animation: fadeSlideUp 0.5s ease-in-out forwards;
    animation-delay: 0;
    animation-play-state: paused;
}


.video-item.loaded {
    animation-play-state: running;
}

.video-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.video-item video:fullscreen {
    height: auto;
    object-fit: contain;
}

.video-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.video-item:hover .video-title {
    opacity: 1;
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); /* Adjust colors */
}
@media (max-width: 900px) {
    .video-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 600px) {
    .video-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}