/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/**
 Show masonry grid
 */
.masonry.grid {
  background: transparent;
  max-width: 100%;
  margin: 0 auto;
  /* both item and item content change size */
}
.masonry.grid .grid-item {
  float: left;
  margin-bottom: 10px;
  /* item is invisible, but used for layout */
  width: 220px;
  height: 220px;
  /* grid-item-content is visible, and transitions size */
}
.masonry.grid .grid-item:hover .grid-item-content {
  cursor: pointer;
}
.masonry.grid .grid-item .grid-item-content {
  width: 220px;
  height: 220px;
  -webkit-transition: width 0.4s, height 0.4s;
  transition: width 0.4s, height 0.4s;
}
.masonry.grid .grid-item .grid-item-content img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cover the container, similar to background-size: cover */
  object-position: center; /* Center the image within the container */
  background-color: white;
}
.masonry.grid .grid-item .new-years {
  color: #fff;
  font-size: 3rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: contrast(0.5);
}
.masonry.grid .grid-item.is-expanded,
.masonry.grid .grid-item.is-expanded .grid-item-content {
  width: 450px;
  height: 340px;
}
.masonry.grid .grid-item.is-expanded {
  z-index: 2;
}
.masonry.grid .grid-item.is-expanded .grid-item-content {
  /*background: #F90 center;*/
}
.masonry.grid .sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
.masonry.grid .info-content {
  display: flex;
  position: absolute;
  z-index: 3;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 27px 30px 31px;
  opacity: 0;
  overflow: hidden;
  left: 0;
  top: initial;
  bottom: 30px;
  height: auto;
  width: fit-content;
  width: -webkit-fill-available;
  max-width: 300px;
  word-break: break-word;
  background: #000;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  transform: rotateY(20deg);
  transition: opacity 0.5s, transform 0.5s;
  transform-origin: left center;
  color: #fff;
}
.masonry.grid .info-content .client-name {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.5;
}
.masonry.grid .info-content .title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.masonry.grid .info-content .project-name {
  line-height: 1.2;
  margin-bottom: 5px;
  margin-top: 5px;
}
.masonry.grid .info-content .sub-cat {
  font-size: 0.7rem;
  margin-bottom: 5px;
  margin-top: 5px;
}
.masonry.grid .grid-item-content:hover .info-content {
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.5s;
  transform: rotateY(0);
}
.masonry.grid .grid-item-content .info-content:hover {
  opacity: 1;
  transition: opacity 0.2s, transform 0.5s;
  transform: rotateY(0);
}
.masonry.grid .info-content p {
  margin: 0;
}
.masonry.grid .is-expanded-show {
  display: none;
}
.masonry.grid .is-expanded .title {
  font-size: 1.25rem;
  margin-bottom: 5px;
  line-height: 1.2;
}
.masonry.grid .is-expanded .is-expanded-show {
  display: block;
}

.masonry-wrapper, .filters {
  max-width: 1600px;
}

.nbrProjects {
  padding: 0 1rem;
}

