:root {
    --primary-color: #333;
    --secondary-color: #666;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #fff;
    --header-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --hover-color: #d4af37;
    --logo-color: #d4af37;
}

[data-theme="dark"] {
    --primary-color: #f0f0f0;
    --secondary-color: #ccc;
    --text-color: #f0f0f0;
    --light-text: #333;
    --background-color: #121212;
    --header-bg: #1e1e1e;
    --border-color: #444;
    --hover-color: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.header .level {
    align-items: center;
}

.level {
    display: flex;
    align-items: center;
}

.level-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.level-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.logo {
    margin-right: 20px;
}

.logo img {
    height: 60px;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.site-info {
    display: flex;
    flex-direction: column;
}

.website-url {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--logo-color);
    font-weight: 600;
    text-decoration: none;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 300;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin-right: 20px;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.main-nav ul li a:hover {
    color: var(--hover-color);
    border-bottom-color: var(--hover-color);
}

.social-icons {
    display: flex;
    margin-right: 20px;
}

.social-icons a {
    color: var(--text-color);
    margin: 0 8px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--hover-color);
}

/* Dark mode toggle */
.dark-mode-toggle {
    margin-left: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.switch label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + label {
    background-color: var(--hover-color);
}

input:checked + label:before {
    transform: translateX(20px);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.gallery-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    letter-spacing: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 10px;
    margin-bottom: 50px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    filter: grayscale(0%);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    filter: grayscale(5%) brightness(1.05);
}

/* Large image for first item */
.gallery-grid .large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Medium image for some items */
.gallery-grid .medium {
    grid-column: span 1;
    grid-row: span 2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid .large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .level {
        flex-direction: column;
    }

    .level-left, .level-right {
        justify-content: center;
        margin-bottom: 15px;
    }

    .site-info {
        align-items: center;
        margin-top: 10px;
    }

    .main-nav ul {
        margin: 15px 0;
        justify-content: center;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-auto-rows: 150px;
    }
}

/* Footer */
.footer {
    background-color: var(--header-bg);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Lightbox customization */
.lightbox {
    background-color: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .lightbox {
    background-color: rgba(0, 0, 0, 0.98);
}

.lightbox .lb-image {
    max-height: 90vh;
    border: 5px solid var(--background-color);
}

.lightbox .lb-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    font-family: 'Open Sans', sans-serif;
}

.lightbox .lb-outerContainer:after {
    display: none;
}
