.project-image-section {
  border-radius: 0.5rem;
}

.project-image-section img, .portfolio-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Mobile spacing fixes */
@media screen and (max-width: 60rem) {
  .portfolio-grid {
    gap: 1rem;
    padding: 1rem;
  }
  
  .portfolio-item {
    gap: 1rem;
    min-height: 200px;
    max-height: 12rem;
    padding-bottom: 3rem;
  }
  
  .portfolio-item .video-image,
  .portfolio-item .video-info {
    padding: 0.5rem;
  }
  
  .video-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .video-subtitle {
    font-size: 0.8rem;
  }
  
  .videos-intro {
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  
  .videos-intro .text {
    text-align: left;
  }
  
  .videos-empty {
    padding: 2rem 1rem;
  }
}


/* Portfolio Grid Layout */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 3rem 0;
}

.portfolio-item {
  display: flex;
  gap: 2rem;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 20rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Project Image Section (2/3 width) */
.project-image-section {
  flex: 2;
  position: relative;
  overflow: hidden;
}

.project-image {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111; /* letterbox background */
  height: 100%;
  min-height: 200px;
}

.project-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  background: #111;
  margin: auto;
  display: block;
}

.portfolio-item:hover .project-image img {
  transform: scale(1.02);
}

/* Project Info Section (1/3 width) */
.project-info-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.project-info {
  width: 100%;
}

.project-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.project-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--color-text-grey);
  font-size: 0.95rem;
}



/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-image-section {
    flex: none;
  }
  
  .project-image {
    aspect-ratio: 2/3;
    max-height: 400px;
  }
  
  .project-info-section {
    flex: none;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .portfolio-item {
    min-height: auto;
  }
  
  .project-image {
    aspect-ratio: 2/3;
    max-height: 350px;
  }
  
  .project-title {
    font-size: 2rem;
  }
  
  .project-info-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-item {
    min-height: auto;
  }
  
  .project-image {
    aspect-ratio: 2/3;
    max-height: 300px;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
}
