
/* ==========================================================================
   Portfolio Section — Ananke Hover Mask + Sliding Label Pattern
   ========================================================================== */

.portfolio-section {
  position: relative;
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
  z-index: 2;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1px;
}

/* --- Portfolio Item Box --- */
.portfolio-box {
  position: relative;
  width: 25%;
  padding: 1px;
  overflow: hidden;
}

.portfolio-box .inner {
  position: relative;
  overflow: hidden;
  display: block;
}

.portfolio-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

/* --- White Mask Overlay (scale in on hover) --- */
.portfolio-box .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.portfolio-box:hover .mask {
  transform: scale(1);
}

/* --- Title Label (slides in from right) --- */
.portfolio-box h4 {
  position: absolute;
  right: -100%;
  bottom: 60px;
  z-index: 3;
  background: #292929;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px;
  margin: 0;
  white-space: nowrap;
  transition: right 0.35s ease;
}

.portfolio-box:hover h4 {
  right: 0;
}

/* --- FancyBox Button (bottom-right corner, slides in) --- */
.portfolio-box .fancybox-button {
  position: absolute;
  bottom: 0;
  right: -42px;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #292929;
  color: #fff;
  font-size: 16px;
  z-index: 3;
  transition: right 0.35s ease;
  text-decoration: none;
}

.portfolio-box .fancybox-button:hover {
  background: var(--theme-color);
  color: #fff;
}

.portfolio-box:hover .fancybox-button {
  right: 0;
}

/* --- Portfolio Filter Nav --- */
.portfolio-filter {
  text-align: center;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.portfolio-filter li {
  display: inline-block;
}

.portfolio-filter li a,
.portfolio-filter li button {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: #706e6e;
  letter-spacing: 1px;
  padding: 5px 15px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s linear;
  text-decoration: none;
}

.portfolio-filter li a:hover,
.portfolio-filter li a.active,
.portfolio-filter li button:hover,
.portfolio-filter li button.active {
  color: var(--theme-color);
}

.portfolio-filter li::after {
  content: '::::';
  font-size: 8px;
  color: #ccc;
  vertical-align: middle;
  margin: 0 5px;
}

.portfolio-filter li:last-child::after {
  content: none;
}
