body {
    background: linear-gradient(150deg, #405241 0%, #1d3022 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hunin {
    font-family: "Bpmf Huninn", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.45);
}

.center {
    display: flex;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.2em;
}

.socials {
    display: flex;
    justify-content: flex-end;
    font-size: 1.1em;
}

.socials a {
    color: white;
    text-decoration: none;
}

.title {
    margin-top: 1em;
    margin-left: 0.3em;
    margin-right: 0.3em;
}

.subtitle {
    font-size: 1.5em;
    margin-left: 0.3em;
    margin-right: 0.3em;
}

h1 {
    font-size: 3.5em;
}

.images {
    margin: 1em 0 1em 0;
    position: relative;
    cursor: pointer;
}

.images img {
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;

}

.images:hover img {
    filter: grayscale(50%) brightness(0.3);
/*increase size with hover*/
    margin: -1em 0 -1em 0;
    transform: rotate(5deg) scale(1.05);

}

.images::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 80%;
    text-align: center;
    color: white;
    font-family: "Bpmf Huninn", sans-serif;
    font-size: 2em;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.images:hover::after {
    opacity: 1;
}

.container {
    padding: 1em;
    padding-left: 4em;
    padding-right: 4em;
    max-width: 900px;
}

.mywork {
    font-size: 2em;
    padding-top: 1em;
}

.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.project-modal.open {
    display: flex;
}

.project-modal-content {
    position: relative;
    display: flex;
    gap: 1.5rem;
    width: min(90vw, 2000px);
    max-height: 90vh;
    padding: 0rem;
    background: rgba(0, 0, 0, 0);
    border-radius: 0px;
    text-align: left;
    font-size: 1.3rem;
}


.modal-video {
    flex: 1 1 100%;
}

.modal-video video {
    width: 100%;
    border-radius: 4px;
    background: transparent;
}

.modal-info {
    flex: 1 1 40%;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}


.modal-info p {
    white-space: pre-line;
}

.modal-close {
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: white;
}

#modal-description a {
    color: lightblue;
}

#modal-description a:hover {
    color: #cfeeff;
}

#modal-title a {
    color: lightblue;
    text-decoration: underline;
}

#modal-title a:hover {
    opacity: 0.8;
}


@media (max-width: 767.98px) {
    .images::after {
        position: static;
        transform: none;
        display: block;
        width: auto;
        max-width: 100%;
        text-align: center;
        margin-top: 0.2em;
        margin-bottom: 0.5em;
        font-size: 2em;
        opacity: 1;
        text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.45);
    }

    .images:hover img {
        filter: none;
        margin: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .project-modal-content {
        flex-direction: column;
        overflow-y: auto;
    }
}

.plyr {
    --plyr-color-main: green; /* accent color: play button, progress, hover */
    --plyr-video-controls-background: transparent;
}