.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, 1fr);
  margin: auto;
  font-size: 16px;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  background-color: #EAEBDB;
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: #2B2E34;
  position: relative;
  padding-bottom: 30px;
}

.portfolio-readmore {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.portfolio-readmore a {
  display: block;
  padding: 10px;
  transition: all 0.3s ease;
  background-image: url(../../img/arrow-more-blk.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 15px;
  height: 15px;
}
.portfolio-readmore a:hover {
  transform: translate(2px, 2px);
}

.portfolio-arrow-icon {
  width: 24px;
  height: 24px;
  stroke: #fff;
  display: block;
}

.portfolio-carousel {
  position: relative;
  width: 100.1%;
  overflow: hidden;
  background: #000;
}
.portfolio-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-carousel .swiper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  width: 100%;
}
.portfolio-carousel .swiper-wrapper {
  display: flex;
  height: 100%;
}
.portfolio-carousel .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  top: var(--swiper-navigation-top-offset, 90%);
}
.people-carousel .swiper-button-next,
.people-carousel .swiper-button-prev {
  top: var(--swiper-navigation-top-offset, 8%);
}
.portfolio-content {
  padding: 25px;
  background: #EAEBDB;
}
.portfolio-title {
  font-size: 20px;
  font-family: 'Modelo New', sans-serif;
  text-align: right;
}
h4.portfolio-building-type {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 16px;
}
h4.portfolio-building-type span {
  font-family: 'Basis Medium New';
  margin-top: 20px;
  margin-bottom: 10px;
}
h4.portfolio-services {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 10px;
}
.portfolio-link {
  text-align: left;
}

.portfolio-icon {
  display: inline-block;
  color: #2B2E34;
  transition: background 0.3s;
  background-size: contain;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
}
.portfolio-icon.video {
  background-image: url('svg/portfolio-video-icon.svg');
}
.portfolio-icon.blog,
.portfolio-icon.link {
  background-image: url('svg/portfolio-insight-icon.svg');
}

/* --- Team Grid Styles --- */
.people-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
  margin: auto;
  font-size: 16px;
  padding-top: 30px;
  padding-bottom: 30px;
}
@media (min-width: 768px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.people-item {
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: #2B2E34;
  position: relative;
}
.people-carousel img {
  filter: grayscale(1);
  transition: all ease .5s;
}
.people-carousel:hover img {
  filter: none;
}
.people-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.people-carousel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.people-carousel .swiper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  width: 100%;
}
.people-carousel .swiper-wrapper {
  display: flex;
  height: 100%;
}
.people-carousel .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.people-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #EAEBDB;
}
h3.people-name {
  margin-top: 20px;
}
h4.people-title {
  margin-top: 0;
}
.people-item:hover .people-expanded {
  opacity: 1;
}
.people-expanded {
  font-size: 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px;
  color: #fff;
  position: absolute;
  z-index: 999;
  bottom: -2px;
  width: 100%;
  transition: opacity .4s ease-in;
  opacity: 0;
}
.people-contact-link {
  text-align: right;
  margin-bottom: 0;
  margin-top: 5px;
}
.people-contact-link a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  text-align: right;
}
.people-icon {
  display: inline-block;
  color: #2B2E34;
  transition: background 0.3s;
  background-size: contain;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
}
.people-excerpt {
  flex-grow: 1;
}

/* --- Single Portfolio Carousel Styles --- */
.single-portfolio-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}
.single-portfolio-carousel .swiper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  width: 100%;
}
.single-portfolio-carousel .swiper-wrapper {
  display: flex;
  height: 100%;
}
.single-portfolio-carousel .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.single-portfolio-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.single-portfolio-carousel .swiper-button-next,
.single-portfolio-carousel .swiper-button-prev {
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
}
.single-portfolio-carousel .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.single-portfolio-carousel .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}
.single-portfolio-carousel .swiper-pagination-bullet-active {
  background: #007aff;
  opacity: 1;
}
.single-portfolio-carousel .swiper-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 20px;
  box-sizing: border-box;
  font-size: 0.9em;
  text-align: center;
  z-index: 5;
}
