/* Gallery styles for Lofi Foundation Events Media */
:root {
    --transition-speed: 0.3s;
    --active-border-color: #ffd700;
    --active-shadow-color: rgba(255, 215, 0, 0.3);
    --active-glow-color: rgba(255, 215, 0, 0.2);
    --arrow-size: 32px;
    --arrow-color: var(--primary-light);
    --arrow-hover-color: var(--active-border-color);
    --overlay-color: #6186d5;
    --overlay-opacity: 0.55;
    --glass-bg: rgba(35, 45, 65, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 4px;
    --modal-bg: rgba(0, 0, 0, 0.9);
}

/* Background Sections */
.background-sections {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Event Media/Graphics/background_maineventsmedia_landscape_desktop.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    opacity: var(--overlay-opacity);
    pointer-events: none;
}

/* Apply glass effect to gallery modal */
.modal-wrapper-2.main.gallery.w-node-aa6b9423-ab8f-9451-bf8f-2bc4a1241237-7d83aa8a {
    position: relative;
    z-index: 100 !important;
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
}

/* Ensure hero overlay stays on top */
.overlay.tophero.v2 {
    z-index: 9999999;
    opacity: .35 !important;
    mix-blend-mode: overlay;
    display: flex;
    position: fixed;
}

/* Responsive Background Images */
@media screen and (max-width: 991px) {
    .background-main {
        background-image: url('../images/Event Media/Graphics/background_maineventsmedia_Portrait_Tabletdown.jpg');
    }
}

/* Override Webflow gallery styles */
#LiteboxWrapper {
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 1050px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 1280px) {
    #LiteboxWrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 991px) {
    .div-block-18.maxwidth95vw {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .divcontentcontainer {
        padding: 1rem;
    }

    .imagegallerygridwrapper {
        width: 95%;
        bottom: 0.75rem;
        max-height: 100px;
    }

    .gridimagewrapper {
        flex: 0 0 80px;
    }

    .container-2.grid.addmargin.fullwidth.privacypolicy {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 767px) {
    :root {
        --arrow-size: 28px;
    }

    .overlay.tophero.v2 {
        z-index: 9999999;
        opacity: .25 !important;
        mix-blend-mode: overlay;
        display: flex;
        position: fixed;
    }

    .nav-arrows-container {
        top: 6px;
        padding: 0 6px;
    }

    .divimagetopcontainer {
        min-height: 50vh;
        max-height: none;
        height: auto;
        aspect-ratio: 3/2;
    }

    .imagegallerytop {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        min-width: 100%;
        min-height: 100%;
    }

    .imagegallerygrid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
        max-height: 450px;
        margin-top: 3rem;
    }
    
    .grid-scroll-arrow {
        top: 3rem;
    }

    .gridimagewrapper {
        margin-bottom: 0.5rem;
        border-width: 1px;
    }

    .modal-wrapper-2.main.gallery {
        padding: 15px;
    }

    .container-2.grid.addmargin.fullwidth.privacypolicy {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .fullscreen-nav button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .fullscreen-nav button svg {
        width: 18px;
        height: 18px;
    }

    #fullscreenPrev,
    #fullscreenNext {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
    }
    #fullscreenPrev svg,
    #fullscreenNext svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media screen and (max-width: 479px) {
    .divcontentcontainer {
        min-height: calc(100svh - 100px);
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .divimagetopcontainer {
        min-height: 40vh;
        max-height: 35vh;
        aspect-ratio: 1/1;
    }

    .imagegallerytop {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
    }

    .h1.center.smaller2 {
        font-size: 1.75rem;
    }
}

.modal-wrapper-2.main.gallery {
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    width: 100%;
}

@media screen and (min-width: 1280px) {
    .modal-wrapper-2.main.gallery {
        width: 1050px;
    }
}

.modal-body.privacypolicy {
    padding: 0;
    width: 100%;
    position: relative;
}

/* Gallery Container Layout */
.divcontentcontainer {
    max-width: 1440px;
    min-height: calc(100svh - 200px);
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Featured Image Container */
.divimagetopcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 70vh;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    box-shadow: 0 0 20px -5px var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.divimagetopcontainer::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(35, 45, 65, 0.85);
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0.9;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236186d5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.divimagetopcontainer:hover::after {
    cursor: pointer;
}

.divimagetopcontainer:hover {
    cursor: grab;
}

@media (hover: hover) {
    .divimagetopcontainer:active {
        cursor: grabbing;
    }
    .divimagetopcontainer:hover::after {
        cursor: pointer;
    }
}

.imagegallerytop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.25s;
}

/* Grid Container - Overlay */
.imagegallerygridwrapper {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.75rem;
    z-index: 10;
    max-height: 120px;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.grid-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--darkprimary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0.75;
    transition: opacity 0.3s ease;
    padding: 0;
    pointer-events: auto;
}

.grid-scroll-arrow:hover {
    opacity: 1;
}

.grid-scroll-left {
    left: -16px;
}

.grid-scroll-right {
    right: -16px;
}

.grid-scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.imagegallerygridwrapper:hover .grid-scroll-arrow {
    opacity: 1;
}

.imagegallerygrid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 0.5rem;
    padding: 0.5rem;
    max-height: 450px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
    border-left: 8px solid #a8b8ed;
    border-right: 8px solid #a8b8ed;
    box-shadow: 0 8px 24px rgba(35, 45, 65, 0.4);
}

.imagegallerygrid:active {
    cursor: grabbing;
}

.imagegallerygrid::-webkit-scrollbar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.imagegallerygrid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 4px;
}

