/* Gallery Section Styles with unique class names */
.jate-gallery-section {
    padding: 2rem 0;
    background: linear-gradient(to bottom, #ffffff, #e6f0ff);
  }
  
  .jate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .jate-section-header {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: jateGalleryFadeIn 0.8s ease forwards;
  }
  
  .jate-section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    /* color: #1a202c; */
    margin-bottom: 0.5rem;
  }
  
  .jate-section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 36rem;
    margin: 1rem auto 0;
  }
  
  /* Tab Navigation */
  .jate-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: jateGalleryFadeIn 0.8s ease forwards 0.2s;
  }
  
  .jate-tab-button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none !important;
  }
  
  .jate-tab-button:focus {
    outline: none !important;
    /* box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); */
  }
  
  .jate-tab-button.jate-active {
    background-color: #2563eb;
    color: white;
    outline: none !important;
  }
  
  .jate-tab-button:not(.jate-active) {
    background-color: white;
    color: #2563eb;
    border: 1px solid #d1e2ff;
    outline: none !important
    ;
  }
  
  .jate-tab-button:not(.jate-active):hover {
    background-color: #f0f5ff;
    transform: translateY(-2px);
    outline: none !important;
  }
  
  .jate-tab-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    outline: none !important;
  }
  
  .jate-tab-button:not(.jate-active):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Gallery Grid */
  .jate-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  @media (min-width: 640px) {
    .jate-gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .jate-gallery-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Gallery Item */
  .jate-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: jateGalleryZoomIn 0.6s ease forwards;
  }
  
  .jate-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .jate-gallery-item-1 { animation-delay: 0.1s; }
  .jate-gallery-item-2 { animation-delay: 0.2s; }
  .jate-gallery-item-3 { animation-delay: 0.3s; }
  .jate-gallery-item-4 { animation-delay: 0.1s; }
  .jate-gallery-item-5 { animation-delay: 0.2s; }
  .jate-gallery-item-6 { animation-delay: 0.3s; }
  
  .jate-gallery-item-image {
    position: relative;
    padding-bottom: 60%;
  }
  
  @media (min-width: 640px) {
    .jate-gallery-item-image {
      padding-bottom: 72%;
    }
  }
  
  .jate-gallery-item-image img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
  .jate-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
  }
  
  .jate-gallery-item:hover .jate-gallery-item-overlay {
    opacity: 0.8;
  }
  
  .jate-gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    transform: translateY(2px);
    transition: transform 0.3s ease;
  }
  
  .jate-gallery-item:hover .jate-gallery-item-content {
    transform: translateY(0);
  }
  
  .jate-gallery-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .jate-gallery-item-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #e5e7eb;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .jate-gallery-item:hover .jate-gallery-item-description {
    opacity: 1;
  }
  
  /* CTA */
  .jate-cta {
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: jateGalleryFadeIn 0.8s ease forwards 0.5s;
  }
  
  
  
  /* Animations with unique names */
  @keyframes jateGalleryFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes jateGalleryZoomIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Tab Content Transitions */
  .jate-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .jate-tab-content.jate-active {
    display: grid;
    animation: jateGalleryFadeIn 0.5s ease forwards;
  }

  /* Add these styles to enable image zoom animation on hover */

/* Modify the existing image container to add overflow hidden */
.jate-gallery-item-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden; /* Add this to contain the zooming image */
  }
  
  @media (min-width: 640px) {
    .jate-gallery-item-image {
      padding-bottom: 72%;
      overflow: hidden; /* Also add to the media query version */
    }
  }
  
  /* Modify the image style to add a transition */
  .jate-gallery-item-image img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Add transition for smooth zoom */
  }
  
  /* Add the zoom effect when hovering over the gallery item */
  .jate-gallery-item:hover .jate-gallery-item-image img {
    transform: scale(1.2); /* Increase scale for zoom effect */
  }
  
  /* Optionally, you can remove or reduce the item scale if you only want the image to zoom */
  .jate-gallery-item:hover {
    transform: scale(1.02); /* Reduce this from 1.05 to make the image zoom more noticeable */
  }

  /* Enhance text animation on hover with slow reveal */

/* Modify the gallery item content (text container) */
.jate-gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    transform: translateY(20px); /* Start more off-screen */
    opacity: 0; /* Start fully transparent */
    transition: transform 0.6s ease, opacity 0.6s ease; /* Slower transition */
  }
  
  /* Slow appearance of content when hovering */
  .jate-gallery-item:hover .jate-gallery-item-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Add staggered animation for title and description */
  .jate-gallery-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s; /* Delay for staggered effect */
  }
  
  .jate-gallery-item:hover .jate-gallery-item-title {
    opacity: 1;
    transform: translateY(0);
  }
  
  .jate-gallery-item-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #e5e7eb;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; /* Longer delay for staggered effect */
  }
  
  .jate-gallery-item:hover .jate-gallery-item-description {
    opacity: 1;
    transform: translateY(0);
  }