/*body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f8f9fa;
}
*/
body {
  background-image: linear-gradient(rgba(255, 255, 255, 0.584), rgba(255, 255, 255, 0.7)), url('bg2000.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /*opacity: 0.9;*/
  font-family: sans-serif;
  padding-top: var(--header-offset, 205px);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: 245px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.584), rgba(255, 255, 255, 0.7)),
        url('bg2000.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-mask-image:
        radial-gradient(circle at 12% 92%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 33% 90%, transparent 0 1px, #000 2px),
        radial-gradient(circle at 58% 94%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 81% 90%, transparent 0 1px, #000 2px),
        linear-gradient(to bottom, #000 0 var(--header-height, 205px), rgba(0, 0, 0, 0.72) calc(var(--header-height, 205px) + 16px), transparent 100%);
    mask-image:
        radial-gradient(circle at 12% 92%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 33% 90%, transparent 0 1px, #000 2px),
        radial-gradient(circle at 58% 94%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 81% 90%, transparent 0 1px, #000 2px),
        linear-gradient(to bottom, #000 0 var(--header-height, 205px), rgba(0, 0, 0, 0.72) calc(var(--header-height, 205px) + 16px), transparent 100%);
}

h1,
h2 {
    color: #343a40;
    text-align: center;
    margin-bottom: 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: transparent;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .logo {
    margin-bottom: 1rem;
}

header .logo img {
    max-height: 125px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

header .menu {
    position: relative;
    z-index: 0;
    text-align: center;
    width: 100%;
    padding-bottom: 24px;
}

header .menu::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 0;
    width: 100vw;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 0;
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(64, 35, 18, 0.34) 0 6%, transparent 7%),
        radial-gradient(ellipse at 72% 54%, rgba(255, 238, 197, 0.2) 0 4%, transparent 5%),
        linear-gradient(102deg, transparent 0 18%, rgba(58, 31, 15, 0.3) 19%, transparent 21% 44%, rgba(46, 24, 11, 0.34) 45%, transparent 47% 100%),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(120, 77, 42, 0.48) 19%,
            rgba(57, 31, 15, 0.7) 51%,
            rgba(116, 72, 35, 0.52) 77%,
            rgba(255, 244, 213, 0.16) 100%
        ),
        url('bg2000.webp');
    background-size: auto, auto, auto, auto, cover;
    background-position: center, center, center, center, center 52%;
    box-shadow:
        inset 0 4px 7px rgba(45, 25, 12, 0.58),
        inset 0 -3px 4px rgba(255, 238, 198, 0.2),
        inset 0 0 0 1px rgba(75, 44, 22, 0.34),
        0 -1px 0 rgba(255, 245, 216, 0.26),
        0 2px 0 rgba(63, 36, 16, 0.24);
}

header .menu::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    z-index: 1;
    width: 100vw;
    height: 12px;
    transform: translateX(-50%);
    background-image:
        linear-gradient(to bottom, rgba(255, 246, 220, 0.14), transparent 28%, rgba(38, 20, 9, 0.34) 64%, transparent),
        linear-gradient(96deg, transparent 0 27%, rgba(42, 23, 12, 0.4) 28%, transparent 29% 63%, rgba(255, 234, 190, 0.14) 64%, transparent 66%),
        radial-gradient(ellipse at 38% 50%, rgba(44, 24, 12, 0.38) 0 2px, transparent 3px),
        radial-gradient(ellipse at 83% 50%, rgba(43, 23, 10, 0.34) 0 3px, transparent 4px);
    pointer-events: none;
}

header .menu ul {
    position: relative;
    z-index: 2;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-right: 0;
}

header .menu ul li {
    display: flex;
    align-items: center;
    margin: 0.2rem 0.75rem;
}

header .menu ul li > a {
    text-decoration: none;
    color: #3f2315;
    padding: 0.45rem 0.85rem;
    border-radius: 0.2rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(255, 238, 202, 0.55),
        0 -1px 1px rgba(45, 23, 10, 0.45),
        1px 1px 2px rgba(91, 48, 20, 0.24),
        0 2px 5px rgba(35, 17, 7, 0.34);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

header .menu ul li > a:hover,
header .menu ul li > a.active {
    color: #3f2112;
    background-color: rgba(117, 67, 31, 0.16);
    box-shadow:
        inset 0 1px 2px rgba(43, 21, 8, 0.34),
        inset 0 -1px 0 rgba(255, 232, 188, 0.34);
    text-shadow:
        0 1px 0 rgba(255, 238, 202, 0.38),
        0 -1px 1px rgba(33, 15, 6, 0.62);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #343a40;
    padding: 0.2rem 0.45rem;
    min-width: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    border: 1px solid rgba(52, 58, 64, 0.2);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.65);
    line-height: 1;
    font-size: 1rem;
}

.language-switcher a.active {
    background-color: #565656bd;
    border-color: transparent;
}

.menu-toggle {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: auto;
    gap: 2rem;
    padding: 10px 16px 16px;
    contain: layout style paint;
}

.thumbnail-container {
    overflow: visible;
    /*border-radius: 0.75rem;
    box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.12);*/
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    /*background-color: #fff;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}

.thumbnail-container:hover {
    transform: scale(1.05);
    /*box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);*/
    /*border-radius: 0.75rem;*/
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: contain;
    box-shadow: 0.4rem 0.4rem 0.8rem rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.9);*/
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('bg2000.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 0.5rem;
    overflow: auto;
}

.lightbox .close-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    color: #3f2315;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    font-weight: bold;
    line-height: 2.7rem;
    text-align: center;
    border: none;
    background: none;
    text-shadow:
        0 1px 0 rgba(255, 238, 202, 0.42),
        0 -1px 1px rgba(45, 23, 10, 0.5);
    cursor: pointer;
    opacity: 0.92;
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
    z-index: 2001;
}

.lightbox .close-button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.lightbox img#lightbox-image {
    max-width: calc(100vw - 12rem);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    /*box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.80);*/
    box-shadow: 6px 1rem 1.1rem 11px rgba(0, 0, 0, 0.80);
    width: auto;
    height: auto;
    transform: translateY(-8px);
}

.lightbox .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 5rem;
    background: none;
    border: none;
    color: #3f2315;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.92;
    cursor: pointer;
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
    padding: 0;
    user-select: none;
    text-align: center;
    text-shadow:
        0 1px 0 rgba(255, 238, 202, 0.42),
        0 -1px 1px rgba(45, 23, 10, 0.55);
}

.lightbox .nav-button:hover {
    opacity: 1;
}

.lightbox .prev:hover {
    transform: translate(-2px, -50%);
}

.lightbox .next:hover {
    transform: translate(2px, -50%);
}

.lightbox .prev {
    left: 2rem;
}

.lightbox .next {
    right: 2rem;
}

@media (max-width: 700px) {
    .lightbox img#lightbox-image {
        max-width: calc(100vw - 6rem);
    }

    .lightbox .prev {
        left: 0.25rem;
    }

    .lightbox .next {
        right: 0.25rem;
    }
}

