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

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

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

}
#modern {
    /*--primary-color: #333;
    --secondary-color: #eee;*/
    --background-color: #f5f1ee;
    --header-color: #303030;
    --text-color: #303030;
    --main-font: 'cmu', sans-serif; /* Основной шрифт */
    --beauty-font: 'mak', sans-serif; /* Шрифт для заголовков */
    --secondary-font: 'cmu_ital', sans-serif; /* Второй шрифт */
}

#modern p{
    margin: 0;
}

#modern #home{
    
    height: calc(100vh - 70px);
}
#modern{
    font-family: var(--main-font);
    font-size: 24px;
    line-height: 120%;
    color: var(--text-color);
    background:var(--background-color);
}
#modern .header-img-mobile{
    display: none;
}
 #modern .title_text{
    font-family: var(--beauty-font);
    font-size: 64px;
    line-height: 120%;
    color: var(--text-color);
    
        text-transform: uppercase;
}

 #modern .title_text{
    font-family: var(--beauty-font);
    font-size: 64px;
    line-height: 120%;
    color: var(--text-color);
}

 #modern .ital_text{
    font-family: var(--secondary-font);
}
 
 #modern .info-invitation{
     max-width: 1050px;
    display: grid;
    -ms-grid-columns: calc(45% - 50px) 1fr;
    grid-template-columns: calc(45% - 50px) 1fr;
    gap: 50px;
    margin: 80px auto;
    height: calc(100% - 160px);
 }
 
#modern .welcome_title_text{
     
    text-transform: uppercase;
 }
 
 #modern .date-full-welcome{
    font-family: var(--beauty-font);
    font-size: 36px;
    line-height: 120%;
    text-transform: uppercase;
 }
 
 #modern .info-date__invitation{
         text-align: left;
    display: grid;
    gap: 30px;
    justify-items: start;
    align-content: center;
 }
 
#modern .info-date__check-in{
    max-width: 1050px;
    display: grid;
    -ms-grid-columns: calc(55% - 50px) 1fr;
    grid-template-columns: calc(55% - 50px) 1fr;
    gap: 50px;
    margin: 80px auto;
    height: calc(100% - 160px);
    align-items: center;
}
#modern .registration_title_text{
    
    text-transform: uppercase;
}
#modern .line-decoration{
border-bottom: 1px solid var(--header-color);
    width: 300px;
    margin: 26px 0 36px 0;
}

#modern .registration_descr_text, #modern .banquet_descr_text{
    
    margin-bottom: 36px;
}

#modern #registration-time, #modern #banquet-time{
    
    margin-top: 10px;
}
#modern  .dresscode-foto img{
        height: fit-content;
    display: block;
    width: 30%;
}
#modern .place-one-left{
    
    text-align: left;
}
#modern .details-block{
    max-width: 1150px;
    display: grid;
    -ms-grid-columns: calc(55% - 50px) 1fr;
    grid-template-columns: calc(55% - 50px) 1fr;
    gap: 50px;
    margin: 80px auto;
    padding: 0 50px;
    height: calc(100% - 160px);
    align-items: center;
}
#modern button{
    width: 300px;
    color: var(--header-color);
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--header-color);
    border-radius: 0px;
}
#modern .details-block-left{
    
    display: grid;
    gap: 10px;
    justify-items: start;
    align-content: center;
    text-align: left;
}

#modern #details-container{
    
    display: grid;
    gap: 20px;
    justify-items: start;
    align-content: center;
}
#modern .dresscode_descr_text{
    max-width: 850px;
    margin: 0 auto;
}
#modern .dresscode__colors{
    
    display: flex;
    gap: 20px;
    justify-content: center;
}
#modern .dresscode__color{
    max-width: 100px;
    max-height: 100px;
}

#modern .dresscode-foto{
    
    display: flex;
    gap: 20px;
    justify-content: center;
}

