/*
Theme Name: James Portfolio
Theme URI: https://jamesnolanneylan.com
Author: James Nolan-Neylan
Description: Custom filmmaker portfolio WordPress theme converted from static HTML with dynamic navigation menus, Film Projects & Photography Albums CPTs, and free ACF field groups.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: james-portfolio
*/

/* ============================================
   WORDPRESS INTEGRATION UTILITIES
   Scoped strictly to WP admin bar, optional nav
   menus, and inner dashboard-created pages so
   the front page matches index.html pixel-for-pixel.
   ============================================ */

/* Offset sticky header below WP Admin Bar when logged in */
body.admin-bar .sticky-header.visible,
body.admin-bar .sticky-header.sticky-header--always-visible {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sticky-header.visible,
    body.admin-bar .sticky-header.sticky-header--always-visible {
        top: 46px;
    }
}

/* WordPress unfixes #wpadminbar at <= 600px (it scrolls away with the page) */
@media screen and (max-width: 600px) {
    body.admin-bar .sticky-header.visible {
        top: 0;
    }
}

/* Keep sticky header brand link styled identically to static headings */
.sticky-header .header-info a.header-brand-link {
    color: inherit;
    text-decoration: none;
}

.sticky-header .header-info a.header-brand-link:hover {
    opacity: 0.9;
}

/* Dynamic Primary Navigation Menu (only rendered when assigned in WP Admin) */
.sticky-header .header-nav {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.sticky-header .header-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-header .header-nav-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.sticky-header .header-nav-list a:hover,
.sticky-header .header-nav-list .current-menu-item > a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sticky-header.has-primary-nav .header-info {
    flex: 0 0 auto;
    align-items: flex-start;
    transform: translateX(0);
}

/* Always-visible sticky header on inner WordPress pages */
.sticky-header.sticky-header--always-visible {
    top: 0;
}

.sticky-header.sticky-header--always-visible .header-info {
    align-items: flex-start;
    flex: 0 0 auto;
    transform: translateX(0);
}

.sticky-header.sticky-header--always-visible .header-social {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Optional Footer Navigation Menu */
.footer-nav {
    margin-bottom: 10px;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: #ffffff;
}

/* Inner Pages & Single Film Project Templates */
.jp-inner-main {
    display: flex;
    flex-direction: column;
    padding-top: 94px;
    min-height: calc(100vh - 50px);
    background-color: var(--streaming-dark);
    color: #ffffff;
}

.jp-inner-main > .streaming-section,
.jp-inner-main > .jp-page-content,
.jp-inner-main > .jp-single-film {
    flex: 1 0 auto;
}

.jp-page-hero {
    min-height: 32vh;
}

.jp-page-hero .container {
    padding: 80px 15px 40px;
}

.jp-page-content {
    background: linear-gradient(to bottom, var(--streaming-dark) 0%, var(--streaming-darker) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0;
}

.jp-page-content .entry-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

.jp-page-content .entry-content a {
    color: #b79ced;
}

.jp-single-film {
    background: linear-gradient(to bottom, var(--streaming-dark) 0%, var(--streaming-darker) 100%);
    color: #ffffff;
    padding: 50px 0 80px;
}

.jp-single-film-player {
    max-width: 1100px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.jp-single-film-meta {
    max-width: 1100px;
    margin: 0 auto;
}

.jp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.jp-back-link:hover {
    color: #ffffff;
}

/* Keep all 5 header social icons on a single crisp row at medium laptop widths (1025-1240px) */
@media (max-width: 1240px) and (min-width: 1025px) {
    .sticky-header.has-primary-nav .header-social p {
        display: none;
    }

    .sticky-header.has-primary-nav .social-icons {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .sticky-header.has-primary-nav .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 0.92rem;
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .sticky-header .header-nav {
        margin: 0 10px;
    }

    .sticky-header .header-nav-list {
        gap: 12px;
    }

    .sticky-header .header-nav-list a {
        font-size: 0.825rem;
    }
}

/* Ensure inline bold emphasis stands out cleanly inside bio paragraphs */
#one .lead strong,
#one .lead b {
    font-weight: 700;
}

/* Homepage Photography Carousel: floating inset gradient box behind title
   (avoids sub-pixel 1px seam at bottom edge when cards scale on hover) */
.photo-gallery .photo-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(16, 12, 28, 0.82) 0%, rgba(0, 0, 0, 0.68) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.photo-gallery .photo-overlay h5 {
    font-size: 1.02rem;
    line-height: 1.25;
}

/* ============================================
   PHOTOGRAPHY ARCHIVE PAGE & NATIVE ALBUMS
   Reuses portfolio CSS variables & card motion.
   ============================================ */

.jp-photo-intro {
    padding: 45px 0 50px;
}

.jp-photo-header {
    padding: 28px 0 38px;
}

.jp-photo-header-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.jp-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.jp-back-pill:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateX(-3px);
}

.jp-photo-header-sub {
    opacity: 0.92;
}

.jp-album-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.jp-filter-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.jp-filter-btn span {
    opacity: 0.8;
    font-weight: 400;
}

.jp-filter-btn:hover,
.jp-filter-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.jp-albums-section {
    padding: 60px 0 70px;
}

.jp-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 60px;
    max-width: 2200px;
    margin: 0 auto;
}

.jp-album-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--streaming-darker);
    box-shadow: 0 4px 15px rgba(62, 40, 112, 0.28);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jp-album-card:hover {
    transform: scale(1.04) translateY(-8px);
    z-index: 10;
    box-shadow: 0 12px 32px rgba(62, 40, 112, 0.55);
}

.jp-album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.jp-album-card:hover img {
    transform: scale(1.08);
}

.jp-album-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(62, 40, 112, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.jp-album-card-overlay {
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    z-index: 4;
    padding: 24px 20px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.65) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.jp-album-card-overlay h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.jp-album-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    margin: 0;
}

.jp-album-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 10px;
    border-radius: 50px;
}

