/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: only dark;
    --bg: #2f2f2f;
    --text: #ffffff;
    --muted: #c7c7c7;
    --accent: #ffcc66;
    --link: #33ccff;
    --panel: #3a3a3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Arial, sans-serif;
    line-height: 1.45;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 40%);
    font-size: 15px;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--text);
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
    padding: 36px 0 18px;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 6px;
}

.site-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.header-contact {
    text-align: right;
    font-size: 13px;
    color: var(--muted);
}

.header-contact a {
    color: var(--link);
}

.lang-switch {
    margin-top: 10px;
    display: inline-flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
}

.lang-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Layout ===== */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    padding: 12px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.content-area {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.section {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: normal;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section p {
    margin-bottom: 10px;
    color: var(--text);
}

.right-rail {
    position: sticky;
    top: 24px;
    align-self: start;
}

.rail-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.photo-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.photo-frame.ratio-wide {
    aspect-ratio: 16 / 9;
}

.photo-frame.ratio-portrait {
    aspect-ratio: 3 / 4;
}

.photo-frame.ratio-3-2 {
    aspect-ratio: 3 / 2;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
}

.photo-frame.cover img {
    object-fit: cover;
}

.photo-frame.contain img {
    object-fit: contain;
}

.photo-card.ratio-wide .photo-frame {
    aspect-ratio: 16 / 9;
}

.photo-card.ratio-portrait .photo-frame {
    aspect-ratio: 3 / 4;
}

.photo-card.ratio-square .photo-frame {
    aspect-ratio: 1 / 1;
}

.feature-figure {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.list-item {
    color: var(--text);
}

.list-title {
    color: var(--text);
    font-weight: normal;
}

.list-meta {
    color: var(--muted);
    font-size: 13px;
}

.list-meta.inline-meta {
    margin-left: 6px;
}


.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.featured-visual {
    margin-top: 18px;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #4d4d4d, #6a6a6a 45%, #3b3b3b);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-to-top {
    display: inline-block;
    margin-top: 8px;
    color: var(--link);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0 30px;
    color: var(--muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: #111;
}

.lightbox-nav,
.lightbox-close {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-nav:focus,
.lightbox-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
        padding: 12px 24px 32px;
    }

    .content-area {
        max-width: 100%;
    }

    .right-rail {
        position: static;
    }

    .rail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 700px) {
    .header-grid {
        flex-direction: column;
        text-align: left;
    }

    .header-contact {
        text-align: left;
    }

    .site-title {
        font-size: 26px;
    }

    .featured-visual {
        height: 180px;
    }

    .footer-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 16px;
    }
}
