body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: white;
    line-height: 1.6;
}

/* Global link styles */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 0;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    margin: 10px 0;
}

/* Gallery grid styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    background-color: white;
    aspect-ratio: 3/2;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header styles */
.header-container {
    max-width: 1200px;
    margin: 0;
    padding: 10px 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: var(--header-height);
}

header h1 {
    margin: 0;
}

/* Navigation styles */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    color: #fff;
}

/* Header link styles */
header div p a {
    color: white;
}

header div p a:link,
header div p a:visited,
header div p a:hover,
header div p a:active {
    color: white;
}

/* Rest of existing styles */
main {
    margin-left: 180px;
    padding: 2rem;
    flex-grow: 1;
    max-width: calc(1200px - 180px);
    margin-right: auto;
    background-color: var(--primary-color);
    min-height: calc(100vh - var(--header-height));
}

.gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

.photo-item p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.photo-actions a {
    color: #fff;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.expanded-image {
    max-width: 90%;
    max-height: 90%;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.prev-button {
    left: 1rem;
}

.next-button {
    right: 1rem;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: relative;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin panel styles */
.container .section a {
    color: #007BFF;
}

.container .section a:hover {
    text-decoration: underline;
}

/* Gallery page styles */
.gallery-header {
    text-align: center;
}

.gallery-header h1 {
    margin: 0;
    padding: 1rem 0;
}

/* Gallery page text styles */
.gallery-header h2,
.gallery-description,
.photo-item p,
main h2,
main p {
    color: white;
}

/* Ensure dropdown text is white */
.gallery-dropdown,
.gallery-dropdown option {
    color: white;
}

/* Sidebar text */
.sidebar h3,
.sidebar p,
.sidebar a {
    color: white;
}

/* Create new file styles.min.css */
/* Move all CSS here and minify it */

/* Sidebar styles */
.sidebar {
    width: 160px;
    background-color: var(--primary-color);
    padding: 1.2rem;
    position: fixed;
    left: 0;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 1500;
    box-shadow: none;
    color: white;
}

/* Sidebar heading */
.sidebar h2,
.sidebar h3 {
    color: white;
    margin-top: 0;
    font-size: 1.2rem;
}

/* Gallery dropdown styles */
.gallery-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #4a4a4a;
    cursor: pointer;
    color: white;
    margin-top: 1rem;
}

.gallery-dropdown option {
    background-color: #4a4a4a;
    color: white;
}

/* Ensure header is above other elements */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: var(--header-height);
}

/* Root styles */
:root {
    --header-height: 122px;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #f8f9fa;
}

/* Page container spacing - default */
.page-container {
    display: flex;
    margin-top: calc(var(--header-height) - 20px);
    min-height: calc(100vh - var(--header-height));
    background-color: var(--primary-color);
}

/* Specific spacing for index page */
body.index-page .page-container {
    margin-top: calc(var(--header-height));  /* Removed the + 40px */
}

/* Specific header height for index page */
body.index-page {
    --header-height: 122px;
}

/* Keep the default header height for other pages */
:root {
    --header-height: 122px;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #f8f9fa;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;  /* Increased z-index to be above everything */
    padding: 2rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;  /* Changed from absolute */
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 3001;  /* Above lightbox */
}

.lightbox-nav {
    position: fixed;  /* Changed from absolute */
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 3001;  /* Above lightbox */
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
} 