.jp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jp-btn-outline:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-4px);
}

/* Individual Album Photo Grid */
.jp-album-header-bar {
    padding: 28px 0 34px;
}

.jp-single-album-gallery {
    padding: 50px 0 70px;
}

.jp-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 60px;
    max-width: 2200px;
    margin: 0 auto;
}

.jp-photo-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
    background: var(--streaming-darker);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jp-photo-tile:hover {
    transform: scale(1.03) translateY(-4px);
    z-index: 5;
    box-shadow: 0 12px 28px rgba(62, 40, 112, 0.5);
}

.jp-photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.jp-photo-tile:hover img {
    transform: scale(1.06);
}

.jp-photo-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.jp-photo-tile:hover .jp-photo-zoom-icon {
    opacity: 1;
}

.jp-photo-tile-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 16px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffffff;
    font-size: 0.85rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.jp-photo-tile:hover .jp-photo-tile-caption {
    opacity: 1;
}

.jp-bridge-preview {
    position: relative;
    max-width: 640px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.jp-bridge-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Native Image Theft Deterrence Shield */
.jp-protected-photo,
.jp-protected-photo img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.jp-photo-shield {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
}

/* Cinematic Photo Lightbox (matches #videoModal) */
.jp-lightbox {
    padding: 30px 70px;
}

.jp-lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalSlideIn 0.25s ease;
}

.jp-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 80vh;
}

.jp-lightbox-stage img {
    max-width: 86vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.jp-lightbox-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 4px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.jp-lightbox-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.jp-lightbox-credit {
    opacity: 0.65;
    font-size: 0.82rem;
}

.jp-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.25s ease;
}

.jp-lightbox-nav:hover {
    background: #ffffff;
    color: var(--streaming-dark);
    border-color: #ffffff;
}

.jp-lightbox-prev {
    left: 20px;
}

.jp-lightbox-next {
    right: 20px;
}

.jp-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2020;
}

/* Print-to-PDF Protection for Natively Hosted Photos */
@media print {
    .jp-photos-grid,
    .jp-justified-gallery,
    .jp-lightbox,
    .pswp,
    .jp-protected-photo img {
        visibility: hidden !important;
    }
}

