.gallery-section {
    position: relative;
    width: 100%;
    min-height: 300vh;
    background: #fff;
    overflow: visible;
    padding-bottom: 100px;
}
.gallery-clip {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 60%;
  overflow: hidden;    
  pointer-events: none;
}
.gallery-content-wrapper {
    position: sticky !important;
    top: 0;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 4rem;
}

.gallery-text-content {
    position: relative;
    z-index: 2;
    max-width: 30%;
    width: 30%;
    margin-bottom: 3rem;
    padding-right: 2rem;
}

.gallery-title {
    font-family: 'Lustria', 'Lustria Placeholder', serif;
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.3;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.gallery-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #666;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.gallery-cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
  background-color: #2c2c2c;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-cta-button:hover {
    background-color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-scroll-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 60%;
    overflow: hidden;
    pointer-events: none;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
}

.gallery-item {
    flex-shrink: 0;
    width: clamp(400px, 35vw, 700px);
    height: clamp(300px, 26vw, 525px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Navigation */
.gallery-navigation {
position: absolute;
    top: 80%;
    left: 75%;
    transform: translateX(-50%);
    display: flex
;
    gap: 1rem;
    z-index: 1000;
    pointer-events: auto;
    padding: 10px;
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #2c2c2c;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c2c2c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.gallery-nav-btn:hover {
    background: #2c2c2c;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.4);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.gallery-nav-btn:disabled:hover {
    background: #f5f5f5;
    color: #999;
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1624px) {
.gallery-title {
    font-size: clamp(2rem, 4vw, 1rem) !important;
}
}
@media (max-width: 1024px) {
    .gallery-content-wrapper {
        padding: 0 2rem;
       
    }

    .gallery-text-content {
        max-width: 40%;
        width: 40%;
        margin-bottom: 2rem;
        padding-right: 2rem;
        flex-shrink: 0;
    }

    .gallery-scroll-container {
        left: 45%;
        right: auto;
        width: 55%;
    }

    .gallery-item {
        width: clamp(300px, 35vw, 500px);
        height: clamp(225px, 26vw, 375px);
    }
}


@media (max-width: 768px) {
    .gallery-section {
        min-height: 280vh;
    }

    .gallery-content-wrapper {
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        padding-top: 6rem;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .gallery-text-content {
        max-width: 100%;
        width: 100%;
        margin-bottom: -2rem;
        padding-right: 0;
        flex-shrink: 0;
    }

    .gallery-description br {
        display: none;
    }

    .gallery-title br {
        display: none;
    }

    .gallery-cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .gallery-scroll-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        margin-left: -1.5rem;
        margin-top: 2rem;
        padding-left: 1.5rem;
    }

    .gallery-track {
        gap: 1rem;
    }

    .gallery-item {
        width: 280px;
        height: 350px;
    }

    .gallery-navigation {
        bottom: -70px;
        gap: 0.75rem;
        padding: 8px;
    }

    .gallery-nav-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        min-height: 200vh;
    }

    .gallery-content-wrapper {
        padding: 1.5rem 1rem;
        padding-top: 7rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .gallery-scroll-container {
        margin-left: -1rem;
        padding-left: 1rem;
    }

    .gallery-item {
        width: 240px;
        height: 300px;
    }

    .gallery-navigation {
      top:92%;
        gap: 0.5rem;
        padding: 6px;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }
    
    .gallery-cta-button {
        transition: none;
    }
}


.gallery-section * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}