/* Basic variables for Digits website - Purple/Green theme */
:root {
    --primary: #7c3aed; /* Purple for digits */
    --secondary: #10b981; /* Green for highlights */
    --light: #f5f3ff;
    --dark: #1e293b;
    --gray: #64748b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --even: #3b82f6; /* Blue for even numbers */
    --odd: #ef4444; /* Red for odd numbers */
    --zero: #94a3b8; /* Gray for zero */
    --text-color: #1e293b;
    --bg-color: #f8fafc;
}

/* Reset and basic settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Visually hidden for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
header {
    background: linear-gradient(to right, var(--primary), #6d28d9);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    height: 50px;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow);
}

.hero h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item {
    background: var(--light);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Different colors for different stats */
.stat-item:nth-child(1) .stat-number { color: var(--primary); }
.stat-item:nth-child(2) .stat-number { color: var(--even); }
.stat-item:nth-child(3) .stat-number { color: var(--odd); }
.stat-item:nth-child(4) .stat-number { color: var(--secondary); }
.stat-item:nth-child(5) .stat-number { color: var(--zero); }

.stat-item div:last-child {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Digits Section */
.digits-section {
    padding: 2rem 0 3rem;
}

.digits-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.digits-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .digits-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .digits-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        max-width: 400px;
    }
}

.digit-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.digit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.digit-card.even {
    border-color: var(--even);
}

.digit-card.odd {
    border-color: var(--odd);
}

.digit-card.zero {
    border-color: var(--zero);
}

.digit-card.even:hover {
    background: var(--even);
    color: white;
}

.digit-card.odd:hover {
    background: var(--odd);
    color: white;
}

.digit-card.zero:hover {
    background: var(--zero);
    color: white;
}

.digit-card .digit {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    transition: var(--transition);
    color: #000000; /* Черный цвет цифры ВСЕГДА */
}

.even .digit {
    color: #000000 !important; /* Черный вместо var(--even) */
}

.odd .digit {
    color: #000000 !important; /* Черный вместо var(--odd) */
}

.zero .digit {
    color: #000000 !important; /* Черный вместо var(--zero) */
}

.digit-card:hover .digit {
    color: #ffffff !important; /* При наведении становится белым */
}

.digit-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark) !important; /* Темный цвет ВСЕГДА */
    transition: var(--transition);
}

.digit-card:hover .digit-name {
    color: rgba(255, 255, 255, 0.95) !important; /* При наведении белый с прозрачностью */
}

.digit-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.1);
    color: var(--dark);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Information Article */
.info-article {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.info-article h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-article h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.info-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark);
}

.info-article ul, .info-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-article li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-article strong {
    color: var(--primary);
}

.seo-block {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary);
}

