.container-gallery{
    width: 90%;
    margin: 0 auto;
    flex: 1; /* Занять все доступное пространство, кроме footer */
    padding: 40px;
    text-align:center;
}
@media (max-width: 767px) {
    .container-gallery{
        padding: 20px;
    }
}

.gallery-section {
    background-color: var(--background);
    text-align: center;
}
/* Заголовок галереи */
.gallery-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #837068;
    font-weight: bold;
}

/* Элементы галереи */
@media (min-width: 768px) {
.gallery-item {
    background: var(--basic);
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 20px);
    height: 25vw;
}
}
@media (max-width: 767px) {
    .gallery-item {
        background: var(--basic);
        padding: 10px;
        margin: 10px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: 75vw;
        width: 82vw;
    }
}

/* Название фотографии */
.photo-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #444;
}


/* Контейнер "до/после" */
.container-before {
    position: relative;
    width: 100%;
    height: 88%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Масштабирование фото */
    user-select: none; /* Запрет выделения */
    pointer-events: none; /* Отключение кликов по изображениям */
}

.image-after {
    clip-path: inset(0 50% 0 0); /* Показывает половину изображения */
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--basic);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #837068;
    border: 2px solid #F1DAD099;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


