.project-hero {
  background: #222;
  padding: 60px 0 80px;
  overflow: hidden; }
  @media (max-width: 991px) {
    .project-hero {
      padding: 40px 0 60px; } }
  @media (max-width: 767px) {
    .project-hero {
      padding: 32px 0 48px; } }
  .project-hero__content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 20px; }
    @media (max-width: 991px) {
      .project-hero__content {
        margin-bottom: 32px; } }
  .project-hero__label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7); }
  .project-hero__title {
    font-family: "Beautique Display", serif;
    font-size: 48px;
    font-weight: 500;
    font-style: italic;
    line-height: 56px;
    letter-spacing: -0.5px;
    margin: 0 0 16px; }
    @media (max-width: 991px) {
      .project-hero__title {
        font-size: 36px;
        line-height: 44px; } }
    @media (max-width: 767px) {
      .project-hero__title {
        font-size: 28px;
        line-height: 36px; } }
  .project-hero__desc {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: -0.2px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8); }
    @media (max-width: 767px) {
      .project-hero__desc {
        font-size: 14px;
        line-height: 22px; } }
  .project-hero__carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; }
  .project-hero .project-carousel {
    position: relative;
    width: 100%;
    height: 340px;
    perspective: 1000px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab; }
    .project-hero .project-carousel:active {
      cursor: grabbing; }
    @media (max-width: 991px) {
      .project-hero .project-carousel {
        height: 280px; } }
    @media (max-width: 767px) {
      .project-hero .project-carousel {
        height: 210px; } }
  .project-hero .project-carousel__track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d; }
  .project-hero .project-carousel__card {
    position: absolute;
    width: 480px;
    height: 270px;
    border-radius: 0;
    overflow: hidden;
    background: #2c2c2c;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    @media (max-width: 991px) {
      .project-hero .project-carousel__card {
        width: 360px;
        height: 203px; } }
    @media (max-width: 767px) {
      .project-hero .project-carousel__card {
        width: 260px;
        height: 146px; } }
    .project-hero .project-carousel__card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    .project-hero .project-carousel__card.is-center {
      z-index: 10;
      transform: scale(1.12) translateZ(0); }
      .project-hero .project-carousel__card.is-center img {
        filter: none; }
    .project-hero .project-carousel__card.is-left-1 {
      z-index: 5;
      transform: translateX(-340px) scale(0.9) translateZ(-100px);
      opacity: 0.9; }
      .project-hero .project-carousel__card.is-left-1 img {
        filter: grayscale(100%); }
    .project-hero .project-carousel__card.is-right-1 {
      z-index: 5;
      transform: translateX(340px) scale(0.9) translateZ(-100px);
      opacity: 0.9; }
      .project-hero .project-carousel__card.is-right-1 img {
        filter: grayscale(100%); }
    .project-hero .project-carousel__card.is-left-2 {
      z-index: 1;
      transform: translateX(-660px) scale(0.8) translateZ(-300px);
      opacity: 0.6; }
      .project-hero .project-carousel__card.is-left-2 img {
        filter: grayscale(100%); }
    .project-hero .project-carousel__card.is-right-2 {
      z-index: 1;
      transform: translateX(660px) scale(0.8) translateZ(-300px);
      opacity: 0.6; }
      .project-hero .project-carousel__card.is-right-2 img {
        filter: grayscale(100%); }
    .project-hero .project-carousel__card.is-hidden {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.7) translateZ(-400px); }
    .project-hero .project-carousel__card:not(.is-center):not(.is-hidden):hover {
      opacity: 1; }
      .project-hero .project-carousel__card:not(.is-center):not(.is-hidden):hover img {
        filter: grayscale(40%); }
    @media (max-width: 991px) {
      .project-hero .project-carousel__card.is-left-1 {
        transform: translateX(-250px) scale(0.9) translateZ(-100px); }
      .project-hero .project-carousel__card.is-right-1 {
        transform: translateX(250px) scale(0.9) translateZ(-100px); }
      .project-hero .project-carousel__card.is-left-2 {
        transform: translateX(-480px) scale(0.8) translateZ(-300px); }
      .project-hero .project-carousel__card.is-right-2 {
        transform: translateX(480px) scale(0.8) translateZ(-300px); } }
    @media (max-width: 767px) {
      .project-hero .project-carousel__card.is-left-1 {
        transform: translateX(-170px) scale(0.9) translateZ(-100px); }
      .project-hero .project-carousel__card.is-right-1 {
        transform: translateX(170px) scale(0.9) translateZ(-100px); }
      .project-hero .project-carousel__card.is-left-2 {
        transform: translateX(-330px) scale(0.8) translateZ(-300px); }
      .project-hero .project-carousel__card.is-right-2 {
        transform: translateX(330px) scale(0.8) translateZ(-300px); } }
  .project-hero .project-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    outline: none;
    background: #a11d24;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
    .project-hero .project-carousel__arrow:hover {
      background: #7e171c;
      transform: translateY(-50%) scale(1.12);
      box-shadow: 0 12px 30px rgba(161, 29, 36, 0.55); }
    .project-hero .project-carousel__arrow--left {
      left: 30px; }
    .project-hero .project-carousel__arrow--right {
      right: 30px; }
    @media (max-width: 767px) {
      .project-hero .project-carousel__arrow {
        width: 44px;
        height: 44px;
        font-size: 1.6rem; }
        .project-hero .project-carousel__arrow--left {
          left: 8px; }
        .project-hero .project-carousel__arrow--right {
          right: 8px; } }
  .project-hero__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px; }
  .project-hero .project-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0; }
    .project-hero .project-carousel__dot.is-active {
      background: #a11d24;
      transform: scale(1.25); }

