.site {
  min-height: 100vh;
  background: #fff;
  color: hsl(20, 14.3%, 4.1%);
}

/* Portfolio Section Layout */
.portfolio-section {
  position: relative;
  padding: 80px 0;
  background: #fff;
}

.portfolio-subtitle {
  font-size: 70px;
  font-weight: 600;
  line-height: 55px;
  color: rgba(255, 70, 18, 0.13);
  transform: rotate(-90deg);
  position: absolute;
  left: -230px;
  top: 196px;
}

.portfolio-main {
  position: relative;
  background: #fff;
  padding: 0 150px;
  padding-bottom: 70px !important;
}

.portfolio-spacing {
  height: 80px;
}

/* Background Lines Effect */
.vc-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.vc-bg-lines div {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: hsl(20, 5.9%, 90%);
  opacity: 0.5;
}

.vc-bg-lines div:nth-child(1) { left: 14.28%; }
.vc-bg-lines div:nth-child(2) { left: 28.56%; }
.vc-bg-lines div:nth-child(3) { left: 42.84%; }
.vc-bg-lines div:nth-child(4) { left: 57.12%; }
.vc-bg-lines div:nth-child(5) { left: 71.40%; }
.vc-bg-lines div:nth-child(6) { left: 85.68%; }
.vc-bg-lines div:nth-child(7) { right: 0; }

/* Section Label */
.portfolio-label {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 14px;
  font-weight: 500;
  color: hsl(25, 5.3%, 44.7%);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

/* Portfolio Heading */
.portfolio-heading {
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.portfolio-heading .subtitle {
  font-size: 14px;
  color: hsl(25, 5.3%, 44.7%);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 1px;
}

.portfolio-heading .title {
  font-size: 48px;
  font-weight: 300;
  color: hsl(20, 14.3%, 4.1%);
  margin: 0;
  line-height: 1.1;
}

.portfolio-heading .title b {
  font-weight: 700;
  color: #ff4612;
}

/* Portfolio Container */
.portfolio-container {
  position: relative;
  z-index: 10;
}

/* Filter List */
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
  list-style: none;
  padding: 0;
}

.filter-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(25, 5.3%, 44.7%);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
  cursor: pointer;
}

.filter-list li a:hover,
.filter-list li a.active {
  color: hsl(20, 14.3%, 4.1%);
}

.filter-list .name {
  font-size: 16px;
}

.filter-list .num {
  font-size: 12px;
  background: hsl(60, 4.8%, 95.9%);
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.filter-list li a.active .num {
  color: hsl(211, 100%, 99%);
}

/* Portfolio Grid - Masonry Layout */
.masonry-container {
  position: relative;
  width: 100%;
  min-height: 650px;
}

.portfolio-item-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.portfolio-item-wrap.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item-wrap.portfolio-item-0 { transition-delay: 0ms; }
.portfolio-item-wrap.portfolio-item-1 { transition-delay: 100ms; }
.portfolio-item-wrap.portfolio-item-2 { transition-delay: 200ms; }

/* Portfolio Item */
.portfolio-item {
  position: relative;
  overflow: hidden;
  background: hsl(60, 4.8%, 95.9%);
  height: 260px;
}

.portfolio-item.grid-tall {
  height: 400px;
}

.masonry-block {
  position: absolute;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.portfolio-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover Overlay */
.description.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(217 212 212 / 69%);
  opacity: 0;
  margin:30px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.portfolio-item:hover .description.overlay {
  opacity: 1;
}

.portfolio-item:hover .image-wrap img {
  transform: scale(1.05);
}

.content-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wrap {
  text-align: center;
  max-width: 80%;
}

.category.tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(207, 90%, 54%);
  margin-bottom: 12px;
  font-weight: 500;
}

/* .wrap .title {
  font-size: 20px;
  font-weight: 600;
  color: hsl(0, 0%, 98%);
  margin: 0 0 16px 0;
  line-height: 1.3;
} */

.more.brand-color {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #ff4612;
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.more.brand-color:hover {
  /* background: hsl(207, 90%, 54%); */
}

.plus-icon {
  color: #ff4612;
  font-size: 24px;
  transition: color 0.3s ease;
}

.more.brand-color:hover .plus-icon {
  /* color: hsl(211, 100%, 99%); */
}

/* Animation effects like original Norebro theme */
.aos-init.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.norebro-project-item {
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.norebro-project-item:hover {
  transform: translateY(-5px);
}

/* Grid column classes matching original theme */
.vc_col-lg-4 {
  width: 32%;
}

.vc_col-lg-8 {
  width: 66%;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(20, 14.3%, 4.1%);
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10001;
  font-size: 20px;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(20, 14.3%, 4.1%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  font-size: 24px;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-image-container {
  position: relative;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: lightboxFadeIn 0.5s ease-in-out;
}

.lightbox-caption {
  margin-top: 20px;
  text-align: center;
  color: hsl(20, 14.3%, 4.1%);
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lightbox-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(207, 90%, 54%);
  font-weight: 500;
}

.lightbox-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: hsl(20, 14.3%, 4.1%);
}

.lightbox-description {
  font-size: 14px;
  color: hsl(25, 5.3%, 44.7%);
  margin: 0;
  line-height: 1.5;
}

.lightbox-counter {
  font-size: 12px;
  color: hsl(25, 5.3%, 44.7%);
  font-weight: 500;
}

@keyframes lightboxFadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-main {
    padding: 0 40px;
  }
  
  .masonry-container {
    min-height: 600px;
  }
  
  .portfolio-item-wrap {
    width: 48% !important;
  }
  
  .portfolio-heading .title {
    font-size: 40px;
  }
  
  .lightbox-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .portfolio-main {
    padding: 0 20px;
  }
  
  .masonry-container {
    min-height: 400px;
  }
  
  .portfolio-item-wrap {
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    margin-bottom: 20px;
  }
  
  .filter-list {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .portfolio-heading .title {
    font-size: 32px;
  }
  
  .portfolio-label {
    display: none;
  }
  
  .lightbox-container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-close {
    top: -50px;
    right: -10px;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 0;
  top: 0;
  background: hsl(0, 0%, 98%);
  color: hsl(20, 14.3%, 4.1%);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100000;
}

/* Clear fix */
.vc_row-full-width {
  clear: both;
}

.clear {
  clear: both;
}

/* Hidden by default */
.portfolio-item-wrap.hidden {
  opacity: 0 !important;
  pointer-events: none;
}
</style>