
  
  .gallery-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
  }
  
  .main-image {
    flex: 3;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease, transform 0.6s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeZoom 0.8s forwards;
  }
  
  @keyframes fadeZoom {
    from {
      opacity: 0;
      transform: scale(0.98);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .thumbnail-bar {
    flex: 1;
    overflow-y: auto;
    background: #f2f2f2;
    padding: 10px;
  }
  
  .thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s, opacity 0.3s;
  }
  
  .thumb:hover,
  .thumb.active {
    opacity: 1;
    transform: scale(1.05);
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  .modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
  }
  
  .nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
  }
  
  .nav.left { left: 30px; }
  .nav.right { right: 30px; }
  
  /* Responsive */
  @media (max-width: 768px) {
    .gallery-container {
      flex-direction: column;
    }
  
    .thumbnail-bar {
      order: -1;
      padding: 10px 10px 0;
    }
  
    .thumbnails {
      flex-direction: row;
      overflow-x: auto;
    }
  
    .thumb {
      width: 70px;
      height: 70px;
    }
  }
  