.seo-block h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.keywords {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: white;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header.even {
    background: linear-gradient(to right, var(--even), #1d4ed8);
    color: white;
}

.modal-header.odd {
    background: linear-gradient(to right, var(--odd), #dc2626);
    color: white;
}

.modal-header.zero {
    background: linear-gradient(to right, var(--zero), #475569);
    color: white;
}

.digit-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.big-digit {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.digit-name {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-close:hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.modal-content {
    padding: 2rem;
}

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

.details-section {
    margin-bottom: 1.5rem;
}

.details-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.3rem;
}

.details-row {
    display: flex;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.details-label {
    font-weight: 700;
    width: 180px;
    min-width: 180px;
    color: var(--primary);
    font-size: 0.95rem;
}

.details-value {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.digit-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.digit-image-item {
    text-align: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.digit-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.digit-image-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.digit-image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.interesting-fact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.interesting-fact h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.interesting-fact p {
    color: #78350f;
    line-height: 1.6;
}

.digit-examples {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.digit-examples h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.example-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.example-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.example-word {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.example-translation {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
}

.footer-nav a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.copyright {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.projects {
    text-align: left;
    margin: 2rem 0;
    width: 100%;
    max-width: 800px;
}

.projects h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.projects ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.projects li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.projects a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.projects a:hover {
    text-decoration: underline;
    color: #86efac;
}

hr {
    border: none;
    border-top: 1px solid #475569;
    margin: 1.5rem 0;
    width: 100%;
}

.development {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.development a {
    color: var(--secondary);
    text-decoration: none;
}

.development a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.8rem 1.2rem;
    }
    
    .details-row {
        flex-direction: column;
    }
    
    .details-label {
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    .digit-details-grid {
        grid-template-columns: 1fr;
    }
    
    .digit-images {
        grid-template-columns: 1fr;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .big-digit {
        font-size: 4rem;
    }
    
    .digit-name {
        font-size: 1.5rem;
    }
    
    .info-article {
        padding: 2rem 1rem;
    }
    
    .info-article h2 {
        font-size: 1.5rem;
    }
    
    .info-article h3 {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .digits-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        max-width: 350px;
    }
    
    .digit-card {
        padding: 1rem 0.25rem;
    }
    
    .digit-card .digit {
        font-size: 2.2rem;
    }
    
    .digit-name {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .digit-label {
        font-size: 0.6rem;
        top: 3px;
        right: 3px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.digit-card {
    animation: fadeIn 0.5s ease forwards;
}

.digit-card:nth-child(2) { animation-delay: 0.05s; }
.digit-card:nth-child(3) { animation-delay: 0.1s; }
.digit-card:nth-child(4) { animation-delay: 0.15s; }
.digit-card:nth-child(5) { animation-delay: 0.2s; }
.digit-card:nth-child(6) { animation-delay: 0.25s; }
.digit-card:nth-child(7) { animation-delay: 0.3s; }
.digit-card:nth-child(8) { animation-delay: 0.35s; }
.digit-card:nth-child(9) { animation-delay: 0.4s; }
.digit-card:nth-child(10) { animation-delay: 0.45s; }

/* Optimization */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Language switcher styles */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.lang-btn.active {
    background: var(--secondary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Individual digit pages */
.digit-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.digit-page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.digit-page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.digit-highlight {
    color: var(--zero);
    font-weight: 800;
}

.digit-page-header .digit-type {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 600;
}

.digit-page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.digit-page-images {
    flex: 1;
    min-width: 300px;
}

.digit-page-info {
    flex: 2;
    min-width: 300px;
}

.digit-page-images .image-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.digit-page-images .image-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.digit-page-images .image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.digit-page-images .image-caption {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.digit-page-info h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.digit-page-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.digit-page-info ul, .digit-page-info ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.digit-page-info li {
    margin-bottom: 0.5rem;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-container th {
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
}

.table-container td {
    padding: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-container tr:nth-child(even) {
    background: var(--light);
}

.digit-page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.nav-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.nav-btn.prev {
    background: var(--gray);
}

.nav-btn.prev:hover {
    background: var(--dark);
}

/* All digits grid at the bottom of digit pages */
.all-digits-grid {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.all-digits-grid h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.all-digits-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

.all-digits-container::-webkit-scrollbar {
    height: 6px;
}

.all-digits-container::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 3px;
}

.all-digits-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.all-digits-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.digit-mini-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    flex: 0 0 auto;
    height: 80px;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.digit-mini-card.current {
    border-color: var(--primary);
    background: var(--light);
    transform: scale(1.05);
}

.digit-mini-card.even {
    border-color: var(--even);
}

.digit-mini-card.odd {
    border-color: var(--odd);
}

.digit-mini-card.zero {
    border-color: var(--zero);
}

.digit-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.digit-mini-card.even:hover {
    background: var(--even);
    color: white;
}

.digit-mini-card.odd:hover {
    background: var(--odd);
    color: white;
}

.digit-mini-card.zero:hover {
    background: var(--zero);
    color: white;
}

.digit-mini-card .mini-digit {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #000;
}

.digit-mini-card.current .mini-digit {
    color: var(--primary);
}

.digit-mini-card:hover .mini-digit {
    color: white;
}

.digit-mini-card .mini-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.digit-mini-card:hover .mini-name {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .digit-page-header h1 {
        font-size: 2rem;
    }
    
    .digit-page-content {
        flex-direction: column;
    }
    
    .digit-page-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .digit-page-images .image-item img {
        max-width: 80%;
    }
    
    .all-digits-container {
        gap: 8px;
    }
    
    .digit-mini-card {
        min-width: 60px;
        height: 70px;
        padding: 0.8rem 0.3rem;
    }
    
    .digit-mini-card .mini-digit {
        font-size: 1.5rem;
    }
    
    .digit-mini-card .mini-name {
        font-size: 0.75rem;
    }
}

/* For large screens - images on the left */
@media (min-width: 992px) {
    .digit-page-content {
        flex-direction: row;
    }
    
    .digit-page-images {
        flex: 1;
    }
    
    .digit-page-info {
        flex: 2;
    }
}

/* For small screens - images full width */
@media (max-width: 991px) {
    .digit-page-content {
        flex-direction: column;
    }
    
    .digit-page-images .image-item img {
        max-width: 100%;
    }
}