/* ========================================================
   PALLE — Direção de Arte & Identidade Visual Editorial
   Design System Autoral • Paleta: Preto, Branco & Amarelo
   Modo Escuro & Claro Suportados Integralmente
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Syne:wght@500;600;700;800&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&display=swap');

:root, [data-theme="light"] {
    --bg-primary: #fcfcfd;
    --bg-secondary: #f4f4f7;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f0f0f4;
    --bg-card: #ffffff;
    
    --text-main: #0c0d10;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    
    --accent: #F5C518;
    --accent-hover: #e5a93c;
    --accent-contrast: #090a0c;
    --accent-subtle: rgba(245, 197, 24, 0.15);
    --accent-glow: rgba(245, 197, 24, 0.25);
    
    --border-hairline: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.14);
    --border-accent: rgba(245, 197, 24, 0.6);

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    --header-bg: rgba(252, 252, 253, 0.92);
    --card-surface: #ffffff;
    
    --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #090a0c;
    --bg-secondary: #111317;
    --bg-surface: #16181e;
    --bg-surface-elevated: #1e2129;
    --bg-card: rgba(255, 255, 255, 0.02);
    
    --text-main: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #F5C518;
    --accent-hover: #ffcf29;
    --accent-contrast: #090a0c;
    --accent-subtle: rgba(245, 197, 24, 0.12);
    --accent-glow: rgba(245, 197, 24, 0.25);
    
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(245, 197, 24, 0.5);

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(9, 10, 12, 0.88);
    --card-surface: #121316;
}

/* ========================================================
   Alternância de Logo & Símbolo por Tema (Zero Flash / Instantâneo)
   ======================================================== */
html[data-theme="light"] .brand-logo-dark,
html[data-theme="light"] .brand-symbol-dark,
html:not([data-theme="dark"]) .brand-logo-dark,
html:not([data-theme="dark"]) .brand-symbol-dark {
    display: none !important;
}

html[data-theme="light"] .brand-logo-light,
html[data-theme="light"] .brand-symbol-light,
html:not([data-theme="dark"]) .brand-logo-light,
html:not([data-theme="dark"]) .brand-symbol-light {
    display: inline-block !important;
}

html[data-theme="dark"] .brand-logo-light,
html[data-theme="dark"] .brand-symbol-light {
    display: none !important;
}

html[data-theme="dark"] .brand-logo-dark,
html[data-theme="dark"] .brand-symbol-dark {
    display: inline-block !important;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Subtle Film Grain Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(245, 197, 24, 0.02) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 999;
}

::selection {
    background-color: var(--accent);
    color: #000000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.container-narrow {
    max-width: 960px;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background-color 0.3s, padding 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-svg {
    height: 28px;
    width: auto;
    display: block;
    color: var(--text-main);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--accent);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.06);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Header CTA Buttons */
.btn-client-access {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 9px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s var(--transition-fast);
}

.btn-client-access:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Client Portal Header Navigation */
.client-topbar-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.25s var(--transition-fast);
}

.client-topbar-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.client-topbar-logout {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.25s var(--transition-fast);
}

.client-topbar-logout:hover {
    border-color: var(--admin-danger, #ef4444);
    color: var(--admin-danger, #ef4444);
}

.mobile-drawer-client-btn {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 12px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-drawer-client-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-cta-btn {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background-color: var(--accent);
    color: var(--accent-contrast);
    border: 1px solid var(--accent);
    padding: 9px 18px;
    border-radius: 4px;
    transition: all 0.25s var(--transition-fast);
}

.header-cta-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    color: var(--text-main);
    z-index: 10001;
    transition: all 0.25s ease;
}

.mobile-toggle:hover {
    border-color: var(--accent);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-toggle.active span {
    background-color: var(--accent-contrast);
}

.mobile-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Drawer */
.mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-hairline);
    z-index: 9999;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    padding: 85px 24px 36px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer .nav-link {
    font-size: 17px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
    background: var(--bg-surface-elevated);
    color: var(--accent);
}

.mobile-drawer .nav-link::after {
    display: none;
}

/* ========================================================
   HERO EDITORIAL REDESENHADO (PRIMEIRA DOBRA CONTROLADA)
   ======================================================== */
.hero-editorial {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    border-bottom: 1px solid var(--border-hairline);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    width: 100%;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-kicker::before {
    content: '';
    width: 20px;
    height: 2px;
    background-color: var(--accent);
}

.hero-title-compact {
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-subtext {
    font-size: clamp(15px, 1.15vw, 17px);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-media-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
}

.hero-media-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
}

.hero-media-wrapper img,
.hero-media-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media-meta {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-surface);
    border-top: 1px solid var(--border-hairline);
}

.hero-media-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.hero-media-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: var(--accent-contrast);
    border: 1px solid var(--accent);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Sections */
.section-padding {
    padding: clamp(60px, 8vw, 120px) 0;
}

.section-header {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin-top: 14px;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s var(--transition-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
}

.project-thumb-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

.project-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.project-card:hover .project-thumb-frame img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-meta-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 8px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.project-card-sinopse {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

/* ========================================================
   ÁREA DO CLIENTE & GALERIAS DE ENTREGA
   ======================================================== */
.client-portal-header {
    background: var(--card-surface);
    border-bottom: 1px solid var(--border-hairline);
    padding: 32px 0;
    margin-bottom: 40px;
}

.client-portal-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.client-user-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.gallery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.gallery-card {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.gallery-card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

.gallery-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-cover img {
    transform: scale(1.04);
}

.gallery-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-counts-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-hairline);
}

/* Media Gallery Grid (Dentro de uma Galeria) */
.media-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.media-grid-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.media-grid-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: var(--shadow-card);
}

.media-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.25s ease;
}

.media-grid-item:hover .media-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent);
    color: #000;
}

