﻿/* purple → blue gradient for nanogallery2 navigation pills */
#nanogallery2 .nGY2NavigationbarItem {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    margin: 0 8px 24px;
    color: #fff;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    user-select: none;
    /* purple → blue gradient */
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #3b82f6 100%);
    box-shadow: 0 8px 20px rgba(12,18,40,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    transform: translateY(0);
}

    #nanogallery2 .nGY2NavigationbarItem:hover,
    #nanogallery2 .nGY2NavigationbarItem:focus {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(12,18,40,0.18);
        filter: saturate(1.06) brightness(1.03);
        outline: none;
    }

    #nanogallery2 .nGY2NavigationbarItem.active,
    #nanogallery2 .nGY2NavigationbarItem.selected,
    #nanogallery2 .nGY2NavigationbarItem.nGY2Selected {
        background: linear-gradient(90deg, #5b21b6 0%, #2563eb 100%);
        box-shadow: 0 12px 28px rgba(37,99,235,0.16);
        color: #fff;
    }

@media (max-width: 576px) {
    #nanogallery2 .nGY2NavigationbarItem {
        padding: 8px 12px;
        font-size: .9rem;
        margin: 6px;
    }
}

/* wide button helper - styled to match the nanogallery2 navigation pills */
.btn-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 320px;
    font-size: 1.05rem; /* slightly larger for button readability */
    padding: 10px 18px;
    color: #fff !important;
    border-radius: 999px;
    border: 0 !important;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #3b82f6 100%) !important;
    box-shadow: 0 8px 20px rgba(12,18,40,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    transform: translateY(0);
}

    .btn-wide:hover,
    .btn-wide:focus {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(12,18,40,0.18);
        filter: saturate(1.06) brightness(1.03);
        outline: none;
    }

    .btn-wide:active,
    .btn-wide.active {
        background: linear-gradient(90deg, #5b21b6 0%, #2563eb 100%) !important;
        box-shadow: 0 12px 28px rgba(37,99,235,0.16);
        color: #fff !important;
        transform: translateY(0);
    }

/* responsive: smaller width on narrow screens */
@media (max-width: 576px) {
    .btn-wide {
        min-width: 160px;
        width: auto;
        padding: 8px 12px;
        font-size: .95rem;
    }
}

/* Scroll to top CSS */
.scrollToTop {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    color: #fff;
    font-size: 2em;
    text-decoration: none;
    background-color: #7c3aed;
    position: fixed;
    z-index: 25;
    bottom: 29px;
    right: 25px;
    display: none;
}

    .scrollToTop span {
        display: flex;
        width: 100%;
        height: 100%;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }

        .scrollToTop span:before {
            /* Make a CSS Chevron */
            border-style: solid;
            border-width: 0.18em 0.18em 0 0;
            content: '';
            height: 0.45em;
            position: relative;
            transform: rotate(-45deg);
            width: 0.45em;
            color: white;
            top: 0.09em;
            /* If you have Font Awesome */
            /*font-family: "Font Awesome 5 Free"; 
                        font-weight: 600;
                        content: "\f062";*/
            color: white;
        }

    .scrollToTop:hover {
        background: #4d6af9;
    }

    .scrollToTop span:hover:before {
        color: white;
    }
/* Responsive Adjustments */
@media screen and (max-width: 767px) {
    .scrollToTop {
        bottom: 47px;
    }
}

@media screen and (max-width: 479px) {
    .scrollToTop {
        bottom: 15px;
    }
}
