@media screen and (max-width: 1700px) {
 
}

@media screen and (max-width: 1300px) {
 
}

@media screen and (max-width: 800px) {

}
#family {
    /*--primary-color: #333;
    --secondary-color: #eee;*/
    --background-color: #D9D9D9;
    --header-color: #921a21;
    --text-color: #615d5a;
    --text-light: #efece0;
    --main-font: 'OLDT', sans-serif; /* Основной шрифт */
    --beauty-font: 'OLDT', sans-serif; /* Шрифт для заголовков */
    --secondary-font: 'Hagin', sans-serif; /* Второй шрифт */
}
#family{
    font-family: var(--main-font);
    font-size: 15px;
    line-height: 120%;
    color: var(--text-color);
        overflow: hidden;

}
#family .title_text{
   font-family: var(--beauty-font);
    font-size: 32px;
    line-height: 120%;
    color: var(--header-color);
    text-transform: uppercase;
    padding-bottom: 30px;
}
#family  .info-plan__place{
    width: 80%;
    margin: auto;
}
#family .descr_text{
    font-family: var(--main-font);
    font-size: 15px;
    line-height: 120%;
    color: var(--text-color);
}
#family .info-date, #family #plan,#family #details,#family #linkblock, #family .footer  {
        background-image: url(../../../../images/sites/family/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 70px 5% 50px;
}
#family  #playButton{
        cursor: pointer;
    width: 50px;
    margin: auto;
    padding: 10px 0;
}
#family  #music-text{
        font-size: 14px;
}
#family .info-date .title_text , #family #plan .title_text ,#family #details .title_text ,#family #linkblock .title_text , #family .footer .title_text {
color: var(--text-light)
}
 #family .info-date .descr_text, #family #plan .descr_text,#family #details .descr_text,#family #linkblock .descr_text, #family .footer .descr_text {
 color: var(--text-light)
 }
  #family .timetable__block img{
    width: 25px;
    margin: auto;
    padding: 30px 0;
 }
 #family .timetable__block-time{
    text-transform: uppercase;
    font-size: 32px;
 }
 #family .timetable__block-name{
    padding: 10px 0;
    text-transform: uppercase;
    font-size: 24px;
 }
 #family .timetable__block-descr{
    font-size: 14px;
    line-height: 100%;
 }
 #family .details-block img{
        width: 40px;
    margin: auto;
    padding: 30px 0;
 }
 #family  #dresscode{
        padding: 70px 5%;
 }
  #family  .dresscode__row{
        display: flex;
    gap: 8px;
    justify-content: center;
 }
 #family .places{
        padding: 70px 5%;
}
 /* Стили для слайдера дресс-кода */
#family  .dresscode-foto {
    display: flex !important; /* Делаем гибким контейнером */
    overflow-x: auto; /* Включаем горизонтальную прокрутку */
    scroll-snap-type: x mandatory; /* Включаем эффект "прилипания" */
    scroll-behavior: smooth; /* Плавная прокрутка */
    -webkit-overflow-scrolling: touch; /* Плавность для iOS */
    gap: 15px; /* Расстояние между фото */
    padding: 10px 20px 30px; /* Отступы, чтобы слайдер не лип к краям */
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}

/* Скрываем скроллбар в Chrome, Safari, Edge */
#family  .dresscode-foto::-webkit-scrollbar {
    display: none;
}

#family  .dresscode-foto img {
    flex: 0 0 75%; /* Каждое фото занимает 75% ширины экрана (чтобы было видно край следующего) */
    max-width: 300px; /* Максимальная ширина одного фото */
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* Скругление углов (по желанию) */
    scroll-snap-align: center; /* Фото центрируется при остановке скролла */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Легкая тень */
}

/* Адаптивность для десктопа */
@media screen and (min-width: 801px) {
    #family  .dresscode-foto {
        justify-content: center; /* Центрируем, если фото мало */
        overflow-x: hidden; /* На больших экранах можно выключить скролл, если фото влезают */
        flex-wrap: wrap; /* Или оставить в ряд */
    }
   #family .dresscode-foto img {
        flex: 0 0 18%; /* На ПК показываем по 5 в ряд */
        scroll-snap-align: none;
    }
}
/* Исправленный блок для компьютеров */
@media screen and (min-width: 801px) {
   #family .dresscode-foto {
        display: flex !important;
        flex-direction: row !important; /* Строго в ряд */
        flex-wrap: nowrap !important; /* Запрещаем перенос на новую строку */
        justify-content: flex-start; /* Начинаем от правого края (так как у вас выравнивание в коде вправо) */
        overflow-x: auto; /* Включаем скролл, если фото не влезают */
        padding: 20px 0;
    }

    #family  .dresscode-foto img {
        /* Принудительно задаем ширину, чтобы сбросить глобальные стили шаблона */
        width: 250px !important; 
        min-width: 250px !important; 
        max-width: 250px !important;
        
        height: 350px !important; /* Можно задать фиксированную высоту для аккуратности */
        object-fit: cover; /* Чтобы фото не искажалось */
        flex-shrink: 0 !important; /* Запрещаем картинкам сжиматься */
        margin-bottom: 0 !important;
        scroll-snap-align: start;
    }
}

/* Добавим стиль для самого контейнера, чтобы он не схлопывался */
#family  .dresscode_woman, #family  .dresscode_man {
    width: 100%;
    overflow: hidden;
}

/* Контейнер для позиционирования стрелок */
#family  .slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px; /* как и ваши секции */
    margin: 0 auto;
}

