.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 27vw;
    border-bottom: 1px solid var(--preto);
  }
  .carousel-items {
    display: flex;
    
  }
  .carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .carousel-item.active {
    opacity: 1;
    z-index: -1;
  }
  .carousel-item img {
    width: 100vw;
    height: 27vw;
    object-fit: cover;
  }
  .carousel-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 2;
  }
  .carousel-buttons button {
    font-size: 2rem;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    background-color: transparent;
    border: 2px solid #ccc;
    outline: none;
  }
  .carousel-buttons button:hover {
    background-color: #ccc;
  }

@media screen and (max-width: 500px ) {
  .carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 32vw;
    border-bottom: 1px solid var(--preto);
  }
  .carousel-item img {
    width: 100vw;
    height: 32vw;
    object-fit: cover;
  }
  .carousel-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 2;
  }
  .carousel-buttons button {
    font-size: 1rem;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    background-color: transparent;
    border: 2px solid #ccc;
    outline: none;
  }
  
}
  