#modern .dresscode{
    
    display: flex;
    gap: 100px;
    flex-direction: column;
}
#modern .dresscode_common, #modern .dresscode_woman, #modern .dresscode_man{
    
    display: flex;
    gap: 32px;
    flex-direction: column;
}
#modern .rsvp{
background: var(--header-color);
    padding: 50px 0;
    }
    
   #modern .rsvp-block{
    max-width: 1050px;
    display: grid;
    -ms-grid-columns: calc(45% - 50px) 1fr;
    grid-template-columns: calc(45% - 50px) 1fr;
    gap: 100px;
    margin: 80px auto;
    height: calc(100% - 160px);
    align-items: center;
    }
    
    #modern .rsvp-block-right{
        
    text-align: left;
    margin-right: 50px;
    }
    
    #modern .rsvp-block-right h2{
        
    color: var(--background-color);
    }
    #modern .rsvp-block-right p{
        
    color: var(--background-color);
    
    }
   #modern #rsvp{
        
    margin-top: 40px;
}
#modern #rsvp input{
    width: 100%;
    border-radius: 0px;
    /* border: 1px solid var(--background-color); */
    background: #f5f5f540;
    font-family: var(--secondary-font);
    color: var(--header-color);
    text-transform: uppercase;
    font-size: 20px;
    /* line-height: 20px; */
    margin: 10px 0;
    height: 50px;
}
#modern .rsvp__buttons{
    
    display: flex;
    gap: 20px;
    margin-top: 45px;
}
    #modern #rsvp button {
    width: calc(50% - 10px);
    color: var(--header-color);
    text-transform: uppercase;
    background: var(--background-color);
    border: 1px solid var(--background-color);
    border-radius: 0px;
    font-family: var(--secondary-font);
    text-transform: uppercase;
    /* line-height: normal; */
}
    #modern .error-rsvp, #modern .rsvp-message{
        
    color: var(--background-color);
    }
    #modern #question .error-rsvp, #modern #question .rsvp-message{
        padding-bottom: 20px;
    color: var(--header-color);
    }
    #modern .timer__block{
        font-family: var(--beauty-font);
    font-size: 52px;
    line-height: 120%;
    color: var(--text-color);
    }
    
    #modern .timer__bloks{
        
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 50px auto;
    }
    
    #modern .timer{
        margin: 100px auto;
    }
    #modern .timer__block-info{
    padding: 20px 20px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    }
    
    #modern .question{
        
    padding: 100px 0;
    }
    
    #modern .question__bloks{
    width: 80%;
    margin: auto;
    max-width: 800px;
    }
    #modern .question__container{
            display: flex;
    gap: 40px;
    flex-direction: column;
    }
   #modern #question{
    display: flex;
    gap: 20px;
    flex-direction: column;
    text-align: left;
    }
    #modern #question input{
        
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--header-color);
    border-radius: 0px;
    }
    #modern #question fieldset{
    display: flex
;
    gap: 0px;
    flex-direction: column;
    }
    #modern #question button{
    width: 100%;    
    }
    #modern .question__visible-radio {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.645);
  border-radius: 50%;
  cursor: pointer;
  background-color: #fff; /* базовый белый цвет */
  transition: background-color 0.3s ease, border-color 0.3s ease; /* Добавляем transition */
}

#modern .question__unvisible:checked + .question__visible-radio {
  background-color: var(--header-color); /* Цвет выделения из переменной */
    border-color: var(--header-color);
}


#modern .question__visible-checkbox {
    display: inline-block;
    vertical-align: middle;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(0, 0, 0, 0.645);
    cursor: pointer;
    background-color: #fff;
     transition: background-color 0.3s ease, border-color 0.3s ease; /* Добавляем transition */
}
#modern .question__unvisible:checked + .question__visible-checkbox {
      background-color: var(--header-color); /* Цвет выделения из переменной */
        border-color: var(--header-color);
}

    #modern .question__unvisible:disabled + .question__visible-radio {
  border: 1px solid #444444;
  background-color: var(--primary-color);
}
#modern .question__unvisible:disabled:checked + .question__visible-radio {
    border-color: #fbf8ec;
     background-color: var(--header-color); /* Цвет выделения из переменной */
}