@media (max-width: 768px) {
    body {
        position: relative;
        isolation: isolate;
        background-image: none;
        background-attachment: scroll;
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.584), rgba(255, 255, 255, 0.7)),
            url('bg2000.webp');
        background-size: cover;
        background-position: center;
        transform: translateZ(0);
        will-change: transform;
    }

    body::before {
        height: calc(var(--header-height, 112px) + 24px);
        background-attachment: scroll;
        -webkit-mask-image:
            linear-gradient(to bottom, #000 0 var(--header-height, 112px), rgba(0, 0, 0, 0.55) calc(var(--header-height, 112px) + 10px), transparent 100%);
        mask-image:
            linear-gradient(to bottom, #000 0 var(--header-height, 112px), rgba(0, 0, 0, 0.55) calc(var(--header-height, 112px) + 10px), transparent 100%);
    }

    header {
        padding: 0.45rem 0 0 !important;
        margin-bottom: 0 !important;
    }

    header .logo {
        margin-bottom: 0.35rem !important;
    }

    header .logo img {
        max-width: calc(100vw - 5.5rem) !important;
        max-height: 72px !important;
        height: auto;
    }

    header .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 14px !important;
    }

    header .menu::after {
        height: 14px;
    }

    header .menu::before {
        bottom: 3px;
        height: 8px;
    }

    .menu-toggle {
        position: absolute;
        top: -3.95rem;
        right: 0.75rem;
        z-index: 4;
        display: inline-flex;
        align-self: flex-end;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 1px solid rgba(75, 44, 22, 0.36);
        border-radius: 0.2rem;
        background-color: rgba(255, 248, 232, 0.82);
        box-shadow:
            inset 0 1px 0 rgba(255, 245, 216, 0.36),
            0 0.35rem 0.75rem rgba(45, 25, 12, 0.18);
        cursor: pointer;
    }

    .menu-toggle span {
        position: absolute;
        width: 1.35rem;
        height: 2px;
        background-color: #3f2315;
        border-radius: 999px;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .menu-toggle span:nth-child(1) {
        transform: translateY(-0.42rem);
    }

    .menu-toggle span:nth-child(3) {
        transform: translateY(0.42rem);
    }

    .menu.is-open .menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu.is-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu.is-open .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }

    header .menu.has-toggle ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: min(100% - 1.5rem, 22rem);
        max-height: 0;
        margin: 0 auto !important;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.25rem);
        transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease;
    }

    header .menu.has-toggle.is-open ul {
        max-height: calc(100vh - 7rem);
        padding: 0.35rem 0 0.45rem !important;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        background-color: rgba(255, 248, 232, 0.82);
        border: 1px solid rgba(92, 53, 25, 0.22);
        border-radius: 0.2rem;
        box-shadow: 0 0.5rem 1rem rgba(45, 25, 12, 0.18);
    }

    header .menu ul li {
        justify-content: center !important;
        margin: 0.1rem 0.35rem !important;
    }

    header .menu ul li > a {
        width: 100%;
        box-sizing: border-box;
        padding: 0.6rem 0.85rem !important;
        font-size: 0.92rem;
    }

    .language-switcher {
        justify-content: center;
        width: 100%;
        padding: 0.25rem 0;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 8px 12px 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .lightbox {
        background-attachment: scroll;
    }
}

.delete-form {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.delete-form button {
    padding: 0.375rem 0.75rem;
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    font-size: 0.875rem;
    width: 100%;
    margin-top: 0.5rem;
}

.delete-form button:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.admin-controls {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-controls a {
    margin: 0 0.75rem;
    text-decoration: none;
    color: #007bff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    background-color: transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.admin-controls a:hover {
    color: #fff;
    background-color: #007bff;
}

.site-footer {
    max-width: min(1100px, calc(100% - 2rem));
    margin: 3rem auto 1.5rem;
    padding: 1rem;
    text-align: center;
    color: #3f2315;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    text-shadow:
        0 1px 0 rgba(255, 238, 202, 0.48),
        0 -1px 1px rgba(45, 23, 10, 0.28);
}

.site-footer p {
    margin: 0;
}
