
  html {
    overflow: hidden;
    height: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Completely block vertical scroll */
    background-color: #f5e6d3;
  }

  /* ========================================
     HEADER
     ======================================== */
  .gallery-header {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid #8b7564;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 150px;
  }

  .gallery-header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 42px;
    color: #3a3530;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
  }

  /* Navigation */
  .simple-nav {
    background: #000000;
    padding: 8px 25px;
    border-radius: 10px;
    display: inline-block;
    opacity: 0.6;
  }

  .simple-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 15px;
    transition: all 0.3s ease;
  }

  .simple-nav a:hover {
    color: #8b7564;
    border-bottom: 1px solid #8b7564;
  }

  /* ========================================
     MUSEUM GALLERY
     HORIZONTAL SCROLLING WITH BACKGROUND
     ======================================== */
  .museum-gallery {                                                                                                                                                                         position: fixed;
    top: 150px;                                                                                                                                                                             left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    gap: 80px;
    padding: 0 100px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    align-items: center;
    background-image: url('images/paintingsbg.jpg');
    background-size: 30%;
    background-position: left center;
    background-repeat: repeat;
    background-attachment: local; /* ADD THIS */
  }

  /* Custom scrollbar */
  .museum-gallery::-webkit-scrollbar {
    height: 12px;
  }

  .museum-gallery::-webkit-scrollbar-track {
    background: rgba(139, 117, 100, 0.2);
    border-radius: 10px;
  }

  .museum-gallery::-webkit-scrollbar-thumb {
    background: #8b7564;
    border-radius: 10px;
  }

  .museum-gallery::-webkit-scrollbar-thumb:hover {
    background: #6d5a4d;
  }

  /* ========================================
     PAINTING DISPLAY
     ======================================== */
  .painting-display {
    flex-shrink: 0;
    width: 450px;
    max-height: 100%; /* Don't exceed gallery height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* ========================================
     CUSTOM FRAME IMAGES
     ======================================== */
  .painting-frame-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 50%; /* Limit frame height */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  /* Custom frame image (PNG with transparent center) */
  .frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
  }

  /* Painting image sits behind the frame */
  .painting-image {                                                                                                                                                                           width: 60%; /* Reduce from 85% to 70% (or smaller) */
    height: auto;
    max-height: 400px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
    padding: 40px; /* Increase from 20px to center it better */
  }

  /* Different size for each painting */
  .painting-1 {
    width: 70%;
    padding: 40px;
  }

  .painting-2 {
    width: 80%; /* Make this one smaller */
    padding: 50px;
  }

  .painting-3 {
    width: 55%;
    padding: 35px;
  }

  .painting-4 {
    width: 45%;
    padding: 45px;
  }

  .painting-5 {
    width: 80%;
    padding: 40px;
  }

  .painting-6 {
    width: 68%;
    padding: 42px;
  }
  
    .painting-7 {
    width: 80%;
    padding: 42px;
  }
  /* .painting-image:hover {
    transform: scale(1.02);
  } */

  /* ========================================
     PAINTING INFO BOX
     ======================================== */
  .painting-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #8b7564;
    flex-shrink: 0;
    max-height: 40%; /* Limit info box height */
    overflow: hidden; /* Hide overflow if text is too long */
  }

  .painting-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 20px;
    color: #3a3530;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
  }

  .painting-artist {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: #6d5a4d;
    font-style: italic;
    margin: 0 0 12px 0;
  }

  .painting-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #2a2a2a;
    line-height: 1.5;
    margin: 0 0 12px 0;
  }

  .more-info-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    color: #8b7564;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border-bottom: 2px solid transparent;
  }

  .more-info-link:hover {
    color: #6d5a4d;
    border-bottom: 2px solid #8b7564;
  }

  /* ========================================
     SCROLL HINT
     ======================================== */
  .scroll-hint {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #8b7564;
    padding: 10px 20px;
    font-style: italic;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    z-index: 50;
  }

  /* ========================================
     LIGHTBOX
     ======================================== */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    overflow: hidden; /* Prevent any scrolling in lightbox */
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
  }

  .lightbox-close:hover {
    color: #8b7564;
    transform: scale(1.1);
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    cursor: pointer;
    animation: zoomIn 0.3s ease;
  }

  @keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  /* ========================================
     RESPONSIVE DESIGN
     ======================================== */
  @media (max-width: 768px) {
    .gallery-header {
      padding: 12px 15px;
      max-height: 120px;
    }

    .gallery-header h1 {
      font-size: 32px;
      margin: 0 0 8px 0;
    }

    .museum-gallery {
      top: 120px;
      bottom: 50px;
      padding: 0 30px;
      gap: 50px;
    }

    .painting-display {
      width: 320px;
    }

    .painting-image {
      max-height: 300px;
    }

    .painting-info {
      padding: 18px 20px;
    }

    .painting-title {
      font-size: 18px;
    }

    .lightbox-close {
      top: 20px;
      right: 20px;
      font-size: 40px;
    }
  }

  @media (max-width: 480px) {
    .gallery-header {
      padding: 10px;
      max-height: 100px;
    }

    .gallery-header h1 {
      font-size: 26px;
    }

    .simple-nav a {
      font-size: 14px;
      margin: 0 8px;
    }

    .museum-gallery {
      top: 100px;
      bottom: 45px;
      padding: 0 20px;
      gap: 40px;
    }

    .painting-display {
      width: 280px;
    }

    .painting-image {
      max-height: 250px;
    }

    .scroll-hint {
      font-size: 14px;
      padding: 8px 15px;
    }
  }