.intro-text {
	font-size: 20px;
	text-wrap: balance;
}

/* Sections */
.section {
	padding: 32px 0 48px 0;
}

.section:nth-of-type(2n) {
  background-color: var(--bg-color);
}

.section-title {
	text-align: center;
	margin-bottom: 32px;
}

.section-photos img{
	width: 80%;
}

.section-contacts small {
	display: block;
	margin-bottom: 8px;
	color: #666;
}

.contraindications {
	font-size: 14px;
}

/* Doctors Gallery Timework and Info   */
.gallery-wrapper {
    position: relative;

}



.gallery-container {
	display: flex;
	padding: 10px 0;
	overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* ← Скрываем скроллбар */
    -ms-overflow-style: none;
    gap: 10px; /* ← Вместо margin */
}

.gallery-container::-webkit-scrollbar {
    display: none; /* ← Скрываем скроллбар для WebKit */
}

.gallery-item {
    position: relative;
	flex: 0 0 auto; /* если указать px то grid(а у меня body на гридах) начинает тупить */

}

.gallery-item img {
 	cursor: pointer;
 	width: 280px;
	border-radius: 8px;
}

.gallery-text {
    position: absolute;
    width: 260px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-text h5 {
    white-space: normal;    /* Разрешить перенос */
    display: inline-block;
    font-size: 16px;
    color: #ffffff;

}

.arrow {
    display: none;
}



.modal-position {
	font-weight: 500;
}


#prices table table tr td:last-of-type {
    white-space: nowrap;
}






@media (min-width: 768px) {
	
	.section-photos img{
		width: 50%;
	}
	
}





@media (min-width: 992px) {
	
	.intro-text {
		font-size: 22px;
	}
	

	.section-photos img{
		width: 25%;
	}
	
	
    .section {
        padding: 48px 0;
    }

	.section-title {
		margin-bottom: 32px;
	}


	.contacts-item {
		margin-bottom: 32px;
		font-size: 20px;
	}


	.table-price {
		width: 80%;
		margin: auto;
		font-size: 18px;
	}

	.section-services-more {
		font-size: 18px;
	}

	.accordion-button {
		font-size: 18px;
	}
	
	
	/* Doctors Gallery Timework and Info */


    .arrow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        border-radius: 20%;
    	position: absolute;
    	top: 50%;
    	transform: translateY(-50%);
    	background-color: rgba(0, 0, 0, 0.5);
    	color: #fff;
    	cursor: pointer;
    }
    
    .arrow-left {
    	left: 0;
    }
    
    .arrow-right {
    	right: 0;
    }
    

    .arrow-left.hidden, .arrow-right.hidden {
        display: none; /* Дополнительное скрытие для логики */
    }


	.modal {
		--bs-modal-width: 1000px;
	}
	
	.modal-body {
	    display: flex;
		flex-direction: row;
		gap: 32px;
	}

	.modal-image {
		width: 50%;
	}
	
	.modal-desc {
		width: 50%;
	}
	
	.modal-drcategory {
		height: 300px;
		overflow-y: auto;
	}
}
