/* Общие стили для страницы */
body {
    margin: 0;
    padding: 0;
    background: #ddd; /* серый фон */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.photo-text-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: transparent;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Левая колонка: фото */
.photo-column {
    position: relative;
    width: 50%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Обрезаем всё, что выходит за пределы блока */
}

/* Фото */
.photo-viewer img {
    width: 100%;       /* Заполняем по ширине блока */
    height: 100%;      /* Заполняем по высоте блока */
    object-fit: cover;  /* Сохраняем пропорции, обрезая лишнее по высоте */
    border-radius: 0;   /* Можно оставить без скругления */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Стрелки навигации */
.photo-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.photo-navigation a {
    pointer-events: all;
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.2s;
}

.photo-navigation a:hover {
    background: rgba(0,0,0,0.6);
}

/* Правая колонка: текст */
.text-column {
    width: 50%;
    background: #fff; /* белый блок */
    padding: 30px;
    overflow-y: auto;
}

.text-column h1, .text-column p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.5;
}

.text-column h1 {
    font-size: 24px;
}