#modern .question__unvisible:disabled + .question__visible-checkbox {
  border: 1px solid #444444;
  background-color: #fbf8ec;
}
#modern .question__unvisible:disabled:checked+ .question__visible-checkbox {
   border-color: #fbf8ec;
       background-color: var(--header-color);
}

#modern .question__unvisible:focus + .question__visible-radio {
    box-shadow: 0 0 5px var(--header-color);
}
#modern .question__unvisible:focus + .question__visible-checkbox {
    box-shadow: 0 0 5px var(--header-color);
}
#modern .question__unvisible {
  font-family: inherit;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
  #modern  .question__label{
    display: flex;
    align-items: center;
    gap: 10px;
    }
     #modern  .question__input{
        font-family: var(--secondary-font);
    color: #000;
    text-transform: uppercase;
    font-size: 20px;
    }
    #modern .footer{
        
    padding: 0px 0 100px 0;
    }
    @media screen and (max-width: 1700px) {
 #modern{
    font-family: var(--main-font);
    font-size: 22px;
    line-height: 120%;
    color: var(--text-color);
}
 #modern .title_text{
    font-family: var(--beauty-font);
    font-size: 56px;
    line-height: 120%;
    color: var(--text-color);
}
 #modern .descr_text{
    font-family: var(--main-font);
    font-size: 22px;
    line-height: 120%;
    color: var(--text-color);
}
}

@media screen and (max-width: 1300px) {
 #modern{
    font-family: var(--main-font);
    font-size: 20px;
    line-height: 120%;
    color: var(--text-color);
}
 #modern .title_text{
    font-family: var(--beauty-font);
    font-size: 52px;
    line-height: 120%;
    color: var(--text-color);
}
 #modern .descr_text{
    font-family: var(--main-font);
    font-size: 20px;
    line-height: 120%;
    color: var(--text-color);
}
}

@media screen and (max-width: 800px) {
#modern{
    font-family: var(--main-font);
    font-size: 16px;
    line-height: 120%;
    color: var(--text-color);
    overflow: hidden;
}
    #modern .title_text {
        font-family: var(--beauty-font);
        font-size: 36px;
        line-height: 130%;
        color: var(--text-color);
    }
#modern .descr_text {
        font-family: var(--main-font);
        font-size: 16px;
        line-height: 120%;
        color: var(--text-color);
                margin: auto;
                text-align: center;
                padding-bottom: 35px;
    }
}
#modern .menu__link{
font-family: var(--secondary-font);
    font-size: 20px;
    text-transform: uppercase;
    line-height: 120%;
}
#modern .menu__links{
        width: 70%;
        max-width: 1000px;
}

#modern .header-blocks{
 max-width: 1050px;
    display: grid;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-columns: auto 1fr;
    gap: 50px;
    margin: 80px auto;
    height: calc(100% - 160px); 
        width: 80%;  
}

#modern .header-block-left{
    display: grid;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    
}
#modern .header-block-right{
    text-align: left;
    display: grid;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-rows: 1fr auto;
    
}

#modern .header-block-left-inside p{
    
    font-size: 72px;
    font-size: 72px;
    letter-spacing: 1.2px;
    line-height: 62px;
    margin: 0;
    font-family: var(--beauty-font);
}
#modern .header-block-left-inside{
  padding: 30px 20px;
    border-right: 1px solid black;  
}
#modern .header-block-right-inside p{
    font-family: var(--secondary-font);
    font-size: 20px;
    text-transform: uppercase;
    line-height: 120%;
 
}
#modern .header-block-right-inside p#groom, #modern .header-block-right-inside p#bride {
     font-family: var(--beauty-font);
    font-size: 62px;
    line-height: 120%;
    text-transform: uppercase;
 
}

