/* =========================================
   Portfolio Page Specific Styles
   ========================================= */

.page-portfolio {
  background-color: var(--bg-light);
}

/* Portfolio Header */
.page-header { padding: 150px 0 60px; text-align: center; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--primary-color); margin-bottom: 10px; }
.page-header p { font-size: 1.25rem; color: #555; }

/* Filter Controls */
.filter-controls { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 25px; border: 2px solid #ddd; background: transparent; 
  border-radius: var(--radius-pill); font-family: var(--font-main); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary-color); background: var(--primary-color); color: var(--text-light); }

/* Full Grid Layout */
.full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  grid-auto-flow: dense;
  align-items: start;
}
.full-grid .gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; display: block; }
.full-grid .gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.full-grid .gallery-item:hover img { transform: scale(1.05); }

/* Hidden utility for JS filtering */
.gallery-item.hidden { display: none !important; }

/* Full width landscape items */
.full-grid .gallery-item.item-landscape {
  grid-column: 1 / -1;
}

/* Logo specific formatting */
img.logo-rectangle {
  aspect-ratio: 16/9;
  object-fit: contain;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Optional styling for a soft card look instead of a blue outline */
  box-sizing: border-box;
}

img.logo-landscape {
  aspect-ratio: 21/9; 
  object-fit: contain;
  padding: 10px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  width: 100%;
  max-height: 250px;
}

/* Food Branding Special Showcase */
.full-grid .gallery-item.food-branding-showcase {
  grid-column: 1 / -1;
  display: flex;
  background-color: #f7e6cc;
  border-radius: 20px;
  padding: 30px;
  gap: 20px;
  cursor: default;
  align-items: stretch;
}
.full-grid .gallery-item.food-branding-showcase img {
  width: auto; height: auto; transition: none;
}
.full-grid .gallery-item.food-branding-showcase:hover img {
  transform: none;
}
.fbs-left {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.fbs-left img {
  max-width: 80%;
  object-fit: contain;
}
.fbs-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.fbs-gradient {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, #f7e6cc 0%, rgba(247,230,204,0) 100%);
  z-index: 2;
  pointer-events: none;
}
.fbs-scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  width: 100%;
}
.fbs-scroll-track::-webkit-scrollbar {
  display: none;
}
.fbs-post {
  flex: 0 0 250px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.fbs-post img {
  width: 100% !important;
  height: 350px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease !important;
}
.fbs-post:hover img {
  transform: scale(1.05) !important;
}
@media (max-width: 768px) {
  .full-grid .gallery-item.food-branding-showcase {
    flex-direction: column;
    padding: 20px;
  }
  .fbs-left {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }
  .fbs-right {
    width: 100%;
  }
  .fbs-gradient {
    display: none;
  }
}

/* Media Queries for Portfolio */
@media (max-width: 480px) {
  .full-grid { grid-template-columns: 1fr; }
}
