/* ===============================
   Films Page Layout
   =============================== */

/*
.film-description{
    margin-top: 2.5rem;
}
.film-images{
    margin-top: 3.5rem;
}*/

.films-container{
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

.film-row{
    display:grid;
    grid-template-columns: 1fr 2fr 3fr;
    align-items: start;
    gap:50px;
    padding:0;
    align-items:start;
    margin-left:0px;
    margin-right:0px;
    margin-top:30px;
    margin-bottom:20px;
    scroll-margin-top: 150px; /* height of the fixed header */
}

/* Metadata column */

.film-meta h2{
    margin-top:0;
    margin-bottom: 10px;
    font-size:1.8rem;
    letter-spacing:-0.02em;
}

.film-meta p{
    margin:6px 0;
    color: var(--secondary-text-color);
    font-size:0.95rem;
}

.film-meta p strong{
    color: var(--primary-text-color);
}

.film-poster-container{
    width:100%;
    max-width:200px;      /* portrait-friendly width */
    margin-bottom:10px;
}

.film-poster{
    width:200px;
    height:auto;
    object-fit:contain;
    display:block;
}

.film-genre-year-runtime{
    margin-top:0;
    margin-bottom:10px;
    font-weight:500;
    font-style:normal;
    font-size:0.95rem;
    color: var(--secondary-text-color);
    letter-spacing:0.01em;
}

/* Description column */

.film-description{
    font-size:0.9rem;
    line-height:1.6;
    color: var(--secondary-text-color);
}

.film-description p{
    margin:0;
}

.venue-time-ticket-row {
  display: flex;
  justify-content: space-between; /* left info on left, button on right */
  align-items: center;           /* vertical alignment */
  flex-wrap: wrap;               /* optional: wraps on small screens */
  gap: 8px;                      /* optional spacing between items */
  margin: 20px 0;                /* vertical spacing for the row */
}

.film-button {
    display: inline-block;
    width: fit-content;
    margin: auto;    /* centers horizontally */
    padding: 10px 20px;

    border: 2px solid var(--text-color);     /* button border */
    border-radius: 12px;         /* rounded corners */

    color: var(--text-color);
    text-decoration: none;
    background-color: transparent;

    font-weight: 500;
    transition: all 0.2s ease;
}

.film-button:hover {
    background-color: var(--text-color); /* fill on hover */
    color: var(--bg-color);              /* text color inverts on hover */
    border-color: var(--text-color);     /* border color stays the same */
}

/* Image viewer */

.film-images{
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.film-main-image-container{
    width:640px;                /* controls main image width */
    height:400px;                /* optional fixed height for consistent layout */
    background:black;
    display:flex;
    justify-content:center;
    align-items: center;
    margin-bottom:5px;
    overflow:hidden;
}

.film-main-image{
    width: 100%;
    height: 100%;
    object-fit:cover;             /* preserves aspect ratio */
    display:block;
}

/* Thumbnails */

.film-thumbs{
    margin-top: 5px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;              /* smaller spacing between thumbnails */
    width: 100%;
}

.film-thumb{
    width:80px;
    height:auto;
    object-fit:contain;
    cursor:pointer;
    opacity:0.85;
    transition:opacity 0.2s ease;
}

.film-thumb:hover{
    opacity:1;
}

/* Horizontal separator */

hr{
    border:none;
    border-top:1px solid var(--muted-text-color);
    margin:0;
}

/* ===============================
   Responsive Behaviour
   =============================== */

@media (max-width: 900px){

    .film-row{
        grid-template-columns:1fr;
        gap:30px;
        padding:40px 0;
    }

    .film-thumb{
        width:60px;
    }

}

.tatreez {
    border: none;                      /* remove default hr line */
    height: 5px;                       /* desired line thickness */
    width: 100%;                        /* fill container width */

    background-image: var(--line); 
    background-repeat: repeat-x;        /* repeat horizontally only */
    background-position: center;        /* vertically centered */
    background-size: auto 100%;         /* scale image height to fit, width automatic */
    
    margin: 0;                   /* spacing above/below */
}
