@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Reset basic spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    min-height: 100vh;
    background: url('bkg.png') center center / cover no-repeat fixed,
        linear-gradient(180deg, #111b4b 0%, #284d70 100%);
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.gallery-page { width: min(1120px, calc(100% - 2rem)); margin: auto; padding: 2rem 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.photo-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; background: rgba(8, 17, 42, 0.8); box-shadow: 0 18px 42px rgba(3, 10, 29, 0.3); }
.photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.45s ease; }
.photo-card:last-child img { object-fit: contain; background: #f8f8f8; padding: 1rem; }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.04); }

.bottom-bar {
    margin-top: auto;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-align: left;
    background-color: rgba(9, 20, 52, 0.72);
    color: #d1d5db;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.bottom-bar a {
    color: inherit;
    text-decoration: none;
}

/* UI Bar Container styling */
.ui-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background-color: rgba(9, 20, 52, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.65rem 2rem;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

/* Logo styling */
.ui-navbar > a {
    text-decoration: none;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #9ca3af;
}

.nav-logo img {
    display: block;
    width: 160px;
    height: 60px;
    object-fit: contain;
}

/* Unordered list layout */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    grid-column: 2;
    margin: 0;
    list-style: none; /* Removes bullet points */
    gap: 0.75rem 1.25rem; /* Space between links */
}

.nav-links li {
    display: flex;
    align-items: center;
}

/* Anchor tag styling */
.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
    color: #a3a3a3;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li:first-child a {
    background-color: rgba(15, 8, 35, 0.78);
    border-radius: 6px;
}

.nav-links a.active { color: #7dd3fc; }

/* Interaction and Active States */
.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
}

/* Button UI styling */
.btn-logout {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (max-width: 700px) {
    .ui-navbar { display: block; padding: 0.7rem 1rem; }
    .nav-logo img { margin: 0 auto 0.4rem; }
    .nav-links { gap: 0.2rem; }
    .nav-links a { padding: 0.35rem 0.45rem; font-size: 0.82rem; }
    .gallery-page { padding-top: 1rem; }
    .photo-grid { grid-template-columns: 1fr; }
}



