* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

a {
    text-decoration: none;
    color: white;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);

    padding: 25px 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-info {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.gallery-info p {
    margin-bottom: 10px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 300;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.socials img {
    height: 24px;
    width: auto;
    transition: 0.3s;
}

.socials img:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

.logo:hover {
    opacity: 0.7;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity .3s ease;
}

nav a::after {
    content: '';
    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: white;

    transition: width .3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #aaa;
}

nav a.active {
    opacity: 1;
}

nav a.active::after {
    width: 100%;
}

.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .4);
}

.hero-overlay h1 {
    font-size: 5rem;
    letter-spacing: 10px;
}

.hero-overlay p {
    margin-top: 15px;
    font-size: 1.4rem;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
}

.hero {
    height: 100vh;

    background-image: url("images/DSC_0561.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 4rem;
    background: rgba(0, 0, 0, 0);
    padding: 20px;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 50px auto;
}

.page-title {
    text-align: center;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.item img,
.item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}

.item:hover img,
.item:hover video {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: .4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin-bottom: 10px;
}

.contact-form {
    max-width: 700px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {

    width: 100%;
    padding: 18px;

    margin-bottom: 18px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 1rem;

    color: white;

    border-radius: 8px;

    transition: 0.3s;

    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {

    outline: none;

    border-color: rgba(255, 255, 255, 0.4);

    background: rgba(255, 255, 255, 0.08);
}

.contact-form button {

    width: 100%;

    padding: 18px;

    background: white;
    color: black;

    border: none;
    border-radius: 8px;

    font-weight: bold;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 1px;

    transition: 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    backdrop-filter: blur(10px);
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
    line-height: 1.6;
}

.contact-details {
    margin-top: 30px;
    text-align: center;
    opacity: 0.7;
    line-height: 1.8;
}

.success-message {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 16px 20px;

    text-align: center;

    color: #b8ffb8;

    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
}

.error-message {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 16px 20px;

    text-align: center;

    color: #ffb8b8;

    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
}

footer {
    background: black;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links span {
    color: #777;
}

.masonry {
    column-count: 3;
    column-gap: 20px;
    width: 90%;
    margin: auto;
}

.masonry-item {
    contain: content;
    width: 100%;
    height: auto;
    position: relative;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;

    /* fade system */
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
    animation: fadeInFallback 1s forwards;
}

@keyframes fadeInFallback {
    to {
        opacity: 1;
    }
}

.masonry-item img.loaded {
    opacity: 1;
}

.legal {
    max-width: 800px;
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 30px;
    opacity: 0.9;
}

.legal-block p {
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.85;
}

.project-layout {
    display: flex;
    flex-direction: column;
    /* KEY CHANGE */
    gap: 30px;
}

.video-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    max-width: 1200px;
    /* controls max cinema width */
    aspect-ratio: 16 / 9;
    position: relative;
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.project-info {
    flex: 1;
    color: white;
}

.stills {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.crew {
    margin-top: 30px;
    color: white;
}

.crew h2 {
    margin-bottom: 15px;
}

.crew p {
    margin-bottom: 8px;
    opacity: 0.85;
}

.genre {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.year {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 4px;
    opacity: 0.6;
}

.cookie-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

}


.cookie-box {

    background: rgb(0, 0, 0);

    max-width: 500px;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);

    font-family: Arial, sans-serif;


}


.cookie-box h2 {

    margin-top: 0;
    margin-bottom: 10;

}


.cookie-buttons {

    display: flex;

    gap: 15px;

    margin-top: 25px;

}


.cookie-buttons button {

    padding: 12px 25px;

    border-radius: 8px;

    border: 0;

    cursor: pointer;

    font-size: 16px;

}


.accept {

    background: #222;
    color: white;

}


.reject {

    background: #ddd;

}


.video-placeholder {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

}


.video-thumbnail {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.video-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.65);

    color: white;

}


.video-overlay h3,
.video-overlay p {

    color: white;

}


.video-overlay button {

    margin-top: 15px;

    padding: 12px 25px;

    background: white;

    color: black;

    border: none;

    border-radius: 8px;

    cursor: pointer;

}

.project-fallback-image {

    width:100%;
    height:100%;

    object-fit:cover;

}