#my-parallax-gallery {
    height: 280vh;
    position: relative;
}

.sticky-container {
    height: 100vh; /* Fallback for browsers that don't support calc() or custom properties */
    height: calc(var(--vh, 1vh) * 100);
    position: sticky;
    top: 0;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5vw;
    width: 100%;
    height: 100%;
    padding: 1.5vw;
    will-change: transform;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    will-change: opacity;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.single-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.single-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
    will-change: transform;
}