/* Custom code */


  /* ==== GALLERY THUMBNAILS ==== */
  #galleryUltraBox_2025 .ultra-thumb-grid-x7 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }

  #galleryUltraBox_2025 .ultra-thumb-grid-x7 img {
    width: 300px;
    height: 300px; /* uniform square thumbnails */
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid #e5e5e5;
    background: #f8f8f8;
    cursor: pointer;
  }

  #galleryUltraBox_2025 .ultra-thumb-grid-x7 img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  @media (max-width: 600px) {
    #galleryUltraBox_2025 .ultra-thumb-grid-x7 img {
      width: 100%;
      height: 250px;
    }
  }

  /* ==== LIGHTBOX OVERLAY ==== */
  #galleryUltraLightbox_2025.gub-lightbox {
    display: none;              /* shown via JS */
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  #galleryUltraLightbox_2025.gub-lightbox.is-visible {
    display: flex;
  }

  .gub-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gub-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  }

  .gub-caption {
    margin-top: 10px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
    word-break: break-word;
  }

  /* Close button */
  .gub-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 22px;
    border: none;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
  }

  /* Prev/Next buttons */
  .gub-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    cursor: pointer;
    font-size: 26px;
    line-height: 60px;
    text-align: center;
    border-radius: 4px;
  }

  .gub-nav-prev {
    left: -60px;
  }

  .gub-nav-next {
    right: -60px;
  }

  @media (max-width: 768px) {
    .gub-nav-prev {
      left: 5px;
    }
    .gub-nav-next {
      right: 5px;
    }
  }

