body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: black;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

header h1 a {
    text-decoration: none;
    color: black;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
}

/* Main container */
main {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Horizontal film gallery */
.film-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

/* Hide scrollbar but keep scrolling */
.film-gallery::-webkit-scrollbar {
    display: none;
}
.film-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.film-gallery img {
    height: 420px;               /* consistent visual height */
    width: auto;                /* preserves aspect ratio */
    flex-shrink: 0;
    scroll-snap-align: start;
}


/* Film Grid */
.film-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 30px;
}

.film-card {
    text-decoration: none;
    color: black;
    text-align: center;
}

.film-card img {
    width: 100%;
    aspect-ratio: 2 / 3;   /* classic film poster ratio */
    object-fit: contain;  /* NO cropping */
    display: block;
}

.film-card h2 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.film-card img {
    transition: opacity 0.2s ease;
}

.film-card:hover img {
    opacity: 0.85;
}

/* Film page */
.film-page iframe {
    width: 100%;
    height: 450px;
    margin-bottom: 40px;
}

.film-poster {
    width: 100%;
    margin-top: 60px;
}

/* About page */
.about {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about img {
    width: 280px;
    height: auto;          /* preserves aspect ratio */
    flex-shrink: 0;        /* prevents squeezing */
}

.about-text {
    flex: 1;
}


/* =========================
   Responsive Design
   ========================= */

/* Tablets */
@media (max-width: 900px) {
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Phones */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    nav a {
        margin-left: 0;
        margin-right: 16px;
        font-size: 16px;
    }

    .film-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        margin: 40px auto;
    }

    .film-card h2 {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .about {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about img {
        width: 100%;
        max-width: 320px;
    }
}

