/* ------------------------------------------------------------------
   SKILLS ACTIVITY GRID STYLES
   - Activity feed section
   - Category grouping
   - Tag cards
   - Mobile responsive
------------------------------------------------------------------- */

/* ======= Section Header (shared) ======= */
.section-header-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.section-header-left,
.section-header-row > h1 {
  flex: 1;
  margin: 0;
}

.section-header-row h6 {
  margin: 0;
}

.section-header-right {
  flex: 1;
  margin: 0;
  color: #868a9b;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #868a9b;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  margin-top: 10px;
}

.section-link:hover {
  color: #1a1a2e;
}

.section-link i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.section-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-header-right {
    text-align: left;
  }
}

/* ======= Skills Activity Grid style ======= */
.skills-activity-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.5fr;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 20px;
}

.skills-activity-header h1 {
  margin: 0;
  grid-column: 1 / 3;
}

.skills-activity-header p {
  margin: 0;
  color: #868a9b;
  grid-column: 3 / 5;
}

.skills-activity-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-activity-category {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
}

.skills-activity-category .category-heading {
  color: #1a1a2e;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.skills-activity-category .category-tags {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.5fr;
  gap: 10px;
  align-items: stretch;
}

.skills-activity-category .tag-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.skills-activity-category .tag-card:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.skills-activity-category .tag-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.skills-activity-category .tag-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skills-activity-category .tag-info svg {
  width: 28px !important;
  height: 28px !important;
}

.skills-activity-category .tag-name {
  color: #1a1a2e;
  font-size: 18px;
  font-weight: 500;
}

.skills-activity-category .tag-description {
  color: #868a9b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.skills-activity-category .tag-count {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.skills-activity-category .see-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  text-align: center;
  line-height: 1.3;
}

.skills-activity-category .see-more-link:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Tablet: Bigger logos and text, less spacing */
@media (min-width: 768px) and (max-width: 1024px) {
  .skills-activity-grid {
    gap: 8px;
  }

  .skills-activity-category {
    padding: 10px;
  }

  .skills-activity-category .category-tags {
    gap: 8px;
  }

  .skills-activity-category .tag-card {
    padding: 12px;
  }

  .skills-activity-category .tag-info {
    gap: 12px;
    margin-bottom: 6px;
  }

  .skills-activity-category .tag-info svg {
    width: 28px !important;
    height: 28px !important;
  }

  .skills-activity-category .tag-name {
    font-size: 22px;
  }

  .skills-activity-category .tag-count {
    font-size: 13px;
  }

  .skills-activity-category .category-heading {
    font-size: 16px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
}

/* Mobile: Stack tags vertically */
@media (max-width: 767px) {
  .skills-activity-header {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 15px;
  }

  .skills-activity-header h1,
  .skills-activity-header p {
    grid-column: 1;
  }

  .skills-activity-category .category-tags {
    grid-template-columns: 1fr 1fr;
  }

  .skills-activity-category .tag-card:nth-child(3) {
    display: none;
  }

  .skills-activity-category .see-more-link {
    grid-column: span 2;
  }

  .skills-activity-category {
    padding: 10px;
  }

  .skills-activity-category .category-heading {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

/* ======= Post Card Styles ======= */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card .img-block {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  position: relative;
}

.post-card .wrapper-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.post-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
  overflow: hidden;
}

.post-image-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: url('/images/jacobFlaherty_favicon.png') no-repeat center center;
  background-size: contain;
  opacity: 0.3;
  z-index: 0;
}

.post-image-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes post-img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.post-image-container .post-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.post-image-container .post-img.loading {
  opacity: 0;
}

.post-image-container .post-img.loaded {
  opacity: 1;
}

.post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 15px;
}

.post-card-content .post-meta {
  flex-shrink: 0;
}

.post-card-content .post-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #f0f0f0;
  font-size: 12px;
  margin-right: 8px;
  text-transform: capitalize;
}

.post-card-content .post-date {
  font-size: 12px;
  color: #999;
}

.post-card-title {
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.post-card-excerpt {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.post-card-tags {
  flex-shrink: 0;
  margin-top: auto;
}

.post-card-tags .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 11px;
}

/* ======= Posts List View ======= */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 570px; /* Space for ~3 cards (180px each + gaps) */
}

