/* NAVBAR */
.top-nav {
    height: 5%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255,255,255,0.1);

    position: fixed;   /* stays at top */
    top: 0;
    left: 0;
    z-index: 999;      /* stays above everything */
}

/* LEFT = Name */
.site-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

/* CENTER = Sorting Buttons */
.nav-center {
    display: flex;
    gap: 15px;
}

.nav-center button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;

    transition: 
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.nav-center button:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* RIGHT LINKS */
.nav-right {
    display: flex;
    gap: 20px;
}

.nav-right a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: opacity 0.25s ease;
}

.nav-right a:hover {
    opacity: 0.7;
}


.mobile-menu, .nav-hamburger {
    display: none;
}

.nav-center {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

/* ===============================
   MOBILE NAVIGATION
   =============================== */
@media (max-width: 900px), (orientation: portrait) {

    /* Make navbar taller slightly */
    .top-nav {
        padding: 0 20px;
        height: 60px;
    }

    .nav-center button {
        font-size: 1.8rem;
    }
    .nav-center {
        gap: 20px;
        /* justify-content:  space-between; */
    }

    /* Hide and right sections on mobile */
    .nav-right {
        display: none;
    }

    .nav-left p {
        font-size: 1rem;
    }
    .nav-left h1 {
        font-size:  1.5rem;
    }
    

    /* Hamburger button */
    .nav-hamburger {
        display: block;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1200;
        user-select: none;
    }

    /* Stack items inside dropdown */
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity .25s ease, transform .25s ease;
        z-index: 999;
    }

    .mobile-menu.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Mobile menu buttons */
    .mobile-menu button,
    .mobile-menu a {
        font-size: 1.4rem;
        color: white;
        text-decoration: none;
        background: rgba(255,255,255,0.1);
        padding: 12px 20px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.3);
        width: 80%;
        text-align: center;
    }

    .mobile-menu button:hover,
    .mobile-menu a:hover {
        background: rgba(255,255,255,0.25);
    }

    .site-name {
        font-size: smaller;
    }
}

/* Portrait-mode large screens (tablets, vertical monitors, etc.) */
@media (orientation: portrait) and (min-height: 700px) {

    /* Increase slideshow container */
    .slideshow {
        height: 500px !important;   /* adjust if needed */
        max-height: 500px !important;
    }

    /* Increase main image height */
    .main-image {
        height: 420px !important;
        max-height: 420px !important;
    }

    /* Thumbnail strip stays below */
    .thumb-strip {
        height: 80px !important;
        max-height: 80px !important;
    }

    /* Larger spacing for portrait screens */
    .col1,
    .col2 {
        width: 100% !important;
    }
}