.gallery-section {
    background-color: var(--background-color-first);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
  }
  
  .gallery-container {
    max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
    position: relative;
  }  
  
  .gallery-title {
    font-size: 2.5rem;
	line-height: 1.5;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .gallery-description {
    font-size: 1.25rem;
	line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .gallery-animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .gallery-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }  

  .gallery-column {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin-right: 0.5rem;
  }
  .gallery-column:last-child {
    margin-right: 0;
  }
  
  .gallery-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 1s ease, border-color 1s ease;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .gallery-image-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
  }
  
  .gallery-absolute-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  
  .gallery-expanded-item {
    position: absolute;
    transform-origin: top left;
    transition: transform 1s ease, top 1s ease, left 1s ease;
    pointer-events: auto;
  }
  
  @media (max-width: 768px) {
    .gallery-row {
      display: flex !important;
      width: 100%;
      overflow-x: scroll;
      margin-bottom: 1rem;
    }
    .gallery-column {
      flex: 0 0 85%;
      margin-right: 1rem;
    }
    .gallery-column:last-child {
      margin-right: 0;
    }
    .gallery-section {
      padding: 2.5rem 0.5rem;
    }
  }