#modern .header-block-right-inside p#groom{
    font-family: var(--beauty-font);
    font-size: 62px;
    line-height: 100%;
    text-transform: uppercase;
    margin: 20px auto 0;
}
#modern .header-block-right-inside p#bride{
    font-family: var(--beauty-font);
    font-size: 62px;
    line-height: 100%;
    text-transform: uppercase;
    margin: 0 auto 20px;
}

#modern .header-img{
    position: absolute;
    top: 100px;
    width: 850px;
    resize: 80%;
    right: 10%;
    top: 10vh;
}

#modern .timetable__block{
    
    display: flex;
    flex-direction: column;
    
    gap: 0;
}
#modern .timetable{
    max-width: 1050px;
    margin: 150px auto;
    width: 80%;
    
}
#modern .timetable__block-stroke{
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#modern .timetable__block-img img{
    max-width: 300px;
    width: 300px;
    max-height: 200px;
}
#modern .timetable__block-line{
    
    max-width: 40px;
}
#modern .timetable__block-texts{
        text-align: left;
    max-width: 500px;
    width: 500px;
    margin-left: 30px;
}
#modern .timetable__block-time, #modern .timetable__block-name{
    
    font-size: 36px;
    line-height: 130%;
    font-family: var(--beauty-font);
    text-transform: uppercase;
}
@media screen and (max-width: 1700px) {
 #modern .header-img{
    width: 750px;
}
}

@media screen and (max-width: 1300px) {
    #modern .header-img {
        position: absolute;
        top: 100px;
        right: 50px;
        width: 550px;
        top: 12vh;
    }
    #modern .menu__links {
    width: 90%;
    max-width: 1000px;
}
    #modern .info-invitation {
    max-width: 800px;
    display: grid
;
    -ms-grid-columns: calc(45% - 50px) 1fr;
    grid-template-columns: calc(45% - 50px) 1fr;
    gap: 50px;
    margin: 80px 5%;
    height: calc(100% - 160px);
    align-items: center;
}
#modern .info-date__invitation {
    text-align: left;
    display: grid
;
    gap: 15px;
    justify-items: start;
    align-content: center;
}
#modern .info-date__img img{
 max-width: 350px;   
 width: 100%;
}
#modern .places{
    
    max-width: 90%;
    margin: auto;
}

#modern .timetable {
    max-width: 850px;
    margin: 100px auto;
    width: 80%;
}
   #modern .title_text {
        font-family: var(--beauty-font);
        font-size: 32px;
        line-height: 120%;
        color: var(--text-color);
        text-align: center;
        margin: auto;
    }
     #modern   .timetable__block {
        grid-template-columns: repeat(6, 110px);
        margin: 0px 0 80px;
    }
    #modern .timetable__block-stroke {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
#modern .timetable__block-img img {
    max-width: 200px;
    width: 200px;
    max-height: 120px;
}
#modern .timetable__block-line {
    max-width: 25px;
}
#modern .timetable__block-texts {
    text-align: left;
    max-width: 400px;
    width: 400px;
    margin-left: 20px;
}
#modern .timetable__block-time, #modern .timetable__block-name {
    font-size: 26px;
    line-height: 130%;
    font-family: var(--beauty-font);
    text-transform: uppercase;
}
}