.filters {
  display: flex;
  padding: 1rem 1rem 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.filters select:invalid {
  color: gray;
}
.filters .form-select {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  font-size: 1.25rem;
}
.filters input[name=years] {
  width: 100px;
}
@media (max-width: 1500px) {
  .filters {
    max-width: 100%;
    overflow: auto;
  }
}

/**
 Gallery Clients
 */
.gallery-clients {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  gap: 15px;
}

.gallery-clients [class*=col-] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

.gallery-clients img {
  max-width: 100%;
  background: #fff;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Fractional widths */
.gallery-clients .col-1 {
  flex: 0 0 calc(8.33% - 15px);
}

.gallery-clients .col-2 {
  flex: 0 0 calc(16.66% - 15px);
}

.gallery-clients .col-3 {
  flex: 0 0 calc(25% - 15px);
}

.gallery-clients .col-4 {
  flex: 0 0 calc(33.33% - 15px);
}

.gallery-clients .col-5 {
  flex: 0 0 calc(41.66% - 15px);
}

.gallery-clients .col-6 {
  flex: 0 0 calc(50% - 15px);
}

.gallery-clients .col-7 {
  flex: 0 0 calc(58.33% - 15px);
}

.gallery-clients .col-8 {
  flex: 0 0 calc(66.66% - 15px);
}

.gallery-clients .col-9 {
  flex: 0 0 calc(75% - 15px);
}

.gallery-clients .col-10 {
  flex: 0 0 calc(83.33% - 15px);
}

.gallery-clients .col-11 {
  flex: 0 0 calc(91.66% - 15px);
}

.gallery-clients .col-12 {
  flex: 0 0 calc(100% - 15px);
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .gallery-clients .col-sm-1 {
    flex: 0 0 calc(8.33% - 15px);
  }
  .gallery-clients .col-sm-2 {
    flex: 0 0 calc(16.66% - 15px);
  }
  .gallery-clients .col-sm-3 {
    flex: 0 0 calc(25% - 15px);
  }
  .gallery-clients .col-sm-4 {
    flex: 0 0 calc(33.33% - 15px);
  }
  .gallery-clients .col-sm-5 {
    flex: 0 0 calc(41.66% - 15px);
  }
  .gallery-clients .col-sm-6 {
    flex: 0 0 calc(50% - 15px);
  }
  .gallery-clients .col-sm-7 {
    flex: 0 0 calc(58.33% - 15px);
  }
  .gallery-clients .col-sm-8 {
    flex: 0 0 calc(66.66% - 15px);
  }
  .gallery-clients .col-sm-9 {
    flex: 0 0 calc(75% - 15px);
  }
  .gallery-clients .col-sm-10 {
    flex: 0 0 calc(83.33% - 15px);
  }
  .gallery-clients .col-sm-11 {
    flex: 0 0 calc(91.66% - 15px);
  }
  .gallery-clients .col-sm-12 {
    flex: 0 0 calc(100% - 15px);
  }
}
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-clients .col-md-1 {
    flex: 0 0 calc(8.33% - 15px);
  }
  .gallery-clients .col-md-2 {
    flex: 0 0 calc(16.66% - 15px);
  }
  .gallery-clients .col-md-3 {
    flex: 0 0 calc(25% - 15px);
  }
  .gallery-clients .col-md-4 {
    flex: 0 0 calc(33.33% - 15px);
  }
  .gallery-clients .col-md-5 {
    flex: 0 0 calc(41.66% - 15px);
  }
  .gallery-clients .col-md-6 {
    flex: 0 0 calc(50% - 15px);
  }
  .gallery-clients .col-md-7 {
    flex: 0 0 calc(58.33% - 15px);
  }
  .gallery-clients .col-md-8 {
    flex: 0 0 calc(66.66% - 15px);
  }
  .gallery-clients .col-md-9 {
    flex: 0 0 calc(75% - 15px);
  }
  .gallery-clients .col-md-10 {
    flex: 0 0 calc(83.33% - 15px);
  }
  .gallery-clients .col-md-11 {
    flex: 0 0 calc(91.66% - 15px);
  }
  .gallery-clients .col-md-12 {
    flex: 0 0 calc(100% - 15px);
  }
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-clients .col-lg-1 {
    flex: 0 0 calc(8.33% - 15px);
  }
  .gallery-clients .col-lg-2 {
    flex: 0 0 calc(16.66% - 15px);
  }
  .gallery-clients .col-lg-3 {
    flex: 0 0 calc(25% - 15px);
  }
  .gallery-clients .col-lg-4 {
    flex: 0 0 calc(33.33% - 15px);
  }
  .gallery-clients .col-lg-5 {
    flex: 0 0 calc(41.66% - 15px);
  }
  .gallery-clients .col-lg-6 {
    flex: 0 0 calc(50% - 15px);
  }
  .gallery-clients .col-lg-7 {
    flex: 0 0 calc(58.33% - 15px);
  }
  .gallery-clients .col-lg-8 {
    flex: 0 0 calc(66.66% - 15px);
  }
  .gallery-clients .col-lg-9 {
    flex: 0 0 calc(75% - 15px);
  }
  .gallery-clients .col-lg-10 {
    flex: 0 0 calc(83.33% - 15px);
  }
  .gallery-clients .col-lg-11 {
    flex: 0 0 calc(91.66% - 15px);
  }
  .gallery-clients .col-lg-12 {
    flex: 0 0 calc(100% - 15px);
  }
}
@media (min-width: 992px) {
  .gallery-clients {
    margin-right: -5px;
    margin-left: -5px;
  }
  .gallery-clients [class*=col-] {
    padding-right: 0;
    padding-left: 0;
  }
}
/**
 * BLazy
 */
.b-lazy {
  opacity: 0;
  transform: scale(0.5);
  transition: all 1000ms;
}

.b-loaded, .b-error {
  opacity: 1;
  transform: scale(1);
}