* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.7;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar — vertical left navigation */
.sidebar {
    width: 240px;
    min-width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 50px 30px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.site-name {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.site-name br {
    display: inline;
}

/* Navigation — vertical */
nav {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

nav > ul > li {
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

nav a, nav .menu-toggle {
    text-decoration: none;
    color: #888;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    background: none;
    border: none;
    padding: 6px 0;
    line-height: 1.4;
    border-radius: 0;
    transition: color 0.15s;
}

nav a:hover, nav .menu-toggle:hover {
    background: none;
    color: #1a1a1a;
}

nav a.active, nav .menu-toggle.active {
    color: #1a1a1a;
    background: none;
    font-weight: 700;
}

.menu-toggle .arrow {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s;
}

.menu-toggle.open .arrow {
    transform: rotate(90deg);
}

/* Submenus — inline below parent */
.submenu {
    display: none;
    position: static;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    min-width: 0;
    box-shadow: none;
    z-index: auto;
}

.submenu.open {
    display: flex;
    flex-direction: column;
}

.submenu li {
    margin-bottom: 0;
}

.submenu a {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    color: #555;
    border-radius: 0;
}

.submenu a::before {
    content: none;
}

.submenu a:hover {
    background: #f5f5f5;
    color: #2c2c2c;
}

.submenu a.active {
    color: #333;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    margin-left: 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.social-links a {
    color: #888;
    text-decoration: none;
    font-size: 16px;
}

.social-links a:hover {
    color: #333;
}

.copyright {
    font-size: 11px;
    color: #aaa;
}

/* Main content — offset for sidebar */
.main-content {
    margin-left: 240px;
    margin-top: 0;
    flex: 1;
    padding: 40px 60px;
    overflow: hidden;
}

/* Home page - hero image */
.hero-image img {
    width: 100%;
    display: block;
}

/* About page */
.about-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-photo {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
}

.about-photo img {
    width: 200px;
    height: 200px;
    min-height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.about-text a {
    color: #333;
    text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
}

/* Pages — hide all, show active */
.page {
    display: none;
}

.page.visible {
    display: block;
}

/* Page content */
.page-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.page-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-content h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Indent classes */
.indent-1 { margin-left: 30px; }
.indent-2 { margin-left: 60px; }
.indent-3 { margin-left: 90px; }

.page-content p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.page-content a {
    color: #c0392b;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.photo-grid img.bordered,
.blog-body img.bordered,
.blog-image.bordered,
.page-content img.bordered {
    border: 1px solid #000;
}

.gallery-bordered img {
    border: 1px solid #000;
}

.blog-body .image-pair.bordered img,
#post-body .image-pair.bordered img,
.page-content .image-pair.bordered img {
    border: 1px solid #000;
}

.page-content iframe,
.blog-body iframe {
    max-width: 100%;
    margin: 16px 0;
    border-radius: 8px;
}

.page-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 16px 0;
}

.page-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-content .image-pair,
.blog-body .image-pair,
#post-body .image-pair {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.page-content .image-pair img,
.blog-body .image-pair img,
#post-body .image-pair img {
    flex: 1;
    max-width: 50%;
    margin: 0;
}

/* View toggle (grid/carousel) */
.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.view-toggle button {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #666;
}

.view-toggle button.active {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

/* Carousel */
.carousel-btn {
    background: none;
    border: 1px solid #ddd;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #2c2c2c;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #f0f0f0;
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.carousel-counter {
    font-size: 15px;
    color: #999;
    margin: 0 12px;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.photo-grid-rows {
    display: block;
}

.photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.photo-row .photo-cell {
    flex: none;
    min-width: 0;
    overflow: hidden;
}

.photo-row .photo-cell img {
    height: 180px;
    width: auto;
    display: block;
}

@media (max-width: 900px) {
    .photo-row .photo-cell img {
        height: 120px;
    }
}

.photo-grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.photo-grid-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.photo-caption {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    text-align: center;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 0, 0);
    z-index: 1000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    pointer-events: none;
    border: 2px solid #fff;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    line-height: 1;
}

/* Blog */
.blog-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.blog-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.blog-tags {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
}

.blog-tag-link {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}

.blog-tag-link:hover {
    color: #333;
}

.blog-tag-banner {
    font-size: 14px;
    color: #666;
    padding: 10px 0;
    margin-bottom: 10px;
}

.blog-tag-clear {
    color: #333;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: none;
}

.blog-tag-clear:hover {
    text-decoration: underline;
}

.blog-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

.blog-body p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.blog-body a {
    color: #c0392b;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}


.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.blog-preview {
    cursor: pointer;
    padding: 10px 0;
}

.blog-preview:hover .blog-title {
    color: #555;
}

.blog-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.blog-full-post {
    padding: 10px 0;
}

.blog-paging {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 10px;
    font-size: 14px;
}

.blog-paging-link {
    color: #c0392b;
    cursor: pointer;
    text-decoration: none;
}

.blog-paging-link:hover {
    text-decoration: underline;
}

.blog-paging-info {
    color: #999;
}

/* Contact form */
#contact-form {
    max-width: 500px;
}

#contact-form .form-field {
    margin-bottom: 20px;
}

#contact-form .form-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

#contact-form .form-field input,
#contact-form .form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: #333;
}

#contact-form .form-field input:focus,
#contact-form .form-field textarea:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

#contact-form .form-field textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form .contact-submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

#contact-form .contact-submit:hover {
    background: #d04e2e;
}

/* Image protection */
.hero-image img,
.page-content img,
.blog-image {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.photo-grid-item img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.photo-grid-item,
.hero-image,
.blog-preview {
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile header — always visible on mobile */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    border-bottom: 2px solid #1a1a1a;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 400;
    transform: translateZ(0);
}

.mobile-header .site-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 50px;
    margin: 0;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay.open {
    display: block;
    position: fixed;
    top: 50px; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        width: 60%;
        min-width: 250px;
        top: 50px;
        right: 0;
        left: auto;
        bottom: 0;
        flex-direction: column;
        padding: 30px;
        background: #fff;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        border-bottom: none;
        border-left: 1px solid #e8e8e8;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar .site-name {
        display: none;
    }

    nav a, nav .menu-toggle {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 16px;
    }

    .submenu a {
        font-size: 18px;
    }

    .sidebar-footer {
        margin-left: 0;
        margin-top: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        margin-top: 50px;
        padding: 20px;
        max-width: 100%;
    }

    .about-layout {
        flex-direction: column;
        align-items: center;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
    }


    .page-content img {
        max-height: 60vh;
        object-fit: contain;
    }

    .about-photo img {
        max-height: none;
        object-fit: cover;
    }

    .page-content .image-pair {
        flex-direction: column;
        gap: 10px;
    }

    .page-content .image-pair img {
        width: 100%;
        max-height: 60vh;
    }
}