.media-item-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.media-grid-item:hover .media-item-info-overlay {
    opacity: 1;
}

/* ========================================================
   LIGHTBOX MODAL STYLES (VANILLA JS COMPLETO)
   ======================================================== */
.palle-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.palle-lightbox-overlay.is-active {
    display: flex;
    opacity: 1;
}

.palle-lb-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 7, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.palle-lb-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px clamp(14px, 3vw, 36px);
}

.palle-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    padding-bottom: 12px;
}

.palle-lb-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.palle-lb-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.palle-lb-title {
    font-size: 14px;
    font-weight: 600;
}

.palle-lb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.palle-lb-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.palle-lb-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.palle-lb-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 0;
}

.palle-lb-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palle-lb-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    user-select: none;
}

.palle-lb-video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    background: #000;
}

.palle-lb-iframe {
    width: 80vw;
    height: 75vh;
    max-width: 1200px;
    border: none;
    border-radius: 6px;
}

.palle-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.palle-lb-nav:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

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

.palle-lb-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 10px;
}

.palle-lb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(245, 197, 24, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: palleSpin 0.8s linear infinite;
}

@keyframes palleSpin {
    to { transform: rotate(360deg); }
}

/* ========================================================
   FOOTER & RESPONSIVENESS
   ======================================================== */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-hairline);
    padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-sub {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-hairline);
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================================
   COMPONENTES EDITORIAIS & FORMULÁRIOS
   ======================================================== */

/* Formulários Públicos & Área do Cliente */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control-custom,
.form-control-admin,
.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
    box-sizing: border-box;
}

.form-control-custom:focus,
.form-control-admin:focus,
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    background: var(--bg-surface-elevated);
}

.form-control-custom::placeholder,
.form-control-admin::placeholder,
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit-editorial {
    width: 100%;
    background: var(--accent);
    color: var(--accent-contrast);
    border: 1px solid var(--accent);
    padding: 15px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s var(--transition-fast);
}

.btn-submit-editorial:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Flash Banners */
.flash-banner {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.flash-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

/* Página de Contato & Abas */
.contact-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: flex-start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    padding: 16px 20px;
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    transition: border-color 0.2s;
}

.contact-info-item:hover {
    border-color: var(--accent);
}

.contact-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.contact-tab-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-tab-content {
    display: none;
}

.contact-tab-content.active {
    display: block;
    animation: palleFadeIn 0.3s ease;
}

@keyframes palleFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Página Sobre & Manifesto */
.manifesto-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.manifesto-image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-card);
}

.manifesto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.director-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    width: fit-content;
}

.director-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.director-role {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Página de Serviços — Design Editorial & Cinema */
.services-hero-section {
    padding-top: clamp(120px, 15vh, 160px);
    padding-bottom: clamp(40px, 6vh, 60px);
    text-align: center;
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 20px;
    margin-bottom: 20px;
}

.services-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.services-hero-title {
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: -0.03em;
    max-width: 840px;
    margin: 0 auto 20px;
}

.services-hero-lead {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto 36px;
}

/* Quick Capabilities Overview Strip */
.services-quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: clamp(50px, 8vh, 80px);
}

