body:has(.page-custom) header {
    position: sticky;
    --background-color: rgba(42, 44, 57, 0.9);
}
.content_portfolio_listing .top-banner {
    width: 100%;
    margin-bottom: 30px;
}
.content_portfolio_listing .top-banner img {
    width: 100%;
    height: auto;
}
.content_portfolio_listing .control-post a {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 6px;
    background: #eee;
    text-decoration: none;
    color: #333;
}
.content_portfolio_listing .control-post {
    text-align: center;
    margin-top: 20px;
}
.content_portfolio_listing .control-post a.active {
    background: #ff6600;
    color: #fff;
}/* PAGE */
.portfolio-page {
  padding: 60px 0;
  background: #f8f9fb;
}

/* HEADER */
.portfolio-header {
  margin-bottom: 40px;
}

.portfolio-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-header p {
  color: #777;
  font-size: 16px;
}

/* GRID */
.portfolio-grid {
  margin-top: 20px;
}

/* CARD */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 25px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

/* IMAGE */
.image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 65%;
  overflow: hidden;
  position: relative;
}

.image-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: 0.3s ease;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

/* OVERLAY CONTENT */
.overlay-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
}

.overlay-content h3 {
  font-size: 18px;
  margin: 0 0 5px;
}

.view-btn {
  font-size: 14px;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}

/* PAGINATION */
.block-control {
  margin: 30px 0;
}

/* NO LISTING */
.no-listing {
  padding: 60px 0;
  font-size: 18px;
  color: #888;
}

