/* ==========================================================================
   Ultra-Compact Gallery Theme - Smartphone Streamlined Engine
   ========================================================================== */

* { box-sizing: border-box; }

html {
    /* Enables a smooth scrolling glide transition when jumping to anchor target points */
    scroll-behavior: smooth;
    /* Keeps anchor placement clean beneath sticky headers if necessary */
    scroll-padding-top: 10px; 
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0b0d;
    color: #e3e8fc;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

.main-header {
    background-color: #121216;
    padding: 0.6rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #22222a;
}

.responsive-banner {
    max-height: 50px;
    width: auto;
    max-width: 100%;
}

/* ==========================================================================
   Compact Grid/Flex Framework
   ========================================================================== */

.site-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 1rem;
}

.sidebar {
    width: 100%;
    background-color: #121216;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #22222a;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.25rem;
    background-color: #1c1c22;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e3e8fc;
}

.nav-menu a.active {
    background-color: #38bdf8;
    color: #0b0b0d;
}

.social-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #22222a;
}

.social-icon {
    font-size: 1.2rem;
    padding: 0.2rem;
    transition: transform 0.2s;
}
.social-icon:hover { transform: scale(1.15); }
.fb { color: #1877F2; }
.ig { color: #E4405F; }
.ln { color: #0A66C2; }

/* ==========================================================================
   Fluid Touch Carousel Core Layout Rules
   ========================================================================== */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 0.5rem auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #121216;
    border: 1px solid #22222a;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Ensure container links occupy full element canvas space */
.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    padding: 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background-color: #121216;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #334155;
    transition: background-color 0.2s;
    cursor: pointer;
}

.dot.active {
    background-color: #38bdf8;
}

/* ==========================================================================
   Content Stream, Media Constraints & Card Padding
   ========================================================================== */

.content-stream {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-card, .reviews-split-section {
    background-color: #121216;
    border: 1px solid #22222a;
    border-radius: 8px;
    padding: 0.8rem;
}

.portfolio-card h2, .reviews-split-section h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.compact-badge {
    background-color: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.event-text {
    font-size: 0.75rem;
    color: #94a3b8;
}

.compact-text {
    font-size: 0.85rem;
    margin: 0.4rem 0;
    color: #cbd5e1;
}

.media-container img, .poster-column img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 4px;
    margin: 0.4rem auto;
    display: block;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-width: 600px;
    margin: 0 auto;
}

.media-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0.6rem auto;
    border-radius: 4px;
    width: 100%;
    max-width: 480px;
}

.video-responsive iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.links-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.inline-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid #22222a;
    padding-top: 0.4rem;
    margin-top: 0.4rem;
}

.screenings-history ul {
    margin: 0;
    padding-left: 1.2rem;
}
.screenings-history li {
    margin-bottom: 0.2rem;
}

.split-layout { display: flex; flex-direction: column; gap: 0.5rem; }
.compact-quotes blockquote {
    margin: 0 0 0.6rem 0;
    padding-left: 0.6rem;
    border-left: 2px solid #334155;
    font-size: 0.8rem;
}
.compact-quotes cite {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
}

.items-bulleted {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.main-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #475569;
}

/* ==========================================================================
   Responsive Tablet & Large Monitor Expanders
   ========================================================================== */
@media (min-width: 800px) {
    .site-wrapper { flex-direction: row; padding: 1rem; gap: 1.5rem; }
    .sidebar { width: 220px; position: sticky; top: 15px; height: fit-content; }
    .nav-menu ul { grid-template-columns: 1fr; }
    .social-strip { flex-direction: row; }
    .media-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .split-layout { flex-direction: row; }
    .poster-column { width: 35%; }
    .quotes-column { width: 65%; }
    .portfolio-card h2 { font-size: 1.4rem; }
}