/* 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;
    --bg-dark: #1a1a1a;
    --bg-light: #2c2c2c;
    --font-family: "century_schoolbookbold", Georgia, serif;
    --transition-speed: 0.3s;
}

@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-color: var(--bg-dark);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.logo {
    max-width: 250px;
    margin-bottom: 20px;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

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

.column {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition:
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
    cursor: pointer;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Modal / Lightbox */
.modal {
    display: flex; /* Changed from none to flex for easier centering */
    visibility: hidden; /* Hide by default */
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease-out;
}

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

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent-color);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin: 0 20px;
    text-decoration: none;
}

.prev {
    left: -100px;
}
.next {
    right: -100px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.caption-container {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    .row {
        padding: 10px 20px 100px;
        gap: 15px;
    }
    .logo {
        max-width: 180px;
    }
    .prev,
    .next {
        font-size: 30px;
        padding: 10px;
    }
}

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