.service-quick-card {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-quick-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.service-quick-num {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.service-quick-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

/* Alternating Editorial Service Cards */
.services-feed {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vh, 64px);
    margin-bottom: clamp(70px, 10vh, 100px);
}

.service-showcase-row {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    overflow: hidden;
    padding: clamp(24px, 3.5vw, 44px);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-showcase-row:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
}

.service-showcase-row.row-flipped {
    grid-template-columns: 1fr 1.25fr;
}

.service-showcase-row.row-flipped .service-showcase-content {
    order: 2;
}

.service-showcase-row.row-flipped .service-showcase-media {
    order: 1;
}

/* Media Framing - Controlled Proportions */
.service-showcase-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16 / 10;
    max-height: 320px;
    width: 100%;
    background: #000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.service-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase-row:hover .service-showcase-media img {
    transform: scale(1.04);
}

.service-media-watermark {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    pointer-events: none;
}

/* Content Column */
.service-meta-tag {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-meta-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.service-showcase-title {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.service-showcase-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Deliverables Chips */
.service-chips-wrap {
    margin-top: 18px;
    margin-bottom: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-hairline);
}

.service-chips-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.service-chip:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.service-chip-icon {
    color: var(--accent);
    font-weight: 800;
    font-size: 11px;
}

/* Action Buttons */
.service-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Process Section */
.process-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: clamp(60px, 8vh, 90px) 0;
    margin-bottom: clamp(70px, 9vh, 100px);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.process-step-card {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 24px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.process-step-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.9;
}

.process-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.process-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Tech Sheet Rigor */
.tech-sheet-box {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: clamp(32px, 5vw, 56px);
    margin-bottom: clamp(70px, 9vh, 100px);
}

.tech-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.tech-sheet-item {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.tech-sheet-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 6px;
}

.tech-sheet-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.tech-sheet-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Bottom CTA Banner */
.services-cta-banner {
    background: linear-gradient(135deg, var(--card-surface) 0%, var(--bg-surface-elevated) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: clamp(36px, 6vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-editorial-card {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-editorial-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
}

/* Detalhe do Projeto */
.project-detail-hero {
    padding-top: 140px;
    padding-bottom: 90px;
}

.project-detail-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 24px 0;
    margin: 32px 0 40px;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.meta-item-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.meta-item-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.project-video-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.project-video-player-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.project-story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: flex-start;
}

.project-narrative-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-narrative-text p {
    margin-bottom: 20px;
}

.tech-sheet-box {
    background: var(--card-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 28px;
}

.tech-sheet-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

.tech-sheet-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

.gallery-staggered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ========================================================
   RESPONSIVIDADE & MEDIA QUERIES (PERFEITO PARA CELULARES)
   ======================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .manifesto-grid,
    .service-editorial-card,
    .contact-editorial-grid,
    .project-story-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-cta-btn {
        display: none !important;
    }
    .mobile-toggle {
        display: inline-flex;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .gallery-staggered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hero-editorial {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    /* Universal safeguard for inline 2-col grids */
    [style*="grid-template-columns: 1.3fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .services-quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-showcase-row,
    .service-showcase-row.row-flipped {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .service-showcase-row.row-flipped .service-showcase-content {
        order: 1;
    }
    .service-showcase-row.row-flipped .service-showcase-media {
        order: 2;
    }
    .service-showcase-media {
        max-height: 240px;
        aspect-ratio: 16 / 9;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-sheet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .services-quick-nav {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .tech-sheet-grid {
        grid-template-columns: 1fr;
    }
    .service-actions-row .btn-primary,
    .service-actions-row .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .service-showcase-media {
        max-height: 200px;
    }
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    .hero-title-compact {
        font-size: clamp(30px, 8.5vw, 42px);
    }
    .hero-actions-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-actions-row .btn-primary,
    .hero-actions-row .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .header-actions .btn-client-access .btn-client-label {
        display: none;
    }
    .header-actions .btn-client-access {
        padding: 9px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
    .client-topbar-link,
    .client-topbar-logout {
        padding: 6px 10px;
        font-size: 10px;
        gap: 5px;
    }
    .media-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-cards-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .project-detail-hero {
        padding-top: 100px;
    }
    .palle-lb-actions span {
        display: none;
    }
}

@media (max-width: 440px) {
    .client-topbar-link span,
    .client-topbar-logout span {
        display: none;
    }
    .client-topbar-link,
    .client-topbar-logout {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .header-actions {
        gap: 8px;
    }
}


