Já tentei várias vezes resolver o problema, mas quando passo pro modo mobile no navegador, nem o header nem o carrossel ficam responsivos... Segue abaixo o código. Obrigado desde já pela ajuda.
Este é o HTML:
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">fruta & fruto</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link active" aria-current="page" href="#">Inicio</a>
<a class="nav-link" href="#">Receitas</a>
<a class="nav-link" href="#">Quem somos</a>
<a class="nav-link" href="#">Contato</a>
</div>
</div>
</div>
</nav>
<div id="carouselExampleCaptions" class="carousel slide" data-bs-interval="0" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="src/img/carrossel-img1.jpg" class="d-block w-100 imagem-carrossel-1" alt="...">
<div class="carousel-caption d-none d-md-block h-50">
<h1 class="font-text">Reaproveite melhor os alimentos!</h5>
</div>
</div>
<div class="carousel-item">
<img src="src/img/carrossel-img2.jpg" class="d-block w-100 imagem-carrossel-2" alt="...">
<div class="carousel-caption d-none d-md-block h-50">
<h1 class="font-text">Economize e ganhe em saúde!</h5>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
CSS:
.imagem-carrossel-1 {
object-fit: cover;
object-position: 0 80%;
height: 400px;
}
.imagem-carrossel-2 {
object-fit: cover;
height: 400px;
}
.font-text {
font-family: 'Pacifico', cursive;
}