.portfolio-item {
  justify-content: center !important;
}

.portfolio-link {
  height: 250px;
}

.portfolio-caption {
  height: 250px;
}

img.grayscale {
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  filter: gray;
  -webkit-filter: grayscale(100%);
}

img.grayscale:hover {
  filter: none;
  -webkit-filter: grayscale(0%);
}

::selection {
  color: var(--bs-primary);
  background-color: #000000;
}

@media (max-width: 500px) {
  section h2.section-heading, section .section-heading.h2 {
    font-size: 30px;
  }
}

@media (orientation: portrait) {
  .d-landscape {
    display: none !important;
  }
}

@media (orientation: landscape) {
  .d-portrait {
    display: none !important;
  }
}

#carousel-news .carousel-indicators {
  position: inherit;
}

.carousel-inner {
  padding: 0rem 2rem 2rem 2rem;
  margin: auto;
}

@media (max-width: 991px) {
  .carousel-inner {
    padding: 0;
    margin: auto;
  }
}

.carousel-indicators {
  margin-bottom: 0.3rem;
}

.carousel-control-next, .carousel-control-prev {
  width: 2rem;
}

.logos::before, .logos::after {
  content: '';
  width: 300px;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 2;
  pointer-events: none;
}

.logos::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
}

.logos::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

.logos-slide {
  animation: 40s slide infinite linear;
}

.logos:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide img {
  height: 60px;
  margin: 0 50px;
  transition: transform 0.3s ease;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

