/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom,
            #050505,
            #0b0b0b);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            #2a2a2a,
            #1a1a1a);
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.05),
        0 0 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            #3a3a3a,
            #1f1f1f);
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.08),
        0 0 14px rgba(255, 255, 255, 0.06);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #050505;
}

/* Smooth feel for whole page */
html {
    scroll-behavior: smooth;
}


html,
body {
    height: 100%;
    margin: 0;
}

.nav-links {
    position: absolute !important;
    width: 100% !important;
}

body {
    position: relative;
    background: url("../Photos/bg.png") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

body>* {
    position: relative;
}

header {
    height: 10vh !important;
}

header h1 {
    font-size: 20px;
    font-weight: 400;
    color: #eee;
    letter-spacing: 0.05em;
}

.gallery {
    columns: 4 200px;
    column-gap: 8px;
    padding: 50px 30px 30px 30px;
}

.photo {
    break-inside: avoid;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
}

.photo img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.photo:hover img {
    opacity: 0.7;
}

.lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99;
    align-items: center;
    justify-content: center;
}

.lb.open {
    display: flex;
}

.lb img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
}

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    padding: 0 16px;
}

.lb-prev {
    left: 0;
}

.lb-next {
    right: 0;
}

.burger {
    position: relative;
    z-index: 10000;
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 1s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-content img {
    width: 120px;
    opacity: 0;
    animation: fadeLogo 2s ease forwards;
}

.loader-content span {
    color: white;
    font-size: 14px;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeText 2s ease .5s forwards;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeLogo {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeText {
    from {
        opacity: 0;
        letter-spacing: 20px;
    }

    to {
        opacity: .8;
        letter-spacing: 8px;
    }
}