.projects-carousel {
    position: relative;
    padding: 0 70px;
    padding-bottom: 50px;
}

.projects-carousel *{
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.projects-carousel .swiper-container {
    width: 100%;
    overflow: hidden;
}

.projects-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.projects-carousel .swiper-slide {
    border-radius: 40px;
    overflow: hidden;
}

.projects-carousel .project-slide-link{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-image-container {
    position: relative;
    flex: 0 0 75%;
    height: 75%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
	aspect-ratio: 4 / 3;
}

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.project-content-container {
    display: flex;
    justify-content: space-between;
    flex: 1 0 auto;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background-color: #EFEFEF;
    box-sizing: border-box;
}

.project-content-container .wp-block-button__link {
    justify-content: center;
}

.project-title {
    margin: 0;
    font-size: 1.25rem;
}

.project-excerpt {
    margin: 0;
    font-size: 1rem;
}

/* pagination bullets */
.projects-carousel .swiper-pagination {
  text-align: center;
  margin-top: 1rem;
}

/* navigation buttons */
.projects-carousel .swiper-button-prev-projects,
.projects-carousel .swiper-button-next-projects {
  position: absolute;
  top: calc(50% - 25px);
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.projects-carousel .swiper-button-prev-projects.swiper-button-disabled,
.projects-carousel .swiper-button-next-projects.swiper-button-disabled{
    opacity: 0.3;
}

.projects-carousel .swiper-button-prev-projects {
  left: 0;
}

.projects-carousel .swiper-button-next-projects {
  right: 0;
}

/* GAP: remove margin on last slide */
.projects-carousel .swiper-slide:last-child {
  margin-right: 0;
}

/* Responsive: below 782px, show only 1 slide and hide nav */
@media (max-width: 781px) {
  .wp-block-group.has-global-padding .projects-carousel {
    padding-left: 0;
    padding-right: 0;
    margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
    margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
  }
  .projects-carousel .swiper-button-prev-projects,
  .projects-carousel .swiper-button-next-projects {
    display: none;
  }
}