.post-list-item {
  display: flex;
  gap: 20px;
  height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s ease, transform 0.1s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.post-list-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.post-list-image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.post-list-image .post-image-container {
  width: 100%;
  height: 100%;
  border-radius: 12px 0 0 12px;
}

.post-list-image .post-image-skeleton {
  border-radius: 12px 0 0 12px;
}

/* List skeleton styles */
.post-list-skeleton {
  pointer-events: none;
}

.skeleton-title {
  width: 60%;
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-type {
  width: 65px;
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-date {
  width: 90px;
  height: 18px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-excerpt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 10px 0;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 3px;
}

.skeleton-line.full { width: 100%; }
.skeleton-line.most { width: 92%; }
.skeleton-line.partial { width: 75%; }

.skeleton-tag {
  width: 55px;
  height: 26px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-tag.wide {
  width: 75px;
}

.post-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 20px 15px 0;
  overflow: hidden;
}

.post-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
}

.post-list-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

.post-list-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-list-meta .post-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f0f0f0;
  font-size: 12px;
  text-transform: capitalize;
  white-space: nowrap;
}

.post-list-meta .post-date {
  font-size: 13px;
  color: #868a9b;
  white-space: nowrap;
}

.post-list-meta .featured-badge {
  font-size: 12px;
  color: #5a8a9e;
  background: #bcd2e2;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}

.post-list-excerpt {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 10px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.post-list-tags .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* Tablet: Slightly smaller */
@media (min-width: 768px) and (max-width: 1024px) {
  .post-list-item {
    height: 160px;
  }

  .post-list-image {
    width: 160px;
    height: 160px;
  }

  .post-list-title {
    font-size: 18px;
  }

  .post-list-excerpt {
    -webkit-line-clamp: 2;
  }
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
  .posts-list {
    min-height: 1050px; /* Space for ~3 stacked cards on mobile */
  }

  .post-list-item {
    flex-direction: column;
    height: auto;
  }

  /* Separate cards visually on mobile with alternating colors */
  .post-list-item:not(.post-list-skeleton) {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .post-list-item:not(.post-list-skeleton):nth-child(odd) {
    background: #ffffff;
    border: 1px solid #ddd;
  }

  .post-list-item:not(.post-list-skeleton):nth-child(even) {
    background: #fff8f0;
    border: 1px solid #e8ddd0;
  }

  .post-list-image {
    width: 100%;
    height: 200px;
  }

  .post-list-image .post-image-container {
    border-radius: 12px 12px 0 0;
  }

  .post-list-image .post-image-skeleton {
    border-radius: 12px 12px 0 0;
  }

  .post-list-content {
    padding: 15px;
  }

  .post-list-header {
    flex-direction: column;
    gap: 8px;
  }

  .post-list-title {
    font-size: 18px;
  }

  .post-list-excerpt {
    -webkit-line-clamp: 3;
  }
}

/* ======= Wiggle Demo for Blog Posts ======= */
.wiggle-demo {
  width: 150px;
  height: 150px;
  background: #e0e0e0;
  animation: border-transform 10s linear infinite alternate;
  border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
}

@keyframes border-transform {
  0%, 100% { border-radius: 63% 37% 54% 46%/55% 48% 52% 45%; }
  14% { border-radius: 40% 60% 54% 46%/49% 60% 40% 51%; }
  28% { border-radius: 54% 46% 38% 62%/49% 70% 30% 51%; }
  42% { border-radius: 61% 39% 55% 45%/61% 38% 62% 39%; }
  56% { border-radius: 61% 39% 67% 33%/70% 50% 50% 30%; }
  70% { border-radius: 50% 50% 34% 66%/56% 68% 32% 44%; }
  84% { border-radius: 46% 54% 50% 50%/35% 61% 39% 65%; }
}

/* ======= Filter Bar Styles ======= */
.filter-bar {
  margin-bottom: 25px;
  position: relative;
  z-index: 50;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Sort Toggles */
.sort-toggles {
  display: flex;
  gap: 6px;
}

.sort-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #868a9b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sort-toggle:hover {
  border-color: #ccc;
  color: #1a1a2e;
}

.sort-toggle.active {
  border-color: #1a1a2e;
  color: #1a1a2e;
  background: #f8f8f8;
}

/* Single Dropdown Container */
.filter-dropdown-container {
  position: relative;
  flex-shrink: 0;
}

.filter-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #1a1a2e;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-dropdown-trigger:hover {
  border-color: #ccc;
}

.filter-dropdown-trigger:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.filter-dropdown-arrow {
  font-size: 12px;
  color: #868a9b;
  transition: transform 0.2s ease;
}

.filter-dropdown-arrow.open {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}

.filter-dropdown-group {
  border-bottom: 1px solid #f0f0f0;
}

.filter-dropdown-group:last-child {
  border-bottom: none;
}

/* Search Input inside dropdown */
.filter-dropdown-search {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.filter-dropdown-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a2e;
  background: #fafafa;
}

.filter-dropdown-search-input:focus {
  outline: none;
  border-color: #1a1a2e;
  background: #fff;
}

.filter-dropdown-search-input::placeholder {
  color: #999;
}

.filter-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: #868a9b;
  font-size: 14px;
}

/* Category Header (not selectable) */
.filter-dropdown-category {
  padding: 10px 15px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #868a9b;
  background: #fafafa;
}

/* Tag Item (selectable) */
.filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  border: none;
  background: none;
  font-size: 14px;
  color: #1a1a2e;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.filter-dropdown-item:hover {
  background: #f5f5f5;
}

.filter-dropdown-item.selected {
  background: #f0f7ff;
}

.filter-dropdown-item-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.filter-dropdown-item-name {
  flex: 1;
}

.filter-dropdown-item-check {
  color: #1a1a2e;
  font-weight: 600;
}

/* Selected Tags Chips */
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.tag-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  padding: 0;
  margin-left: 2px;
  color: inherit;
  transition: opacity 0.2s ease;
}

