   /* Global Reset & Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #222;
            font-family: 'Public Sans', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
            line-height: 26px;
            font-size: 14px;
        }

        /* Fixed Canvas Container */
        .canvas {
            width: 1024px;
            height: 768px;
            background-color: #c0c0c0;
            position: relative;
            border: 4px solid #808080;
            box-shadow: inset 2px 2px #fff, inset -2px -2px #404040;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Common Bevel Styles */
        .outset-bevel {
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #808080;
            border-right-color: #808080;
        }
        .inset-bevel {
            border: 2px solid;
            border-top-color: #808080;
            border-left-color: #808080;
            border-bottom-color: #fff;
            border-right-color: #fff;
        }

        /* Header Styles */
        .header {
            height: 64px;
            width: 100%;
            z-index: 50;
        }
        .top-bar {
            height: 40px;
            background-color: #c0c0c0;
            border-bottom: 2px solid #808080;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 8px;
            box-shadow: inset -1px -1px #dfdfdf, inset 1px 1px #0a0a0a;
        }
        .logo-box {
            background-color: #0000ff;
            color: #ffffff;
            padding: 2px 8px;
            font-weight: 900;
            text-transform: uppercase;
            font-size: 14px;
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #404040;
            border-right-color: #404040;
        }
        .nav-links {
            display: flex;
            gap: 16px;
        }
        .nav-links a {
            color: #000;
            text-decoration: none;
            font-weight: bold;
            font-size: 12px;
            text-transform: uppercase;
        }
        .nav-links a:hover {
            background-color: #000080;
            color: #fff;
        }
        .nav-links a.active {
            color: #e7e700;
            text-decoration: underline;
        }

        .marquee-container {
            background: #000080;
            color: #fff;
            height: 24px;
            display: flex;
            align-items: center;
            overflow: hidden;
            border-bottom: 2px solid #000;
        }
        .marquee-text {
            white-space: nowrap;
            font-weight: bold;
            font-size: 12px;
            animation: marquee 15s linear infinite;
        }
        @keyframes marquee {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* Layout Main */
        .layout-body {
            display: flex;
            flex: 1;
            height: calc(768px - 64px - 32px); /* height minus header and footer */
            overflow: hidden;
        }

        /* Sidebar Styles */
        .sidebar {
            width: 200px;
            background-color: #c0c0c0;
            border-right: 2px solid #808080;
            padding: 4px;
            display: flex;
            flex-direction: column;
            box-shadow: inset -1px 0px #dfdfdf;
        }
        .win-title-bar {
            background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
            height: 22px;
            display: flex;
            align-items: center;
            padding: 0 4px;
            color: white;
            font-weight: bold;
            font-size: 12px;
            margin-bottom: 8px;
        }
        .user-info {
            padding: 0 8px;
            margin-bottom: 16px;
        }
        .user-info .username {
            font-weight: bold;
            font-size: 12px;
            text-transform: uppercase;
            color: #000;
        }
        .user-info .meta {
            font-size: 11px;
            color: #666;
        }
        .side-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .side-nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            text-decoration: none;
            color: #000;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            background-color: #c0c0c0;
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #808080;
            border-right-color: #808080;
        }
        .side-nav-item:active {
            border-top-color: #808080;
            border-left-color: #808080;
            border-bottom-color: #fff;
            border-right-color: #fff;
        }
        .side-nav-item.active {
            background-color: #3366ff;
            color: #fff;
            border-top-color: #000;
            border-left-color: #000;
            border-bottom-color: #fff;
            border-right-color: #fff;
        }
        .side-nav-item-disabled,
        .side-nav-item-disabled:visited {
            background-color: #b5b5b5;
            color: #6a6a6a;
            border-top-color: #dcdcdc;
            border-left-color: #dcdcdc;
            border-bottom-color: #7a7a7a;
            border-right-color: #7a7a7a;
            cursor: not-allowed;
            pointer-events: none;
            position: relative;
            text-shadow: 1px 1px 0 #efefef;
        }
        .side-nav-item-disabled::after {
            content: "";
            margin-left: auto;
            font-size: 10px;
            color: #8b0000;
            background: #dfdfdf;
            padding: 1px 4px;
            border: 1px solid #8a8a8a;
            display: none;
        }
        .side-nav-item-disabled .material-symbols-outlined {
            color: #7a7a7a;
        }
        .side-nav-item-disabled:active,
        .side-nav-item-disabled.active {
            background-color: #b5b5b5;
            color: #6a6a6a;
            border-top-color: #dcdcdc;
            border-left-color: #dcdcdc;
            border-bottom-color: #7a7a7a;
            border-right-color: #7a7a7a;
        }
        .side-nav-item .material-symbols-outlined {
            font-size: 18px;
        }
        .btn-premium {
            margin-top: auto;
            background-color: #e7e700;
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #000;
            border-right-color: #000;
            padding: 8px;
            font-weight: 900;
            font-size: 12px;
            text-align: center;
            cursor: pointer;
        }

        /* Main Content Area */
        .main-content {
            flex: 1;
            padding: 16px;
            background-color: #808080;
            box-shadow: inset 2px 2px #000;
            overflow-y: auto;
        }
        .content-window {
            background-color: #c0c0c0;
            padding: 16px;
            min-height: 100%;
        }
        .hero-card {
            background-color: #fff;
            padding: 24px;
            border: 1px solid #000;
            box-shadow: 4px 4px 0px 0px #000;
            max-width: 650px;
            margin: 0 auto 32px auto;
        }
        .img-frame {
            background-color: #000;
            padding: 4px;
            border: 2px solid #000;
            margin-bottom: 16px;
        }
        .hero-img {
            width: 100%;
            height: 290px;
            object-fit: cover;
            display: block;
        }
        .photo-card-trigger {
            display: block;
            width: 100%;
            border: 0;
            padding: 0;
            background: transparent;
            cursor: zoom-in;
        }
        .photo-card-trigger:focus-visible {
            outline: 3px dotted #e7e700;
            outline-offset: 4px;
        }
        .hero-footer {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        .hero-title {
            font-weight: 900;
            font-size: 24px;
            text-transform: uppercase;
            font-style: italic;
            color: #0000bb;
            margin-bottom: 4px;
        }
        .hero-subtitle {
            font-size: 14px;
            font-weight: bold;
            color: #000;
        }
        .badge-new {
            background-color: #ff0000;
            color: #fff;
            padding: 8px;
            font-weight: bold;
            font-size: 14px;
            animation: blink 1s step-end infinite;
        }
        @keyframes blink {
            50% { opacity: 0; }
        }

        .grid-container {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }
        .gallery-shell {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .gallery-intro {
            background: linear-gradient(180deg, #fdfdfd 0%, #ececec 100%);
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }
        .gallery-intro-copy {
            max-width: 460px;
        }
        .gallery-stats {
            min-width: 240px;
            padding: 12px;
            background: #d8d8d8;
            text-transform: uppercase;
        }
        .gallery-stats-label {
            font-size: 11px;
            font-weight: 900;
            color: #000080;
            margin-bottom: 6px;
        }
        .gallery-stats-value {
            font-size: 18px;
            font-weight: 900;
            color: #000;
            margin-bottom: 4px;
        }
        .gallery-stats-meta {
            line-height: 1.3;
            color: #303030;
        }
        .gallery-strip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: #efefef;
        }
        .gallery-strip-label {
            background: #ff0000;
            color: #fff;
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }
        .gallery-card {
            background: #f9f9f9;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-height: 0;
        }

        .gallery-card-featured {
            grid-column: span 2;
            grid-row: span 2;
        }
        

        .gallery-card-featured-max {
            grid-column: span 3;
            grid-row: span 3;
        }

        .gallery-card-head {
            background: linear-gradient(90deg, #000080 0%, #2376d8 100%);
            color: #fff;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .gallery-photo-trigger {
            border: 0;
            padding: 0;
            background: transparent;
            text-align: left;
            cursor: zoom-in;
        }
        .gallery-photo-trigger:focus-visible {
            outline: 3px dotted #e7e700;
            outline-offset: 2px;
        }
        .gallery-photo-frame {
            background:
                linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.12) 75%, transparent 75%, transparent),
                #0f0f0f;
            background-size: 10px 10px;
            border: 2px solid #000;
            padding: 8px;
        }
        .gallery-photo {
            display: block;
            width: 100%;
            height: 190px;
            object-fit: cover;
            border: 2px solid #fff;
            box-shadow: 3px 3px 0 #000;
            filter: saturate(0.92) contrast(1.04);
        }
        .gallery-card-featured .gallery-photo {
            height: 430px;
        }
        .gallery-photo-shift-a {
            object-position: center 20%;
        }
        .gallery-photo-shift-b {
            object-position: center 38%;
        }
        .gallery-photo-shift-c {
            object-position: center 58%;
        }
        .gallery-photo-shift-d {
            object-position: center 76%;
        }
        .gallery-card-footer {
            padding: 4px 2px 0;
        }
        .gallery-card-title {
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            color: #000080;
            margin-bottom: 2px;
        }
        .gallery-card-note {
            background: #fffbe6;
        }
        .gallery-note {
            background: #fff;
            border: 1px dashed #808080;
            padding: 12px;
            line-height: 1.4;
        }
        .grid-box {
            flex: 1;
            background-color: #fff;
            padding: 12px;
        }
        .grid-header {
            background-color: #e2e2e2;
            padding: 4px 8px;
            border-bottom: 1px solid #808080;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 8px;
        }
        .news-list {
            list-style: none;
            font-size: 12px;
        }
        .news-list li {
            margin-bottom: 8px;
        }
        .news-list span {
            color: #0000bb;
        }
        .shoutbox {
            height: 96px;
            overflow-y: scroll;
            background-color: #f3f3f4;
            padding: 4px;
            font-family: 'Courier New', monospace;
            font-size: 11px;
            line-height: 1.2;
        }
        .courrier{
            font-family: 'Courier New', monospace;
        }

        .small{
            font-size:12px;
        }
        .photo-hint {
            margin-top: 12px;
            color: #0000bb;
        }

        .construction-bar {
            border: 2px dashed #e7e700;
            background-color: #fffbe6;
            padding: 8px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .construction-icon {
            width: 48px;
            height: 48px;
            background-color: #e7e700;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Footer Styles */
        .footer {
            height: 32px;
            background-color: #c0c0c0;
            border-top: 2px solid #808080;
            box-shadow: inset 1px 1px #dfdfdf;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            font-family: 'Courier New', monospace;
            font-size: 12px;
        }
        .visitor-counter-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .visitor-counter {
            background: #000;
            color: #00ff00;
            padding: 2px 6px;
            border: 1px inset #808080;
            letter-spacing: 2px;
            font-weight: bold;
        }
        .footer-links {
            display: flex;
            gap: 16px;
        }
        .footer-links a {
            color: #000;
            text-decoration: underline;
        }
        .footer-copyright {
            font-size: 10px;
            text-transform: uppercase;
        }
        .photo-modal-open {
            overflow: hidden;
        }
        .photo-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 32px;
            z-index: 200;
        }
        .photo-modal.is-open {
            display: flex;
        }
        .photo-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
        }
        .photo-modal-window {
            position: relative;
            width: min(840px, 100%);
            background-color: #c0c0c0;
            box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
            padding: 0 0 16px;
        }
        .photo-modal-title-bar {
            margin-bottom: 0;
            justify-content: space-between;
        }
        .photo-modal-title-group {
            display: flex;
            align-items: center;
        }
        .photo-modal-close {
            min-width: 22px;
            height: 18px;
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #404040;
            border-right-color: #404040;
            background: #c0c0c0;
            color: #000;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
        }
        .photo-modal-toolbar {
            margin: 12px 16px;
            padding: 8px;
            background: #b7b7b7;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .photo-modal-nav {
            border: 2px solid;
            border-top-color: #fff;
            border-left-color: #fff;
            border-bottom-color: #404040;
            border-right-color: #404040;
            background: #dfdfdf;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
        }
        .photo-modal-nav:active,
        .photo-modal-close:active {
            border-top-color: #404040;
            border-left-color: #404040;
            border-bottom-color: #fff;
            border-right-color: #fff;
        }
        .photo-modal-status {
            color: #000;
            text-transform: uppercase;
        }
        .photo-modal-frame {
            background: #111;
            margin: 0 16px;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 420px;
        }
        .photo-modal-image {
            display: block;
            max-width: 100%;
            max-height: 62vh;
            width: auto;
            height: auto;
            border: 2px solid #000;
            background: #fff;
        }
        .photo-modal-caption {
            margin: 12px 16px 0;
            padding: 12px;
            background: #f4f4f4;
            border: 1px solid #808080;
        }
        .photo-modal-caption-title {
            font-weight: 900;
            text-transform: uppercase;
            color: #000080;
            margin-bottom: 4px;
        }
        .photo-modal-caption-text {
            color: #202020;
            line-height: 1.4;
        }
        @media (max-width: 900px) {
            .gallery-intro {
                flex-direction: column;
                align-items: stretch;
            }
            .gallery-stats {
                min-width: 0;
            }
            .gallery-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .gallery-card-featured {
                grid-column: span 2;
                grid-row: span 1;
            }
            .gallery-card-featured .gallery-photo {
                height: 260px;
            }
        }
