/* =============================================
   OUR PORTFOLIO SCREEN STYLING
   ============================================= */

.portfolio-tab-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-content-container {
  padding: 20px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* =============================================
   PORTFOLIO GALLERY GRID (2 Columns on Mobile)
   ============================================= */
.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-grid-item {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.portfolio-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.portfolio-item-img-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.portfolio-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 5;
}

.portfolio-fav-btn i { color: #0b8043; font-size: 14px; }

.portfolio-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-grid-item:hover .portfolio-item-img {
  transform: scale(1.05);
}

/* Full overlay title styling matching the mockup */
.portfolio-item-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 10px 12px;
  box-sizing: border-box;
  z-index: 2;
}

/* Small category badge */
.portfolio-item-cat-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.portfolio-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* =============================================
   DESKTOP RESPONSIVE STYLE
   ============================================= */
@media (min-width: 768px) {
  .portfolio-tab-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
  }

  .portfolio-content-container {
    padding: 0;
  }

  .portfolio-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 10px;
  }

  .portfolio-item-img-wrapper {
    height: 165px;
  }

  .portfolio-item-name {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
