/* Copyright (c) 2026 Florentius Bohn. All Rights Reserved. The content of this website is protected by copyright and may not be reproduced without permission. */

:root {
    --primary-color: #ffffff;
    --accent-color: #008b8b;
    --accent-glow: rgba(0, 139, 139, 0.45);
    --bg-dark: #12161c;
    --font-family: "century_schoolbookbold", Georgia, serif;
    --transition-speed: 0.3s;
    --border-radius: 14px;
}

@font-face {
    font-family: "century_schoolbookbold";
    src:
        url("schlbkb-webfont.woff2") format("woff2"),
        url("schlbkb-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-family);
    background-image: url('bgSpeis.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
}

.logo-link {
    position: absolute;
    left: 40px;
    top: 36px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.logo {
    max-width: 170px;
    height: auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
    transition: transform var(--transition-speed) ease-in-out, filter var(--transition-speed) ease-in-out;
}

.logo-link:hover .logo,
.logo-link:focus-visible .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 14px var(--accent-glow));
}

.header-text-container {
    text-align: center;
    max-width: 800px;
}

.page-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4dd0e1;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.page-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--primary-color);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.03em;
    margin: 0;
    line-height: 1.15;
    position: relative;
    padding-bottom: 12px;
}

.page-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 10px auto 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Gallery Grid */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    padding: 20px 40px 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.column {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform var(--transition-speed),
        box-shadow var(--transition-speed),
        border-color var(--transition-speed);
    cursor: pointer;
    background-color: #0b0f14;
}

.column:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 139, 139, 0.35);
    border-color: rgba(0, 139, 139, 0.5);
}

.column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.column:hover img {
    transform: scale(1.08);
}

/* Modal / Lightbox */
.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 13, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 950px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.94);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: opacity 0.15s ease;
}

/* Elegant Frosted-Glass Close Button */
.close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.close svg {
    display: block;
    stroke: #ffffff;
    transition: transform 0.25s ease, stroke 0.25s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(77, 208, 225, 0.6);
    box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
    transform: scale(1.08) rotate(90deg);
}

.close:hover svg {
    stroke: #4dd0e1;
}

/* Premium Floating Arrow Buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(14, 18, 24, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    z-index: 5;
}

.prev svg,
.next svg {
    display: block;
    stroke: #ffffff;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.prev {
    left: -70px;
}

.next {
    right: -70px;
}

.prev:hover,
.next:hover {
    background: linear-gradient(135deg, rgba(0, 139, 139, 0.95) 0%, rgba(0, 102, 102, 0.95) 100%);
    border-color: rgba(77, 208, 225, 0.7);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 139, 139, 0.55), 0 0 15px rgba(77, 208, 225, 0.4);
}

.prev:hover svg {
    transform: translateX(-2px);
    stroke: #ffffff;
}

.next:hover svg {
    transform: translateX(2px);
    stroke: #ffffff;
}

.prev:active,
.next:active {
    transform: translateY(-50%) scale(0.96);
}

.caption-container {
    margin-top: 16px;
    padding: 6px 20px;
    background: rgba(14, 18, 24, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .prev {
        left: 14px;
    }
    .next {
        right: 14px;
    }
    .modal-content {
        max-width: 94%;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        padding: 24px 16px 18px;
    }

    .logo-link {
        position: static;
        margin: 0 auto 14px auto;
    }

    .logo {
        max-width: 160px;
        margin: 0 auto;
    }

    .page-kicker {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }

    .page-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .page-title::after {
        width: 36px;
        height: 2.5px;
        margin-top: 8px;
    }

    .row {
        padding: 10px 16px 110px;
        gap: 16px;
    }

    .prev,
    .next {
        font-size: 30px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .row {
        grid-template-columns: 1fr;
    }

    .logo {
        max-width: 140px;
    }
}

/* Accessible Focus-Visible Ring */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}
