@font-face {
    font-family: 'LucidaBlackletter';
    src: url('LucidaBlackletter.eot');
    src: url('LucidaBlackletter.eot?#iefix') format('embedded-opentype'),
        url('LucidaBlackletter.woff2') format('woff2'),
        url('LucidaBlackletter.woff') format('woff'),
        url('LucidaBlackletter.svg#LucidaBlackletter') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* General Styles
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
*/

/* ===============================
   General Styles (Corrected)
   =============================== */

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;

    /* Base font */
    font-family: Arial, sans-serif;

    /* Mobile-safe scaling */
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.6;
}

/* Headings */
h2 {
    font-family: "LucidaBlackletter", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin: 0 0 0.75em 0;
    line-height: 1.2;
}

/* Paragraphs */
p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin: 0 0 1em 0;
    max-width: 70ch;
}

/* Gallery Container */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Group */
.gallery-group {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Gallery Item */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto; /* Ensures the aspect ratio is maintained */
    object-fit: cover; /* Ensures images cover the area without stretching */
    transition: transform 0.3s ease;
}

/* Hover effect */
.gallery-item img:hover {
    transform: scale(1.05);
}

/* Ensure images are fluid */
@media (max-width: 768px) {
    .gallery {
        padding: 10px;
    }

    h2 {
        font-size: 1.2em;
    }
}

/*13.12.2025, ChatGPT*/
/* ===============================
   Responsive Improvements
   (Non-destructive)
================================ */

/* Better base scaling */
html {
    box-sizing: border-box;
    font-size: 16px;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Prevent tiny text on mobile */
body {
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.6;
}

/* Headings scale more naturally */
h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}
h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}
h3 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

/* Improve section spacing */
.w3-container {
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

/* Header fix (huge on mobile before) */
header {
    min-height: 60vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
}

/* Title section readability */
.title-section h2,
.title-section p {
    margin: 0.5rem 0;
    text-align: center;
}

/* Images behave better */
img {
    max-width: 100%;
    height: auto;
    display: block;
/* Spacing from text */
    margin: 1.25rem auto;
}

/* Improve text blocks */
.w3-twothird p,
.w3-third p {
    max-width: 65ch;
}

/* Better list spacing */
.myUL li {
    margin-bottom: 0.5rem;
}

/* Footer text scaling */
footer p {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

/* ===============================
   Mobile Layout Adjustments
================================ */
@media (max-width: 768px) {

    /* Stack columns cleanly */
    .w3-third,
    .w3-twothird {
        width: 100%;
    }

    /* Reduce excessive paddings */
    .w3-padding-64 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Header height smaller on phones */
    header {
        min-height: 60vh;
    }

    /* Navbar text size */
    .w3-bar-item {
        font-size: 1rem;
    }

    /* Footer logo size */
    footer img {
        width: 40%;
        margin: 0 auto;
    }
}

/* Prevent content images from becoming oversized on mobile */
@media (max-width: 768px) {
    .w3-third img,
    .w3-half img {
        max-width: 85%;
        margin: 0 auto;
    }
}

footer {
    text-align: center;
}

footer p {
  	max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Title block centering */
.title-section {
    text-align: center;
}

/* subtitle styling */
.title-subline {
    max-width: none;
    margin: 0.25em auto 0;
    text-align: center;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}