:root {
    --bg-color: #f0f2f5;
    /* Facebook-like light gray bg */
    --card-bg: #ffffff;
    --card-border: #e4e6eb;
    --text-main: #1c1e21;
    /* Facebook/Google dark text */
    --text-muted: #65676b;
    --accent: #166534;
    /* Professional Green */
    --accent-hover: #15803d;
    --accent-light: #dcfce7;
    --success: #10b981;
    --danger: #ef4444;
    --input-bg: #f3f4f6;

    /* Material Shadows */
    --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Max width */
    --max-width: 768px;
}

/* Basic CSS Reset and Typography */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    width: 100%;
}

/* Header */
.main-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-1);
    border-radius: 0 0 12px 12px;
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.main-header h1 a {
    color: var(--text-main);
    text-decoration: none;
}

.main-header h1 a span {
    color: var(--accent);
}

.main-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Material Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

/* Boards Grid */
.boards-list {
    margin-bottom: 2rem;
}

.boards-list h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.board-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--card-border);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.board-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
    color: inherit;
}

.board-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.board-card:hover .board-title {
    color: var(--accent);
}

.board-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Rules Section */
.rules {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--card-border);
}

.rules h2 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.rules ul {
    list-style-position: inside;
    color: var(--text-muted);
}

.rules li {
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert.danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* Material Forms */
.post-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--card-border);
}

.post-form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:hover {
    background: #e5e7eb;
}

.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Material Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

/* Ripple Effect */
.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* File Input */
input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 1.5rem;
    border: 2px dashed var(--card-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--input-bg);
    position: relative;
}

.file-upload-label:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* Drag and Drop Hover Active State */
.file-upload-label.drag-over {
    border: 3px dashed #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
    box-shadow: 0 0 0 4px #93c5fd, 0 8px 24px rgba(37, 99, 235, 0.2) !important;
    transform: scale(1.02);
    animation: pulse-drop-zone 1.2s infinite alternate ease-in-out;
}

@keyframes pulse-drop-zone {
    0% { border-color: #2563eb; box-shadow: 0 0 0 4px #93c5fd; }
    100% { border-color: #10b981; box-shadow: 0 0 0 8px #a7f3d0; color: #10b981 !important; }
}

/* Threads Feed */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.board-header h1 {
    font-size: 2rem;
    font-weight: 800;
}

.board-header p {
    color: var(--text-muted);
}

.thread {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--card-border);
}

.thread-image-container {
    flex-shrink: 0;
    width: 250px;
}

.thread-image-container img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: transform 0.2s;
}

.thread-image-container img:hover {
    transform: scale(1.02);
}

.thread-content {
    flex: 1;
}

.thread-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.author-name {
    color: var(--accent);
    font-weight: 700;
}

.thread-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.thread-text {
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-main);
}

.reply-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--input-bg);
    color: var(--text-main);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.reply-btn:hover {
    background: var(--card-border);
    color: var(--text-main);
}

/* Posts (Replies) */
.replies {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: var(--bg-color);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
}

.post-image {
    width: 150px;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-1);
}

.post-content {
    flex: 1;
}

/* Footer */
footer, .main-footer {
    text-align: center;
    padding: 1.25rem 1rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .boards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .thread {
        flex-direction: column;
        padding: 1rem;
    }

    .thread-image-container {
        width: 100%;
        max-width: 300px;
    }

    .post {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
        max-width: 200px;
    }
}

/* Intro Block */
.intro-block {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-1);
}

