:root {
    --gap-size: 3px;
    --border-radius: 0px;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #ebebeb;
    --accent: #ffffff;
    --scrollbar-width: 4px;
    --scrollbar-color: rgba(255, 255, 255, 0.3);
    --nav-height: 60px;
}

/* Breakpoint */
@media (max-width: 768px) {
    :root {
        --nav-height: 50px;
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide system scrollbar globally (только на десктопе) */
@media (min-width: 769px) {
    * {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    *::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Page Container */
.page-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.category-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.nav-logo {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.1);
}

.nav-logo-text {
    display: inline-flex;
}

.logo-part-1 {
    animation: colorShift 4s ease-in-out infinite;
}

.logo-part-2 {
    animation: colorShiftVFX 5s ease-in-out infinite, neonFlicker 3s ease-in-out infinite;
}

.nav-logo:hover .logo-part-1 {
    animation: colorShiftFast 4s ease-in-out infinite;
}

.nav-logo:hover .logo-part-2 {
    animation: colorShiftFastVFX 3.5s ease-in-out infinite, neonFlickerFast 2s ease-in-out infinite;
}

@keyframes colorShiftVFX {
    0%, 100% {
        color: #999999;
    }
    16.66% {
        color: #4facfe;
    }
    33.33% {
        color: #f093fb;
    }
    50% {
        color: #c471ed;
    }
    66.66% {
        color: #12c2e9;
    }
    83.33% {
        color: #ff6b9d;
    }
}

@keyframes colorShiftFastVFX {
    0%, 100% {
        color: #ffffff;
    }
    20% {
        color: #4facfe;
    }
    40% {
        color: #f093fb;
    }
    60% {
        color: #ff6b9d;
    }
    80% {
        color: #c471ed;
    }
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.4;
    }
    22% {
        opacity: 0.2;
    }
}

@keyframes neonFlickerFast {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.3;
    }
    21%, 56% {
        opacity: 0.15;
    }
}

@keyframes neonFlickerTitle {
    0%, 15%, 17%, 19%, 45%, 48%, 100% {
        opacity: 1;
    }
    16%, 18%, 46% {
        opacity: 0.35;
    }
    47% {
        opacity: 0.18;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-tabs {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 20px;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: colorShift 4s ease-in-out infinite;
}

.nav-tab:hover {
    color: var(--text-primary);
    animation: colorShiftFast 4s ease-in-out infinite;
}

.nav-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    animation: colorShiftActive 6s ease-in-out infinite;
}

.nav-tab[data-action="contacts"] {
    border-bottom: none !important;
}

.nav-tab[data-action="contacts"]:hover {
    color: var(--text-primary);
}

@keyframes colorShift {
    0%, 100% {
        color: #999999;
    }
    16.66% {
        color: #ff6b9d;
    }
    33.33% {
        color: #c471ed;
    }
    50% {
        color: #12c2e9;
    }
    66.66% {
        color: #f093fb;
    }
    83.33% {
        color: #4facfe;
    }
}

@keyframes colorShiftFast {
    0%, 100% {
        color: #ffffff;
    }
    20% {
        color: #ff6b9d;
    }
    40% {
        color: #c471ed;
    }
    60% {
        color: #12c2e9;
    }
    80% {
        color: #f093fb;
    }
}

@keyframes colorShiftActive {
    0%, 100% {
        color: #ffffff;
        border-bottom-color: #ffffff;
    }
    16.66% {
        color: #ff6b9d;
        border-bottom-color: #ff6b9d;
    }
    33.33% {
        color: #c471ed;
        border-bottom-color: #c471ed;
    }
    50% {
        color: #12c2e9;
        border-bottom-color: #12c2e9;
    }
    66.66% {
        color: #f093fb;
        border-bottom-color: #f093fb;
    }
    83.33% {
        color: #4facfe;
        border-bottom-color: #4facfe;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 12px;
    }

    .nav-logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-logo {
        gap: 8px;
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .nav-tabs {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: 280px;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px;
        gap: 0;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-tabs.active {
        transform: translateX(0);
    }

    .nav-tab {
        width: 100%;
        text-align: left;
        font-size: 14px;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .nav-tab:last-child {
        border-bottom: none !important;
    }

    .nav-tab.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-left: 3px solid var(--accent) !important;
        padding-left: 9px;
    }

    .nav-tab[data-action="contacts"] {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: none !important;
    }
}

/* Gallery Container */
.gallery-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-primary);
    line-height: 0;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--nav-height);
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background-image: url('../BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.about-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.about-section[data-has-video="true"] {
    background-image: none;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.793);
    z-index: 1;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    /* Мягкая тень */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.about-image img,
.about-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.about-text {
    line-height: normal;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.title-part-1 {
    animation: colorShift 4s ease-in-out infinite;
}

.title-part-2 {
    animation: colorShiftVFX 5s ease-in-out infinite, neonFlickerTitle 3.5s ease-in-out infinite;
}

.about-description {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
    max-width: 700px;
}

/* Контейнер кнопок соцсетей */
.social-links {
    display: flex;
    gap: 16px;  /* Расстояние между кнопками */
    align-items: center;
}

/* Кнопки соцсетей (десктоп) */
.social-btn {
    width: 48px;   /* Ширина кнопки */
    height: 48px;  /* Высота кнопки */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Иконки внутри кнопок соцсетей */
.social-btn svg {
    width: 24px;   /* Размер иконки */
    height: 24px;  /* Размер иконки */
    transition: transform 0.3s ease;
}

/* Эффект при наведении на кнопку */
.social-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Увеличение иконки при наведении */
.social-btn:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* Разрешаем скролл body для работы pull-to-refresh */
    html {
        overflow-y: scroll;
        overflow-x: hidden;
    }

    body {
        overflow-y: visible;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }

    .page-container {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* gallery-container становится обычным блоком на мобильных */
    .gallery-container {
        padding-top: var(--nav-height);
        overflow: visible;
        flex: 1;
        height: auto;
    }

    /* Оставляем стандартный системный скроллбар на мобильных */

    .about-section {
        padding: 20px 20px 40px 20px;
        margin-top: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .about-image {
        width: 300px;
        height: 200px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .about-description {
        font-size: 16px;
        margin: 0 auto 20px auto;
    }

    /* Центрирование кнопок соцсетей на мобильных */
    .social-links {
        justify-content: center;
    }

    /* Размер кнопок соцсетей на мобильных */
    .social-btn {
        width: 44px;   /* Ширина кнопки (мобильные) */
        height: 44px;  /* Высота кнопки (мобильные) */
    }

    /* Размер иконок на мобильных */
    .social-btn svg {
        width: 22px;   /* Размер иконки (мобильные) */
        height: 22px;  /* Размер иконки (мобильные) */
    }
}

/* Gallery Grid */
.gallery-grid {
    padding: 20px;
    min-height: 100%;
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 20px;
}

.category-header {
    margin-bottom: 20px;
    line-height: normal;
    text-align: center;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.category-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/*Размер сетки элементов в галерее*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--gap-size);
}

@media (max-width: 768px) {
    .gallery-grid {
        padding: 12px;
    }

    .category-section {
        margin-bottom: 40px;
    }

    .category-header {
        margin-bottom: 12px;
    }

    .category-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .category-subtitle {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, opacity 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    opacity: 0.8;
}

/* Плавное появление миниатюры при загрузке */
.gallery-item.loaded {
    opacity: 1;
}

/* Индикатор загрузки миниатюры из видео */
.gallery-item[data-is-video-thumbnail="true"]:not(.loaded)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gallery-item-empty {
    background-color: transparent !important;
    cursor: default;
    pointer-events: none;
}

.gallery-item-empty:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
}

/* Кнопка "Назад" в конце каждой категории */
.gallery-back-button {
    background-color: var(--bg-secondary) !important;
    background-image: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gallery-back-button:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.back-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.gallery-back-button:hover .back-button-content {
    color: var(--text-primary);
}

.back-button-content svg {
    stroke: currentColor;
}

.back-button-content span {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Video indicator */
.gallery-item[data-type="video"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item[data-type="video"]:hover::before {
    opacity: 1;
}

.gallery-item[data-type="video"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #000;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item[data-type="video"]:hover::after {
    opacity: 1;
}

/* Custom Scrollbar */
.custom-scrollbar {
    position: fixed;
    right: 4px;
    width: var(--scrollbar-width);
    background-color: var(--scrollbar-color);
    border-radius: calc(var(--scrollbar-width) / 2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.custom-scrollbar.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Отключаем кастомный скроллбар на мобильных - используем стандартный */
    .custom-scrollbar {
        display: none !important;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    display: none !important;
}

/* Контейнер для кнопок управления лайтбоксом */
.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Общие стили для всех кнопок в лайтбоксе */
.lightbox-close-inline,
.lightbox-nav-button {
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    flex-shrink: 0;
}

/* Кнопки навигации имеют фиксированную ширину для равномерности */
.lightbox-nav-button {
    min-width: 150px;
}

/* Иконки в кнопках - фиксированный размер */
.lightbox-close-inline svg,
.lightbox-nav-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lightbox-close-inline:hover,
.lightbox-nav-button:hover:not(.disabled) {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* Стили для неактивных кнопок навигации */
.lightbox-nav-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-close-text,
.lightbox-nav-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 95vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.lightbox-content::-webkit-scrollbar {
    width: 6px;
}

.lightbox-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.lightbox-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lightbox-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-media {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 90vw;
    max-height: 70vh;
    display: block;
    border-radius: var(--border-radius);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.lightbox-media img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.lightbox-media video {
    width: auto;
    height: auto;
}

.lightbox-description {
    max-width: 90vw;
    overflow-y: auto;
    padding: 16px 24px;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    line-height: normal;
    margin-bottom: 20px;
}

.lightbox-description p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.lightbox-description::-webkit-scrollbar {
    width: 6px;
}

.lightbox-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.lightbox-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lightbox-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }

    .lightbox-controls {
        flex-direction: row;
        gap: 10px;
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }

    .lightbox-close-inline,
    .lightbox-nav-button {
        padding: 0;
        font-size: 14px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        max-width: none;
    }

    /* Скрываем текст на мобильных, оставляем только иконки */
    .lightbox-close-text,
    .lightbox-nav-text {
        display: none;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-media {
        margin-bottom: 16px;
    }

    .lightbox-media img,
    .lightbox-media video {
        max-width: 95vw;
        max-height: 65vh;
    }

    .lightbox-description {
        max-width: 95vw;
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .lightbox-description p {
        font-size: 13px;
    }
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 60px);
    gap: 16px;
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    color: var(--text-secondary);
    font-size: 14px;
}

