@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Page fade-in animation */
body.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    margin: 0;
    background: #000;
    color: #d8c8a0;
    font-family: "Courier New", monospace;
    font-weight: normal;
}

.nav {
    padding: 12px;
    text-align: center;
    border-top: 3px solid #8b0000;
    border-bottom: 3px solid #8b0000;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav a {
    color: #d8c8a0;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-weight: normal;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    white-space: nowrap;
    border: 2px solid #8b0000;
    background: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex: 0 1 auto;
    text-align: center;
}

.nav a:hover {
    background: #8b0000;
    color: #000;
}

.nav a.active {
    background: #8b0000;
    color: #000;
    font-weight: bold;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    padding: 10px 14px;
    border: 2px solid #8b0000;
    background: #1a1a1a;
    color: #d8c8a0;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.lang-switcher a {
    color: #d8c8a0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border: 1px solid transparent;
}

.lang-switcher a:hover {
    color: #fff;
    background: #8b0000;
    border-color: #8b0000;
    padding: 2px 6px;
}

.lang-switcher a.active {
    color: #000;
    background: #8b0000;
    border-color: #8b0000;
    font-weight: bold;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-left: 4px solid #8b0000;
    border-right: 4px solid #8b0000;
    background: #000;
}

.container-small {
    max-width: 900px;
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: #8b0000;
    border: 2px solid #8b0000;
    padding: 10px;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Game window styling - mimics NES inventory windows */
.game-window {
    border: 2px solid #d8c8a0;
    background: #1a1a1a;
    padding: 12px;
    margin: 15px 0;
    position: relative;
}

.game-window-title {
    position: absolute;
    top: -11px;
    left: 20px;
    background: #000;
    border: 1px solid #d8c8a0;
    padding: 2px 6px;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 1px;
    color: #d8c8a0;
    text-transform: uppercase;
}

fieldset {
    border: 2px solid #d8c8a0;
    background: #1a1a1a;
    padding: 15px;
    margin: 20px 0;
    position: relative;
}

fieldset > div {
    border: 1px solid #6b7b5a;
    padding: 10px;
    margin: 10px 0;
    background: #0d0d0d;
}

fieldset > div strong {
    color: #d8c8a0;
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid #6b7b5a;
    padding-bottom: 5px;
    font-weight: normal;
}

legend {
    position: absolute;
    top: -11px;
    left: 20px;
    background: #000;
    border: 1px solid #d8c8a0;
    padding: 2px 6px;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    color: #d8c8a0;
    text-transform: uppercase;
}

label {
    display: block;
    margin: 6px 0;
    line-height: 20px;
    padding-left: 20px;
    font-weight: normal;
    position: relative;
    cursor: help;
    font-size: 13px;
}

label:hover {
    color: #fff;
}

.hint {
    font-size: 11px;
    color: #8b0000;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
    position: relative;
    text-decoration: underline dotted #8b0000;
    font-weight: bold;
}

.hint-tooltip {
    position: fixed;
    background: #000;
    border: 3px solid #fff;
    color: #fff;
    padding: 12px 16px;
    border-radius: 0;
    white-space: pre-wrap;
    max-width: 350px;
    font-size: 12px;
    font-weight: normal;
    z-index: 10000;
    display: none;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.95);
    letter-spacing: 0.5px;
    font-family: "Courier New", monospace;
    pointer-events: none;
    line-height: 1.4;
}

input[type="number"] {
    width: 60px;
    background: #0d0d0d;
    color: #d8c8a0;
    border: 1px solid #6b7b5a;
    padding: 4px;
    font-family: "Courier New", monospace;
    font-weight: normal;
    font-size: 12px;
}

input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    background: #0d0d0d;
    color: #d8c8a0;
    border: 1px solid #6b7b5a;
    font-family: "Courier New", monospace;
    box-sizing: border-box;
    font-weight: normal;
    font-size: 12px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #8b0000;
}

