main{
    margin-bottom: 10px;
    color: rgba(45, 62, 80, 1);
}

.photo-slider{
    display: none;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 20px;
    align-items: center;
}

/* Стиль для изображений */
.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Для мобильных устройств скрываем сетку и показываем слайдер */
@media (max-width: 600px) {
    .photo-gallery {
        display: none; /* Скрываем сетку на мобильных устройствах */
    }
    .photo-slider{
        margin-top: 100px;
        display: block;
    }
    /* Стили для слайдера */
    .slider-images {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        height: 300px;
    }

    .slider-images img {
        flex: none;
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        scroll-snap-align: center;
      	margin-left: 100px;
    }

    /* Стиль для кнопок слайдера */
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(45, 62, 80, 1);
        border: none;
        padding: 10px;
        font-size: 20px;
        cursor: pointer;
        z-index: 1;
    }

    .prev-btn {
        top: 215px;
        left: 10px;
        background-color: none;
    }

    .next-btn {
        right: 10px;
        top: 215px;
      	background-color: none;
    }
}



.product-text-wrapper h1{
    margin-top: 50px;
    font-size: 40px;
}
.product-text-beschreibung{
    margin-top: 30px;
}

.product-text-beschreibung p{
    font-size: 17px; 
    margin-bottom: 20px;
}
.product-text-beschreibung p:nth-child(1) {
    font-size: 18px;
    font-weight: 600;
}



.modal {
    display: none; /* Изначально скрыто */
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: white;
}

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: auto;
    text-align: center;
}

#modal-img {
    width: 100%;
    height: 100%;
    max-height: 80vh; /* Ограничение по высоте */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-150%);    
    color: rgba(45, 62, 80, 1);
    font-size: 40px;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

#prev {
  left: -50%;
}

#next {
    right: -50%;
}

.close {
    position: absolute;
    top: 41px;
    right: 49px;
    color: rgba(45, 62, 80, 1);
    font-size: 53px;
    cursor: pointer;
  	z-index:100;
}

.product-img-wrapper {
    display: flex;
    gap: 15px;
}

.product-img img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-img img:hover {
    transform: scale(1.1);
}


.splide {
    margin-top: 60px;
    width: 100%;
    height: auto;
  }



  .splide__slide{
    width: 100%;
    height: 500px !important;
    margin-right: 20px !important;
  }

  .splide__slide img {
    object-fit: cover;
    width: 100% ;
    height: 500px !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .splide__pagination{
    display: none !important;
  }

  .splide__arrow{
    background: none;
  }

  .splide__arrow svg{
    fill: rgba(45, 62, 80, 1);
  }


  
@media screen and (max-width: 1420px) {
    .product-img-wrapper {
        flex-wrap: wrap;
        flex-direction: column;         
    }
}

@media screen and (max-width: 1024px) {
    .product-img-wrapper img {
        height: 60%;
    }
    .product-text-wrapper{
        margin-top: 0
    }
}


@media screen and (max-width: 700px) {
  
  
    .product-img-block{
        height: 450px;
    }

    .product-img-wrapper-once{
        height: 400px;
    }
    .product-img{
        height: 200px;
    }
}

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

  
  	.nav-btn {
    top: 100%;
   	transform: translateY(-150%);
    }
    .product-img-block{
        height: 350px;
    }

    .product-img{
        height: 150px;
    }
    .product-text-wrapper h1{
        margin-top: 50px;
        font-size: 30px;
    }

    .product-text-beschreibung p:nth-child(1){
        font-size: 15px; 
        font-weight: 600;
    }
    
    .product-text-beschreibung p{
        font-size: 15px; 
        margin-bottom: 20px;
    }

   #prev {
  		left: 0;
	}

	#next {
    	right: 0;
	}

    .close {
        top: 17px;
        right: 16px;
    }
}

@media screen and (max-width: 400px) {
	.splide__slide img { 
    width: 83%;
    height: 278px !important;
	}
  
    .splide__track{
        height: 330px;  
    }
    .splide{
        height: 330px;  
    }

   
}


