/*
 *
 * NARRATIVE/FILM PROJECT PAGE STYLING
 * Film-specific styles; base layout in project_page_style.css
 *
 */

/* PDF VIEWER */
#pdf-container {
    background: whitesmoke;
}

#pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 4px;
}

#pdf-page-info {
    font-family: 'Overpass', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

.pdf-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    padding: 2px 6px;
    transition: color 0.2s ease;
}

.pdf-btn:hover {
    color: var(--secondary);
}

.pdf-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

/* PDF FULLSCREEN */
#pdf-container:fullscreen,
#pdf-container:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}

#pdf-container:fullscreen #pdf-canvas,
#pdf-container:-webkit-full-screen #pdf-canvas {
    width: auto;
}

#pdf-container:fullscreen #pdf-controls,
#pdf-container:-webkit-full-screen #pdf-controls {
    padding: 10px 0 6px;
}

#pdf-container:fullscreen #pdf-page-info,
#pdf-container:-webkit-full-screen #pdf-page-info {
    color: white;
}

#pdf-container:fullscreen .pdf-btn,
#pdf-container:-webkit-full-screen .pdf-btn {
    color: white;
}

#pdf-container:fullscreen .pdf-btn:hover,
#pdf-container:-webkit-full-screen .pdf-btn:hover {
    color: var(--secondary);
}

/* LAURELS GRID */
.laurels-section {
    margin-bottom: 4px;
}

.laurels-grid {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-around;
}

.laurel-item {
    height: 80px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* STILLS GRID */
.stills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}

.still-item {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.still-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.still-item:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}

/* LIGHTBOX */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 12px;
    user-select: none;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* FILM-SPECIFIC IDS */
#film-title {
    flex: 1 1 100%;
}

#film-cast {
    margin-top: 5px;
}

#film-info {
    margin-top: 15px;
}

#film-info p {
    margin-top: 5px;
    font-size: 12px;
}

#film-info b {
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.08em;
}

#film-logline {
    flex: 1 1 100%;
    margin-top: 15px;
}

.extra-content {
    margin-top: 5px;
}

#film-press {
    margin-top: 15px;
}

#film-press p {
    margin-top: 5px;
}

#film-press a:hover {
    color: var(--secondary);
}

#film-festivals {
    margin-top: 15px;
    text-align: left;
}

.festivals-container {
    display: flex;
    flex-flow: row wrap;
    column-gap: 20px;
    row-gap: 10px;

    margin-top: 5px;
}

.festival {
    text-align: left;
}

.festival > p {
    font-size: 12px;
    font-family: 'Arvo', serif;
    font-weight: 500;
}

.festival-break {
    flex: 1 1;
}

/*
 *
 * SMALL SCREENS
 *
 */
@media screen and (max-width: 950px) {
    .main-flex-row {
        flex: 0 1 600px;

        display: flex;
        flex-flow: column nowrap;

        row-gap: 10px;
    }

    #film-logline {
        margin-top: 15px;
    }

    .stills-grid {
        margin-top: 10px;
    }
}

/*
 *
 * LARGE SCREENS
 *
 */
@media screen and (min-width: 951px) {
    .main-flex-container {
        row-gap: 20px;
    }

    .main-flex-row {
        flex: 0 1 1000px;

        display: flex;
        flex-flow: row nowrap;
        column-gap: 20px;
    }

    .media-container {
        flex: 0 1 60%;
    }

    .content-container {
        flex: 0 2 40%;
    }
}