button {
    margin: 10px 5px;
    background: #d8c8a0;
    color: #000;
    padding: 6px 18px;
    border: 1px solid #8b0000;
    font-family: "Courier New", monospace;
    cursor: pointer;
    letter-spacing: 1px;
    font-weight: normal;
    font-size: 11px;
}

button:active {
    background: #a89070;
}

button:hover {
    background: #e8d8b0;
}

pre {
    background: #0d0d0d;
    padding: 15px;
    border: 2px solid #d8c8a0;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 15px 0;
    font-weight: normal;
    font-size: 11px;
}

/* FAQ Section styling */
.faq-section {
    border: 3px solid #d8c8a0;
    background: #000;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

.faq-title {
    position: absolute;
    top: -16px;
    left: 20px;
    background: #000;
    border: 2px solid #d8c8a0;
    padding: 4px 10px;
    font-family: 'Press Start 2P', cursive;
    font-weight: normal;
    font-size: 12px;
    color: #d8c8a0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.faq-item {
    border: 2px solid #6b7b5a;
    padding: 15px;
    margin: 15px 0;
    background: #0d0d0d;
}

.faq-item-question {
    color: #8b0000;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.faq-item-question:hover {
    color: #fff;
}

.faq-item-answer {
    color: #d8c8a0;
    font-size: 12px;
    line-height: 1.6;
    display: none;
    padding-top: 10px;
    border-top: 1px solid #6b7b5a;
}

.faq-item-answer.visible {
    display: block;
}

/* Footer styling */
.site-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 3px solid #8b0000;
    border-bottom: 3px solid #8b0000;
    text-align: center;
    background: #000;
    color: #d8c8a0;
    font-size: 11px;
    line-height: 1.6;
}

.site-footer p {
    margin: 0;
    font-family: "Courier New", monospace;
    letter-spacing: 0.5px;
}

.site-footer strong {
    color: #8b0000;
    font-weight: bold;
}

/* Script Section styling */
.script-section {
    border: 3px solid #d8c8a0;
    background: #000;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

.script-title {
    position: absolute;
    top: -16px;
    left: 20px;
    background: #000;
    border: 2px solid #d8c8a0;
    padding: 4px 10px;
    font-family: 'Press Start 2P', cursive;
    font-weight: normal;
    font-size: 12px;
    color: #d8c8a0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.script-content {
    color: #d8c8a0;
    font-size: 12px;
    line-height: 1.8;
    padding-top: 20px;
}

.script-content h2 {
    color: #8b0000;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
    margin: 30px 0 20px 0;
    letter-spacing: 1px;
}

.script-content h3 {
    color: #8b0000;
    font-family: "Courier New", monospace;
    font-size: 13px;
    margin: 25px 0 15px 0;
    border-left: 3px solid #8b0000;
    padding-left: 10px;
    font-weight: bold;
}

.script-content h4 {
    color: #d8c8a0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    margin: 20px 0 10px 0;
    font-weight: bold;
    text-decoration: underline;
}

.script-content p {
    margin: 15px 0;
    text-align: justify;
}

.script-content em {
    color: #6b7b5a;
    font-style: italic;
}

.script-content pre {
    background: #0d0d0d;
    border: 2px solid #6b7b5a;
    padding: 15px;
    margin: 15px 0;
    font-size: 11px;
    line-height: 1.6;
    overflow-x: auto;
}

.script-content strong {
    color: #8b0000;
    font-weight: bold;
}

/* Codes & Tricks Section styling */
.codes-section {
    border: 3px solid #d8c8a0;
    background: #000;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

.codes-title {
    position: absolute;
    top: -16px;
    left: 20px;
    background: #000;
    border: 2px solid #d8c8a0;
    padding: 4px 10px;
    font-family: 'Press Start 2P', cursive;
    font-weight: normal;
    font-size: 12px;
    color: #d8c8a0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.codes-content {
    color: #d8c8a0;
    font-size: 12px;
    line-height: 1.8;
    padding-top: 20px;
}

.codes-content h2 {
    color: #8b0000;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
    margin: 30px 0 20px 0;
    letter-spacing: 1px;
}

.codes-content h3 {
    color: #8b0000;
    font-family: "Courier New", monospace;
    font-size: 13px;
    margin: 25px 0 15px 0;
    border-left: 3px solid #8b0000;
    padding-left: 10px;
    font-weight: bold;
}

.codes-content h4 {
    color: #d8c8a0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.codes-content p {
    margin: 15px 0;
    text-align: justify;
}

.codes-content em {
    color: #6b7b5a;
    font-style: italic;
}

.codes-content strong {
    color: #8b0000;
    font-weight: bold;
}

.codes-list {
    background: #0d0d0d;
    border: 2px solid #6b7b5a;
    padding: 20px 20px 20px 50px;
    margin: 15px 0;
    list-style: none;
}

.codes-list li {
    margin: 10px 0;
    color: #d8c8a0;
    font-family: "Courier New", monospace;
    font-size: 11px;
}

.codes-list li strong {
    color: #8b0000;
}

.code-table {
    background: #0d0d0d;
    border: 2px solid #6b7b5a;
    padding: 15px;
    margin: 15px 0;
    font-size: 11px;
    line-height: 1.6;
    font-family: "Courier New", monospace;
    color: #d8c8a0;
}

.code-table pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #d8c8a0;
}

.password-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #0d0d0d;
    border: 2px solid #6b7b5a;
}

