.br-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #00000050;
  z-index: 999;
}

.br-modal-container {
  width: 80%;
  height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  overflow-y: scroll;
}

.br-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.br-modal-content {
  padding: 40px;
}

.br-modal-content .loading-image {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.br-modal-content .loading-image svg path {
  animation-name: loadingAnimation;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.br-modal-content .project-profile {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.br-modal-content .project-profile .project-profile-images,
.br-modal-content .project-profile .project-profile-content {
  width: 48%;
}

.br-modal-content .project-profile .project-profile-images h3,
.br-modal-content .project-profile .project-profile-content h3 {
  color: #000000;
  font-size: 42px;
}

.br-modal-content .project-profile .main-image {
  margin-bottom: 10px;
}

.br-modal-content .project-profile .main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.br-modal-content .project-profile .image-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.br-modal-content .project-profile .image-gallery .gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.br-modal-content .project-profile .image-gallery .gallery-image:not(:last-child) {
  margin-right: 10px;
}

@media screen and (max-width: 767px) {
  .br-modal-content .project-profile {
    flex-wrap: wrap;
  }

  .br-modal-content .project-profile .project-profile-images,
  .br-modal-content .project-profile .project-profile-content {
    width: 100%;
  }

  .br-modal-content .loading-image svg {
    width: 100%;
  }
}

.portfolio-filters {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 20px;
}

.portfolio-filters ul {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.portfolio-filters ul li {
  display: inline;
  margin-right: 10px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.portfolio-filters ul li:last-child {
  margin-right: 0;
}

.portfolio-filters ul li.active {
  border-bottom-color: #ffb624;
}

.portfolio-inner-wrap {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100vh;
}

.portfolio-inner-wrap .portfolio-piece {
  width: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  position: relative;
}

.portfolio-inner-wrap .portfolio-piece a {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-inner-wrap .portfolio-piece .inner-portfolio-piece {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  transition: opacity 0.5s ease-in;
  width: calc(100% - 100px);
  height: calc(100% - 100px);
  opacity: 0;
  top: 50px;
  left: 50px;
  position: absolute;
  backdrop-filter: blur(7px) saturate(150%);
  -webkit-backdrop-filter: blur(7px) saturate(170%);
  background-color: #33333370;
}

.portfolio-inner-wrap .portfolio-piece a:hover .inner-portfolio-piece {
  opacity: 1;
}

.portfolio-inner-wrap .portfolio-piece h3 {
  color: #ffffff;
  text-align: center;
  text-transform: none;
  width: 100%;
}

.portfolio-piece-button-wrapper {
  width: 100%;
  text-align: center;
}

.portfolio-inner-wrap .portfolio-piece .portfolio-piece-button {
  background-color: #ffb624;
  padding: 15px;
  display: inline-block;
  color: #ffffff;
  text-transform: capitalize;
}

.portfolio-inner-wrap .portfolio-piece .portfolio-button:hover {
  background-color: #ab7200;
}

.portfolio-inner-wrap:nth-child(odd) .portfolio-piece:first-child {
  width: 65%;
  height: 100%;
}

.portfolio-inner-wrap:nth-child(odd) .portfolio-piece:nth-child(2),
.portfolio-inner-wrap:nth-child(odd) .portfolio-piece:nth-child(3) {
  width: 35%;
  height: 50%;
}

.portfolio-inner-wrap:nth-child(even) .portfolio-piece:nth-child(1),
.portfolio-inner-wrap:nth-child(even) .portfolio-piece:nth-child(2) {
  width: 35%;
  height: 50%;
}

.portfolio-inner-wrap:nth-child(even) .portfolio-piece:last-child {
  width: 65%;
  height: 100%;
}

.portfolio-inner-wrap.one-left .portfolio-piece {
  width: 100% !important;
  height: auto;
}

.portfolio-inner-wrap.two-left .portfolio-piece {
  width: 50% !important;
  height: 100% !important;
}

@media screen and (max-width: 680px) {
  .portfolio-inner-wrap {
    display: flex;
    flex-direction: row;
    height: 100vh;
  }

  .portfolio-inner-wrap:nth-child(odd) .portfolio-piece:first-child,
  .portfolio-inner-wrap:nth-child(odd) .portfolio-piece:nth-child(2),
  .portfolio-inner-wrap:nth-child(odd) .portfolio-piece:nth-child(3) {
    width: 100% !important;
    height: 33.333333% !important;
  }

  .portfolio-inner-wrap:nth-child(even) .portfolio-piece:nth-child(1),
  .portfolio-inner-wrap:nth-child(even) .portfolio-piece:nth-child(2),
  .portfolio-inner-wrap:nth-child(even) .portfolio-piece:last-child {
    width: 100% !important;
    height: 33.333333% !important;
  }

  .portfolio-inner-wrap:nth-child(odd).two-left .portfolio-piece,
  .portfolio-inner-wrap:nth-child(even).two-left .portfolio-piece {
    width: 100% !important;
    height: 50% !important;
  }

  .portfolio-inner-wrap:nth-child(odd).one-left .portfolio-piece,
  .portfolio-inner-wrap:nth-child(even).one-left .portfolio-piece {
    width: 100% !important;
    height: 100% !important;
  }
}

@keyframes loadingAnimation {
  from {
    fill: #ffb624;
  }

  to {
    fill: black;
  }
}