/* ============================================
   FILM & VIDEO ARCHIVE (/film/)
   Strict 16:9 cards, desktop lazy hover video,
   and clean metadata typography.
   ============================================ */

.jp-film-archive-section {
    padding: 55px 0 80px;
}

.jp-film-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
    padding: 0 60px;
    max-width: 2200px;
    margin: 0 auto;
}

.jp-film-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    outline: none;
}

.jp-film-card:focus-visible .jp-film-thumb {
    box-shadow: 0 0 0 3px #ffffff, 0 10px 28px rgba(62, 40, 112, 0.55);
}

.jp-film-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--streaming-darker);
    box-shadow: 0 4px 12px rgba(62, 40, 112, 0.25);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.jp-film-card:hover .jp-film-thumb {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 30px rgba(62, 40, 112, 0.5);
}

.jp-film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.jp-film-card:hover .jp-film-thumb img {
    transform: scale(1.05);
}

.jp-hover-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.jp-hover-preview-video.is-playing {
    opacity: 1;
}

.jp-film-runtime-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.78);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.jp-film-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.jp-film-card:hover .jp-film-play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.jp-film-info {
    padding: 14px 2px 0;
}

.jp-film-title {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.jp-film-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    line-height: 1.35;
}

.jp-film-sep {
    opacity: 0.5;
}

.jp-modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.jp-modal-meta-line {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: -4px;
    margin-bottom: 10px;
}

.jp-modal-permalink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.jp-modal-permalink:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.jp-single-film-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jp-single-film-pills span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
    font-weight: 500;
}

/* Single Film Project — Extended Blurb & BTS Sections */
.jp-single-film-blurb {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    line-height: 1.78;
}

.jp-single-film-blurb h2,
.jp-single-film-blurb h3,
.jp-single-film-blurb h4 {
    color: #ffffff;
    margin-top: 1.4rem;
    margin-bottom: 0.65rem;
}

.jp-single-film-blurb p:last-child {
    margin-bottom: 0;
}

.jp-single-film-blurb a {
    color: #c6b2f5;
}