.tag-chip-remove:hover {
  opacity: 1;
}

.clear-all-link {
  background: none;
  border: none;
  color: #868a9b;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.clear-all-link:hover {
  color: #1a1a2e;
}

/* Empty State */
.posts-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.posts-empty p {
  margin-bottom: 20px;
  font-size: 16px;
}

.clear-filters-btn {
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.clear-filters-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

/* ======= Pagination Styles ======= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.pagination-btn {
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #ccc;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-number:hover:not(.active) {
  background: #f5f5f5;
  border-color: #ccc;
}

.pagination-number.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #868a9b;
}

/* Mobile: Stack filters and simplify pagination */
@media (max-width: 767px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-dropdown-container {
    width: 100%;
  }

  .filter-dropdown-trigger {
    width: 100%;
  }

  .filter-dropdown-menu {
    width: 100%;
    min-width: unset;
  }

  .filter-dropdown-search {
    position: static;
  }

  .filter-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: transparent;
  }

  .filter-dropdown-menu {
    z-index: 100;
  }

  .selected-tags {
    margin-top: 5px;
  }

  .posts-empty {
    min-height: 1050px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pagination-numbers {
    order: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination-prev {
    order: 0;
  }

  .pagination-next {
    order: 2;
  }
}

/* ======= Portfolio Grid Skeleton ======= */
.portfolio-skeleton-item {
  pointer-events: none;
}

.portfolio-skeleton-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 8px;
}

.portfolio-skeleton-title {
  height: 22px;
  width: 70%;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.portfolio-skeleton-excerpt {
  height: 16px;
  width: 90%;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: post-img-shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ======= Showcase Page Portfolio Grid ======= */
.portfolio .portfolio-grid .img-block {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio .portfolio-grid .wrapper-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
  transition: transform 700ms cubic-bezier(0.17, 0.67, 0, 1.01), background 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
  border-radius: 12px;
  overflow: hidden;
}

.portfolio .portfolio-grid .wrapper-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
}

.portfolio .portfolio-grid .wrapper-img img.loading {
  opacity: 0;
}

.portfolio .portfolio-grid .wrapper-img img.loaded {
  opacity: 1;
}

.portfolio .portfolio-grid .title-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  max-width: none;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
  z-index: 2;
}

.portfolio .portfolio-grid .img-block:hover .title-block {
  opacity: 1;
}

.portfolio .portfolio-grid .img-block:hover .wrapper-img {
  transform: scale(0.95);
  background: #18191d;
}

.portfolio .portfolio-grid .img-block:hover .wrapper-img img,
.portfolio .portfolio-grid .img-block:hover .wrapper-img img.loaded {
  opacity: 0.1;
}

.portfolio .portfolio-grid .title-block h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.portfolio .portfolio-grid .title-block p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
