* {
    box-sizing: border-box;
}

html {
    /* empty */
}

:root {
    --nav-height: 60px; /* Default fallback, JS will update this */
}

body {
    margin: 0;
    font-family: sans-serif;
    p {
  font-weight: 100;
  -webkit-font-smoothing: antialiased; /* For Safari and Chrome */
  -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
}
    background-color:rgba(227, 227, 227, 0.8);
    color: #000;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(227, 227, 227, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    z-index: 100;
    line-height: 1;
}

nav a {
    color: #000;
    text-decoration: none;
    padding: 3px 3px;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

nav a:hover {
    border-color: #000;
    background-color: rgba(255,255,255,0.1);
}

.gallery-container {
    /* empty */
}

/* --- Landing Page (a0) Styles --- */
.landing-item {
    position: fixed; /* Makes it a static overlay over the gallery */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  /*  padding-top: var(--nav-height); */
    background-color: rgb(227, 227, 227); /* Solid background so gallery doesn't show through */
    z-index: 50; /* Above gallery, below nav */
    transition: opacity 0.4s ease-in-out; /* Smooth fade effect */
}

.loaded {
margin-top:-40px;
}

/* Class added by JS to hide the home screen */
.landing-item.home-hidden {
    opacity: 0;
    pointer-events: none; /* Lets clicks pass through to the gallery underneath */
}

.landing-img {
    display: block;
    width: 800px;          
    max-width: 90%;        
    height: auto;          
    max-height: 50vh;      
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #222;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.landing-img.loaded {
    opacity: 1;
}

.landing-title {
    margin-top: 25px;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgb(153, 153, 153);
}

/* --- Standard Gallery Styles --- */
.gallery-item {
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding-top: var(--nav-height);
}

.gallery-item img {
    display: block;
    max-height: 80%; 
    max-width: 80%;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #222;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.gallery-item img.loaded {
    opacity: 1;
}

/* Right-Side Scrolling Arrows */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth fade */
}

/* Class added by JS to show arrows */
.side-nav.show {
    opacity: 1;
}

.side-nav button {
    background-color: rgba(227, 227, 227, 0.8);
    color: #000;
    border: 1px solid rgba(227, 227, 227, 0.8); 
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}
