        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        h1 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.5em;
        }

        .trip-section {
            margin-bottom: 50px;
            background: #dadada;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .trip-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #4D0202;
        }

        .trip-info {
            color: #7f8c8d;
            margin-bottom: 25px;
            font-size: 16px;
        }

        .thumbnails-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            justify-items: center;
        }

        .thumbnail {
            cursor: pointer;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 3px 12px rgba(0,0,0,0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: #fff;
            width: 100px;
            height: 100px;
        }

        .thumbnail:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .thumbnail img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            display: block;
        }

/* ЛАЙТБОКС */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(208,208,208,0.85); /* Ваш цвет #D0D0D0 с прозрачностью 85% */
    backdrop-filter: blur(5px); /* Размытие фона (современные браузеры) */
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 100px; /* Отступ сверху для кнопок */
    box-sizing: border-box;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1001;
}

.lightbox-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
}

.lightbox-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
}

.lightbox-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.lightbox-counter {
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: block;
}

.lightbox-caption {
    background: rgba(255,255,255,0.95);
    padding: 0.5em;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.4;
    text-align: center;
    width: 100%; /* Растягиваем на всю ширину контейнера */
    max-width: 100%;
    word-wrap: break-word;
    box-sizing: border-box; /* Учитываем padding в общей ширине */
    display: none; /* Скрыт по умолчанию */
    word-break: break-word;
    white-space: pre-line;
    align-self: stretch;
}

.lightbox-caption.show {
    display: block;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: calc(100% - 100px); /* Вычитаем padding-top */
    margin: 0 auto; /* Убираем margin-top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333; /* Изменим цвет на темный, так как фон теперь светлый */
    font-size: 18px;
}

/* Навигация стрелками */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}