@media screen and (max-width: 800px) {
#modern #home {
    height: calc(100vh - 0px);
}
#modern .header-img-mobile {
    display: block;
}
#modern .header-blocks {
    max-width: 1050px;
    display: flex;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-columns: auto 1fr;
    gap: 0px;
   margin: 0px auto;
    height: calc(100% - 0px);
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 30px 60px 30px;
}
#modern .header-block-left {
    display: grid;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-rows: auto 1fr;
    /* height: 100%; */
    justify-content: start;
}
#modern .header-block-left-inside {
    padding: 10px 15px 50px 0px;
}
#modern .header-block-left-inside p {
    font-size: 96px;
    font-size: 72px;
    letter-spacing: 1.2px;
    line-height: 64px;
    margin: 0;
}
#modern .header-block-right {
    text-align: left;
    display: grid;
    -ms-grid-columns: 32.258065% 1fr;
    grid-template-rows: 1fr auto;
    justify-content: end;
}
#modern .header-block-right-inside p#groom {
    font-size: 64px;
    line-height: 120%;
    margin: 20px auto 0;
}
#modern .header-block-right-inside p#bride {
    font-size: 64px;
    line-height: 120%;
    margin: 0 auto 20px;
}
    #modern .header-img-mobile{
        position: absolute;
        top: 100px;
        right: 50px;
        width: 350px;
        resize: 80%;
        right: 5%;
        top: 30vh;
        width: 55%;
    }
    #modern .header-img{
        display:none;
    }
    #modern .info-invitation {
    max-width: 650px;
    display: flex;
    gap: 50px;
    margin: 80px 20px;
    height: calc(100% - 160px);
    flex-direction: column;
    text-align: center;
}
#modern .welcome-img{
    width: 80%;
    margin: auto;
}
#modern .info-date__invitation {
    /* text-align: left; */
    display: grid;
    gap: 30px;
    justify-items: start;
    align-content: center;
    text-align: center;
}
#modern .date-full-welcome {
    font-family: var(--beauty-font);
    font-size: 24px;
    /* line-height: 120%; */
    text-transform: uppercase;
    text-align: center;
    margin: auto;
}
#modern .info-date__check-in {
    max-width: 550px;
    display: flex;
    gap: 50px;
    margin: 80px 20px;
    align-items: center;
    flex-direction: column-reverse;
}
#modern .place-one-left {
    text-align: center;
}
#modern .line-decoration {
    width: 200px;
    margin: 26px auto 36px auto;
}
#modern button {
    width: 200px;
}
#modern .info-date__img{
    max-width: 350px;
    margin: auto;
}
#modern .timetable {
    max-width: 450px;
    margin: 50px auto 120px auto;
    width: 80%;
}
#modern .timetable__block {
    display: flex;
    flex-direction: column;
    gap: 55px;
    margin: 60px auto;
}
#modern .timetable__block-stroke {
    display: flex;
    gap: 20px;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
#modern  .timetable__block-img{
    
    margin: auto;
}
#modern .timetable__block-img img {
    max-width: 200px;
    width: 300px;
    max-height: 120px;
    width: 200px;
}
#modern .timetable__block-time, #modern .timetable__block-name {
    font-size: 20px;
    line-height: 130%;
}
#modern .timetable__block-descr{
    padding-top: 10px;
}
#modern .timetable__block-line {
    display: none;
}
#modern .timetable__block-texts {
    text-align: center;
    max-width: 400px;
    margin-left: 00px;
    width: 90%;
}
#modern .dresscode__colors {
    display: flex;
    gap: 15px;
}
#modern .dresscode__color {
    max-width: 55px;
    max-height: 55px;
}
#modern .dresscode {
    width: 90%;
    gap: 70px;
    margin: auto;
}
#modern .dresscode_common, #modern .dresscode_woman, #modern .dresscode_man {
    
    gap: 24px;
}
#modern .dresscode-foto img {
    display: block;
    height: auto;
    width: 30%;
}
#modern .details-block {
        margin: 80px auto;
        display: block;
        padding: 0;
        width: 80%;
        height: calc(100% - 160px);
        align-items: center;
        max-width: 400px;
    }
#modern .details-img{
    
    display: none;
}
#modern .rsvp-block {
    max-width: 450px;
    display: flex;
    -ms-grid-columns: calc(45% - 50px) 1fr;
    grid-template-columns: calc(45% - 50px) 1fr;
    gap: 70px;
    width: 85%;
    margin: 80px auto;
    height: calc(100% - 160px);
    align-items: center;
    flex-direction: column;
}
#modern .rsvp-block-right {
    text-align: left;
    margin-right: 0px;
}
#modern .question__container {
    gap: 10px;
}
#modern .question {
    padding: 80px 0;
    text-align: left;
}

#modern .question__text-mini{
    font-family: var(--secondary-font);
    font-size: 14px;
}
#modern .timer {
    margin: 40px auto;
}
#modern .timer__bloks {
    display: flex
