@font-face {
    font-family: SpaceGrotesk;
    src: url(fonts/SpaceGrotesk-VariableFont_wght.ttf);
}

:root {
    --primaryText-color: whitesmoke;
    --secondaryText-color: rgb(218, 218, 218);
    --primaryBackground-color: #1c1c1c;
    --secondaryBackground-color: #303030;

    --text-primary-font-family: SpaceGrotesk, serif;
    --text-title-color: whitesmoke;
    --text-body-color: whitesmoke;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--text-primary-font-family);
    font-weight: 300;
    font-style: normal;
}

body {
    background-image: linear-gradient(0deg, #1c1c1c, rgb(0, 0, 0));
    background-repeat: no-repeat;
    background-position: center;
    background-position-y: top;
    background-attachment: fixed;
    background-size: contain;
    padding: 0;
    margin: 0;
}

h2 {
    font-family: SpaceGrotesk;
    color: var(--text-title-color);
    padding-top: 20px;
    padding-bottom: 20px;
}

img {
    max-width: 100%;
}
.primary-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.89), #00000059); */
    z-index: 100;
    backdrop-filter: blur(15px) contrast(1.5);
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.logo {
    text-decoration: none;
    color: var(--primaryText-color);
    font-weight: 300;
    font-size: 16px;
}

.navbar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navBTN a {
    background-image: linear-gradient(#0000, #0000);
    padding: 10px;
    border-radius: 25px;
    color: var(--primaryText-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 300;
    transition: 0.5s;
}

.navbar a:hover {
    color: #c9dcff;
    /* font-weight: 600; */
}

.banner-image {
    display: block;
    width: 100%;
}

.content-container {
    display: flex;
    flex-direction: column;
    max-width: 1224px;
    width: 90%;
    margin: auto;
    padding: 50px 10px;
}

.welcome-copy {
    color: var(--secondaryText-color);
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50%;
    padding-top: 50px;
    margin: 0;
}

.demo-reel {
    width: auto;
    height: 720px;
    max-width: 100%;
    max-height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

.film-container {
    padding-top: 50px;
}

.photo-gallery {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    gap: 1em;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: masonry;
}

.photo {
    position: relative;
    overflow: hidden;
}

.photo img {
    max-width: 100%;
    border-radius: 5px;
    /* display: inline-block;
    vertical-align: middle; */
    object-fit: cover;
    /* filter: grayscale(75%); */
    transition: 0.5s;
    position: relative;
    display: inline-block;
}

.photo img:hover {
    scale: 110%;
    /*background-color: aqua;
    box-shadow: 0px 0px 50px 0px rgba(166, 245, 255, 0.075);*/
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 auto;
    width: 300px;
    height: 50px;
    font-family: SpaceGrotesk;
    color: var(--text-title-color);
    /*top: 50%;
    left: 50%;*/
    transform: none;
    padding: 10px;
}

.feature {
    grid-column: span 2;
    grid-row: span 2;
}

button:focus {
    outline: none;
}

.contact-container {
    background-color: rbga(0, 0, 0, 0.6);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.contact-container.show-contact {
    display: block;
    backdrop-filter: blur(5px);
}

.contact {
    background: linear-gradient(180deg, #141929d2, #0b0c13d2);
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: 400px;
    animation-name: contact-open;
    animation-duration: var(--modal-duration);
}

.contact-header {
    background: var(--primaryBackground-color);
    color: var(--secondaryText-color);
    padding: 5px;
}

.contact-header h3 {
    margin: 0;
    border-bottom: 1px solid #333;
}

.contact-content {
    padding: 16px;
    justify-items: center;
}

.contact-content h3 {
    justify-content: center;
    align-self: center;
    color: var(--secondaryText-color);
    font-size: 24px;
    font-weight: 500;
}

.contact-form div {
    margin: 15px 0;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondaryText-color);
    font-weight: 500;
}

.form-input {
    width: 370px;
    height: 50px;
    border: none;
    outline: none;
    padding: 8px;
    font-weight: 500;
    color: #666;
    border-radius: 10px;
}

.form-input:focus {
    border: 3px solid #6f88f8;
}

.contact-form .form-input-message {
    padding: 8px 10px;
    margin-bottom: 5px;
    max-width: 100%;
    width: 380px;
    height: 150px;
    border-radius: 10px;
}

.form-input-message:focus {
    border: 3px solid #6f88f8;
}

.close-btn {
    padding: 10px 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
}

.close-btn svg {
    fill: var(--secondaryText-color);
}

.close-btn svg:hover {
    fill: #c9dcff;
}

.submit-btn {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 700;
    gap: 10px;
    background: linear-gradient(225deg, #4253a0, #6f88f8);
    border: 5px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
}

@contact-open {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 1200px) {
    .demo-reel {
        height: 550px;
    }
    .navBTN a {
        padding: 0px;
    }
}

@media only screen and (max-width: 1000px) {
    .demo-reel {
        height: 250px;
    }
    .navBTN a {
        padding: 0px;
    }
}

#lightboxBG {
    position: fixed;
    z-index: 500;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 41, 41, 0.6);
    backdrop-filter: blur(10px);
    display: none;
}

#lightboxBG.active {
    display: grid;
    place-items: center;
}

#lightboxWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#lightboxImg {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid rgb(31, 30, 46);
    box-shadow: 1px 3px 20px rgba(0, 0, 0, 0.5);
}

#lightboxCaption {
    font-famil: var(--text-primary-font-family);
    font-size: 0.1rm;
    font-weight: 500;
    color: var(--secondaryText-color);
}

.photo video {

    max-width: 100%;
    border-radius: 5px;
    /* display: inline-block;
    vertical-align: middle; */
    object-fit: cover;
    /* filter: grayscale(75%); */
    transition: 0.5s;
    position: relative;
    display: inline-block;
}

.photo video:hover {
    scale: 110%;
}