.intro-block h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.intro-block p {
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.faq-section h2 {
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

.faq-item summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    transition: background-color 0.2s;
    color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    background-color: var(--input-bg);
    border-bottom: 1px solid var(--card-border);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Expanded Rules */
.rules-list {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.rules-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Facebook-style Card Design */
.fb-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}

.fb-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fb-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-light, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fb-card-avatar::before {
    content: "person";
    font-family: 'Material Symbols Rounded';
    font-size: 1.4rem;
    font-weight: normal;
    font-style: normal;
    color: var(--accent);
}

.fb-card-header-info {
    display: flex;
    flex-direction: column;
}

.fb-card-author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.fb-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fb-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.fb-card-text {
    font-size: 1rem;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Full-width responsive main photo */
.fb-card-image-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 550px;
}

.fb-card-image-container img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: block;
}

.fb-card-image-container img:hover {
    transform: scale(1.01);
    filter: brightness(0.95);
}

.fb-card-actions {
    display: flex;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    justify-content: space-around;
}

.fb-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

.fb-action-btn:hover {
    background: var(--input-bg);
    color: var(--accent);
}

/* Comments section styling */
.fb-comments-section {
    padding-top: 0.5rem;
}

.fb-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Nested Comments spacing and visual indicator */
.fb-comment {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    min-width: 0;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fb-comment-avatar .avatar-icon::before {
    content: "person";
    font-family: 'Material Symbols Rounded';
    font-size: 1.1rem;
    font-weight: normal;
    font-style: normal;
    color: var(--text-muted);
}

.fb-comment-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fb-comment-bubble {
    background-color: var(--input-bg);
    border-radius: 18px;
    padding: 0.5rem 1rem;
    display: inline-block;
    max-width: 100%;
}

.fb-comment-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.fb-comment-text {
    font-size: 0.925rem;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
}

.fb-comment-image {
    margin-top: 0.5rem;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.fb-comment-image img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.fb-comment-actions {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    align-items: center;
}

.fb-comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.fb-comment-reply-btn:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* Comment Depths - limit visual nesting to avoid breaking layout */
.comment-depth-1 { margin-left: 0; }
.comment-depth-2 { 
    margin-left: 1.5rem; 
    border-left: 2px solid var(--card-border); 
    padding-left: 0.75rem; 
}
/* Stop indenting at level 3 to prevent UI overflow */
.comment-depth-3 { 
    margin-left: 0; 
    border-left: none; 
    padding-left: 0; 
}

@media (max-width: 768px) {
    .fb-comment {
        gap: 0.4rem;
        margin-top: 0.4rem;
    }
    .fb-comment-avatar {
        width: 24px;
        height: 24px;
    }
    .fb-comment-avatar .avatar-icon::before {
        font-size: 0.7rem;
    }
    .fb-comment-bubble {
        padding: 0.4rem 0.6rem;
    }
    .fb-comment-author {
        font-size: 0.8rem;
    }
    .fb-comment-text {
        font-size: 0.85rem;
    }
    .fb-comment-actions {
        font-size: 0.7rem;
        margin-left: 0.25rem;
        flex-wrap: wrap;
    }
    .comment-depth-2 {
        margin-left: 0.4rem;
        padding-left: 0.4rem;
    }
    
    /* Inline form mobile fixes */
    .fb-inline-reply-form {
        padding: 0.5rem;
    }
    .reply-body-row {
        flex-wrap: wrap;
    }
    .reply-textarea {
        width: 100%;
        flex: 1 1 100%;
        min-height: 40px;
    }
    .reply-author {
        width: 100%;
    }
    .reply-submit-btn {
        flex: 1;
    }
}

/* Modern Facebook-style Integrated Comment Form */
.fb-inline-reply-form {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.fb-primary-comment-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
    width: 100%;
}

.fb-primary-comment-form .reply-input-wrapper,
.fb-inline-reply-form .reply-input-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.fb-comment-box-container {
    background: var(--input-bg, #f0f2f5);
    border: 1px solid var(--card-border, #e4e6eb);
    border-radius: 18px;
    padding: 8px 12px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.fb-comment-box-container:focus-within {
    background: #ffffff;
    border-color: var(--accent, #166534);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

.reply-author-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent, #166534);
    padding: 2px 0 4px 0;
    margin-bottom: 2px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.reply-author-input::placeholder {
    color: var(--text-muted, #65676b);
    font-weight: 400;
}

.reply-textarea-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main, #050505);
    line-height: 1.4;
    min-height: 38px;
    padding: 4px 0;
    display: block;
    box-sizing: border-box;
}

.reply-box-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.reply-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
}

.reply-file-label:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.1);
}

.reply-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--accent, #166534);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.reply-submit-btn:hover {
    background-color: var(--accent-hover, #14532d);
}

.reply-submit-btn:active {
    transform: scale(0.96);
}

.reply-preview-img-container {
    position: relative;
    display: inline-block;
    max-width: 120px;
    margin: 6px 0;
}

.reply-preview-img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    display: block;
}

.reply-remove-img-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Fallback for missing images (Imágenes por defecto a tamaño completo) */
.missing-img {
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* --- REDISEÑO LAYOUT FACEBOOK --- */
.layout-facebook {
    background: #f0f2f5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-facebook .main-header {
    display: none; /* Ocultar el viejo header en este layout */
}

.layout-facebook > footer {
    display: none; /* Ocultar el viejo footer en body, ahora está en main-content */
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.top-bar-search-input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    background: var(--input-bg, #f0f2f5);
    border: 1px solid var(--card-border, #e4e6eb);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}

.top-bar-search-input:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light, #dcfce7);
}

.top-bar-search-form .search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.btn-create-post-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-create-post-header:hover {
    background-color: var(--accent-hover);
}

.btn-create-post-header:active {
    transform: scale(0.96);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-link img {
    height: 35px;
    width: auto;
    border-radius: 4px;
}

.logo-text span {
    color: var(--accent);
}

.mobile-menu-btn, .mobile-search-toggle {
    display: none;
    background: #e4e6eb;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-menu-btn:hover, .mobile-search-toggle:hover {
    background: #d8dadf;
}

.admin-badge {
    background: #fee2e2;
    color: var(--danger);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
}

.layout-container {
    display: flex;
    padding-top: 60px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.left-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 16px 10px;
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    border-right: 1px solid var(--card-border);
    z-index: 90;
    box-sizing: border-box;
}

.main-content {
    flex: 1 1 auto;
    margin-left: 280px;
    width: calc(100% - 280px);
    min-width: 0;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
    max-width: 680px;
    min-width: 0;
    padding: 20px 16px;
    margin: 0 auto;
    flex: 1 0 auto;
    box-sizing: border-box;
}

.sidebar-search {
    margin-bottom: 15px;
    padding: 0 8px;
}

.sidebar-search .search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-search input {
    border: none;
    background: transparent;
    padding: 6px;
    width: 100%;
    outline: none;
}

.sidebar-link, .sidebar-board-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.sidebar-link:hover, .sidebar-board-link:hover {
    background: #e4e6eb;
}

.sidebar-link.active {
    background: #e6f2ff;
    color: #1877f2;
}

.sidebar-heading {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.sidebar-category summary {
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: var(--text-muted);
}
.sidebar-category summary::-webkit-details-marker {
    display: none;
}
.sidebar-category summary::after {
    content: "▼";
    float: right;
    font-size: 0.8rem;
    margin-top: 2px;
}
.sidebar-category[open] summary::after {
    content: "▲";
}

.board-short {
    color: var(--accent);
    font-weight: 700;
    min-width: 40px;
}

.board-name {
    font-weight: normal;
    color: var(--text-main);
}

.mobile-search-container {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 16px;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
}

.search-input-mobile {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.search-btn-mobile {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 104;
}

@media (max-width: 992px) {
    .left-sidebar {
        position: fixed;
        left: -320px;
        top: 60px;
        bottom: 0;
        width: 280px;
        background: #ffffff;
        z-index: 105;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        border-right: none;
    }
    
    .left-sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    .mobile-menu-btn, .mobile-search-toggle {
        display: flex;
    }
    
    .top-bar-search-form {
        display: none;
    }
    
    .logo-link .logo-text {
        font-size: 1.2rem;
    }
    
    .sidebar-search {
        display: none;
    }
    
    .layout-container {
        justify-content: center;
    }
}

/* --- ESTILOS DE MODAL GLOBAL --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fondo semitransparente oscuro */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close-modal {
    color: #9ca3af;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--danger);
    text-decoration: none;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- REGLAS DE RESPONSIVIDAD Y CONTENCIÓN MÓVIL --- */
.stories-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 10px 8px !important;
    }
    
    .top-bar {
        padding: 0 10px;
    }

    .top-bar-left, .top-bar-right {
        gap: 6px;
    }

    .logo-link img {
        height: 28px;
    }

    .fb-card {
        padding: 1rem 0.75rem;
        margin-bottom: 1.25rem;
        border-radius: 10px;
    }

    .fb-card-actions {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: space-around;
    }

    .fb-action-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .boards-grid, .fb-shortcuts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .fb-shortcut-card {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .fb-shortcut-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    .fb-shortcut-icon .material-symbols-rounded {
        font-size: 1.2rem !important;
    }

    .fb-shortcut-title {
        font-size: 0.85rem !important;
    }

    .fb-shortcut-desc {
        font-size: 0.72rem !important;
    }

    .board-card {
        padding: 0.75rem !important;
    }

    .category-block {
        flex: 1 1 100% !important;
        padding: 1rem !important;
    }
}

/* --- FACEBOOK SIDEBAR & ICON TILES --- */
.sidebar-icon-tile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-icon-tile .material-symbols-rounded {
    font-size: 1.25rem;
}

.icon-tile-home { background: linear-gradient(135deg, #1877f2, #0056b3); }
.icon-tile-feed { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.icon-tile-reports { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.cat-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cat-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.cat-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cat-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cat-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.cat-red { background: linear-gradient(135deg, #f43f5e, #be123c); }
.cat-green { background: linear-gradient(135deg, #10b981, #047857); }

.sidebar-divider {
    height: 1px;
    background: var(--card-border);
    margin: 12px 8px;
}

.sidebar-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 6px 10px;
    margin-top: 4px;
}

.sidebar-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-category summary {
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.sidebar-category summary:hover {
    background: #e4e6eb;
}

.sidebar-board-list {
    margin-top: 2px;
}

.sidebar-board-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 46px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.2s;
    text-decoration: none;
}

.sidebar-board-link:hover {
    background: #e4e6eb;
}

.board-badge {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    min-width: 32px;
}

/* --- HOMEPAGE FACEBOOK MENU & SHORTCUTS GRID --- */
.fb-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.fb-shortcut-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.fb-shortcut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--accent-light, #93c5fd);
}

.fb-shortcut-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.fb-shortcut-icon .material-symbols-rounded {
    font-size: 1.5rem;
}

.fb-shortcut-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fb-shortcut-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.fb-shortcut-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* FB Categories Menu Grid */
.fb-category-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex: 1 1 300px;
}

.fb-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--card-border);
}

.fb-category-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.fb-board-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--input-bg, #f0f2f5);
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.fb-board-item:hover {
    background: #ffffff;
    border-color: var(--accent-light, #93c5fd);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.fb-board-short {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent);
}

.fb-board-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.nsfw-badge {
    display: inline-block;
    margin-top: 4px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    width: fit-content;
}

/* ==========================================================================
   ESTILOS DE GALERÍA DE IMÁGENES ESTILO INSTAGRAM (3 COLUMNAS PC / 2 COLUMNAS MÓVIL)
   ========================================================================== */
.gallery-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.gallery-header-box {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e4e6eb);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    flex-shrink: 0;
}

.gallery-header-icon .material-symbols-rounded {
    font-size: 2rem;
}

.gallery-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main, #1c1e21);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.gallery-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted, #65676b);
    margin: 0;
}

.gallery-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-gallery-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--input-bg, #f0f2f5);
    color: var(--text-main, #1c1e21);
    border: 1px solid var(--card-border, #e4e6eb);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-gallery-action:hover {
    background: #e4e6eb;
    transform: translateY(-1px);
}

.gallery-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-filter-wrapper .filter-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.gallery-board-select {
    padding: 10px 16px 10px 36px;
    background: var(--input-bg, #f0f2f5);
    border: 1px solid var(--card-border, #e4e6eb);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main, #1c1e21);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.gallery-board-select:focus, .gallery-board-select:hover {
    border-color: #ec4899;
    background: #ffffff;
}

/* Instagram Grid Layout */
.instagram-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 en 3 en PC */
    gap: 14px;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--input-bg, #e4e6eb);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    z-index: 2;
}

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

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 12px;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-board-badge {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
}

.gallery-view-icon {
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Loading Spinner & Sentinel */
.gallery-loading-container {
    padding: 32px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.gallery-spinner {
    width: 32px;
    height: 32px;
    border: 3.5px solid var(--card-border, #e4e6eb);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: gallerySpin 0.8s linear infinite;
}

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

.gallery-loading-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted, #65676b);
}

/* Lightbox Enhancements for Gallery Navigation */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
}

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

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

.lightbox-counter-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10001;
    letter-spacing: 0.5px;
}

.lightbox-thread-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1877f2, #2563eb);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.2s;
}

.lightbox-thread-link:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Responsive Rules for Mobile (2 por 2) */
@media (max-width: 768px) {
    .instagram-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 en 2 en móvil */
        gap: 8px !important;
    }

    .gallery-container {
        padding: 12px 8px !important;
    }

    .gallery-header-box {
        padding: 14px 16px;
        margin-bottom: 14px;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-header-left {
        gap: 12px;
    }

    .gallery-header-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .gallery-header-icon .material-symbols-rounded {
        font-size: 1.5rem;
    }

    .gallery-title {
        font-size: 1.15rem;
    }

    .gallery-subtitle {
        font-size: 0.8rem;
    }

    .gallery-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .gallery-board-select {
        width: 100%;
    }

    .gallery-filter-wrapper {
        width: 100%;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev-btn {
        left: 8px;
    }

    .lightbox-next-btn {
        right: 8px;
    }
}