/**
 * Portfolio Lightbox Styles
 */

 .lightbox-container {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .lightbox-container.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
  }
  
  .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: lightboxIn 0.3s;
  }
  
  @keyframes lightboxIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
  }
  
  #lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 4px solid white;
  }
  
  .lightbox-caption {
    padding: 10px;
    color: white;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 1000;
  }
  
  .lightbox-close:hover {
    color: #f1f1f1;
    transform: scale(1.1);
  }
  
  .lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .lightbox-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .lightbox-nav-btn {
      width: 40px;
      height: 40px;
      font-size: 24px;
    }
    
    .lightbox-close {
      top: -35px;
      font-size: 35px;
    }
    
    .lightbox-caption {
      font-size: 14px;
    }
  }