/* Общие стили для стрелок */
#family  .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон */
    color: #000; /* Черная стрелка */
    border: 1px solid #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
}

#family  .slide-arrow:hover {
    background: #000;
    color: #fff;
}

#family  .slide-arrow.prev {
    left: 10px;
}

#family .slide-arrow.next {
    right: 10px;
}

/* На мобильных устройствах стрелки можно сделать чуть меньше или скрыть, 
   так как там удобнее листать пальцем */
@media screen and (max-width: 800px) {
   #family  .slide-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
        opacity: 0.7;
        display: none;
    }
}

/* Чтобы стрелки не накладывались на другие элементы, если фото еще не загружены */
#family  .dresscode-foto {
    scroll-behavior: smooth;
    display: flex;
    overflow-x: auto;
    gap: 15px;
}
#family  .dresscode_woman h2, #family  .dresscode_man h2{
color: var(--header-color);
    text-transform: uppercase;
    font-size: 24px;
    padding-top: 30px;
}

#family p{
    margin: 0;
}
#family  .registration_title_text, #family  .banquet_title_text  {
    font-size: 18px;
    padding-bottom: 10px;
}
#family #registration-time, #family  #banquet-time{
    font-size: 20px;
    text-transform: uppercase;
    color: var(--header-color);
        padding: 20px 0;
}
#family  .places, #family  #questions{
        padding: 70px 5% 50px;
}
#family  .places img{
    width: 80%;
    margin: 20px auto;
}
#family  .dresscode_descr_text {
        padding-bottom: 20px;
}
#family  #place-two{
        padding-top: 50px;
}
#family  .question__text-mini{
    font-size: 12px;
    padding: 10px 0 15px;
}
#family  #question{
        display: flex
;
    text-align: left;
    flex-direction: column;
}
#family .question__label {
    display: flex
;
    align-items: center;
    gap: 5px;
}
#family  .question__string{
    margin-bottom: 10px;
}
#family  .question__label{
        margin-bottom: 0px;
}
#family  .question__unvisible {
    display: none;
}
#family .question__visible-radio {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
   
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid var(--header-color);
    border-radius: 50%;
}
#family   .question__unvisible:checked + .question__visible-radio::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--header-color);
    border-radius: 50%;
}
#family  .question__visible-checkbox {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
   
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid var(--header-color);
}
#family  .question__unvisible:checked + .question__visible-checkbox::before {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--header-color);
}
#family .question__string input[type="text"]{
    border: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--header-color);
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 0 !important;
}
#family .rsvp__button{
    background: var(--header-color);
    text-transform: uppercase;
    font-size: 18px;
    line-height: 100%;
    color: var(--background-color);
    padding: 15px 20px 10px;
    min-width: 200px;
    margin: 10px 0;
    border-radius: 10px;
}
#family #linkblock .rsvp__button{
    background: var(--background-color); 
    color: var(--header-color);
    display: flex;
    justify-content: center;
    text-align: right;
    margin: auto;
    margin-top: 10px;
    max-width: 600px;
}
#family   #rsvp .rsvp__button, #family   #details .rsvp__button{
     color: var(--header-color);
    background: var(--background-color);
    min-width: calc(50% - 5px);
    padding: 15px 0px 10px;
}
#family  .rsvp__buttons{
    display: flex
;
    gap: 10px;
    flex-direction: row;
}
#family  .welcome_title_text{
    font-size: 20px;
    text-align: left;
    border-bottom: 1px solid var(--background-color);
    width: fit-content;
    padding-bottom: 20px;
    margin-bottom: 40px;
}
#family  #welcome-text{
    text-align: left;
    padding-bottom: 100px;
}
#family .footer img{
        width: 50%;
    margin: auto;
    padding: 50px 0 20px;
}
#family  .footer__container {
    text-transform: uppercase;
    font-size: 32px;
    line-height: 140%;
}
#family  .timer__text{
        color: var(--text-color);
    text-transform: uppercase;
    font-size: 12px;
    padding-top: 10px;
}
#family  .counter {
    padding: 70px 5%;
}
#family  .timer__block-info{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#family .timer__number::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url(../../../../images/sites/family/timer.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: -1;
}
#family .header{
        padding: 30px 0;
}
#family #music{
        padding: 20px 0 30px;
}
#family  .timer__block {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    line-height: 60px;
}
#family  .bottom-inv{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}
#family  .date-main-small{
    font-family: var(--beauty-font);
    font-size: 24px;
}
#family  .img-block-inv{
    width: 30%;
}
#family  .header-blocks{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    width: 90%;
    margin: auto;
    gap: 5%;
}
#family .header-block-up {
        writing-mode: vertical-rl;
    transform: rotate(180deg);
    /* font-size: 10px; */
    /* color: #555; */
    /* margin-right: 10px; */
    /* letter-spacing: 1px; */
    /* text-transform: uppercase; */
    text-align: left;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#family  .header-block1{
        text-transform: uppercase;
    color: var(--header-color);
    font-size: 48px;
    line-height: 100%;
}
#family  .header-block2{

}
#family  .header-block-up2{
    display: flex;
    gap: 10px;
    flex-direction: column;
    max-width: 60%;
}
@media screen and (max-width: 1700px) {
 
}

@media screen and (max-width: 1300px) {
 
}

@media screen and (max-width: 800px) {
#family{
}
 #family .title_text{
}
#family .descr_text{
}
}

