/* =========================================================
   Professional Pioneers v1.9.98
   Projects-only width, 8/4 layout, preview height and
   compact thumbnail/title presentation.

   The project container intentionally has no local max-width.
   It inherits the shared homepage/global container width.
========================================================= */

/* Desktop Bootstrap-equivalent col-8 / col-4 split. */
.pp-work-projects-section .pp-latest-projects-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
  gap: clamp(18px, 2vw, 28px) !important;
  align-items: stretch !important;
}

.pp-work-projects-section .pp-latest-projects-preview-col,
.pp-work-projects-section .pp-latest-projects-list-col {
  min-width: 0 !important;
  width: 100% !important;
}

/* Taller preview while preserving the current timer/video logic. */
.pp-work-projects-section .pp-latest-projects-preview {
  height: clamp(480px, 41vw, 600px) !important;
  min-height: 480px !important;
}

.pp-work-projects-section .pp-latest-projects-list {
  max-height: clamp(480px, 41vw, 600px) !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

/* Compact row: thumbnail at the side, title beside it,
   subtitle and link below the title inside the copy column. */
.pp-work-projects-section .pp-latest-projects-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  min-height: 0 !important;
  padding: 11px 12px 15px !important;
}

.pp-work-projects-section .pp-latest-projects-item-thumb {
  order: initial !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: start !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.pp-work-projects-section .pp-latest-projects-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.pp-work-projects-section .pp-latest-projects-item-content {
  order: initial !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  gap: 4px !important;
  padding-top: 1px !important;
}

.pp-work-projects-section .pp-latest-projects-item-title {
  order: initial !important;
  width: 100% !important;
  margin: 0 !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}

.pp-work-projects-section .pp-latest-projects-item-subtitle {
  order: initial !important;
  width: 100% !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.pp-work-projects-section .pp-latest-projects-item-link {
  order: initial !important;
  margin-top: 2px !important;
  width: max-content !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

html[dir="rtl"] .pp-work-projects-section .pp-latest-projects-item-content {
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="rtl"] .pp-work-projects-section .pp-latest-projects-item-title,
html[dir="rtl"] .pp-work-projects-section .pp-latest-projects-item-subtitle {
  text-align: right !important;
}

@media (max-width: 991px) {
  .pp-work-projects-section .pp-latest-projects-layout {
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr) !important;
    gap: 16px !important;
  }

  .pp-work-projects-section .pp-latest-projects-preview {
    height: 470px !important;
    min-height: 470px !important;
  }

  .pp-work-projects-section .pp-latest-projects-list {
    max-height: 470px !important;
  }

  .pp-work-projects-section .pp-latest-projects-item {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  .pp-work-projects-section .pp-latest-projects-item-thumb {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }
}

@media (max-width: 767px) {
  .pp-work-projects-section .pp-latest-projects-layout {
    grid-template-columns: 1fr !important;
  }

  .pp-work-projects-section .pp-latest-projects-preview {
    height: 350px !important;
    min-height: 350px !important;
  }

  .pp-work-projects-section .pp-latest-projects-list {
    max-height: 520px !important;
  }
}

@media (max-width: 430px) {
  .pp-work-projects-section .pp-latest-projects-preview {
    height: 300px !important;
    min-height: 300px !important;
  }

  .pp-work-projects-section .pp-latest-projects-item {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    padding: 10px 10px 14px !important;
  }

  .pp-work-projects-section .pp-latest-projects-item-thumb {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}


/* =========================================================
   v1.9.98 — Latest five only, no internal Projects scrolling
========================================================= */
.pp-work-projects-section .pp-latest-projects-list {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
}

.pp-work-projects-section .pp-latest-projects-list::-webkit-scrollbar {
  display: none !important;
}
/* END v1.9.98 */
