
html,
body{
    overflow-x:hidden;
}

* { cursor: none !important; }

#gallery-section {
     position: relative;
     height: 100vh;
     overflow: hidden;
     background: #0a0a0a;
 }

#gallery-wrapper {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #0a0a0a;

    user-select: none;
    overflow: hidden;

    touch-action: none;
}

#gallery-container {
    position: absolute;
    top: 0;
    left: 0;

    will-change: transform, filter;


}


/* Gallery Buttons */

.gallery-btn {
    padding: 8px 16px;

    font-size: 0.875rem;
    text-transform: capitalize;

    border-radius: 9999px;

    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;

    color: #a3a3a3;

    background: transparent;

    border: none;
    cursor: pointer;
}


.gallery-btn:hover {
    color: white;
    background: #262626;
}


.gallery-btn.active {
    background: white;
    color: black;
    font-weight: 500;
}


/* Divider */

.gallery-divider {
    width: 1px;
    height: 24px;

    background: #262626;

    margin-left: 4px;
    margin-right: 4px;
}


/* Drift Button */

.drift-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    border-radius: 9999px;

    transition:
            color 0.2s ease,
            background-color 0.2s ease;

    color: #a3a3a3;

    background: transparent;

    border: none;

    cursor: pointer;
}


.drift-btn:hover {
    color: white;
    background: #262626;
}

.gallery-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 4px;

    background: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(8px);

    border: 1px solid #262626;
    border-radius: 9999px;

    z-index: 100;

    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

.gallery-item-wrapper {
    position: absolute;
    will-change: transform, left, top;
    transition: box-shadow 0.2s;
}

.gallery-item-wrapper.focused {
    z-index: 10;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #0a0a0a;
}

.gallery-item-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #171717;
    border-radius: 2px;
    overflow: hidden;
    cursor: none;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    pointer-events: none;
}
.gallery-item-wrapper:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0);
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#cursor {
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 8px;
    height: 8px;

    background: white;
    border-radius: 9999px;

    pointer-events: none;
    z-index: 20000;

    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    transform: translate(-50%, -50%);
}

#cursor-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;

    color: black;

    opacity: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

#lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;
    pointer-events: none;
}

#back-to-top {
    position: absolute;
    right: 30px;
    bottom: 90px;
    z-index: 101;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    background: rgba(10,10,10,.85);
    border: 1px solid rgba(255,255,255,.2);
    color: white;

    font-family: "Rajdhani", sans-serif;
    font-size: 14px;
    letter-spacing: 2px;

    cursor: pointer;
    backdrop-filter: blur(10px);

    opacity: 0;
    transform: translateY(20px);

    pointer-events: none;
    transition: .3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    background: white;
    color: black;
}

#back-to-top .arrow {
    font-size: 18px;
}

.container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto;
}


/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;,
    style="display:none;
}


/* Background */
.lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: auto;
}


/* Controls */
.lightbox-controls {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}


/* Buttons */
.lightbox-btn {
    position: absolute;
    padding: 12px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 999px;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    pointer-events:auto;

    transition:
            background .2s ease,
            transform .2s ease;
}


.lightbox-btn:hover {
    background: rgba(0,0,0,0.6);
    transform:scale(1.05);
}


.lightbox-btn:active {
    transform:scale(.95);
}


/* Lucide icons */
.lightbox-btn svg {
    width:24px;
    height:24px;
}


.close-btn {
    top:16px;
    right:16px;
}


.prev-btn {
    left:16px;
    top:50%;
    transform:translateY(-50%);
}


.next-btn {
    right:16px;
    top:50%;
    transform:translateY(-50%);
}


/* Animated image container */
.lightbox-content {
    position:absolute;
    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;

    pointer-events:auto;
    cursor:default;
}


/* Image */
.lightbox-img {
    width:100%;
    height:100%;
    object-fit:cover;

    border-radius:2px;

    box-shadow:
            0 25px 50px rgba(0,0,0,.25);
}



@media(max-width:640px){

    .lightbox-btn svg {
        width:24px;
        height:24px;
    }

}


@media(min-width:641px){

    .close-btn {
        top:32px;
        right:32px;
    }


    .prev-btn {
        left:32px;
    }


    .next-btn {
        right:32px;
    }


    .lightbox-btn svg {
        width:32px;
        height:32px;
    }
}