;
    gap: 15px;
    justify-content: center;
    margin: 20px auto 50px auto;
}
#modern .timer__block-info {
    padding: 10px 10px;
}
#modern .timer__block {
    font-size: 32px;
    line-height: 120%;
}
#modern .footer{
        padding: 20px 0 60px 0;
}
#modern .burger-menu {
    visibility: hidden;
    display: flex
;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    width: 0%;
    background-color: var(--background-color);
    z-index: 3;
    height: 100vh;
    transition: visibility .5s, width .5s ease-in;
    padding: 100px 0px;
    box-sizing: border-box;
}
#modern .burger-menu__ancor {
    font-size: 18px;
    font-family: var(--main-font);
    color: var(--header-color);
    transition: color .4s;
}
}
#modern .header-block-small-heart img{
        max-width: 100px;
    width: 15%;
    margin: auto;
}

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

        #modern .header-blocks {
        max-width: 1050px;
        display: flex
;
        -ms-grid-columns: 32.258065% 1fr;
        grid-template-columns: auto 1fr;
        gap: 0px;
        margin: 0px;
        height: calc(100% - 0px);
        flex-direction: column;
        justify-content: space-between;
        padding: 70px 30px 60px 30px;
    }
        #modern .header-block-right {
        text-align: left;
        display: grid
;
        -ms-grid-columns: 32.258065% 1fr;
        grid-template-rows: 1fr auto;
        justify-content: start;
    }
    #modern .header-block-right-inside p#groom {
        font-size: 44px;
        line-height: 120%;
        margin: 20px auto 0;
    }
        #modern .header-block-right-inside p#bride {
        font-size: 44px;
        line-height: 120%;
        margin: 0 auto 20px;
    }
    #modern .header-img-mobile {
        position: absolute;
        top: 100px;
        right: 50px;
        width: 350px;
        resize: 80%;
        right: 5%;
        top: 25vh;
        width: 60%;
    }
    #modern .header-img-mobile img{
     width: 100%;
    }
}
@media screen and (max-width: 800px) {
   #modern  .details__header{
    margin: auto;
}
}


/* Стили для галереи Dress Code */
 #modern .gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Ограничение ширины */
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

 #modern .gallery-track {
    display: flex;
    gap: 15px; /* Расстояние между фото */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 90%;
    
    /* Скрытие скроллбара для красоты */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

 #modern .gallery-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

 #modern .gallery-item {
    flex: 0 0 auto;
    /* Высота картинок. На мобильных можно меньше, на ПК больше */
    height: 400px; 
    width: auto;
    border-radius: 4px; /* Легкое скругление, если нужно */
    transition: transform 0.3s ease;
}

 #modern .gallery-item:hover {
    transform: scale(1.02);
}

/* Кнопки навигации */
 #modern .gallery-btn {
    background: transparent;
    border: none;
    color: var(--header-color); /* Ваш красный цвет */
    font-size: 40px;
    cursor: pointer;
    padding: 0 10px;
    z-index: 10;
    transition: opacity 0.3s, transform 0.2s;
    font-family: var(--main-font); /* Основной шрифт */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

 #modern .gallery-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

 #modern .gallery-btn:active {
    transform: scale(0.9);
}

/* Адаптивность */
@media screen and (max-width: 800px) {
     #modern .gallery-item {
        height: 300px; /* Уменьшаем высоту на планшетах */
    }
    #modern .gallery-btn {
        font-size: 30px;
        padding: 0 5px;
    }
}

@media screen and (max-width: 500px) {
     #modern .gallery-container {
        width: 100%;
    }
     #modern .gallery-track {
        width: 100%;
        padding: 0 15px; /* Отступы по краям */
    }
   #modern .gallery-item {
        height: 320px; /* Уменьшаем высоту на телефонах */
    }
    /* На мобильных часто удобнее свайпать пальцем, стрелки можно скрыть или оставить маленькими */
   #modern .gallery-btn {
       display: none;  
    }
}