.imagegallerygrid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.imagegallerygrid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Grid Image Items */
.gridimagewrapper {
    flex: 0 0 100px;
    aspect-ratio: 1;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.gridimagewrapper:hover {
    transform: translateY(-5px);
    border-color: var(--active-border-color);
    box-shadow: 0 0 15px var(--active-shadow-color);
}

.gridimagewrapper.active {
    border-color: var(--active-border-color);
    box-shadow: 0 0 15px var(--active-shadow-color),
                0 0 30px var(--active-glow-color);
    transform: scale(1.05);
    z-index: 2;
}

.gridimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed) ease;
}

.gridimage:hover {
    opacity: 0.9;
}

/* Navigation Arrows for Grid */
.nav-arrows-container {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 20;
}

.gallery-nav-arrow {
    width: var(--arrow-size);
    height: var(--arrow-size);
    background-color: var(--glass-bg);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    pointer-events: auto;
}

.gallery-nav-arrow:hover {
    background-color: var(--primary-light);
    color: var(--darkprimary);
    transform: scale(1.1);
}

.gallery-nav-arrow.prev::before {
    content: '←';
}

.gallery-nav-arrow.next::before {
    content: '→';
}

.gallery-nav-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Adjustments */
@media screen and (max-width: 991px) {
    .divcontentcontainer {
        padding: 1rem;
    }

    .imagegallerygridwrapper {
        width: 95%;
        bottom: 0.75rem;
        max-height: 100px;
    }

    .gridimagewrapper {
        flex: 0 0 80px;
    }

    .divimagetopcontainer {
        min-height: 60vh;
        aspect-ratio: 3/2;
    }

    .imagegallerytop {
        object-fit: cover;
        object-position: center;
    }
}

/* Print styles */
@media print {
    .imagegallerygrid {
        max-height: none;
        overflow: visible;
    }

    .gridimage {
        page-break-inside: avoid;
    }
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    cursor: default;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.fullscreen-image,
.fullscreen-close,
.fullscreen-nav button {
    pointer-events: auto;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--glass-bg);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-light);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.fullscreen-close:hover {
    background-color: var(--primary-light);
    color: var(--darkprimary);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.fullscreen-nav button {
    width: 50px;
    height: 50px;
    background-color: var(--glass-bg);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-light);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
    pointer-events: auto;
    padding: 0;
}

.fullscreen-nav button:hover {
    background-color: var(--primary-light);
    color: var(--darkprimary);
    transform: scale(1.1);
}

.fullscreen-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.fullscreen-nav button svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-speed) ease;
}

.fullscreen-nav button:hover svg {
    transform: scale(1.1);
}

.fullscreen-nav button.prev {
    margin-right: 1rem;
}