.project-gallery {
  padding: 80px 64px;
  background: #fff; }
  @media (max-width: 991px) {
    .project-gallery {
      padding: 60px 32px; } }
  @media (max-width: 767px) {
    .project-gallery {
      padding: 40px 16px; } }
  .project-gallery__container {
    max-width: 1312px;
    margin: 0 auto; }
  .project-gallery__tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px; }
    @media (max-width: 767px) {
      .project-gallery__tabs {
        gap: 8px;
        margin-bottom: 32px; } }
  .project-gallery__tab {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #d5d7da;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important; }
    @media (max-width: 767px) {
      .project-gallery__tab {
        padding: 10px 20px;
        font-size: 14px; } }
    .project-gallery__tab:hover {
      border-color: #a11d24;
      color: #a11d24; }
    .project-gallery__tab.active {
      background: #a11d24;
      border-color: #a11d24;
      color: #fff; }
  .project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px; }
    @media (max-width: 1199px) {
      .project-gallery__grid {
        grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 991px) {
      .project-gallery__grid {
        grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px) {
      .project-gallery__grid {
        grid-template-columns: 1fr; } }
  .project-gallery__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: block; }
    .project-gallery__item.hidden {
      display: none; }
    .project-gallery__item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease; }
    .project-gallery__item:hover img {
      transform: scale(1.1); }
    .project-gallery__item:hover .project-gallery__item-overlay {
      opacity: 1; }
  .project-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(161, 29, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease; }
    .project-gallery__item-overlay span {
      font-family: "Montserrat", sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      text-align: center;
      padding: 16px; }
  .project-gallery__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; }
  .project-gallery__page-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d5d7da;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #222; }
    .project-gallery__page-btn:hover:not(:disabled) {
      border-color: #a11d24;
      color: #a11d24; }
    .project-gallery__page-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed; }
  .project-gallery__page-numbers {
    display: flex;
    gap: 8px; }
  .project-gallery__page-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d5d7da;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease; }
    .project-gallery__page-num:hover {
      border-color: #a11d24;
      color: #a11d24; }
    .project-gallery__page-num.active {
      background: #a11d24;
      border-color: #a11d24;
      color: #fff; }
  .project-gallery__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; }
    .project-gallery__loading .spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #e9eaeb;
      border-top-color: #a11d24;
      border-radius: 50%;
      animation: spin 0.8s linear infinite; }
  .project-gallery__empty, .project-gallery__error {
    text-align: center;
    padding: 60px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #717680; }
  .project-gallery__error {
    color: #a11d24; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }
