* {
  scroll-behavior: smooth;
}

.losas-wrapper {
  padding: 0em 5em 10em 5em;
  margin-top: -3em;
}

.info-adicional {
  padding-bottom: 8em;
}

.masthead {
  width: 100%;
}

.page-section {
  padding-top: 8em;
  padding-bottom: 0;
}

.paginacion {
  padding: 5em 0 0 0;
}

.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 3em;
  font-size: 2em;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  animation: appear-and-resize both 500ms ease-in-out;
}

.error :first-child{
  font-size: 2em;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 7.5em;
  row-gap: 4em;
  margin-top: 7.5em;
  margin-bottom: 1.5em;
}

.gridItem { 
  position: relative;
  justify-self: center;
  align-self: center;
  opacity: 0;
  transform: scale(0.96);
  animation: appear-and-resize both 400ms ease-in-out;
}

.gridItem .portfolio-item {
  border-radius: 3px;
  background-color: #fff;
}

.gridItem .portfolio-link{
  display: flex!important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 130px;
  max-width: 80vw;
  width: 350px;
  height: 400px;
  background-color: transparent !important;
}

.gridItem .losa {
  height: auto;
}
  
.gridItem .portfolio-hover {
  border-radius: 3px;
}

.gridItem .portfolio-link img{
  border-radius: 3px;
  width: 350px;
  height: 275px;
  object-fit: contain;
}

.gridItem .portfolio-caption {
  background-color: transparent !important;
}

.gridItem .portfolio-caption-heading {
  font-size: 1.3rem !important;
}

.searchParent{
  width:30%;
}

.nav-link{
  margin-right: 2em;
}

.filter {
  position: sticky;
  top: 100px;
  margin-top: -2em;
  margin-bottom: 3em;
  margin-right: -200px;
  width: 100%;
  height: 2.75rem;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filter span {
  font-size: 1.2rem;
}

.portfolio-modal {
  margin: 0em;
  margin-bottom: 1rem;
}

.modal-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 90vh;
}

.modal-content {
  padding-bottom: 2em;
  margin-bottom: 1em;
}

.carousel-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
}

.carousel-wrapper {
  position: relative;
  margin-bottom: 5rem;
}

.flecha {
  position: absolute; 
  top: 100%; 
  left: 50%; 
  transform: translate(-50%,0);
  cursor: pointer;
  padding: 12px 15px;
  font-size: 2rem;
  width: 60px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.carousel {
  background-color: #fff;
  z-index: 10;
  border-bottom: 1px solid black;
}

.img-wrapper {
  display: inline-block;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  cursor: zoom-in;
  margin-bottom: 3em;
  border-radius: 4px;
}

.img-wrapper img {
  margin-bottom: 0 !important;
  height: 26rem;
  border-radius: 4px;
}

.img-wrapper img:hover {
  opacity: 0;
}

.img-wrapper img{
  will-change: height;
  transition: all 0.2s linear;
}

.campo{
  margin-bottom: 2.5rem;
}

.campo p {
  margin-bottom: 1.25rem !important;
}

.items {
  font-size: 1.6rem;
}

.truncar {
  font-size: 1.3rem;
}

.modal .title {
  padding-bottom: 0rem !important;
  transition: all 0.2s linear;
}

.title-scrolled {
  font-size: 1.25rem !important;
  padding-top: 0.25rem !important;
  margin-bottom: 0 !important;
  padding-bottom: 0rem !important;
}

.scrolled {
  height: 9rem !important;
}

@media (min-width: 1920px) {
  .carousel-item img{
    height: 32rem;
  }
}

@media (min-width: 1400px){
.container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
  max-width: 1900px;
}

}

@media (max-width:1200px) {
  .filter {
    top: 110px;
  }
  
}

@media (max-width: 991px) {
  .searchParent {
    width: 100%;
  }
  .filter {
    top: 150px;
  }
  .portfolio-modal .modal-content h2, .portfolio-modal .modal-content .h2{
    font-size: 1.5rem;
  }
  .info-adicional {
    padding-bottom: 5em;
  }
}

@media (max-width:600px) {
  .carousel-item img{
    width: 100% !important;
    height: auto !important;
  }
  .img-wrapper {
    width: 70% !important;
  }
  .modal-body{
    padding-left: 1em !important;
    padding-right: 1em !important;
  }
  .items {
    padding: 0 !important;
    overflow: hidden;
  }
  .info-adicional {
    padding-bottom: 6em;
  }
}

@media (max-width: 500px) {
  .filter span{
    font-size: 1rem !important;
  }
  .losas-wrapper {
    padding: 0 0 18em 0;
  }

  .info-adicional {
    padding-bottom: 8em;
  }

  .paginacion {
    padding: 4em 0 1em 0;
  }

  .error{
    margin-top: 2em;
    font-size: 1.3em;
  }

  .error :first-child {
    font-size: 2.5em;
  }

}

@keyframes appear-and-resize {
  to {
    opacity: 1;
    transform: scale(1);
  }
}