:root {
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --text-color: #ff0000;
    /* ЯДОВИТО-КРАСНЫЙ */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    /* УБИРАЕМ ПЕРЕМЕННУЮ ТЕЛЕГРАМА */
    background-color: #000000 !important;
    color: #ff0000 !important;
    /* КРАСНЫЙ ТЕКСТ ПРИНУДИТЕЛЬНО */
    font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* === ФИКС СКРОЛЛА === */
body.no-scroll {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
    z-index: 9999;
}

.gallery-container {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-bottom: 80px;
}

.image-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card img.loaded {
    opacity: 1;
}

/* СКЕЛЕТОН */
.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1c1c1e 25%, #2c2c2e 50%, #1c1c1e 75%);
    background-size: 200%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* МОДАЛКА */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-zoom-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 3000;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    color: #fff !important;
    /* Тут белый */
    z-index: 2500;
    pointer-events: none;
}

.prompt-text {
    font-size: 14px;
    max-height: 80px;
    overflow-y: auto;
    pointer-events: auto;
    color: #fff !important;
}