 /* Modal */
  .gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
  }
  .gallery-modal.open { display: block; }
  .gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
  }
  .gallery-modal-content {
    position: relative;
    max-width: 1000px;
    width: 92%;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
  }
  .gallery-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e2430;
  }
  .gallery-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
  }
  .gallery-close:hover { color: #111; }

  .gallery-grid {
    padding: 16px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .gallery-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
    display: block;
  }
  .gallery-grid img:hover { transform: scale(1.04); }

  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: 88%;
    max-height: 82%;
    border-radius: 6px;
  }
  .lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .lightbox-close { top: 20px; right: 20px; }
  .lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
  .lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
  .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.25);
  }
  .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
  }