.jp-bts-section {
    max-width: 1100px;
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.jp-bts-header {
    margin-bottom: 24px;
}

.jp-bts-header h2 {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.jp-bts-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.jp-bts-photos-gallery {
    --jp-row-height: 240px;
    padding: 0;
}

@media (max-width: 768px) {
    .jp-bts-videos-grid {
        grid-template-columns: 1fr;
    }

    .jp-bts-photos-gallery {
        --jp-row-height: 165px;
    }
}

/* ============================================
   MINIMAL-CHROME JUSTIFIED ROW PHOTO GALLERY
   Preserves exact native aspect ratios per row.
   No drop shadows, borders, or heavy overlays.
   ============================================ */

.jp-justified-gallery {
    --jp-row-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 40px;
    max-width: 2200px;
    margin: 0 auto;
}

/* Prevent final incomplete row from stretching unevenly */
.jp-justified-gallery::after {
    content: '';
    flex-grow: 999999999;
    min-width: 20%;
}

.jp-justified-item {
    position: relative;
    display: block;
    height: var(--jp-row-height);
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    cursor: zoom-in;
}

.jp-justified-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.jp-justified-item:hover img {
    opacity: 0.92;
}

/* Subtle PhotoSwipe v5 caption bar */
.pswp__jp-caption {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: min(760px, calc(100vw - 40px));
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.62);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

/* ============================================
   CURATED PORTFOLIO LOBBY (front-page.php)
   ============================================ */

/* Shorter Hero using same banner BG image */
.hero-section.jp-lobby-hero {
    min-height: 40vh;
}

.hero-section.jp-lobby-hero .container {
    padding: 64px 15px 34px;
}

.hero-section.jp-lobby-hero h1 {
    font-size: 4.2rem;
    margin-bottom: 0.5rem;
}

.hero-section.jp-lobby-hero h2 {
    font-size: 1.75rem;
    margin-bottom: 1.15rem;
}

.jp-hero-connect {
    margin-top: 0.35rem;
}

.jp-hero-connect-label {
    margin: 0 0 12px;
    font-size: 0.96rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-section .social-icons a {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.hero-section .social-icons a:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.jp-lobby-intro {
    padding: 34px 0 36px;
}

.jp-bio-scroll-cue {
    margin-top: 28px;
}

.jp-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.jp-scroll-indicator:hover {
    color: #ffffff;
}

.jp-scroll-indicator i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.jp-lobby-contact-anchor {
    scroll-margin-top: 110px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jp-lobby-contact-anchor.is-in-header {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Dual-Discipline Entry Buttons (Text-First Prominent Cards) */
.jp-lobby-disciplines {
    background: linear-gradient(to bottom, var(--streaming-dark) 0%, var(--streaming-darker) 100%);
    padding: 64px 0 84px;
}

.jp-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 0 60px;
    max-width: 1800px;
    margin: 0 auto;
}

.jp-entry-card {
    display: block;
    text-decoration: none;
    color: #ffffff;
}

.jp-entry-media {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.jp-entry-media .jp-entry-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.45s ease;
    z-index: 1;
}

.jp-entry-media .jp-entry-slide.is-active {
    opacity: 1;
}

.jp-entry-card:hover .jp-entry-media {
    transform: scale(1.02) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 38px rgba(62, 40, 112, 0.58);
}

.jp-entry-card:hover .jp-entry-media img {
    transform: scale(1.06);
}

.jp-entry-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    background: linear-gradient(
        135deg,
        rgba(30, 18, 58, 0.78) 0%,
        rgba(18, 14, 30, 0.72) 55%,
        rgba(64, 30, 56, 0.8) 100%
    );
    transition: background 0.3s ease;
}

.jp-entry-card:hover .jp-entry-overlay {
    background: linear-gradient(
        135deg,
        rgba(62, 40, 112, 0.7) 0%,
        rgba(20, 14, 36, 0.62) 55%,
        rgba(109, 56, 96, 0.74) 100%
    );
}

.jp-entry-title {
    display: block;
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 18px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.jp-entry-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.jp-entry-cta i {
    transition: transform 0.25s ease;
}

.jp-entry-card:hover .jp-entry-cta {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.jp-entry-card:hover .jp-entry-cta i {
    transform: translateX(5px);
}

/* ============================================
   UNIFORM SUBPAGE HERO HEADER (/film/ & /photography/)
   Uses main page sunset BG with a richer opaque purple-to-plum
   gradient overlay and incorporates the Selected showcase inside.
   ============================================ */

.hero-section.jp-subpage-hero {
    min-height: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.jp-subpage-hero--showcase {
    height: auto;
    min-height: 672px;
    display: flex;
    align-items: flex-start;
    padding: 74px 0 58px;
}

@media (min-width: 1101px) {
    .hero-section.jp-subpage-hero--showcase {
        height: clamp(672px, 49vw, 792px);
        min-height: 672px;
    }
}

.hero-section.jp-subpage-hero--showcase .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-section.jp-subpage-hero::after {
    background: linear-gradient(
        to bottom,
        rgba(34, 20, 66, 0.56) 0%,
        rgba(62, 40, 112, 0.78) 38%,
        rgba(96, 48, 92, 0.88) 76%,
        var(--streaming-dark) 100%
    );
}

.jp-subpage-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-section.jp-subpage-hero .container.jp-subpage-hero-titles {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 15px 28px;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.65);
}

.jp-hero-showcase-grid .jp-album-card {
    aspect-ratio: 16 / 9;
}

.hero-section.jp-subpage-hero .container {
    padding: 28px 15px;
}

.hero-section.jp-subpage-hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: normal;
}

.hero-section.jp-subpage-hero .jp-subpage-hero-titles h2 {
    font-size: 1.45rem;
    font-weight: 300;
    margin-bottom: 0;
    opacity: 0.94;
    white-space: normal;
}

.jp-hero-selected-wrap {
    margin-top: 6px;
}

.jp-hero-band-header {
    margin-bottom: 24px;
}

.jp-hero-selected-heading {
    font-size: 1.65rem !important;
    font-weight: 600 !important;
    color: #ffffff;
    letter-spacing: 0.01em;
    white-space: normal !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.jp-hero-showcase-grid .jp-film-title {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.jp-hero-showcase-grid .jp-film-meta {
    color: rgba(255, 255, 255, 0.82);
}

/* Warm sunset-orange hover glow for Selected cards against the purple hero backdrop */
.jp-hero-showcase-grid .jp-film-card:hover .jp-film-thumb,
.jp-hero-showcase-grid .jp-film-card:focus-visible .jp-film-thumb,
.jp-hero-showcase-grid .jp-album-card:hover,
.jp-hero-showcase-grid .jp-album-card:focus-visible {
    box-shadow:
        0 0 0 1.5px rgba(255, 168, 76, 0.72),
        0 10px 30px rgba(255, 132, 42, 0.55),
        0 0 42px rgba(255, 118, 32, 0.35);
}

/* Selected & All Archive Showcase Bands */
.jp-selected-band {
    margin-bottom: 12px;
}

.jp-band-header {
    margin-bottom: 32px;
    padding: 0 20px;
}

.jp-section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.jp-archive-divider {
    max-width: 1800px;
    height: 1px;
    margin: 54px auto 48px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.16) 20%, rgba(255, 255, 255, 0.16) 80%, transparent);
}

.jp-dark-filters .jp-filter-btn {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.jp-dark-filters .jp-filter-btn:hover,
.jp-dark-filters .jp-filter-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

/* Understated Site Footer with nav & compact social icons */
.jp-site-footer {
    padding: 20px 0 14px;
}

.jp-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.jp-site-footer .footer-nav {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .jp-albums-grid,
    .jp-photos-grid,
    .jp-film-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }

    .jp-entry-grid,
    .jp-photo-strip-grid {
        padding: 0 30px;
    }

    .jp-photo-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jp-justified-gallery {
        --jp-row-height: 230px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero-section.jp-lobby-hero {
        min-height: 28vh;
    }

    .hero-section.jp-lobby-hero .container {
        padding: 46px 15px 28px;
    }

    .hero-section.jp-lobby-hero h1 {
        font-size: 2rem;
    }

    .hero-section.jp-lobby-hero h2 {
        font-size: 1rem;
    }

    .sticky-header.has-primary-nav {
        padding: 10px 0;
    }

    .sticky-header.has-primary-nav .container {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .sticky-header.has-primary-nav .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 2px 0 0;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .jp-inner-main {
        padding-top: 108px;
    }

    .hero-section.jp-subpage-hero {
        min-height: 175px;
        height: 175px;
    }

    .hero-section.jp-subpage-hero--showcase {
        height: auto;
        min-height: 320px;
        display: block;
        padding: 36px 0 44px;
    }

    .hero-section.jp-subpage-hero .container.jp-subpage-hero-titles {
        min-height: auto;
        padding: 4px 15px 24px;
    }

    .hero-section.jp-subpage-hero h1 {
        font-size: 2.2rem;
    }

    .hero-section.jp-subpage-hero .jp-subpage-hero-titles h2 {
        font-size: 1.05rem;
    }

    .jp-entry-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 18px;
    }

    .jp-entry-overlay {
        padding: 22px;
    }

    .jp-entry-title {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .jp-photo-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        gap: 8px;
    }

    .jp-albums-grid,
    .jp-photos-grid,
    .jp-film-archive-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 22px;
    }

    .jp-justified-gallery {
        --jp-row-height: 180px;
        padding: 0 12px;
        gap: 6px;
    }

    .jp-modal-header-row {
        flex-direction: column;
    }

    .jp-lightbox {
        padding: 20px 14px;
    }

    .jp-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .jp-lightbox-prev {
        left: 10px;
    }

    .jp-lightbox-next {
        right: 10px;
    }
}
