* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #F8F3E8;
    color: #294936;
    line-height: 1.6;
}

header {
    padding: 30px;
    text-align: center;
    background: #B9A18D;
    color:   #294936;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 0.15em;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

section {
    margin-bottom: 50px;
}

h2 {
    margin-bottom: 15px;
}

.gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
}

footer {
    padding: 25px;
    text-align: center;
    border-top: 1px solid #ccc;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-grid img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;

    box-sizing: border-box;
    padding: 4px;

    background: #F8F3E8;
    border: 2px solid #743C3C;
    border-radius: 7px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 800px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.tagline {
    font-size: 1.25em;
    margin-top: 10px;
    font-style: italic;
    font-weight: bold;
    color: #294936;
}

h1,
h2,
h3 {
    color: #294936;
}

/* ==========================================================
   CZK9 SECTION FRAMING
   ========================================================== */

.intro,
.gallery,
.contact {
    border: 2px solid #743C3C;
    border-radius: 8px;
    padding: 25px 30px;
    background: #FFFDF8;
}

.intro h2,
.gallery h2,
.contact h2 {
    color: #743C3C;
    margin-top: 0;
}

.intro h2,
.gallery h2 {
    color: #743C3C;
    margin-top: 0;
}

/* ==========================================================
   CZK9 HEADER FINISHING
   ========================================================== */

header {
    border-top: 3px solid #743C3C;
    border-bottom: 3px solid #743C3C;
}

.tagline {
    margin: 10px 0 0;
    padding-top: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ==========================================================
   CZK9 CLICKABLE PHOTOGRAPHS
   ========================================================== */

.photo-grid a {
    display: block;
    text-decoration: none;
}

.photo-grid a:hover img {
    transform: scale(1.02);
}

.photo-grid img {
    transition: transform 0.15s ease;
    cursor: pointer;
}

/* ==========================================================
   CZK9 PHOTO LIGHTBOX
   ========================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.88);
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    display: block;

    max-width: 92vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border: 3px solid #743C3C;
    border-radius: 8px;

    background: #FFFDF8;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;

    top: 18px;
    right: 28px;

    z-index: 1001;

    border: none;
    background: transparent;

    color: #FFFFFF;

    font-size: 3rem;
    line-height: 1;

    cursor: pointer;
}

.lightbox-close:hover {
    color: #D8A0A0;
}

body.lightbox-open {
    overflow: hidden;
}