.password-table td {
    border: 1px solid #6b7b5a;
    padding: 12px;
    text-align: center;
    color: #d8c8a0;
    font-size: 11px;
    font-weight: normal;
    font-family: "Courier New", monospace;
}

.prisoner-list {
    background: #0d0d0d;
    border: 2px solid #6b7b5a;
    padding: 20px;
    margin: 20px 0;
    font-size: 11px;
    line-height: 1.8;
    color: #d8c8a0;
}

.prisoner-list strong {
    color: #8b0000;
}

.prisoner-list em {
    color: #6b7b5a;
    font-style: italic;
}

.codes-content ol {
    background: #0d0d0d;
    border-left: 3px solid #8b0000;
    padding: 20px 20px 20px 50px;
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.8;
}

.codes-content ol li {
    margin: 10px 0;
    color: #d8c8a0;
}

/* Information Section Styles */
.info-section {
    border: 3px solid #d8c8a0;
    background: #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
}

.info-title {
    display: block;
    font-family: 'Press Start 2P', cursive;
    color: #8b0000;
    font-size: 12px;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 2px solid #8b0000;
    text-align: center;
    letter-spacing: 1px;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-placeholder {
    border: 2px solid #d8c8a0;
    background: #0d0d0d;
    padding: 40px 20px;
    text-align: center;
    color: #8b0000;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #d8c8a0;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #000;
}

.info-table tr {
    border-bottom: 1px solid #333;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-label {
    padding: 10px 12px;
    color: #d8c8a0;
    font-weight: bold;
    text-align: left;
    width: 40%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #0d0d0d;
    border-right: 2px solid #8b0000;
}

.info-value {
    padding: 10px 12px;
    color: #d8c8a0;
    text-align: left;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

/* Secret Section Styles */
.secret-section {
    border: 3px solid #d8c8a0;
    background: #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
}

.secret-title {
    display: block;
    font-family: 'Press Start 2P', cursive;
    color: #8b0000;
    font-size: 12px;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 2px solid #8b0000;
    text-align: center;
    letter-spacing: 1px;
}

.secret-content {
    color: #d8c8a0;
    line-height: 1.6;
}

.secret-content h2 {
    color: #8b0000;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #8b0000;
    padding-bottom: 8px;
}

.secret-content p {
    margin: 10px 0;
    font-size: 12px;
}

.secret-placeholder {
    border: 2px dashed #8b0000;
    padding: 20px;
    background: #000;
    margin: 15px 0;
    text-align: center;
    color: #8b0000;
}

.secret-placeholder p {
    margin: 5px 0;
    font-size: 11px;
}

/* Gallery Section Styles */
.gallery-section {
    border: 3px solid #d8c8a0;
    background: #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.gallery-title {
    display: block;
    color: #8b0000;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #d8c8a0;
    padding-bottom: 10px;
}

.gallery-content {
    width: 100%;
    display: block;
}

.gallery-status {
    border: 2px dashed #8b0000;
    padding: 30px 20px;
    background: #000;
    margin: 15px 0;
}

.gallery-status p {
    margin: 10px 0;
    font-size: 12px;
    color: #d8c8a0;
}

.gallery-status p:first-child {
    color: #8b0000;
    font-family: 'Press Start 2P', cursive;
    font-size: 13px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 90%;
        padding: 15px;
        margin: 0 5%;
        border-left: 3px solid #8b0000;
        border-right: 3px solid #8b0000;
    }

    .container-small {
        max-width: 90%;
    }

    h1 {
        font-size: 12px;
        padding: 8px;
        margin: 0 0 15px 0;
    }

    .nav {
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav a {
        font-size: 9px;
        padding: 8px 10px;
        border: 1px solid #8b0000;
    }

    .lang-switcher {
        padding: 8px 10px;
        font-size: 8px;
        border: 1px solid #8b0000;
        gap: 4px;
    }

    .lang-switcher a {
        padding: 2px 4px;
        font-size: 8px;
    }

    fieldset {
        padding: 12px;
        margin: 15px 0;
    }

    fieldset > div {
        padding: 8px;
        margin: 8px 0;
    }

    legend {
        font-size: 9px;
        padding: 2px 4px;
    }

    label {
        font-size: 12px;
        padding-left: 15px;
        line-height: 18px;
    }

    input[type="number"] {
        width: 50px;
        font-size: 11px;
    }

    input[type="text"] {
        max-width: 90%;
        font-size: 11px;
    }

    button {
        padding: 5px 12px;
        font-size: 10px;
        margin: 8px 3px;
    }

    .hint {
        font-size: 10px;
        margin-left: 5px;
    }

    .hint-tooltip {
        max-width: 280px;
        font-size: 11px;
        padding: 10px 12px;
    }

    pre {
        font-size: 10px;
        padding: 10px;
        margin: 10px 0;
    }

    .faq-section,
    .script-section,
    .codes-section {
        padding: 15px;
        margin: 20px 0;
    }

    .faq-title,
    .script-title,
    .codes-title {
        font-size: 10px;
        padding: 3px 6px;
        top: -13px;
    }

    .faq-item,
    .prisoner-list {
        padding: 12px;
        margin: 10px 0;
    }

    .faq-item-question,
    .codes-content h3,
    .script-content h3 {
        font-size: 12px;
    }

    .faq-item-answer,
    .script-content p,
    .codes-content p {
        font-size: 11px;
    }

    .password-table {
        font-size: 9px;
        margin: 15px 0;
    }

    .password-table td {
        padding: 8px;
        font-size: 9px;
    }

    .code-table pre,
    .codes-list {
        font-size: 10px;
    }

    .site-footer {
        padding: 15px;
        font-size: 10px;
    }

    .site-footer p {
        font-size: 10px;
    }

    .codes-content h2,
    .script-content h2 {
        font-size: 12px;
        margin: 20px 0 15px 0;
    }

    .codes-content ol {
        padding: 15px 15px 15px 40px;
    }

    .info-content {
        grid-template-columns: 1fr;
    }

    .info-label {
        font-size: 9px;
        padding: 6px 10px;
    }

    .info-value {
        font-size: 10px;
        padding: 6px 10px;
    }

    .image-placeholder {
        font-size: 11px;
        min-height: 120px;
        padding: 30px 15px;
    }

    .secret-content h2 {
        font-size: 11px;
    }

    .secret-content p {
        font-size: 11px;
    }

    .secret-placeholder p {
        font-size: 10px;
    }

    .gallery-status {
        padding: 20px 15px;
    }

    .gallery-status p {
        font-size: 11px;
    }

    .gallery-status p:first-child {
        font-size: 12px;
    }

    .gallery-title {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .container {
        max-width: 95%;
        margin: 0 2.5%;
        padding: 10px;
    }

    h1 {
        font-size: 11px;
        padding: 6px;
    }

    .nav {
        padding: 8px;
        gap: 6px;
    }

    .nav a {
        font-size: 8px;
        padding: 6px 8px;
        border: 1px solid #8b0000;
    }

    .lang-switcher {
        padding: 6px 8px;
        font-size: 7px;
        border: 1px solid #8b0000;
        gap: 3px;
        margin-left: 8px;
    }

    .lang-switcher a {
        padding: 1px 3px;
        font-size: 7px;
    }

    fieldset {
        padding: 10px;
        margin: 12px 0;
    }

    label {
        font-size: 11px;
        padding-left: 12px;
    }

    input[type="number"] {
        width: 45px;
        font-size: 10px;
    }

    input[type="text"] {
        max-width: 100%;
        font-size: 10px;
    }

    button {
        padding: 4px 8px;
        font-size: 9px;
        margin: 6px 2px;
    }

    .hint-tooltip {
        max-width: 240px;
        font-size: 10px;
        padding: 8px 10px;
    }

    pre {
        font-size: 9px;
        padding: 8px;
    }

    .faq-section,
    .script-section,
    .codes-section {
        padding: 12px;
        margin: 15px 0;
    }

    .faq-title,
    .script-title,
    .codes-title {
        font-size: 9px;
        padding: 2px 4px;
        top: -11px;
        left: 10px;
    }

    .faq-item {
        padding: 10px;
        margin: 8px 0;
    }

    .faq-item-question {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .faq-item-answer {
        font-size: 10px;
    }

    .password-table {
        font-size: 8px;
    }

    .password-table td {
        padding: 6px;
        font-size: 8px;
    }

    .prisoner-list {
        font-size: 10px;
    }

    .codes-list {
        padding: 15px 15px 15px 30px;
        font-size: 10px;
    }

    .site-footer {
        padding: 10px;
        font-size: 9px;
        margin-top: 20px;
    }

    .site-footer p {
        font-size: 9px;
    }

    .info-section, .secret-section {
        font-size: 10px;
    }

    .info-table {
        font-size: 9px;
    }

    .image-placeholder {
        font-size: 11px;
    }

    .secret-placeholder {
        font-size: 10px;
    }
}

/* Gallery Styles - Grid Layout */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gallery-item {
    position: relative;
    overflow: hidden !important;
    border: 1px solid #8b0000;
    background: #1a1a1a;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 5 / 4 !important;
}

.gallery-item:hover {
    border-color: #d8c8a0;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    transform: scale(1.02);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.gallery-link:before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.gallery-item:hover .gallery-link:before {
    opacity: 1;
}

.gallery-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Lightbox Custom Styling */
.lb-image {
    border-radius: 4px;
}

.lightbox-container {
    background-color: rgba(0, 0, 0, 0.95);
}

/* Mobile Gallery Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gallery-link:before {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .gallery-link:before {
        font-size: 16px;
    }

    .gallery-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .gallery-section {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 8px;
        justify-content: center;
    }

    .gallery-link:before {
        font-size: 12px;
    }

    .gallery-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .gallery-section {
        padding: 10px 0;
    }

    .nav {
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .nav a {
        font-size: 8px;
        padding: 6px 4px;
    }

    .lang-switcher {
        font-size: 8px;
        width: 100%;
        text-align: center;
        order: 999;
        padding: 4px 0;
    }

    .site-footer {
        padding: 8px;
        font-size: 8px;
    }

    .site-footer p {
        font-size: 8px;
        line-height: 1.3;
    }

    .info-section, .secret-section {
        font-size: 9px;
    }

    .info-table {
        font-size: 8px;
    }
}

