.gallery-section {
    display: none;
    animation: fadeIn .4s ease-in-out
}

.gallery-section.active {
    display: block
}

#page-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: -1px
}

#page-nav::-webkit-scrollbar {
    display: none;
    height: 0
}

#page-nav a.tab-btn {
    flex: 0 0 auto
}

@media(max-width:800px) {
    #page-nav {
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: none !important;
        -ms-overflow-style: none !important
    }

    #page-nav::-webkit-scrollbar {
        display: none;
        height: 0
    }
}

#page-nav a.tab-btn {
    background-color: transparent;
    color: #333;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: all .3s ease;
    padding: 10px 20px;
    margin-bottom: -1px
}

#page-nav a.tab-btn:first-of-type {
    margin-left: 0 !important
}

#page-nav a.tab-btn.active {
    background-color: #1f0033;
    color: #fff;
    border-color: #1f0033
}

#page-nav a.tab-btn:hover {
    border-color: #ddd
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    column-gap: 15px;
    align-items: start;
    grid-auto-rows: 8px;
    grid-auto-flow: row
}

.gallery-item {
    display: block;
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
    height: 100%;
    transform: translateZ(0);
    cursor: pointer
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
    transform-origin: center center;
    border-radius: 0
}

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

.page-nav-scroll-btn {
    position: fixed;
    z-index: 60;
    width: 48px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1f0033;
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    transition: opacity .18s ease, transform .18s ease;
    isolation: isolate;
    background: linear-gradient(90deg, #f7f7f700, #f7f7f7ab, #f7f7f7)
}

#page-nav-left-gradient {
    z-index: 61;
    background: linear-gradient(270deg, #f7f7f700, #f7f7f7ab, #f7f7f7)
}

.page-nav-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(6px)
}

@media(max-width:420px) {
    .page-nav-scroll-btn {
        width: 40px;
        font-size: 20px
    }
}

#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fffc;
    z-index: 9999
}

#loader.visible {
    display: flex
}

.loader-inner {
    text-align: center;
    color: #1f0033;
    font-family: switzer, sans-serif
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(31, 0, 51, .12);
    border-top-color: #1f0033;
    border-radius: 50%;
    animation: spin 1.7s linear infinite;
    margin: 0 auto 10px
}

.loader-text {
    font-size: 14px;
    opacity: .9
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}