html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

p {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

/* Base Styles */
body {
    min-height: 100vh;
    display: flex;
    /* or block */
    flex-direction: column;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #333;
}

header,
footer {
    background: #7d6f44;
    color: #fff;
    text-align: center;
    padding: 1em;
}

header {
    background: url('images/header-940x198.jpg') no-repeat center center/cover;
}

nav {
    display: flex;
    justify-content: center;
    background: #35328a;

    padding: 0.5em;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background 0.3s ease-in-out;
}

nav a:hover,
nav a.active {
    background: #011929;
}

main {
    display: flex;
    padding: 3em 2em 3em 2em;
    max-width: 1200px;
    margin: auto;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
}

main>div {
    max-width: 80%;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

footer {
    font-size: small;
    background: #35328a
}

.fullscreenDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreenDiv>img {
    max-width: 100%;
    max-width: 100vw;
}

.gallery-item {
    max-width: 30%;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: auto;
}


.fullscreenDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.imgWrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imgWrapper::-webkit-scrollbar {
    display: none;
}

.fullscreenImage {
    user-select: none;
    touch-action: none;
    transform-origin: center center;
    will-change: transform;
}

#movableImage {
    position: relative;
}

.fullscreenDescription {
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.navBtn {
    position: absolute;
    background: #8080807d;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.closeBtn {
    top: 20px;
    right: 30px;
    font-size: 36px;
}

.leftBtn {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
}

.rightBtn {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
}

.zoomControls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 11;
}

.zoomBtn {
    width: 40px;
    height: 40px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8080807d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.fullscreenImage {
    -webkit-user-drag: none;
    /* Chrome, Safari */
    user-drag: none;
    /* Non-standard, but safe */
    user-select: none;
    touch-action: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.25em;
    }

    main {
        padding: 1em;
    }

    main>div {
        max-width: 90%;
    }

}

@media (max-width: 480px) {

    header,
    footer {
        font-size: 14px;
    }

    main {
        font-size: 16px;
    }

    main>div {
        max-width: 100%;
    }


}