.fullscreen-nav button.next {
    margin-left: 1rem;
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-top: 3px solid var(--dark-accent-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.loading-spinner.small {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.loading .loading-spinner {
    opacity: 1;
}

/* Featured Image Container */
.divimagetopcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 70vh;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    box-shadow: 0 0 20px -5px var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.divimagetopcontainer.loading {
    background-color: var(--darkprimary);
}

/* Grid Image Items */
.gridimagewrapper {
    flex: 0 0 100px;
    aspect-ratio: 1;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.gridimagewrapper.loading {
    background-color: var(--darkprimary);
}

.gridimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed) ease;
    opacity: 0;
}

.gridimage.loaded {
    opacity: 1;
}

/* Mobile Adjustments */
@media screen and (max-width: 479px) {
    .divcontentcontainer {
        min-height: calc(100svh - 100px);
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .divimagetopcontainer {
        min-height: 40vh;
        max-height: 35vh;
        aspect-ratio: 1/1;
    }

    .imagegallerytop {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
    }

    .h1.center.smaller2 {
        font-size: 1.75rem;
    }
}

/* Prevent user-select and browser drag on grid and children for clean desktop drag/scroll */
.imagegallerygrid, .imagegallerygrid * {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#fullscreen-grid-slider {
    overflow-y: hidden !important;
    max-height: 80px !important;
    min-height: 64px !important;
}
#fullscreen-grid-slider > div {
    overflow-y: hidden !important;
    max-height: 64px !important;
    min-height: 56px !important;
}
#fullscreen-grid-slider img {
    max-height: 56px !important;
    height: 56px !important;
    width: 56px !important;
}

/* Custom scrollbar for fullscreen grid overlay (desktop) */
@media (hover: hover) and (pointer: fine) {
  #fullscreen-grid-slider > div {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) rgba(255,255,255,0.1);
  }
  #fullscreen-grid-slider > div::-webkit-scrollbar {
    height: 8px;
    background: rgba(255,255,255,0.1);
  }
  #fullscreen-grid-slider > div::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 0 4px;
  }
  #fullscreen-grid-slider > div::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.1);
  }
  #fullscreen-grid-slider > div::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
  }
}

/* Navigation Tip Component */
.nav-tip-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-tip-container.visible {
    opacity: 1;
    visibility: visible;
}

.nav-tip-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(35, 45, 65, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    font-family: 'Gluten', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.nav-tip-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.nav-tip-arrow svg {
    width: 14px;
    height: 14px;
}

.nav-tip-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    opacity: 0.9;
}

/* Mobile-specific styles */
@media (hover: none) and (pointer: coarse) {
    .nav-tip-text {
        font-size: 0.8rem;
    }
    
    .nav-tip-content {
        padding: 0.625rem 1rem;
        gap: 0.625rem;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .nav-tip-container {
        bottom: 2rem;
    }
    
    .nav-tip-content {
        padding: 0.5rem 0.875rem;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-tip-arrow {
        width: 20px;
        height: 20px;
    }
    
    .nav-tip-arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .nav-tip-text {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 479px) {
    .nav-tip-container {
        bottom: 1.5rem;
    }
    
    .nav-tip-content {
        padding: 0.5rem 0.75rem;
        gap: 0.375rem;
        font-size: 0.7rem;
    }
    
    .nav-tip-arrow {
        width: 18px;
        height: 18px;
    }
    
    .nav-tip-arrow svg {
        width: 10px;
        height: 10px;
    }
}

/* Animation states for GSAP */
.nav-tip-container.gsap-ready {
    opacity: 0;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
}

.nav-tip-container.gsap-ready .nav-tip-content {
    transform: scale(0.8);
}

.nav-tip-container.gsap-ready .nav-tip-arrow {
    transform: scale(0.5);
    opacity: 0;
}

.nav-tip-container.gsap-ready .nav-tip-text {
    opacity: 0;
    transform: translateY(10px);
}

/* Hide Header and Footer */
.navcontainer,
.footer-section {
    display: none !important;
}

/* Project Selector Minimal Overlay */
.project-selector-overlay {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(35, 45, 65, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 0.75rem 1.125rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.project-selector-overlay:hover {
    background: rgba(35, 45, 65, 0.95);
    border-color: var(--active-border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px var(--active-shadow-color);
    transform: translateX(-50%) translateY(-2px);
}

.project-selector-minimal {
    background: transparent;
    border: none;
    color: var(--primary-light);
    font-family: 'Gluten', Impact, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    padding: 0 1.5rem 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1.2;
}

.project-selector-minimal option {
    background: var(--darkprimary);
    color: var(--primary-light);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.project-selector-arrow-minimal {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-light);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.project-selector-overlay:hover .project-selector-arrow-minimal {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Loading overlay for project switching */
.loading-spinner.project-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--dark-accent-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 1;
    z-index: 100;
}

/* Responsive adjustments for minimal overlay */
@media screen and (max-width: 767px) {
    .project-selector-overlay {
        top: 1rem;
        padding: 0.625rem 0.875rem;
        border-radius: 14px;
        gap: 0.5rem;
    }
    
    .project-selector-minimal {
        font-size: 0.8rem;
        padding-right: 1.25rem;
        letter-spacing: 0.04em;
    }
    
    .project-selector-arrow-minimal {
        width: 9px;
        height: 5px;
        right: 0.625rem;
    }
}

@media screen and (max-width: 479px) {
    .project-selector-overlay {
        top: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
        gap: 0.375rem;
    }
    
    .project-selector-minimal {
        font-size: 0.75rem;
        padding-right: 1rem;
        letter-spacing: 0.03em;
    }
    
    .project-selector-arrow-minimal {
        width: 8px;
        height: 4px;
        right: 0.5rem;
    }
}